Change line endings

This commit is contained in:
heckflosse 2018-11-16 22:05:32 +01:00
parent 152b42125a
commit 0ff68afcdf
2 changed files with 1502 additions and 1502 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,107 +1,107 @@
/* /*
* This file is part of RawTherapee. * This file is part of RawTherapee.
* *
* Copyright (c) 2018 Jacques DESMIS <jdesmis@gmail.com> * Copyright (c) 2018 Jacques DESMIS <jdesmis@gmail.com>
* Copyright (c) 2018 Jean-Christophe FRISCH <natureh.510@gmail.com> * Copyright (c) 2018 Jean-Christophe FRISCH <natureh.510@gmail.com>
* *
* RawTherapee is free software: you can redistribute it and/or modify * RawTherapee is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* RawTherapee is distributed in the hope that it will be useful, * RawTherapee is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>. * along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once #pragma once
#include <gtkmm.h> #include <gtkmm.h>
#include "adjuster.h" #include "adjuster.h"
#include "options.h" #include "options.h"
#include <vector> #include <vector>
#include "rtwindow.h" #include "rtwindow.h"
class ICCProfileCreator : public Gtk::Dialog, public AdjusterListener class ICCProfileCreator : public Gtk::Dialog, public AdjusterListener
{ {
private: private:
enum class ColorTemp { enum class ColorTemp {
D50 = 5003, // for Widegamut, Prophoto Best, Beta -> D50 D50 = 5003, // for Widegamut, Prophoto Best, Beta -> D50
D60 = 6005, // for ACESc -> D60 D60 = 6005, // for ACESc -> D60
D65 = 6504 // for sRGB, AdobeRGB, Bruce Rec2020 -> D65 D65 = 6504 // for sRGB, AdobeRGB, Bruce Rec2020 -> D65
}; };
cmsFloat64Number ga[7]; // 7 parameters for smoother curves cmsFloat64Number ga[7]; // 7 parameters for smoother curves
//------------------------ Params ----------------------- //------------------------ Params -----------------------
Glib::ustring primariesPreset; Glib::ustring primariesPreset;
double redPrimaryX; double redPrimaryX;
double redPrimaryY; double redPrimaryY;
double greenPrimaryX; double greenPrimaryX;
double greenPrimaryY; double greenPrimaryY;
double bluePrimaryX; double bluePrimaryX;
double bluePrimaryY; double bluePrimaryY;
Glib::ustring gammaPreset; Glib::ustring gammaPreset;
double gamma; double gamma;
double slope; double slope;
bool appendParamsToDesc; bool appendParamsToDesc;
bool v2except; bool v2except;
Glib::ustring profileVersion; Glib::ustring profileVersion;
Glib::ustring illuminant; Glib::ustring illuminant;
Glib::ustring description; Glib::ustring description;
Glib::ustring copyright; Glib::ustring copyright;
//------------------------------------------------------- //-------------------------------------------------------
RTWindow *parent; RTWindow *parent;
Adjuster* aGamma; Adjuster* aGamma;
Adjuster* aSlope; Adjuster* aSlope;
Adjuster* aPrimariesRedX; Adjuster* aPrimariesRedX;
Adjuster* aPrimariesRedY; Adjuster* aPrimariesRedY;
Adjuster* aPrimariesGreenX; Adjuster* aPrimariesGreenX;
Adjuster* aPrimariesGreenY; Adjuster* aPrimariesGreenY;
Adjuster* aPrimariesBlueX; Adjuster* aPrimariesBlueX;
Adjuster* aPrimariesBlueY; Adjuster* aPrimariesBlueY;
Gtk::Grid* primariesGrid; Gtk::Grid* primariesGrid;
MyComboBoxText* iccVersion; MyComboBoxText* iccVersion;
MyComboBoxText* trcPresets; MyComboBoxText* trcPresets;
sigc::connection trcpresetsconn; sigc::connection trcpresetsconn;
MyComboBoxText* primaries; MyComboBoxText* primaries;
sigc::connection primariesconn; sigc::connection primariesconn;
MyComboBoxText* cIlluminant; MyComboBoxText* cIlluminant;
sigc::connection illconn; sigc::connection illconn;
Gtk::Entry* eDescription; Gtk::Entry* eDescription;
Gtk::Entry* eCopyright; Gtk::Entry* eCopyright;
Gtk::Button* resetCopyright; Gtk::Button* resetCopyright;
Gtk::CheckButton *cAppendParamsToDesc; Gtk::CheckButton *cAppendParamsToDesc;
//Glib::ustring lastPath; //Glib::ustring lastPath;
void initWithDefaults (); void initWithDefaults ();
void storeDefaults (); void storeDefaults ();
void storeValues(); void storeValues();
void updateICCVersion(); void updateICCVersion();
void primariesChanged(); void primariesChanged();
void illuminantChanged(); void illuminantChanged();
void trcPresetsChanged(); void trcPresetsChanged();
void adjusterChanged(Adjuster* a, double newval); void adjusterChanged(Adjuster* a, double newval);
void adjusterAutoToggled(Adjuster* a, bool newval); void adjusterAutoToggled(Adjuster* a, bool newval);
static std::vector<Glib::ustring> getGamma(); static std::vector<Glib::ustring> getGamma();
Glib::ustring getPrimariesPresetName(const Glib::ustring &preset); Glib::ustring getPrimariesPresetName(const Glib::ustring &preset);
void getPrimaries(const Glib::ustring &preset, float *p, ColorTemp &temp); void getPrimaries(const Glib::ustring &preset, float *p, ColorTemp &temp);
Glib::ustring getGammaPresetName(const Glib::ustring &preset); Glib::ustring getGammaPresetName(const Glib::ustring &preset);
void getGamma(const Glib::ustring &preset, double &gamma, double &slope); void getGamma(const Glib::ustring &preset, double &gamma, double &slope);
void savePressed(); void savePressed();
void closePressed(); void closePressed();
void onResetCopyright(); void onResetCopyright();
public: public:
explicit ICCProfileCreator (RTWindow *rtwindow); explicit ICCProfileCreator (RTWindow *rtwindow);
}; };