Avoids Locallab spot to disapear when mouse right-clicking
This commit also avoids Locallab spot to disapear when adding lockable color picker, pressing toolbar "hand" button, pressing h/H key. However, if another tool button (ex: resizing tool) is pressed, this action is considered
This commit is contained in:
@@ -64,6 +64,7 @@ protected:
|
||||
ToolMode current;
|
||||
bool allowNoTool;
|
||||
bool editingMode; // true if the cursor is being used to remotely edit tool's values
|
||||
bool blockEdit; // true if edit tool shoudn't be disabled when pressing hand button or h/H key
|
||||
sigc::connection handConn;
|
||||
sigc::connection wbConn;
|
||||
sigc::connection cpConn;
|
||||
@@ -98,6 +99,11 @@ public:
|
||||
|
||||
bool handleShortcutKey (GdkEventKey* event);
|
||||
void setBatchMode();
|
||||
|
||||
void blockEditDeactivation(bool cond = true)
|
||||
{
|
||||
blockEdit = cond;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user