Further cleanup of include dependencies
This commit is contained in:
parent
1d51016bdd
commit
ba8dda1836
@ -31,6 +31,7 @@
|
||||
#include "imagefloat.h"
|
||||
#include "rawimagesource.h"
|
||||
#include "rt_math.h"
|
||||
#include "../rtgui/options.h"
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
#include "iccmatrices.h"
|
||||
|
||||
#include "../rtgui/guiutils.h"
|
||||
#include "../rtgui/options.h"
|
||||
#include "../rtgui/threadutils.h"
|
||||
#include "lcms2_plugin.h"
|
||||
|
@ -36,12 +36,14 @@
|
||||
#include "procparams.h"
|
||||
#include "refreshmap.h"
|
||||
|
||||
#include "../rtgui/options.h"
|
||||
#include "../rtgui/ppversion.h"
|
||||
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>
|
||||
#endif
|
||||
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include <glibmm/ustring.h>
|
||||
#include "iccstore.h"
|
||||
#include "iccmatrices.h"
|
||||
#include "../rtgui/options.h"
|
||||
#include "settings.h"
|
||||
#include "alignedbuffer.h"
|
||||
#include "color.h"
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include "rt_math.h"
|
||||
#include "rtengine.h"
|
||||
#include "sleef.c"
|
||||
#include "../rtgui/options.h"
|
||||
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>
|
||||
@ -56,7 +57,6 @@
|
||||
|
||||
#define epsilon 0.001f/(TS*TS) //tolerance
|
||||
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
|
@ -20,11 +20,11 @@
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <map>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
#include <glibmm/keyfile.h>
|
||||
#include <lcms2.h>
|
||||
|
||||
#include "noncopyable.h"
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include "rt_math.h"
|
||||
#include "rtengine.h"
|
||||
#include "rtlensfun.h"
|
||||
#include "../rtgui/options.h"
|
||||
|
||||
//#define BENCHMARK
|
||||
//#include "StopWatch.h"
|
||||
|
@ -191,8 +191,6 @@ void scale_colors (rtengine::RawImage *ri, float scale_mul[4], float cblack[4],
|
||||
|
||||
}
|
||||
|
||||
extern Options options;
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
|
||||
#include "batchqueueentry.h"
|
||||
#include "lwbuttonset.h"
|
||||
#include "options.h"
|
||||
#include "threadutils.h"
|
||||
#include "thumbbrowserbase.h"
|
||||
#include "../rtengine/noncopyable.h"
|
||||
|
@ -22,7 +22,8 @@
|
||||
#include "thumbnail.h"
|
||||
#include "toolpanelcoord.h"
|
||||
#include "fileselectionchangelistener.h"
|
||||
#include "../rtengine/rtengine.h"
|
||||
#include "../rtengine/procparams.h"
|
||||
#include "../rtengine/procevents.h"
|
||||
#include "paramsedited.h"
|
||||
#include "thumbnaillistener.h"
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include "guiutils.h"
|
||||
#include "rtimage.h"
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/color.h"
|
||||
#include "../rtengine/procparams.h"
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "colorappearance.h"
|
||||
|
||||
#include "guiutils.h"
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/color.h"
|
||||
#include "../rtengine/procparams.h"
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "rtimage.h"
|
||||
#include "eventmapper.h"
|
||||
#include "labgrid.h"
|
||||
#include "options.h"
|
||||
|
||||
using namespace rtengine;
|
||||
using namespace rtengine::procparams;
|
||||
|
@ -26,8 +26,6 @@
|
||||
using namespace rtengine;
|
||||
using namespace rtengine::procparams;
|
||||
|
||||
extern Options options;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
|
@ -19,7 +19,6 @@
|
||||
#ifndef _CROPWINDOW_
|
||||
#define _CROPWINDOW_
|
||||
|
||||
#include "../rtengine/rtengine.h"
|
||||
#include <gtkmm.h>
|
||||
#include "lwbutton.h"
|
||||
#include "lwbuttonset.h"
|
||||
@ -33,6 +32,11 @@
|
||||
#include "editcoordsys.h"
|
||||
#include "../rtengine/noncopyable.h"
|
||||
|
||||
namespace rtengine {
|
||||
|
||||
class Coord;
|
||||
|
||||
}
|
||||
class CropWindow;
|
||||
|
||||
class CropWindowListener
|
||||
|
@ -18,7 +18,6 @@
|
||||
*/
|
||||
#include "cursormanager.h"
|
||||
|
||||
#include "options.h"
|
||||
#include "rtimage.h"
|
||||
|
||||
CursorManager mainWindowCursorManager;
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "flatcurveeditorsubgroup.h"
|
||||
#include "multilangmgr.h"
|
||||
#include "rtimage.h"
|
||||
#include "options.h"
|
||||
|
||||
CurveEditorGroup::CurveEditorGroup (Glib::ustring& curveDir, Glib::ustring groupLabel) : curveDir(curveDir), line(0), curve_reset(nullptr),
|
||||
displayedCurve(nullptr), flatSubGroup(nullptr), diagonalSubGroup(nullptr), cl(nullptr), numberOfPackedCurve(0)
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <iomanip>
|
||||
|
||||
#include "defringe.h"
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/procparams.h"
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "curveeditor.h"
|
||||
#include "diagonalcurveeditorsubgroup.h"
|
||||
#include "rtimage.h"
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/curves.h"
|
||||
|
||||
|
@ -21,14 +21,14 @@
|
||||
|
||||
#include "dirpyrdenoise.h"
|
||||
|
||||
#include "editbuffer.h"
|
||||
#include "guiutils.h"
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/procparams.h"
|
||||
#include "editbuffer.h"
|
||||
|
||||
using namespace rtengine;
|
||||
using namespace rtengine::procparams;
|
||||
extern Options options;
|
||||
|
||||
DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this, "dirpyrdenoise", M("TP_DIRPYRDENOISE_LABEL"), true, true), lastmedian(false)
|
||||
{
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "curveeditorgroup.h"
|
||||
#include "colorprovider.h"
|
||||
#include "guiutils.h"
|
||||
#include "options.h"
|
||||
|
||||
class EditDataProvider;
|
||||
|
||||
|
@ -37,8 +37,6 @@
|
||||
#include "../rtengine/ffmanager.h"
|
||||
#include "../rtengine/procparams.h"
|
||||
|
||||
extern Options options;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "curveeditor.h"
|
||||
#include "flatcurveeditorsubgroup.h"
|
||||
#include "rtimage.h"
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/curves.h"
|
||||
|
||||
|
@ -28,8 +28,6 @@
|
||||
|
||||
using namespace rtengine;
|
||||
|
||||
extern Options options;
|
||||
|
||||
|
||||
//
|
||||
//
|
||||
|
@ -18,6 +18,8 @@
|
||||
*/
|
||||
#include "hsvequalizer.h"
|
||||
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/color.h"
|
||||
#include "../rtengine/procparams.h"
|
||||
|
||||
|
@ -29,8 +29,6 @@
|
||||
#include <omp.h>
|
||||
#endif
|
||||
|
||||
extern Options options;
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include <gtkmm.h>
|
||||
#include "adjuster.h"
|
||||
#include "options.h"
|
||||
#include <vector>
|
||||
#include "rtwindow.h"
|
||||
|
||||
|
@ -32,8 +32,6 @@
|
||||
using namespace rtengine;
|
||||
using namespace rtengine::procparams;
|
||||
|
||||
extern Options options;
|
||||
|
||||
ICMPanel::ICMPanel() : FoldableToolPanel(this, "icm", M("TP_ICM_LABEL")), iunchanged(nullptr), icmplistener(nullptr)
|
||||
{
|
||||
auto m = ProcEventMapper::getInstance();
|
||||
|
@ -24,8 +24,6 @@
|
||||
#include "options.h"
|
||||
#include "../rtengine/previewimage.h"
|
||||
|
||||
extern Options options;
|
||||
|
||||
InspectorBuffer::InspectorBuffer(const Glib::ustring &imagePath) : currTransform(0), fromRaw(false)
|
||||
{
|
||||
if (!imagePath.empty() && Glib::file_test(imagePath, Glib::FILE_TEST_EXISTS) && !Glib::file_test(imagePath, Glib::FILE_TEST_IS_DIR)) {
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#include "labcurve.h"
|
||||
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/improcfun.h"
|
||||
#include "../rtengine/procparams.h"
|
||||
#include "editcallbacks.h"
|
||||
|
@ -25,8 +25,6 @@
|
||||
#include "multilangmgr.h"
|
||||
#include "navigator.h"
|
||||
|
||||
extern Options options;
|
||||
|
||||
LockableColorPicker::LockableColorPicker (CropWindow* cropWindow, Glib::ustring *oProfile, Glib::ustring *wProfile)
|
||||
: cropWindow(cropWindow), displayedValues(ColorPickerType::RGB), position(0, 0), size(Size::S15),
|
||||
outputProfile(oProfile), workingProfile(wProfile), validity(Validity::OUTSIDE),
|
||||
|
@ -55,8 +55,6 @@
|
||||
// Set this to 1 to make RT work when started with Eclipse and arguments, at least on Windows platform
|
||||
#define ECLIPSE_ARGS 0
|
||||
|
||||
extern Options options;
|
||||
|
||||
// stores path to data files
|
||||
Glib::ustring argv0;
|
||||
Glib::ustring creditsPath;
|
||||
|
@ -53,8 +53,6 @@
|
||||
// Set this to 1 to make RT work when started with Eclipse and arguments, at least on Windows platform
|
||||
#define ECLIPSE_ARGS 0
|
||||
|
||||
extern Options options;
|
||||
|
||||
// stores path to data files
|
||||
Glib::ustring argv0;
|
||||
Glib::ustring creditsPath;
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "coloredbar.h"
|
||||
#include "coordinateadjuster.h"
|
||||
#include "../rtengine/LUT.h"
|
||||
#include "options.h"
|
||||
#include "../rtengine/noncopyable.h"
|
||||
|
||||
#define RADIUS 3.5 /** radius of the control points ; must be x.5 to target the center of a pixel */
|
||||
|
@ -23,8 +23,6 @@
|
||||
#include "../rtengine/rt_math.h"
|
||||
#include "options.h"
|
||||
|
||||
extern Options options;
|
||||
|
||||
using namespace rtengine;
|
||||
|
||||
Navigator::Navigator () : currentRGBUnit(options.navRGBUnit), currentHSVUnit(options.navHSVUnit)
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "options.h"
|
||||
#include <cstdio>
|
||||
#include <glib/gstdio.h>
|
||||
#include <glibmm/keyfile.h>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include "multilangmgr.h"
|
||||
|
@ -16,12 +16,11 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef _OPTIONS_
|
||||
#define _OPTIONS_
|
||||
#pragma once
|
||||
|
||||
#include <set>
|
||||
#include <gtkmm/enums.h>
|
||||
#include "../rtengine/rtengine.h"
|
||||
#include "../rtengine/settings.h"
|
||||
#include <exception>
|
||||
|
||||
#define STARTUPDIR_CURRENT 0
|
||||
@ -103,6 +102,11 @@ enum PPLoadLocation {PLL_Cache = 0, PLL_Input = 1};
|
||||
enum CPBKeyType {CPBKT_TID = 0, CPBKT_NAME = 1, CPBKT_TID_NAME = 2};
|
||||
enum prevdemo_t {PD_Sidecar = 1, PD_Fast = 0};
|
||||
|
||||
namespace Glib {
|
||||
|
||||
class KeyFile;
|
||||
|
||||
}
|
||||
class Options
|
||||
{
|
||||
public:
|
||||
@ -447,5 +451,3 @@ extern bool gimpPlugin;
|
||||
extern bool remote;
|
||||
extern Glib::ustring versionString;
|
||||
extern Glib::ustring paramFileExtension;
|
||||
|
||||
#endif
|
||||
|
@ -50,7 +50,6 @@ void placeSpinBox(Gtk::Container* where, Gtk::SpinButton* &spin, const std::stri
|
||||
}
|
||||
}
|
||||
|
||||
extern Options options;
|
||||
extern Glib::ustring argv0;
|
||||
Glib::RefPtr<Gtk::CssProvider> themecss;
|
||||
Glib::RefPtr<Gtk::CssProvider> fontcss;
|
||||
|
@ -18,7 +18,6 @@
|
||||
*/
|
||||
#include "renamedlg.h"
|
||||
#include "multilangmgr.h"
|
||||
#include "options.h"
|
||||
#include "rtimage.h"
|
||||
|
||||
RenameDialog::RenameDialog (Gtk::Window* parent)
|
||||
|
@ -4,6 +4,7 @@
|
||||
#include "retinex.h"
|
||||
#include "mycurve.h"
|
||||
#include "rtimage.h"
|
||||
#include "options.h"
|
||||
|
||||
using namespace rtengine;
|
||||
using namespace rtengine::procparams;
|
||||
|
@ -18,6 +18,8 @@
|
||||
*/
|
||||
#include "rgbcurves.h"
|
||||
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/procparams.h"
|
||||
|
||||
using namespace rtengine;
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include "rtimage.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
#include "options.h"
|
||||
|
@ -25,11 +25,12 @@
|
||||
#include <librsvg/rsvg.h>
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/rt_math.h"
|
||||
|
||||
double RTScalable::dpi = 0.;
|
||||
int RTScalable::scale = 0;
|
||||
|
||||
extern Glib::ustring argv0;
|
||||
extern Options options;
|
||||
extern unsigned char initialGdkScale;
|
||||
extern float fontScale;
|
||||
Gtk::TextDirection RTScalable::direction = Gtk::TextDirection::TEXT_DIR_NONE;
|
||||
|
@ -26,8 +26,6 @@
|
||||
|
||||
#include "../rtengine/utils.h"
|
||||
|
||||
extern Options options;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <gtkmm.h>
|
||||
#include "adjuster.h"
|
||||
#include "saveformatpanel.h"
|
||||
#include "options.h"
|
||||
|
||||
class SaveAsDialog : public Gtk::Dialog, public FormatChangeListener
|
||||
{
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
#include "cachemanager.h"
|
||||
#include "options.h"
|
||||
#include "../rtengine/rtengine.h"
|
||||
#include "../rtengine/rtthumbnail.h"
|
||||
#include "cacheimagedata.h"
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "adjuster.h"
|
||||
#include "eventmapper.h"
|
||||
#include "ppversion.h"
|
||||
#include "options.h"
|
||||
|
||||
#include "../rtengine/procparams.h"
|
||||
#include "editcallbacks.h"
|
||||
|
@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "vibrance.h"
|
||||
#include "options.h"
|
||||
#include "../rtengine/color.h"
|
||||
|
||||
using namespace rtengine;
|
||||
|
@ -23,10 +23,10 @@
|
||||
#include "editcallbacks.h"
|
||||
#include "guiutils.h"
|
||||
#include "rtimage.h"
|
||||
#include "options.h"
|
||||
|
||||
using namespace rtengine;
|
||||
using namespace rtengine::procparams;
|
||||
extern Options options;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include "thresholdadjuster.h"
|
||||
#include "colorprovider.h"
|
||||
#include "guiutils.h"
|
||||
#include "options.h"
|
||||
|
||||
class EditDataProvider;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user