Removed thumbnail alignment button (not working) in queue panel. Issue #570
This commit is contained in:
@@ -106,25 +106,6 @@ BatchQueuePanel::BatchQueuePanel () {
|
|||||||
bottomBox = Gtk::manage (new Gtk::HBox ());
|
bottomBox = Gtk::manage (new Gtk::HBox ());
|
||||||
pack_start (*bottomBox, Gtk::PACK_SHRINK);
|
pack_start (*bottomBox, Gtk::PACK_SHRINK);
|
||||||
|
|
||||||
// change thumbnail arrangement button
|
|
||||||
hAlignIcon = new Gtk::Image (argv0+"/images/horizontals.png");
|
|
||||||
vAlignIcon = new Gtk::Image (argv0+"/images/verticals.png");
|
|
||||||
hAlignIcon->show ();
|
|
||||||
vAlignIcon->show ();
|
|
||||||
chAlign = Gtk::manage (new Gtk::Button ());
|
|
||||||
chAlign->show ();
|
|
||||||
bottomBox->pack_end (*chAlign, Gtk::PACK_SHRINK);
|
|
||||||
chAlign->set_image (*hAlignIcon);
|
|
||||||
chAlign->set_relief (Gtk::RELIEF_NONE);
|
|
||||||
chAlign->signal_pressed().connect (sigc::mem_fun(*this, &BatchQueuePanel::arrangementButtonPressed));
|
|
||||||
chAlign->set_tooltip_text (M("FILEBROWSER_ARRANGEMENTHINT"));
|
|
||||||
bottomBox->pack_end (*Gtk::manage (new Gtk::VSeparator), Gtk::PACK_SHRINK, 4);
|
|
||||||
if (options.fbArrangement==1)
|
|
||||||
chAlign->set_image (*vAlignIcon);
|
|
||||||
else
|
|
||||||
chAlign->set_image (*hAlignIcon);
|
|
||||||
arrangementButtonPressed ();
|
|
||||||
|
|
||||||
// thumbnail zoom
|
// thumbnail zoom
|
||||||
Gtk::HBox* zoomBox = Gtk::manage (new Gtk::HBox ());
|
Gtk::HBox* zoomBox = Gtk::manage (new Gtk::HBox ());
|
||||||
zoomBox->pack_start (*Gtk::manage (new Gtk::VSeparator), Gtk::PACK_SHRINK, 4);
|
zoomBox->pack_start (*Gtk::manage (new Gtk::VSeparator), Gtk::PACK_SHRINK, 4);
|
||||||
@@ -153,17 +134,6 @@ BatchQueuePanel::BatchQueuePanel () {
|
|||||||
batchQueue->notifyListener ();
|
batchQueue->notifyListener ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BatchQueuePanel::arrangementButtonPressed () {
|
|
||||||
|
|
||||||
if (chAlign->get_image()==hAlignIcon) {
|
|
||||||
chAlign->set_image (*vAlignIcon);
|
|
||||||
batchQueue->setArrangement (BatchQueue::TB_Vertical);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
chAlign->set_image (*hAlignIcon);
|
|
||||||
batchQueue->setArrangement (BatchQueue::TB_Horizontal);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void BatchQueuePanel::updateTab (int qsize)
|
void BatchQueuePanel::updateTab (int qsize)
|
||||||
{
|
{
|
||||||
|
@@ -43,10 +43,6 @@ class BatchQueuePanel : public Gtk::VBox,
|
|||||||
SaveFormatPanel* saveFormatPanel;
|
SaveFormatPanel* saveFormatPanel;
|
||||||
Gtk::Frame *fdir, *fformat;
|
Gtk::Frame *fdir, *fformat;
|
||||||
|
|
||||||
Gtk::Image* hAlignIcon;
|
|
||||||
Gtk::Image* vAlignIcon;
|
|
||||||
Gtk::Button* chAlign;
|
|
||||||
|
|
||||||
RTWindow* parent;
|
RTWindow* parent;
|
||||||
BatchQueue* batchQueue;
|
BatchQueue* batchQueue;
|
||||||
Gtk::HBox* bottomBox;
|
Gtk::HBox* bottomBox;
|
||||||
@@ -57,7 +53,6 @@ class BatchQueuePanel : public Gtk::VBox,
|
|||||||
BatchQueuePanel ();
|
BatchQueuePanel ();
|
||||||
|
|
||||||
void setParent (RTWindow* p) { parent = p; }
|
void setParent (RTWindow* p) { parent = p; }
|
||||||
void arrangementButtonPressed ();
|
|
||||||
|
|
||||||
void addBatchQueueJobs (std::vector<BatchQueueEntry*> &entries , bool head=false);
|
void addBatchQueueJobs (std::vector<BatchQueueEntry*> &entries , bool head=false);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user