Committing patch from issue 1240: "Partial profile handling"

This commit is contained in:
natureh
2012-02-26 03:23:08 +01:00
parent c21fa69aea
commit dd93fff44c
60 changed files with 2243 additions and 2214 deletions

View File

@@ -24,47 +24,52 @@
#include "../rtengine/rtengine.h"
#include "pparamschangelistener.h"
#include "profilechangelistener.h"
#include "partialpastedlg.h"
#include "guiutils.h"
class ProfilePanel : public Gtk::VBox, public PParamsChangeListener {
protected:
static PartialPasteDlg* partialProfileDlg;
Gtk::Button* save;
Gtk::Button* load;
Gtk::Button* copy;
Gtk::Button* paste;
MyComboBoxText* profiles;
std::vector<Glib::ustring> pparams;
rtengine::procparams::ProcParams* custom;
rtengine::procparams::ProcParams* lastsaved;
rtengine::procparams::ProcParams* lastphoto;
rtengine::procparams::PartialProfile* custom;
rtengine::procparams::PartialProfile* lastsaved;
rtengine::procparams::PartialProfile* lastphoto;
Glib::ustring old;
ProfileChangeListener* tpc;
bool dontupdate;
sigc::connection changeconn;
Gtk::FileChooserDialog* savedialog;
void changeTo (rtengine::procparams::ProcParams* newpp, Glib::ustring profname);
void changeTo (rtengine::procparams::PartialProfile* newpp, Glib::ustring profname);
void refreshProfileList ();
public:
ProfilePanel ();
ProfilePanel (bool readOnly=false);
virtual ~ProfilePanel ();
void setProfileChangeListener (ProfileChangeListener* ppl) { tpc = ppl; }
static void init ();
static void cleanup ();
void initProfile (const Glib::ustring& profname, rtengine::procparams::ProcParams* lastSaved, rtengine::procparams::ProcParams* lastPhoto);
// PParamsChangeListener interface
void procParamsChanged (rtengine::procparams::ProcParams* params, rtengine::ProcEvent ev, Glib::ustring descr, ParamsEdited* paramsEdited=NULL);
// gui callbacks
void save_clicked ();
void load_clicked ();
void copy_clicked ();
void paste_clicked ();
void save_clicked (GdkEventButton* event);
void load_clicked (GdkEventButton* event);
void copy_clicked (GdkEventButton* event);
void paste_clicked (GdkEventButton* event);
void selection_changed ();
};