First try at adding expandable queue template help, using a Gtx::Paned.
Hiding doesn't work right yet. Click a thumbnail and the text disappears, but the border between widgets doesn't move to the left side. I tried using a Gtk::Expander, but couldn't get it to expand horizontally.
This commit is contained in:
@@ -147,8 +147,25 @@ BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr)
|
|||||||
topBox->pack_start (*fdir, Gtk::PACK_EXPAND_WIDGET, 4);
|
topBox->pack_start (*fdir, Gtk::PACK_EXPAND_WIDGET, 4);
|
||||||
topBox->pack_start (*fformat, Gtk::PACK_EXPAND_WIDGET, 4);
|
topBox->pack_start (*fformat, Gtk::PACK_EXPAND_WIDGET, 4);
|
||||||
|
|
||||||
|
// FIXME: THIS IS SO FAR JUST A TEST THING
|
||||||
|
middleSplitPane = Gtk::manage (new Gtk::Paned(Gtk::ORIENTATION_HORIZONTAL));
|
||||||
|
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->add(*templateHelpTextView);
|
||||||
|
{
|
||||||
|
auto helptext = M("QUEUE_LOCATION_TEMPLATE_TOOLTIP");
|
||||||
|
auto buffer = templateHelpTextView->get_buffer();
|
||||||
|
buffer->create_tag("bold");
|
||||||
|
buffer->create_tag("italic");
|
||||||
|
buffer->insert_markup(buffer->begin(), helptext);
|
||||||
|
}
|
||||||
|
middleSplitPane->pack1 (*scrolledTemplateHelpWindow);
|
||||||
|
middleSplitPane->pack2 (*batchQueue);
|
||||||
|
|
||||||
// add middle browser area
|
// add middle browser area
|
||||||
pack_start (*batchQueue);
|
pack_start (*middleSplitPane);
|
||||||
|
|
||||||
// lower box with thumbnail zoom
|
// lower box with thumbnail zoom
|
||||||
bottomBox = Gtk::manage (new Gtk::Box ());
|
bottomBox = Gtk::manage (new Gtk::Box ());
|
||||||
@@ -371,6 +388,7 @@ bool BatchQueuePanel::canStartNext ()
|
|||||||
void BatchQueuePanel::setDestinationPreviewText(const Glib::ustring &destinationPath)
|
void BatchQueuePanel::setDestinationPreviewText(const Glib::ustring &destinationPath)
|
||||||
{
|
{
|
||||||
destinationPreviewLabel->set_text(destinationPath);
|
destinationPreviewLabel->set_text(destinationPath);
|
||||||
|
templateHelpTextView->hide(); // FIXME: REMOVE TESTING THING
|
||||||
}
|
}
|
||||||
|
|
||||||
void BatchQueuePanel::pathFolderButtonPressed ()
|
void BatchQueuePanel::pathFolderButtonPressed ()
|
||||||
|
@@ -52,8 +52,10 @@ class BatchQueuePanel : public Gtk::Box,
|
|||||||
|
|
||||||
RTWindow* parent;
|
RTWindow* parent;
|
||||||
BatchQueue* batchQueue;
|
BatchQueue* batchQueue;
|
||||||
|
Gtk::TextView* templateHelpTextView;
|
||||||
Gtk::Box* bottomBox;
|
Gtk::Box* bottomBox;
|
||||||
Gtk::Box* topBox;
|
Gtk::Box* topBox;
|
||||||
|
Gtk::Paned* middleSplitPane;
|
||||||
|
|
||||||
std::atomic<bool> queueShouldRun;
|
std::atomic<bool> queueShouldRun;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user