// Path: src/com/painless/glclock/Constants.java
// public static final class WidgetCode {
// 	public final String code;
// 	public final String prefix;
// 
// 	public final String offset;
// 	public final String offsetDefault;
// 
// 	public final String color;
// 	public final String zoom;
// 
// 	private WidgetCode(String code, String defaultOffset) {
// 		this.code = code + "Enabled";
// 		this.offset = code + "Offset";
// 		this.color  = code + "color";
// 		this.zoom  = code + "zoom";
// 		this.prefix = code + "_";
// 
// 		this.offsetDefault = defaultOffset;
// 	}
// 
// 	public int[] getOffset(SharedPreferences pref) {
// 		final String[] values = pref.getString(offset, offsetDefault).split(",");
// 
// 		final int[] offsets = new int[2];
// 		try {
// 			offsets[0] = Integer.valueOf(values[0]);
// 			offsets[1] = Integer.valueOf(values[1]);
// 		} catch (final Exception e) {
// 			offsets[0] = 0;
// 			offsets[1] = 0;
// 		}
// 		return offsets;
// 	}
// 
// 	public float getZoom(SharedPreferences pref) {
// 		return pref.getFloat(zoom, 1);
// 	}
// }
// 
// Path: src/com/painless/glclock/util/LayoutSlideAnim.java
// public class LayoutSlideAnim extends Animation {
// 
// 	private final View mtargetView;
// 	private final LayoutParams mParams;
// 	private final boolean mSlideIn;
// 
// 	private final int mDelta;
// 	private final boolean mIsVert;
// 
// 	public LayoutSlideAnim(View target, boolean slideIn, boolean isVert) {
// 		mSlideIn = slideIn;
// 		mtargetView = target;
// 		mParams = (LayoutParams) target.getLayoutParams();
// 		mDelta = (int) target.getResources().getDimension(R.dimen.info_margin);
// 		mIsVert = isVert;
// 
// 		setFillAfter(true);
// 		setDuration(200);
// 	}
// 
// 	@Override
// 	protected void applyTransformation(float interpolatedTime, Transformation t) {
// 		if (mSlideIn) {
// 			interpolatedTime = 1 - interpolatedTime;
// 		}
// 
// 		if (mIsVert) {
// 			mParams.topMargin = (int) (-interpolatedTime * mtargetView.getHeight());
// 		} else {
// 			mParams.leftMargin = (int) (-interpolatedTime * (mtargetView.getWidth() - mDelta)) - mDelta;			
// 		}
// 
// 		mtargetView.setLayoutParams(mParams);
// 	}
// 
// }


import android.content.Intent;
import android.content.SharedPreferences;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;
import com.painless.glclock.Constants.WidgetCode;
import com.painless.glclock.R;
import com.painless.glclock.util.LayoutSlideAnim;
package com.painless.glclock.setting;



public class WidgetSettingPopup implements OnClickListener, OnCheckedChangeListener, OnSeekBarChangeListener {

	private final OffsetPicker mMain;
	private final SharedPreferences mPrefs;

	private DragImg mImg;
// Path: src/com/painless/glclock/Constants.java
// public static final class WidgetCode {
// 	public final String code;
// 	public final String prefix;
// 
// 	public final String offset;
// 	public final String offsetDefault;
// 
// 	public final String color;
// 	public final String zoom;
// 
// 	private WidgetCode(String code, String defaultOffset) {
// 		this.code = code + "Enabled";
// 		this.offset = code + "Offset";
// 		this.color  = code + "color";
// 		this.zoom  = code + "zoom";
// 		this.prefix = code + "_";
// 
// 		this.offsetDefault = defaultOffset;
// 	}
// 
// 	public int[] getOffset(SharedPreferences pref) {
// 		final String[] values = pref.getString(offset, offsetDefault).split(",");
// 
// 		final int[] offsets = new int[2];
// 		try {
// 			offsets[0] = Integer.valueOf(values[0]);
// 			offsets[1] = Integer.valueOf(values[1]);
// 		} catch (final Exception e) {
// 			offsets[0] = 0;
// 			offsets[1] = 0;
// 		}
// 		return offsets;
// 	}
// 
// 	public float getZoom(SharedPreferences pref) {
// 		return pref.getFloat(zoom, 1);
// 	}
// }
// 
// Path: src/com/painless/glclock/util/LayoutSlideAnim.java
// public class LayoutSlideAnim extends Animation {
// 
// 	private final View mtargetView;
// 	private final LayoutParams mParams;
// 	private final boolean mSlideIn;
// 
// 	private final int mDelta;
// 	private final boolean mIsVert;
// 
// 	public LayoutSlideAnim(View target, boolean slideIn, boolean isVert) {
// 		mSlideIn = slideIn;
// 		mtargetView = target;
// 		mParams = (LayoutParams) target.getLayoutParams();
// 		mDelta = (int) target.getResources().getDimension(R.dimen.info_margin);
// 		mIsVert = isVert;
// 
// 		setFillAfter(true);
// 		setDuration(200);
// 	}
// 
// 	@Override
// 	protected void applyTransformation(float interpolatedTime, Transformation t) {
// 		if (mSlideIn) {
// 			interpolatedTime = 1 - interpolatedTime;
// 		}
// 
// 		if (mIsVert) {
// 			mParams.topMargin = (int) (-interpolatedTime * mtargetView.getHeight());
// 		} else {
// 			mParams.leftMargin = (int) (-interpolatedTime * (mtargetView.getWidth() - mDelta)) - mDelta;			
// 		}
// 
// 		mtargetView.setLayoutParams(mParams);
// 	}
// 
// }


// Path: src/com/painless/glclock/setting/WidgetSettingPopup.java
import android.content.Intent;
import android.content.SharedPreferences;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;
import com.painless.glclock.Constants.WidgetCode;
import com.painless.glclock.R;
import com.painless.glclock.util.LayoutSlideAnim;

package com.painless.glclock.setting;



public class WidgetSettingPopup implements OnClickListener, OnCheckedChangeListener, OnSeekBarChangeListener {

	private final OffsetPicker mMain;
	private final SharedPreferences mPrefs;

	private DragImg mImg;
	private WidgetCode mCode;