Enhancement: Before/After lock-unlock (see issue 1017)

Lock: keep the Before view unchanged -
useful to evaluate the cumulative effect of multiple tools.
Additionally, comparison can be made to any state in the History

Unlock: the Before view will follow the After view 1 step behind,
showing image before the effect of the currently used tool
This commit is contained in:
michael
2011-09-26 22:45:00 -04:00
parent 73e8f043ee
commit ea5a0dfb72
7 changed files with 40 additions and 7 deletions

View File

@@ -57,6 +57,7 @@ class EditorPanel : public Gtk::VBox,
Gtk::ToggleButton* tbShowHideSidePanels;
Gtk::ToggleButton* tbTopPanel_1;
Gtk::ToggleButton* tbRightPanel_1;
Gtk::ToggleButton* tbBeforeLock;
bool tbTopPanel_1_Active;
bool tbRightPanel_1_Active;
//bool bAllSidePanelsVisible;
@@ -68,6 +69,7 @@ class EditorPanel : public Gtk::VBox,
Gtk::Image *iTopPanel_1_Show, *iTopPanel_1_Hide;
Gtk::Image *iRightPanel_1_Show, *iRightPanel_1_Hide;
Gtk::Image *iShowHideSidePanels;
Gtk::Image *iBeforeLockON, *iBeforeLockOFF;
Gtk::VBox *leftbox;
Gtk::VBox *vboxright;
@@ -85,6 +87,8 @@ class EditorPanel : public Gtk::VBox,
Gtk::Label* beforeLabel;
Gtk::Label* afterLabel;
Gtk::HBox* beforeAfterBox;
Gtk::HBox* beforeHeaderBox;
Gtk::HBox* afterHeaderBox;
Gtk::Frame* ppframe;
ProfilePanel* profilep;
@@ -163,6 +167,7 @@ class EditorPanel : public Gtk::VBox,
void tbRightPanel_1_toggled ();
void tbTopPanel_1_toggled ();
void beforeAfterToggled ();
void tbBeforeLock_toggled();
void saveAsPressed ();
void queueImgPressed ();
void sendToGimpPressed ();