Get locallab spot name from one source

Fixes #6298.
This commit is contained in:
Lawrence Lee
2021-07-10 09:52:18 -07:00
parent d7f9e1f51c
commit 5a49ea7b8c
7 changed files with 583 additions and 573 deletions

View File

@@ -59,7 +59,7 @@ protected:
// LocallabTool parameters
bool needMode;
bool isLocActivated;
Glib::ustring spotName;
const Glib::ustring *spotNameSource;
LocallabToolListener* locToolListener;
// LocallabTool generic widgets
@@ -70,6 +70,8 @@ protected:
IdleRegister idle_register;
Glib::ustring getSpotName() const;
public:
// Locallab tool constructor/destructor
LocallabTool(Gtk::Box* content, Glib::ustring toolName, Glib::ustring UILabel, bool need11 = false, bool needMode = true);
@@ -98,10 +100,10 @@ public:
isLocActivated = cond;
}
// Setter for spot name
void setSpotName(const Glib::ustring &spotname)
// Setter for spot name source
void setSpotNameSource(const Glib::ustring *source)
{
spotName = spotname;
spotNameSource = source;
}
// Setter for Locallab tool listener