Added a histogram profile settings toggle button. Now working histogram profile can be changed without entering the preferences window.
modified: ../rtgui/editorpanel.cc modified: ../rtgui/editorpanel.h
This commit is contained in:
parent
84379ffb7d
commit
4c76c7456f
@ -585,6 +585,13 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
|
||||
Gtk::VSeparator* vsep1 = Gtk::manage (new Gtk::VSeparator ());
|
||||
Gtk::VSeparator* vsep2 = Gtk::manage (new Gtk::VSeparator ());
|
||||
|
||||
// Histogram profile toggle controls
|
||||
toggleHistogramProfile = Gtk::manage (new Gtk::ToggleButton ());
|
||||
toggleHistogramProfile->set_relief(Gtk::RELIEF_NONE);
|
||||
toggleHistogramProfile->set_active(options.rtSettings.HistogramWorking);
|
||||
|
||||
Gtk::VSeparator* vsep3 = Gtk::manage (new Gtk::VSeparator ());
|
||||
|
||||
iareapanel = new ImageAreaPanel ();
|
||||
tpc->setEditProvider (iareapanel->imageArea);
|
||||
tpc->getToolBar()->setLockablePickerToolListener (iareapanel->imageArea);
|
||||
@ -607,6 +614,10 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
|
||||
|
||||
toolBarPanel->pack_end (*tpc->coarse, Gtk::PACK_SHRINK, 2);
|
||||
toolBarPanel->pack_end (*vsepcl, Gtk::PACK_SHRINK, 2);
|
||||
// Histogram profile toggle
|
||||
toolBarPanel->pack_end (*toggleHistogramProfile, Gtk::PACK_SHRINK, 1);
|
||||
toolBarPanel->pack_end (*vsep3, Gtk::PACK_SHRINK, 2);
|
||||
|
||||
toolBarPanel->pack_end (*iareapanel->imageArea->indClippedPanel, Gtk::PACK_SHRINK, 0);
|
||||
toolBarPanel->pack_end (*vsepz, Gtk::PACK_SHRINK, 2);
|
||||
toolBarPanel->pack_end (*iareapanel->imageArea->previewModePanel, Gtk::PACK_SHRINK, 0);
|
||||
@ -819,6 +830,7 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
|
||||
saveimgas->signal_pressed().connect ( sigc::mem_fun (*this, &EditorPanel::saveAsPressed) );
|
||||
queueimg->signal_pressed().connect ( sigc::mem_fun (*this, &EditorPanel::queueImgPressed) );
|
||||
sendtogimp->signal_pressed().connect ( sigc::mem_fun (*this, &EditorPanel::sendToGimpPressed) );
|
||||
toggleHistogramProfile->signal_toggled().connect( sigc::mem_fun (*this, &EditorPanel::histogramProfile_toggled) );
|
||||
|
||||
if (navPrev) {
|
||||
navPrev->signal_pressed().connect ( sigc::mem_fun (*this, &EditorPanel::openPreviousEditorImage) );
|
||||
@ -2015,6 +2027,11 @@ void EditorPanel::syncFileBrowser() // synchronize filebrowser with image in E
|
||||
}
|
||||
}
|
||||
|
||||
void EditorPanel::histogramProfile_toggled()
|
||||
{
|
||||
options.rtSettings.HistogramWorking = toggleHistogramProfile->get_active();
|
||||
}
|
||||
|
||||
bool EditorPanel::idle_sendToGimp ( ProgressConnector<rtengine::IImage16*> *pc, Glib::ustring fname)
|
||||
{
|
||||
|
||||
|
@ -115,6 +115,7 @@ public:
|
||||
void openNextEditorImage ();
|
||||
void openPreviousEditorImage ();
|
||||
void syncFileBrowser ();
|
||||
void histogramProfile_toggled ();
|
||||
|
||||
void tbTopPanel_1_visible (bool visible);
|
||||
bool CheckSidePanelsVisibility();
|
||||
@ -196,6 +197,7 @@ private:
|
||||
Gtk::HBox* beforeAfterBox;
|
||||
Gtk::HBox* beforeHeaderBox;
|
||||
Gtk::HBox* afterHeaderBox;
|
||||
Gtk::ToggleButton* toggleHistogramProfile;
|
||||
|
||||
Gtk::Frame* ppframe;
|
||||
ProfilePanel* profilep;
|
||||
|
Loading…
x
Reference in New Issue
Block a user