First patch for issue 2648: "Improvements related to the GUI" ; now RT uses the new MyExpander class that integrates the Enabled button.

This commit is contained in:
Hombrenatureh.510
2015-03-11 02:03:48 +01:00
parent 1aa2ae3903
commit 6020234205
104 changed files with 5099 additions and 1257 deletions

View File

@@ -28,7 +28,6 @@
class Resize : public ToolParamBlock, public AdjusterListener, public FoldableToolPanel, public rtengine::SizeListener {
protected:
Gtk::CheckButton* enabled;
Adjuster* scale;
Gtk::VBox* sizeBox;
MyComboBoxText* appliesTo;
@@ -38,8 +37,8 @@ class Resize : public ToolParamBlock, public AdjusterListener, public FoldableTo
MySpinButton* h;
int maxw, maxh;
int cropw, croph;
sigc::connection sconn, aconn, wconn, hconn, enaConn;
bool wDirty, hDirty, lastEnabled;
sigc::connection sconn, aconn, wconn, hconn;
bool wDirty, hDirty;
public:
@@ -61,7 +60,7 @@ class Resize : public ToolParamBlock, public AdjusterListener, public FoldableTo
void setGUIFromCrop (bool isCropped, int cw, int ch);
void sizeChanged (int w, int h, int ow, int oh);
void setDimensions ();
void enabledToggled ();
void enabledChanged ();
private:
void fitBoxScale ();