Merge branch 'dev' into tiff32float
This commit is contained in:
@@ -464,6 +464,12 @@ public:
|
||||
updateParameters ();
|
||||
}
|
||||
|
||||
void updateHistogram()
|
||||
{
|
||||
updateParameters();
|
||||
}
|
||||
|
||||
|
||||
void defaultMonitorProfileChanged (const Glib::ustring &profile_name, bool auto_monitor_profile)
|
||||
{
|
||||
ConnectionBlocker profileBlocker (profileConn);
|
||||
@@ -585,6 +591,16 @@ 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 ());
|
||||
Gtk::Image* histProfImg = Gtk::manage (new RTImage ("gamut-hist.png"));
|
||||
toggleHistogramProfile->add (*histProfImg);
|
||||
toggleHistogramProfile->set_relief (Gtk::RELIEF_NONE);
|
||||
toggleHistogramProfile->set_active (options.rtSettings.HistogramWorking);
|
||||
toggleHistogramProfile->set_tooltip_markup ( (M ("PREFERENCES_HISTOGRAM_TOOLTIP")));
|
||||
|
||||
Gtk::VSeparator* vsep3 = Gtk::manage (new Gtk::VSeparator ());
|
||||
|
||||
iareapanel = new ImageAreaPanel ();
|
||||
tpc->setEditProvider (iareapanel->imageArea);
|
||||
tpc->getToolBar()->setLockablePickerToolListener (iareapanel->imageArea);
|
||||
@@ -607,6 +623,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 +839,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 +2036,12 @@ void EditorPanel::syncFileBrowser() // synchronize filebrowser with image in E
|
||||
}
|
||||
}
|
||||
|
||||
void EditorPanel::histogramProfile_toggled()
|
||||
{
|
||||
options.rtSettings.HistogramWorking = toggleHistogramProfile->get_active();
|
||||
colorMgmtToolBar->updateHistogram();
|
||||
}
|
||||
|
||||
bool EditorPanel::idle_sendToGimp ( ProgressConnector<rtengine::IImagefloat*> *pc, Glib::ustring fname)
|
||||
{
|
||||
|
||||
@@ -2186,6 +2213,11 @@ void EditorPanel::beforeAfterToggled ()
|
||||
beforeIpc = rtengine::StagedImageProcessor::create (beforeImg);
|
||||
beforeIpc->setPreviewScale (10);
|
||||
beforeIpc->setPreviewImageListener (beforePreviewHandler);
|
||||
Glib::ustring monitorProfile;
|
||||
rtengine::RenderingIntent intent;
|
||||
ipc->getMonitorProfile(monitorProfile, intent);
|
||||
beforeIpc->setMonitorProfile(monitorProfile, intent);
|
||||
|
||||
beforeIarea->imageArea->setPreviewHandler (beforePreviewHandler);
|
||||
beforeIarea->imageArea->setImProcCoordinator (beforeIpc);
|
||||
|
||||
|
Reference in New Issue
Block a user