Make tool locations dynamic

Update tool locations after changing favorite tools preferences.
This commit is contained in:
Lawrence Lee
2021-12-05 17:09:23 -08:00
parent 8bd7712cce
commit 778b26d5bd
11 changed files with 586 additions and 274 deletions

View File

@@ -98,6 +98,10 @@ public:
{
return nullptr;
}
virtual Gtk::Box *getSubToolsContainer() const
{
return nullptr;
}
virtual void setExpanded (bool expanded) {}
virtual bool getExpanded ()
{
@@ -164,6 +168,7 @@ class FoldableToolPanel :
protected:
Gtk::Box* parentContainer;
MyExpander* exp;
Gtk::Box *subToolsContainer;
bool lastEnabled;
sigc::connection enaConn;
void foldThemAll (GdkEventButton* event);
@@ -177,6 +182,12 @@ public:
{
return exp;
}
Gtk::Box *getSubToolsContainer() const final
{
return subToolsContainer;
}
void setExpanded (bool expanded) final
{
if (exp) {