Queue language key and string fixes
https://discuss.pixls.us/t/solved-change-of-queue-output-directory-not-taken-fully-into-account-if-no-f/11975
This commit is contained in:
@@ -50,33 +50,33 @@ BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr)
|
||||
batchQueueButtonBox->set_name("BatchQueueButtons");
|
||||
|
||||
qStartStop = Gtk::manage (new Gtk::Switch());
|
||||
qStartStop->set_tooltip_markup (M("BATCHQUEUE_STARTSTOPHINT"));
|
||||
qStartStop->set_tooltip_markup (M("QUEUE_STARTSTOP_TOOLTIP"));
|
||||
qStartStopConn = qStartStop->property_active().signal_changed().connect (sigc::mem_fun(*this, &BatchQueuePanel::startOrStopBatchProc));
|
||||
|
||||
qAutoStart = Gtk::manage (new Gtk::CheckButton (M("BATCHQUEUE_AUTOSTART")));
|
||||
qAutoStart->set_tooltip_text (M("BATCHQUEUE_AUTOSTARTHINT"));
|
||||
qAutoStart = Gtk::manage (new Gtk::CheckButton (M("QUEUE_AUTOSTART")));
|
||||
qAutoStart->set_tooltip_text (M("QUEUE_AUTOSTART_TOOLTIP"));
|
||||
qAutoStart->set_active (options.procQueueEnabled);
|
||||
|
||||
queueShouldRun = false;
|
||||
|
||||
batchQueueButtonBox->pack_start (*qStartStop, Gtk::PACK_SHRINK, 4);
|
||||
batchQueueButtonBox->pack_start (*qAutoStart, Gtk::PACK_SHRINK, 4);
|
||||
Gtk::Frame *bbox = Gtk::manage(new Gtk::Frame(M("MAIN_FRAME_BATCHQUEUE")));
|
||||
Gtk::Frame *bbox = Gtk::manage(new Gtk::Frame(M("MAIN_FRAME_QUEUE")));
|
||||
bbox->add(*batchQueueButtonBox);
|
||||
|
||||
// Output directory selection
|
||||
fdir = Gtk::manage (new Gtk::Frame (M("PREFERENCES_OUTDIR")));
|
||||
fdir = Gtk::manage (new Gtk::Frame (M("QUEUE_LOCATION_TITLE")));
|
||||
Gtk::VBox* odvb = Gtk::manage (new Gtk::VBox ());
|
||||
Gtk::HBox* hb2 = Gtk::manage (new Gtk::HBox ());
|
||||
useTemplate = Gtk::manage (new Gtk::RadioButton (M("PREFERENCES_OUTDIRTEMPLATE") + ":"));
|
||||
useTemplate = Gtk::manage (new Gtk::RadioButton (M("QUEUE_LOCATION_TEMPLATE") + ":"));
|
||||
hb2->pack_start (*useTemplate, Gtk::PACK_SHRINK, 4);
|
||||
outdirTemplate = Gtk::manage (new Gtk::Entry ());
|
||||
hb2->pack_start (*outdirTemplate);
|
||||
odvb->pack_start (*hb2, Gtk::PACK_SHRINK, 4);
|
||||
outdirTemplate->set_tooltip_markup (M("PREFERENCES_OUTDIRTEMPLATEHINT"));
|
||||
useTemplate->set_tooltip_markup (M("PREFERENCES_OUTDIRTEMPLATEHINT"));
|
||||
outdirTemplate->set_tooltip_markup (M("QUEUE_LOCATION_TEMPLATE_TOOLTIP"));
|
||||
useTemplate->set_tooltip_markup (M("QUEUE_LOCATION_TEMPLATE_TOOLTIP"));
|
||||
Gtk::HBox* hb3 = Gtk::manage (new Gtk::HBox ());
|
||||
useFolder = Gtk::manage (new Gtk::RadioButton (M("PREFERENCES_OUTDIRFOLDER") + ":"));
|
||||
useFolder = Gtk::manage (new Gtk::RadioButton (M("QUEUE_LOCATION_FOLDER") + ":"));
|
||||
hb3->pack_start (*useFolder, Gtk::PACK_SHRINK, 4);
|
||||
|
||||
#if 0 //defined(__APPLE__) || defined(__linux__)
|
||||
@@ -87,17 +87,15 @@ BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr)
|
||||
outdirFolderButton->set_alignment(0.0, 0.0);
|
||||
hb3->pack_start (*outdirFolderButton);
|
||||
outdirFolderButton->signal_pressed().connect( sigc::mem_fun(*this, &BatchQueuePanel::pathFolderButtonPressed) );
|
||||
outdirFolderButton->set_tooltip_markup (M("PREFERENCES_OUTDIRFOLDERHINT"));
|
||||
outdirFolderButton->set_label(makeFolderLabel(options.savePathFolder));
|
||||
Gtk::Image* folderImg = Gtk::manage (new RTImage ("folder-closed.png"));
|
||||
folderImg->show ();
|
||||
outdirFolderButton->set_image (*folderImg);
|
||||
outdirFolder = nullptr;
|
||||
#else
|
||||
outdirFolder = Gtk::manage (new MyFileChooserButton (M("PREFERENCES_OUTDIRFOLDER"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER));
|
||||
outdirFolder = Gtk::manage (new MyFileChooserButton (M("QUEUE_LOCATION_FOLDER"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER));
|
||||
hb3->pack_start (*outdirFolder);
|
||||
outdirFolder->signal_selection_changed().connect (sigc::mem_fun(*this, &BatchQueuePanel::pathFolderChanged));
|
||||
outdirFolder->set_tooltip_markup (M("PREFERENCES_OUTDIRFOLDERHINT"));
|
||||
|
||||
if (Glib::file_test (options.savePathFolder, Glib::FILE_TEST_IS_DIR)) {
|
||||
outdirFolder->set_current_folder (options.savePathFolder);
|
||||
@@ -109,13 +107,12 @@ BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr)
|
||||
#endif
|
||||
|
||||
odvb->pack_start (*hb3, Gtk::PACK_SHRINK, 4);
|
||||
useFolder->set_tooltip_markup (M("PREFERENCES_OUTDIRFOLDERHINT"));
|
||||
Gtk::RadioButton::Group g = useTemplate->get_group();
|
||||
useFolder->set_group (g);
|
||||
fdir->add (*odvb);
|
||||
|
||||
// Output file format selection
|
||||
fformat = Gtk::manage (new Gtk::Frame (M("PREFERENCES_FILEFORMAT")));
|
||||
fformat = Gtk::manage (new Gtk::Frame (M("QUEUE_FORMAT_TITLE")));
|
||||
saveFormatPanel = Gtk::manage (new SaveFormatPanel ());
|
||||
setExpandAlignProperties(saveFormatPanel, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||
fformat->add (*saveFormatPanel);
|
||||
@@ -210,18 +207,18 @@ void BatchQueuePanel::updateTab (int qsize, int forceOrientation)
|
||||
|
||||
if(!qsize ) {
|
||||
grid->attach_next_to(*Gtk::manage (new RTImage ("gears.png")), Gtk::POS_TOP, 1, 1);
|
||||
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_BATCHQUEUE")) );
|
||||
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_QUEUE")) );
|
||||
} else if (qStartStop->get_active()) {
|
||||
grid->attach_next_to(*Gtk::manage (new RTImage ("gears-play.png")), Gtk::POS_TOP, 1, 1);
|
||||
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]"));
|
||||
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_QUEUE") + " [" + Glib::ustring::format( qsize ) + "]"));
|
||||
} else {
|
||||
grid->attach_next_to(*Gtk::manage (new RTImage ("gears-pause.png")), Gtk::POS_TOP, 1, 1);
|
||||
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]" ));
|
||||
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_QUEUE") + " [" + Glib::ustring::format( qsize ) + "]" ));
|
||||
}
|
||||
|
||||
l->set_angle (90);
|
||||
grid->attach_next_to(*l, Gtk::POS_TOP, 1, 1);
|
||||
grid->set_tooltip_markup (M("MAIN_FRAME_BATCHQUEUE_TOOLTIP"));
|
||||
grid->set_tooltip_markup (M("MAIN_FRAME_QUEUE_TOOLTIP"));
|
||||
grid->show_all ();
|
||||
|
||||
if (nb) {
|
||||
@@ -230,16 +227,16 @@ void BatchQueuePanel::updateTab (int qsize, int forceOrientation)
|
||||
} else {
|
||||
if (!qsize ) {
|
||||
grid->attach_next_to(*Gtk::manage (new RTImage ("gears.png")), Gtk::POS_RIGHT, 1, 1);
|
||||
grid->attach_next_to(*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_BATCHQUEUE") )), Gtk::POS_RIGHT, 1, 1);
|
||||
grid->attach_next_to(*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_QUEUE") )), Gtk::POS_RIGHT, 1, 1);
|
||||
} else if (qStartStop->get_active()) {
|
||||
grid->attach_next_to(*Gtk::manage (new RTImage ("gears-play.png")), Gtk::POS_RIGHT, 1, 1);
|
||||
grid->attach_next_to(*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]" )), Gtk::POS_RIGHT, 1, 1);
|
||||
grid->attach_next_to(*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_QUEUE") + " [" + Glib::ustring::format( qsize ) + "]" )), Gtk::POS_RIGHT, 1, 1);
|
||||
} else {
|
||||
grid->attach_next_to(*Gtk::manage (new RTImage ("gears-pause.png")), Gtk::POS_RIGHT, 1, 1);
|
||||
grid->attach_next_to(*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]" )), Gtk::POS_RIGHT, 1, 1);
|
||||
grid->attach_next_to(*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_QUEUE") + " [" + Glib::ustring::format( qsize ) + "]" )), Gtk::POS_RIGHT, 1, 1);
|
||||
}
|
||||
|
||||
grid->set_tooltip_markup (M("MAIN_FRAME_BATCHQUEUE_TOOLTIP"));
|
||||
grid->set_tooltip_markup (M("MAIN_FRAME_QUEUE_TOOLTIP"));
|
||||
grid->show_all ();
|
||||
|
||||
if (nb) {
|
||||
@@ -362,7 +359,7 @@ bool BatchQueuePanel::canStartNext ()
|
||||
void BatchQueuePanel::pathFolderButtonPressed ()
|
||||
{
|
||||
|
||||
Gtk::FileChooserDialog fc (getToplevelWindow (this), M("PREFERENCES_OUTDIRFOLDER"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER );
|
||||
Gtk::FileChooserDialog fc (getToplevelWindow (this), M("QUEUE_LOCATION_FOLDER"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER );
|
||||
fc.add_button( "_Cancel", Gtk::RESPONSE_CANCEL); // STOCKICON WAS THERE
|
||||
fc.add_button( "_OK", Gtk::RESPONSE_OK); // STOCKICON WAS THERE
|
||||
fc.set_filename(options.savePathFolder);
|
||||
|
Reference in New Issue
Block a user