Got template help show/hide working (I had been hiding the wrong widget)
This commit is contained in:
parent
bfcfaca0ba
commit
7632d0df7c
@ -152,7 +152,7 @@ BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr)
|
||||
templateHelpTextView = Gtk::manage (new Gtk::TextView());
|
||||
templateHelpTextView->set_editable(false);
|
||||
templateHelpTextView->set_wrap_mode(Gtk::WRAP_WORD);
|
||||
Gtk::ScrolledWindow* scrolledTemplateHelpWindow = Gtk::manage(new Gtk::ScrolledWindow());
|
||||
scrolledTemplateHelpWindow = Gtk::manage(new Gtk::ScrolledWindow());
|
||||
scrolledTemplateHelpWindow->add(*templateHelpTextView);
|
||||
{
|
||||
auto helptext = M("QUEUE_LOCATION_TEMPLATE_TOOLTIP");
|
||||
@ -388,7 +388,12 @@ bool BatchQueuePanel::canStartNext ()
|
||||
void BatchQueuePanel::setDestinationPreviewText(const Glib::ustring &destinationPath)
|
||||
{
|
||||
destinationPreviewLabel->set_text(destinationPath);
|
||||
templateHelpTextView->hide(); // FIXME: REMOVE TESTING THING
|
||||
static bool remove_me = false;
|
||||
remove_me = !remove_me;
|
||||
if(remove_me)
|
||||
scrolledTemplateHelpWindow->hide(); // FIXME: REMOVE TESTING THING
|
||||
else
|
||||
scrolledTemplateHelpWindow->show(); // FIXME: REMOVE TESTING THING
|
||||
}
|
||||
|
||||
void BatchQueuePanel::pathFolderButtonPressed ()
|
||||
|
@ -53,6 +53,7 @@ class BatchQueuePanel : public Gtk::Box,
|
||||
RTWindow* parent;
|
||||
BatchQueue* batchQueue;
|
||||
Gtk::TextView* templateHelpTextView;
|
||||
Gtk::ScrolledWindow* scrolledTemplateHelpWindow;
|
||||
Gtk::Box* bottomBox;
|
||||
Gtk::Box* topBox;
|
||||
Gtk::Paned* middleSplitPane;
|
||||
|
Loading…
x
Reference in New Issue
Block a user