Patch from issue 227 (Work In Progress)
This commit is contained in:
@@ -27,12 +27,9 @@
|
||||
#include "../rtengine/safegtk.h"
|
||||
#include "rtimage.h"
|
||||
|
||||
CurveEditorGroup::CurveEditorGroup (Glib::ustring& curveDir, Glib::ustring groupLabel) : curveDir(curveDir), cl(NULL) {
|
||||
curveEditors.clear();
|
||||
displayedCurve = 0;
|
||||
numberOfPackedCurve = 0;
|
||||
flatSubGroup = 0;
|
||||
diagonalSubGroup = 0;
|
||||
CurveEditorGroup::CurveEditorGroup (Glib::ustring& curveDir, Glib::ustring groupLabel) : curveDir(curveDir), curve_reset(NULL),
|
||||
displayedCurve(0), flatSubGroup(0), diagonalSubGroup(0), cl(NULL), numberOfPackedCurve(0)
|
||||
{
|
||||
|
||||
// We set the label to the one provided as parameter, even if it's an empty string
|
||||
curveGroupLabel = Gtk::manage (new Gtk::Label (groupLabel+":", Gtk::ALIGN_LEFT));
|
||||
@@ -330,6 +327,21 @@ CurveEditorSubGroup::~CurveEditorSubGroup() {
|
||||
if (bottomBar) delete bottomBar;
|
||||
}
|
||||
|
||||
void CurveEditorSubGroup::updateEditButton(CurveEditor* curve, Gtk::ToggleButton *button, sigc::connection &connection) {
|
||||
if (curve->getEditID() == EUID_None) {
|
||||
button->hide();
|
||||
}
|
||||
else {
|
||||
button->show();
|
||||
bool prevstate = connection.block(true);
|
||||
if (curve->isCurrentSubscriber())
|
||||
button->set_active(true);
|
||||
else
|
||||
button->set_active(false);
|
||||
if (!prevstate) connection.block(false);
|
||||
}
|
||||
}
|
||||
|
||||
Glib::ustring CurveEditorSubGroup::outputFile () {
|
||||
|
||||
Gtk::FileChooserDialog dialog(M("CURVEEDITOR_SAVEDLGLABEL"), Gtk::FILE_CHOOSER_ACTION_SAVE);
|
||||
|
Reference in New Issue
Block a user