Add perspective edit button to toolbar
The perspective control lines edit mode no longer piggybacks on the hand tool button on the toolbar.
This commit is contained in:
@@ -30,6 +30,8 @@ class ToolBarListener
|
||||
|
||||
public:
|
||||
virtual ~ToolBarListener() = default;
|
||||
/// Callback when a tool is deselected. WARNING: Not yet called for most tools.
|
||||
virtual void toolDeselected(ToolMode tool) = 0;
|
||||
/// Callback when a tool is selected
|
||||
virtual void toolSelected(ToolMode tool) = 0;
|
||||
|
||||
@@ -51,6 +53,7 @@ private:
|
||||
void colPicker_pressed (GdkEventButton* event);
|
||||
void crop_pressed ();
|
||||
void stra_pressed ();
|
||||
void persp_pressed ();
|
||||
bool showColorPickers(bool showCP);
|
||||
void switchColorPickersVisibility();
|
||||
|
||||
@@ -60,6 +63,7 @@ protected:
|
||||
Gtk::ToggleButton* colPickerTool;
|
||||
Gtk::ToggleButton* cropTool;
|
||||
Gtk::ToggleButton* straTool;
|
||||
Gtk::ToggleButton* perspTool;
|
||||
ToolBarListener* listener;
|
||||
LockablePickerToolListener* pickerListener;
|
||||
ToolMode current;
|
||||
@@ -71,6 +75,7 @@ protected:
|
||||
sigc::connection cpConn;
|
||||
sigc::connection cropConn;
|
||||
sigc::connection straConn;
|
||||
sigc::connection perspConn;
|
||||
|
||||
public:
|
||||
ToolBar ();
|
||||
|
Reference in New Issue
Block a user