Adding rawtherapee-cli.exe, '-q' (quick start mode) added
Standard rawtherapee.exe now has almost no command line options left. Use '-h' to see options for each executables.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "options.h"
|
||||
#include "../rtengine/rt_math.h"
|
||||
#include "../rtengine/utils.h"
|
||||
#include "../rtengine/icons.h"
|
||||
#include "rtimage.h"
|
||||
#include "multilangmgr.h"
|
||||
|
||||
@@ -169,34 +170,6 @@ void thumbInterp (const unsigned char* src, int sw, int sh, unsigned char* dst,
|
||||
}
|
||||
}
|
||||
|
||||
Glib::ustring removeExtension (const Glib::ustring& filename)
|
||||
{
|
||||
|
||||
Glib::ustring bname = Glib::path_get_basename(filename);
|
||||
size_t lastdot = bname.find_last_of ('.');
|
||||
size_t lastwhitespace = bname.find_last_of (" \t\f\v\n\r");
|
||||
|
||||
if (lastdot != bname.npos && (lastwhitespace == bname.npos || lastdot > lastwhitespace)) {
|
||||
return filename.substr (0, filename.size() - (bname.size() - lastdot));
|
||||
} else {
|
||||
return filename;
|
||||
}
|
||||
}
|
||||
|
||||
Glib::ustring getExtension (const Glib::ustring& filename)
|
||||
{
|
||||
|
||||
Glib::ustring bname = Glib::path_get_basename(filename);
|
||||
size_t lastdot = bname.find_last_of ('.');
|
||||
size_t lastwhitespace = bname.find_last_of (" \t\f\v\n\r");
|
||||
|
||||
if (lastdot != bname.npos && (lastwhitespace == bname.npos || lastdot > lastwhitespace)) {
|
||||
return filename.substr (filename.size() - (bname.size() - lastdot) + 1, filename.npos);
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
bool confirmOverwrite (Gtk::Window& parent, const std::string& filename)
|
||||
{
|
||||
bool safe = true;
|
||||
@@ -542,11 +515,11 @@ void ExpanderBox::hideBox()
|
||||
|
||||
void MyExpander::init()
|
||||
{
|
||||
inconsistentPBuf = Gdk::Pixbuf::create_from_file(RTImage::findIconAbsolutePath("expanderInconsistent.png"));
|
||||
enabledPBuf = Gdk::Pixbuf::create_from_file(RTImage::findIconAbsolutePath("expanderEnabled.png"));
|
||||
disabledPBuf = Gdk::Pixbuf::create_from_file(RTImage::findIconAbsolutePath("expanderDisabled.png"));
|
||||
openedPBuf = Gdk::Pixbuf::create_from_file(RTImage::findIconAbsolutePath("expanderOpened.png"));
|
||||
closedPBuf = Gdk::Pixbuf::create_from_file(RTImage::findIconAbsolutePath("expanderClosed.png"));
|
||||
inconsistentPBuf = Gdk::Pixbuf::create_from_file(rtengine::findIconAbsolutePath("expanderInconsistent.png"));
|
||||
enabledPBuf = Gdk::Pixbuf::create_from_file(rtengine::findIconAbsolutePath("expanderEnabled.png"));
|
||||
disabledPBuf = Gdk::Pixbuf::create_from_file(rtengine::findIconAbsolutePath("expanderDisabled.png"));
|
||||
openedPBuf = Gdk::Pixbuf::create_from_file(rtengine::findIconAbsolutePath("expanderOpened.png"));
|
||||
closedPBuf = Gdk::Pixbuf::create_from_file(rtengine::findIconAbsolutePath("expanderClosed.png"));
|
||||
}
|
||||
|
||||
MyExpander::MyExpander(bool useEnabled, Gtk::Widget* titleWidget) :
|
||||
|
Reference in New Issue
Block a user