run through astyle
This commit is contained in:
parent
610f3e4853
commit
f70ba32c9d
@ -90,6 +90,7 @@ bool find_default_monitor_profile(GdkWindow *rootwin, Glib::ustring &defprof, Gl
|
|||||||
if (pos != Glib::ustring::npos) {
|
if (pos != Glib::ustring::npos) {
|
||||||
defprofname = defprofname.substr (0, pos);
|
defprofname = defprofname.substr (0, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
defprof = Glib::ustring ("file:") + defprof;
|
defprof = Glib::ustring ("file:") + defprof;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -99,6 +100,7 @@ bool find_default_monitor_profile(GdkWindow *rootwin, Glib::ustring &defprof, Gl
|
|||||||
|
|
||||||
ReleaseDC (NULL, hDC);
|
ReleaseDC (NULL, hDC);
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif !defined(__APPLE__)
|
#elif !defined(__APPLE__)
|
||||||
// taken from geeqie (image.c) and adapted
|
// taken from geeqie (image.c) and adapted
|
||||||
// Originally licensed as GPL v2+, with the following copyright:
|
// Originally licensed as GPL v2+, with the following copyright:
|
||||||
@ -109,24 +111,31 @@ bool find_default_monitor_profile(GdkWindow *rootwin, Glib::ustring &defprof, Gl
|
|||||||
gint proflen;
|
gint proflen;
|
||||||
GdkAtom type = GDK_NONE;
|
GdkAtom type = GDK_NONE;
|
||||||
gint format = 0;
|
gint format = 0;
|
||||||
|
|
||||||
if (gdk_property_get (rootwin, gdk_atom_intern ("_ICC_PROFILE", FALSE), GDK_NONE, 0, 64 * 1024 * 1024, FALSE, &type, &format, &proflen, &prof) && proflen > 0) {
|
if (gdk_property_get (rootwin, gdk_atom_intern ("_ICC_PROFILE", FALSE), GDK_NONE, 0, 64 * 1024 * 1024, FALSE, &type, &format, &proflen, &prof) && proflen > 0) {
|
||||||
cmsHPROFILE p = cmsOpenProfileFromMem (prof, proflen);
|
cmsHPROFILE p = cmsOpenProfileFromMem (prof, proflen);
|
||||||
|
|
||||||
if (p) {
|
if (p) {
|
||||||
defprofname = "from GDK";
|
defprofname = "from GDK";
|
||||||
defprof = Glib::build_filename (Options::rtdir, "GDK_ICC_PROFILE.icc");
|
defprof = Glib::build_filename (Options::rtdir, "GDK_ICC_PROFILE.icc");
|
||||||
|
|
||||||
if (cmsSaveProfileToFile (p, defprof.c_str())) {
|
if (cmsSaveProfileToFile (p, defprof.c_str())) {
|
||||||
cmsCloseProfile (p);
|
cmsCloseProfile (p);
|
||||||
|
|
||||||
if (prof) {
|
if (prof) {
|
||||||
g_free (prof);
|
g_free (prof);
|
||||||
}
|
}
|
||||||
|
|
||||||
defprof = Glib::ustring ("file:") + defprof;
|
defprof = Glib::ustring ("file:") + defprof;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prof) {
|
if (prof) {
|
||||||
g_free (prof);
|
g_free (prof);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -158,8 +167,10 @@ private:
|
|||||||
|
|
||||||
profileBox.append (M ("PREFERENCES_PROFILE_NONE"));
|
profileBox.append (M ("PREFERENCES_PROFILE_NONE"));
|
||||||
Glib::ustring defprofname;
|
Glib::ustring defprofname;
|
||||||
|
|
||||||
if (find_default_monitor_profile (profileBox.get_root_window()->gobj(), defprof, defprofname)) {
|
if (find_default_monitor_profile (profileBox.get_root_window()->gobj(), defprof, defprofname)) {
|
||||||
profileBox.append (M ("MONITOR_PROFILE_SYSTEM") + " (" + defprofname + ")");
|
profileBox.append (M ("MONITOR_PROFILE_SYSTEM") + " (" + defprofname + ")");
|
||||||
|
|
||||||
if (options.rtSettings.autoMonitorProfile) {
|
if (options.rtSettings.autoMonitorProfile) {
|
||||||
rtengine::ICCStore::getInstance()->setDefaultMonitorProfileName (defprof);
|
rtengine::ICCStore::getInstance()->setDefaultMonitorProfileName (defprof);
|
||||||
profileBox.set_active (1);
|
profileBox.set_active (1);
|
||||||
@ -169,10 +180,13 @@ private:
|
|||||||
} else {
|
} else {
|
||||||
profileBox.set_active (0);
|
profileBox.set_active (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<Glib::ustring> profiles = rtengine::ICCStore::getInstance()->getProfiles (rtengine::ICCStore::ProfileType::MONITOR);
|
const std::vector<Glib::ustring> profiles = rtengine::ICCStore::getInstance()->getProfiles (rtengine::ICCStore::ProfileType::MONITOR);
|
||||||
|
|
||||||
for (const auto profile : profiles) {
|
for (const auto profile : profiles) {
|
||||||
profileBox.append (profile);
|
profileBox.append (profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
profileBox.set_tooltip_text (profileBox.get_active_text ());
|
profileBox.set_tooltip_text (profileBox.get_active_text ());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -244,22 +258,27 @@ private:
|
|||||||
Glib::ustring profile;
|
Glib::ustring profile;
|
||||||
|
|
||||||
#if !defined(__APPLE__) // monitor profile not supported on apple
|
#if !defined(__APPLE__) // monitor profile not supported on apple
|
||||||
|
|
||||||
if (!defprof.empty() && profileBox.get_active_row_number () == 1) {
|
if (!defprof.empty() && profileBox.get_active_row_number () == 1) {
|
||||||
profile = defprof;
|
profile = defprof;
|
||||||
|
|
||||||
if (profile.empty ()) {
|
if (profile.empty ()) {
|
||||||
profile = options.rtSettings.monitorProfile;
|
profile = options.rtSettings.monitorProfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (profile.empty ()) {
|
if (profile.empty ()) {
|
||||||
profile = "sRGB IEC61966-2.1";
|
profile = "sRGB IEC61966-2.1";
|
||||||
}
|
}
|
||||||
} else if (profileBox.get_active_row_number () > 0) {
|
} else if (profileBox.get_active_row_number () > 0) {
|
||||||
profile = profileBox.get_active_text ();
|
profile = profileBox.get_active_text ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
profile = "RT_sRGB";
|
profile = "RT_sRGB";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__APPLE__) // monitor profile not supported on apple
|
#if !defined(__APPLE__) // monitor profile not supported on apple
|
||||||
|
|
||||||
if (profileBox.get_active_row_number () == 0) {
|
if (profileBox.get_active_row_number () == 0) {
|
||||||
|
|
||||||
profile.clear ();
|
profile.clear ();
|
||||||
@ -296,8 +315,10 @@ private:
|
|||||||
|
|
||||||
profileBox.set_tooltip_text (profileBox.get_active_text ());
|
profileBox.set_tooltip_text (profileBox.get_active_text ());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
rtengine::RenderingIntent intent;
|
rtengine::RenderingIntent intent;
|
||||||
|
|
||||||
switch (intentBox.getSelected ()) {
|
switch (intentBox.getSelected ()) {
|
||||||
default:
|
default:
|
||||||
case 0:
|
case 0:
|
||||||
@ -320,8 +341,10 @@ private:
|
|||||||
if (!noEvent) {
|
if (!noEvent) {
|
||||||
processor->beginUpdateParams ();
|
processor->beginUpdateParams ();
|
||||||
}
|
}
|
||||||
|
|
||||||
processor->setMonitorProfile (profile, intent);
|
processor->setMonitorProfile (profile, intent);
|
||||||
processor->setSoftProofing (softProof.get_sensitive() && softProof.get_active(), spGamutCheck.get_sensitive() && spGamutCheck.get_active());
|
processor->setSoftProofing (softProof.get_sensitive() && softProof.get_active(), spGamutCheck.get_sensitive() && spGamutCheck.get_active());
|
||||||
|
|
||||||
if (!noEvent) {
|
if (!noEvent) {
|
||||||
processor->endUpdateParams (rtengine::EvMonitorTransform);
|
processor->endUpdateParams (rtengine::EvMonitorTransform);
|
||||||
}
|
}
|
||||||
@ -338,22 +361,29 @@ private:
|
|||||||
softProof.set_sensitive (profileBox.get_active_row_number () > 0);
|
softProof.set_sensitive (profileBox.get_active_row_number () > 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
spGamutCheck.set_sensitive (softProof.get_sensitive() && softProof.get_active());
|
spGamutCheck.set_sensitive (softProof.get_sensitive() && softProof.get_active());
|
||||||
|
|
||||||
#if !defined(__APPLE__) // monitor profile not supported on apple
|
#if !defined(__APPLE__) // monitor profile not supported on apple
|
||||||
|
|
||||||
if (profileBox.get_active_row_number () > 0) {
|
if (profileBox.get_active_row_number () > 0) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (processor) {
|
if (processor) {
|
||||||
if (!noEvent) {
|
if (!noEvent) {
|
||||||
processor->beginUpdateParams ();
|
processor->beginUpdateParams ();
|
||||||
}
|
}
|
||||||
|
|
||||||
processor->setSoftProofing (softProof.get_sensitive() && softProof.get_active(), spGamutCheck.get_sensitive() && spGamutCheck.get_active());
|
processor->setSoftProofing (softProof.get_sensitive() && softProof.get_active(), spGamutCheck.get_sensitive() && spGamutCheck.get_active());
|
||||||
|
|
||||||
if (!noEvent) {
|
if (!noEvent) {
|
||||||
processor->endUpdateParams (rtengine::EvMonitorTransform);
|
processor->endUpdateParams (rtengine::EvMonitorTransform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__APPLE__) // monitor profile not supported on apple
|
#if !defined(__APPLE__) // monitor profile not supported on apple
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -413,6 +443,7 @@ public:
|
|||||||
} else {
|
} else {
|
||||||
setActiveTextOrIndex (profileBox, options.rtSettings.monitorProfile, 0);
|
setActiveTextOrIndex (profileBox, options.rtSettings.monitorProfile, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
switch (options.rtSettings.monitorIntent) {
|
switch (options.rtSettings.monitorIntent) {
|
||||||
@ -680,6 +711,7 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
|
|||||||
iops->attach_next_to (*vsep2, Gtk::POS_LEFT, 1, 1);
|
iops->attach_next_to (*vsep2, Gtk::POS_LEFT, 1, 1);
|
||||||
iops->attach_next_to (*progressLabel, Gtk::POS_LEFT, 1, 1);
|
iops->attach_next_to (*progressLabel, Gtk::POS_LEFT, 1, 1);
|
||||||
iops->attach_next_to (*vsep1, Gtk::POS_LEFT, 1, 1);
|
iops->attach_next_to (*vsep1, Gtk::POS_LEFT, 1, 1);
|
||||||
|
|
||||||
if (!gimpPlugin) {
|
if (!gimpPlugin) {
|
||||||
iops->attach_next_to (*sendtogimp, Gtk::POS_LEFT, 1, 1);
|
iops->attach_next_to (*sendtogimp, Gtk::POS_LEFT, 1, 1);
|
||||||
}
|
}
|
||||||
@ -1123,7 +1155,8 @@ void EditorPanel::setProgressState (bool inProcessing)
|
|||||||
const auto func = [] (gpointer data) -> gboolean {
|
const auto func = [] (gpointer data) -> gboolean {
|
||||||
spsparams* const p = static_cast<spsparams*> (data);
|
spsparams* const p = static_cast<spsparams*> (data);
|
||||||
|
|
||||||
if (p->epih->destroyed) {
|
if (p->epih->destroyed)
|
||||||
|
{
|
||||||
if (p->epih->pending == 1) {
|
if (p->epih->pending == 1) {
|
||||||
delete p->epih;
|
delete p->epih;
|
||||||
} else {
|
} else {
|
||||||
@ -1246,7 +1279,8 @@ void EditorPanel::error (Glib::ustring title, Glib::ustring descr)
|
|||||||
const auto func = [] (gpointer data) -> gboolean {
|
const auto func = [] (gpointer data) -> gboolean {
|
||||||
errparams* const p = static_cast<errparams*> (data);
|
errparams* const p = static_cast<errparams*> (data);
|
||||||
|
|
||||||
if (p->epih->destroyed) {
|
if (p->epih->destroyed)
|
||||||
|
{
|
||||||
if (p->epih->pending == 1) {
|
if (p->epih->pending == 1) {
|
||||||
delete p->epih;
|
delete p->epih;
|
||||||
} else {
|
} else {
|
||||||
@ -1594,6 +1628,7 @@ bool EditorPanel::handleShortcutKey (GdkEventKey* event)
|
|||||||
if (!gimpPlugin) {
|
if (!gimpPlugin) {
|
||||||
saveAsPressed();
|
saveAsPressed();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GDK_KEY_b:
|
case GDK_KEY_b:
|
||||||
@ -1607,6 +1642,7 @@ bool EditorPanel::handleShortcutKey (GdkEventKey* event)
|
|||||||
if (!gimpPlugin) {
|
if (!gimpPlugin) {
|
||||||
sendToGimpPressed();
|
sendToGimpPressed();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GDK_KEY_z:
|
case GDK_KEY_z:
|
||||||
@ -1707,8 +1743,9 @@ bool EditorPanel::idle_saveImage (ProgressConnector<rtengine::IImage16*> *pc, Gl
|
|||||||
else if (sf.format == "jpg")
|
else if (sf.format == "jpg")
|
||||||
ld->startFunc (sigc::bind (sigc::mem_fun (img, &rtengine::IImage16::saveAsJPEG), fname, sf.jpegQuality, sf.jpegSubSamp),
|
ld->startFunc (sigc::bind (sigc::mem_fun (img, &rtengine::IImage16::saveAsJPEG), fname, sf.jpegQuality, sf.jpegSubSamp),
|
||||||
sigc::bind (sigc::mem_fun (*this, &EditorPanel::idle_imageSaved), ld, img, fname, sf));
|
sigc::bind (sigc::mem_fun (*this, &EditorPanel::idle_imageSaved), ld, img, fname, sf));
|
||||||
else
|
else {
|
||||||
delete ld;
|
delete ld;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Glib::ustring msg_ = Glib::ustring ("<b>") + fname + ": Error during image processing\n</b>";
|
Glib::ustring msg_ = Glib::ustring ("<b>") + fname + ": Error during image processing\n</b>";
|
||||||
Gtk::MessageDialog msgd (*parent, msg_, true, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
|
Gtk::MessageDialog msgd (*parent, msg_, true, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
|
||||||
@ -1915,6 +1952,7 @@ bool EditorPanel::saveImmediately(const Glib::ustring &filename, const SaveForma
|
|||||||
rtengine::IImage16 *img = rtengine::processImage (job, err, nullptr, options.tunnelMetaData, false);
|
rtengine::IImage16 *img = rtengine::processImage (job, err, nullptr, options.tunnelMetaData, false);
|
||||||
|
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
if (sf.format == "tif") {
|
if (sf.format == "tif") {
|
||||||
err = img->saveAsTIFF (filename, sf.tiffBits, sf.tiffUncompressed);
|
err = img->saveAsTIFF (filename, sf.tiffBits, sf.tiffUncompressed);
|
||||||
} else if (sf.format == "png") {
|
} else if (sf.format == "png") {
|
||||||
@ -1924,6 +1962,7 @@ bool EditorPanel::saveImmediately(const Glib::ustring &filename, const SaveForma
|
|||||||
} else {
|
} else {
|
||||||
err = 1;
|
err = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
img->free();
|
img->free();
|
||||||
return !err;
|
return !err;
|
||||||
}
|
}
|
||||||
|
@ -1435,6 +1435,7 @@ int Options::readFromFile (Glib::ustring fname)
|
|||||||
if (keyFile.has_key ("GUI", "ToolPanelsExpanded")) {
|
if (keyFile.has_key ("GUI", "ToolPanelsExpanded")) {
|
||||||
tpOpen = keyFile.get_integer_list ("GUI", "ToolPanelsExpanded");
|
tpOpen = keyFile.get_integer_list ("GUI", "ToolPanelsExpanded");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keyFile.has_key ("GUI", "ToolPanelsExpandedAutoSave")) {
|
if (keyFile.has_key ("GUI", "ToolPanelsExpandedAutoSave")) {
|
||||||
autoSaveTpOpen = keyFile.get_boolean ("GUI", "ToolPanelsExpandedAutoSave");
|
autoSaveTpOpen = keyFile.get_boolean ("GUI", "ToolPanelsExpandedAutoSave");
|
||||||
}
|
}
|
||||||
|
@ -42,8 +42,7 @@
|
|||||||
// Special name for the Dynamic profile
|
// Special name for the Dynamic profile
|
||||||
#define DEFPROFILE_DYNAMIC "Dynamic"
|
#define DEFPROFILE_DYNAMIC "Dynamic"
|
||||||
|
|
||||||
struct SaveFormat
|
struct SaveFormat {
|
||||||
{
|
|
||||||
SaveFormat() :
|
SaveFormat() :
|
||||||
format ("jpg"),
|
format ("jpg"),
|
||||||
pngBits (8),
|
pngBits (8),
|
||||||
|
@ -993,8 +993,7 @@ Gtk::Widget* Preferences::getGeneralPanel ()
|
|||||||
workflowGrid->attach_next_to (*btnSaveTpOpenNow, *ckbAutoSaveTpOpen, Gtk::POS_RIGHT, 1, 1);
|
workflowGrid->attach_next_to (*btnSaveTpOpenNow, *ckbAutoSaveTpOpen, Gtk::POS_RIGHT, 1, 1);
|
||||||
|
|
||||||
auto save_tp_open_now =
|
auto save_tp_open_now =
|
||||||
[&]() -> void
|
[&]() -> void {
|
||||||
{
|
|
||||||
parent->writeToolExpandedStatus (moptions.tpOpen);
|
parent->writeToolExpandedStatus (moptions.tpOpen);
|
||||||
};
|
};
|
||||||
btnSaveTpOpenNow->signal_clicked().connect (save_tp_open_now);
|
btnSaveTpOpenNow->signal_clicked().connect (save_tp_open_now);
|
||||||
|
@ -130,12 +130,14 @@ RTWindow::RTWindow ()
|
|||||||
|
|
||||||
Gdk::Rectangle lMonitorRect;
|
Gdk::Rectangle lMonitorRect;
|
||||||
get_screen()->get_monitor_geometry (std::min (options.windowMonitor, Gdk::Screen::get_default()->get_n_monitors() - 1), lMonitorRect);
|
get_screen()->get_monitor_geometry (std::min (options.windowMonitor, Gdk::Screen::get_default()->get_n_monitors() - 1), lMonitorRect);
|
||||||
|
|
||||||
if (options.windowMaximized) {
|
if (options.windowMaximized) {
|
||||||
move (lMonitorRect.get_x(), lMonitorRect.get_y());
|
move (lMonitorRect.get_x(), lMonitorRect.get_y());
|
||||||
maximize();
|
maximize();
|
||||||
} else {
|
} else {
|
||||||
unmaximize();
|
unmaximize();
|
||||||
resize (options.windowWidth, options.windowHeight);
|
resize (options.windowWidth, options.windowHeight);
|
||||||
|
|
||||||
if (options.windowX <= lMonitorRect.get_x() + lMonitorRect.get_width() && options.windowY <= lMonitorRect.get_y() + lMonitorRect.get_height()) {
|
if (options.windowX <= lMonitorRect.get_x() + lMonitorRect.get_width() && options.windowY <= lMonitorRect.get_y() + lMonitorRect.get_height()) {
|
||||||
move (options.windowX, options.windowY);
|
move (options.windowX, options.windowY);
|
||||||
} else {
|
} else {
|
||||||
@ -273,6 +275,7 @@ RTWindow::RTWindow ()
|
|||||||
|
|
||||||
if (!argv1.empty() && !remote) {
|
if (!argv1.empty() && !remote) {
|
||||||
Thumbnail* thm = cacheMgr->getEntry (argv1);
|
Thumbnail* thm = cacheMgr->getEntry (argv1);
|
||||||
|
|
||||||
if (thm) {
|
if (thm) {
|
||||||
fpanel->fileCatalog->openRequested ({thm});
|
fpanel->fileCatalog->openRequested ({thm});
|
||||||
}
|
}
|
||||||
@ -316,6 +319,7 @@ void RTWindow::on_realize ()
|
|||||||
std::regex pat ("(^[0-9.]+).*");
|
std::regex pat ("(^[0-9.]+).*");
|
||||||
std::smatch sm;
|
std::smatch sm;
|
||||||
std::vector<std::string> vMajor;
|
std::vector<std::string> vMajor;
|
||||||
|
|
||||||
for (const auto &v : vs) {
|
for (const auto &v : vs) {
|
||||||
if (std::regex_match (v, sm, pat)) {
|
if (std::regex_match (v, sm, pat)) {
|
||||||
if (sm.size() == 2) {
|
if (sm.size() == 2) {
|
||||||
@ -361,6 +365,7 @@ bool RTWindow::on_window_state_event(GdkEventWindowState* event)
|
|||||||
if (event->changed_mask & GDK_WINDOW_STATE_MAXIMIZED) {
|
if (event->changed_mask & GDK_WINDOW_STATE_MAXIMIZED) {
|
||||||
options.windowMaximized = event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED;
|
options.windowMaximized = event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Gtk::Widget::on_window_state_event (event);
|
return Gtk::Widget::on_window_state_event (event);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -717,9 +722,11 @@ void RTWindow::showPreferences ()
|
|||||||
delete pref;
|
delete pref;
|
||||||
|
|
||||||
fpanel->optionsChanged ();
|
fpanel->optionsChanged ();
|
||||||
|
|
||||||
if (epanel) {
|
if (epanel) {
|
||||||
epanel->defaultMonitorProfileChanged (options.rtSettings.monitorProfile, options.rtSettings.autoMonitorProfile);
|
epanel->defaultMonitorProfileChanged (options.rtSettings.monitorProfile, options.rtSettings.autoMonitorProfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto &p : epanels) {
|
for (const auto &p : epanels) {
|
||||||
p.second->defaultMonitorProfileChanged (options.rtSettings.monitorProfile, options.rtSettings.autoMonitorProfile);
|
p.second->defaultMonitorProfileChanged (options.rtSettings.monitorProfile, options.rtSettings.autoMonitorProfile);
|
||||||
}
|
}
|
||||||
@ -825,6 +832,7 @@ void RTWindow::updateProfiles(const Glib::ustring &printerProfile, rtengine::Ren
|
|||||||
void RTWindow::updateTPVScrollbar (bool hide)
|
void RTWindow::updateTPVScrollbar (bool hide)
|
||||||
{
|
{
|
||||||
fpanel->updateTPVScrollbar (hide);
|
fpanel->updateTPVScrollbar (hide);
|
||||||
|
|
||||||
if (epanel) {
|
if (epanel) {
|
||||||
epanel->updateTPVScrollbar (hide);
|
epanel->updateTPVScrollbar (hide);
|
||||||
}
|
}
|
||||||
@ -837,6 +845,7 @@ void RTWindow::updateTPVScrollbar (bool hide)
|
|||||||
void RTWindow::updateTabsUsesIcons (bool useIcons)
|
void RTWindow::updateTabsUsesIcons (bool useIcons)
|
||||||
{
|
{
|
||||||
fpanel->updateTabsUsesIcons (useIcons);
|
fpanel->updateTabsUsesIcons (useIcons);
|
||||||
|
|
||||||
if (epanel) {
|
if (epanel) {
|
||||||
epanel->updateTabsUsesIcons (useIcons);
|
epanel->updateTabsUsesIcons (useIcons);
|
||||||
}
|
}
|
||||||
@ -861,6 +870,7 @@ void RTWindow::updateHistogramPosition (int oldPosition, int newPosition)
|
|||||||
if (epanel) {
|
if (epanel) {
|
||||||
epanel->updateHistogramPosition (oldPosition, newPosition);
|
epanel->updateHistogramPosition (oldPosition, newPosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto panel : epanels) {
|
for (auto panel : epanels) {
|
||||||
panel.second->updateHistogramPosition (oldPosition, newPosition);
|
panel.second->updateHistogramPosition (oldPosition, newPosition);
|
||||||
}
|
}
|
||||||
|
@ -315,6 +315,7 @@ void ToolPanelCoordinator::imageTypeChanged(bool isRaw, bool isBayer, bool isXtr
|
|||||||
|
|
||||||
if (isRaw) {
|
if (isRaw) {
|
||||||
rawPanelSW->set_sensitive (true);
|
rawPanelSW->set_sensitive (true);
|
||||||
|
|
||||||
if (isBayer) {
|
if (isBayer) {
|
||||||
sensorxtrans->FoldableToolPanel::hide();
|
sensorxtrans->FoldableToolPanel::hide();
|
||||||
sensorbayer->FoldableToolPanel::show();
|
sensorbayer->FoldableToolPanel::show();
|
||||||
@ -363,6 +364,7 @@ void ToolPanelCoordinator::panelChanged (rtengine::ProcEvent event, const Glib::
|
|||||||
}
|
}
|
||||||
|
|
||||||
int tr = TR_NONE;
|
int tr = TR_NONE;
|
||||||
|
|
||||||
if (params->coarse.rotate == 90) {
|
if (params->coarse.rotate == 90) {
|
||||||
tr = TR_R90;
|
tr = TR_R90;
|
||||||
} else if (params->coarse.rotate == 180) {
|
} else if (params->coarse.rotate == 180) {
|
||||||
@ -446,6 +448,7 @@ void ToolPanelCoordinator::profileChange (const PartialProfile *nparams, rtengi
|
|||||||
delete mergedParams;
|
delete mergedParams;
|
||||||
|
|
||||||
tr = TR_NONE;
|
tr = TR_NONE;
|
||||||
|
|
||||||
if (params->coarse.rotate == 90) {
|
if (params->coarse.rotate == 90) {
|
||||||
tr = TR_R90;
|
tr = TR_R90;
|
||||||
} else if (params->coarse.rotate == 180) {
|
} else if (params->coarse.rotate == 180) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user