Loading src/com/android/gallery3d/filtershow/editors/Editor.java +10 −1 Original line number Diff line number Diff line Loading @@ -81,13 +81,22 @@ public class Editor implements OnSeekBarChangeListener { return mShowParameter; } public boolean showsSeekBar() { return true; } /** * @param actionButton the would be the area for menu etc * @param editControl this is the black area for sliders etc */ public void setUtilityPanelUI(View actionButton, View editControl) { mSeekBar = (SeekBar) editControl.findViewById(R.id.primarySeekBar); if (showsSeekBar()) { mSeekBar.setOnSeekBarChangeListener(this); mSeekBar.setVisibility(View.VISIBLE); } else { mSeekBar.setVisibility(View.INVISIBLE); } } @Override Loading src/com/android/gallery3d/filtershow/editors/EditorCrop.java +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.gallery3d.filtershow.editors; import android.content.Context; import android.view.View; import android.widget.FrameLayout; import com.android.gallery3d.R; Loading Loading @@ -60,6 +61,11 @@ public class EditorCrop extends Editor implements EditorInfo { } } @Override public boolean showsSeekBar() { return false; } @Override public int getTextId() { return R.string.crop; Loading src/com/android/gallery3d/filtershow/editors/EditorCurves.java +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.gallery3d.filtershow.editors; import android.content.Context; import android.view.View; import android.widget.FrameLayout; import com.android.gallery3d.R; Loading Loading @@ -48,4 +49,9 @@ public class EditorCurves extends Editor { mImageCurves.setFilterDrawRepresentation(drawRep); } } @Override public boolean showsSeekBar() { return false; } } src/com/android/gallery3d/filtershow/editors/EditorDraw.java +5 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,11 @@ public class EditorDraw extends Editor { }); } @Override public boolean showsSeekBar() { return false; } private void showPopupMenu(LinearLayout accessoryViewList) { final Button button = (Button) accessoryViewList.findViewById( R.id.applyEffect); Loading src/com/android/gallery3d/filtershow/editors/EditorFlip.java +5 −0 Original line number Diff line number Diff line Loading @@ -57,4 +57,9 @@ public class EditorFlip extends Editor implements EditorInfo { public boolean getOverlayOnly() { return true; } @Override public boolean showsSeekBar() { return false; } } Loading
src/com/android/gallery3d/filtershow/editors/Editor.java +10 −1 Original line number Diff line number Diff line Loading @@ -81,13 +81,22 @@ public class Editor implements OnSeekBarChangeListener { return mShowParameter; } public boolean showsSeekBar() { return true; } /** * @param actionButton the would be the area for menu etc * @param editControl this is the black area for sliders etc */ public void setUtilityPanelUI(View actionButton, View editControl) { mSeekBar = (SeekBar) editControl.findViewById(R.id.primarySeekBar); if (showsSeekBar()) { mSeekBar.setOnSeekBarChangeListener(this); mSeekBar.setVisibility(View.VISIBLE); } else { mSeekBar.setVisibility(View.INVISIBLE); } } @Override Loading
src/com/android/gallery3d/filtershow/editors/EditorCrop.java +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.gallery3d.filtershow.editors; import android.content.Context; import android.view.View; import android.widget.FrameLayout; import com.android.gallery3d.R; Loading Loading @@ -60,6 +61,11 @@ public class EditorCrop extends Editor implements EditorInfo { } } @Override public boolean showsSeekBar() { return false; } @Override public int getTextId() { return R.string.crop; Loading
src/com/android/gallery3d/filtershow/editors/EditorCurves.java +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.gallery3d.filtershow.editors; import android.content.Context; import android.view.View; import android.widget.FrameLayout; import com.android.gallery3d.R; Loading Loading @@ -48,4 +49,9 @@ public class EditorCurves extends Editor { mImageCurves.setFilterDrawRepresentation(drawRep); } } @Override public boolean showsSeekBar() { return false; } }
src/com/android/gallery3d/filtershow/editors/EditorDraw.java +5 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,11 @@ public class EditorDraw extends Editor { }); } @Override public boolean showsSeekBar() { return false; } private void showPopupMenu(LinearLayout accessoryViewList) { final Button button = (Button) accessoryViewList.findViewById( R.id.applyEffect); Loading
src/com/android/gallery3d/filtershow/editors/EditorFlip.java +5 −0 Original line number Diff line number Diff line Loading @@ -57,4 +57,9 @@ public class EditorFlip extends Editor implements EditorInfo { public boolean getOverlayOnly() { return true; } @Override public boolean showsSeekBar() { return false; } }