Further reduction of include dependencies

This commit is contained in:
Ingo Weyrich 2019-11-01 14:51:33 +01:00
parent 962f81f6bc
commit e682b364b5
23 changed files with 40 additions and 28 deletions

View File

@ -25,7 +25,6 @@
#include "array2D.h" #include "array2D.h"
#include "LUT.h" #include "LUT.h"
#include "mytime.h"
#include "rt_math.h" #include "rt_math.h"
#ifdef _OPENMP #ifdef _OPENMP

View File

@ -20,11 +20,14 @@
#include "rtengine.h" #include "rtengine.h"
#include "color.h" #include "color.h"
#include "iccmatrices.h" #include "iccmatrices.h"
#include "mytime.h"
#include "sleef.c" #include "sleef.c"
#include "opthelper.h" #include "opthelper.h"
#include "iccstore.h" #include "iccstore.h"
#ifdef _DEBUG
#include "mytime.h"
#endif
using namespace std; using namespace std;
namespace rtengine namespace rtengine

View File

@ -25,7 +25,6 @@
#include "labimage.h" #include "labimage.h"
#include <cstring> #include <cstring>
#include "rtengine.h" #include "rtengine.h"
#include "mytime.h"
#include "iccstore.h" #include "iccstore.h"
#include "alignedbuffer.h" #include "alignedbuffer.h"
#include "rt_math.h" #include "rt_math.h"

View File

@ -33,7 +33,6 @@
#include "imagefloat.h" #include "imagefloat.h"
#include "improcfun.h" #include "improcfun.h"
#include "labimage.h" #include "labimage.h"
#include "mytime.h"
#include "procparams.h" #include "procparams.h"
#include "refreshmap.h" #include "refreshmap.h"

View File

@ -30,7 +30,6 @@
#include "improcfun.h" #include "improcfun.h"
#include "curves.h" #include "curves.h"
#include "dcp.h" #include "dcp.h"
#include "mytime.h"
#include "iccstore.h" #include "iccstore.h"
#include "imagesource.h" #include "imagesource.h"
#include "rtthumbnail.h" #include "rtthumbnail.h"
@ -48,6 +47,10 @@
#include "../rtgui/ppversion.h" #include "../rtgui/ppversion.h"
#include "../rtgui/editcallbacks.h" #include "../rtgui/editcallbacks.h"
#ifdef _DEBUG
#include "mytime.h"
#endif
#undef CLIPD #undef CLIPD
#define CLIPD(a) ((a)>0.0f?((a)<1.0f?(a):1.0f):0.0f) #define CLIPD(a) ((a)>0.0f?((a)<1.0f?(a):1.0f):0.0f)

View File

@ -25,7 +25,6 @@
#include "imagefloat.h" #include "imagefloat.h"
#include "improcfun.h" #include "improcfun.h"
#include "mytime.h"
#include "procparams.h" #include "procparams.h"
#include "rt_math.h" #include "rt_math.h"
#include "rtengine.h" #include "rtengine.h"

View File

@ -24,7 +24,6 @@
#include "improcfun.h" #include "improcfun.h"
#include "iccstore.h" #include "iccstore.h"
#include "labimage.h" #include "labimage.h"
#include "mytime.h"
#include "curves.h" #include "curves.h"
#include "color.h" #include "color.h"
#include "procparams.h" #include "procparams.h"

View File

@ -36,7 +36,6 @@
#include "labimage.h" #include "labimage.h"
#include "LUT.h" #include "LUT.h"
#include "median.h" #include "median.h"
#include "mytime.h"
#include "opthelper.h" #include "opthelper.h"
#include "procparams.h" #include "procparams.h"
#include "rt_math.h" #include "rt_math.h"

View File

@ -25,7 +25,6 @@
#include "dynamicprofile.h" #include "dynamicprofile.h"
#include "noncopyable.h" #include "noncopyable.h"
#include "procparams.h"
#include "../rtgui/threadutils.h" #include "../rtgui/threadutils.h"
// forward decl // forward decl
@ -35,6 +34,8 @@ namespace rtengine
namespace procparams namespace procparams
{ {
class ProcParams;
class AutoPartialProfile; class AutoPartialProfile;
class PartialProfile; class PartialProfile;

View File

@ -27,11 +27,18 @@
#include "thumbnail.h" #include "thumbnail.h"
#include "../rtengine/noncopyable.h" #include "../rtengine/noncopyable.h"
#include "../rtengine/procparams.h"
namespace rtengine namespace rtengine
{ {
class ProcessingJob; class ProcessingJob;
namespace procparams
{
class ProcParams;
}
} }
class BatchQueueEntry; class BatchQueueEntry;

View File

@ -18,6 +18,7 @@
*/ */
#include "clipboard.h" #include "clipboard.h"
#include "paramsedited.h"
#include "../rtengine/procparams.h" #include "../rtengine/procparams.h"
Clipboard clipboard; Clipboard clipboard;

View File

@ -21,17 +21,17 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "paramsedited.h"
#include "../rtengine/diagonalcurvetypes.h" #include "../rtengine/diagonalcurvetypes.h"
#include "../rtengine/flatcurvetypes.h" #include "../rtengine/flatcurvetypes.h"
class ParamsEdited;
namespace rtengine namespace rtengine
{ {
namespace procparams namespace procparams
{ {
class ProcParams;
class PartialProfile; class PartialProfile;
class IPTCPairs; class IPTCPairs;

View File

@ -17,6 +17,9 @@
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>. * along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include <iomanip> #include <iomanip>
#ifdef WIN32
#include <windows.h>
#endif
#include "cropwindow.h" #include "cropwindow.h"
@ -32,7 +35,6 @@
#include "editwidgets.h" #include "editwidgets.h"
#include "../rtengine/dcrop.h" #include "../rtengine/dcrop.h"
#include "../rtengine/mytime.h"
#include "../rtengine/procparams.h" #include "../rtengine/procparams.h"
#include "../rtengine/rt_math.h" #include "../rtengine/rt_math.h"

View File

@ -29,6 +29,7 @@
#include "clipboard.h" #include "clipboard.h"
#include "multilangmgr.h" #include "multilangmgr.h"
#include "options.h" #include "options.h"
#include "profilestorecombobox.h"
#include "procparamchangers.h" #include "procparamchangers.h"
#include "rtimage.h" #include "rtimage.h"
#include "threadutils.h" #include "threadutils.h"

View File

@ -29,7 +29,7 @@
#include "filebrowserentry.h" #include "filebrowserentry.h"
#include "partialpastedlg.h" #include "partialpastedlg.h"
#include "pparamschangelistener.h" #include "pparamschangelistener.h"
#include "profilestorecombobox.h" #include "../rtengine/profilestore.h"
#include "thumbbrowserbase.h" #include "thumbbrowserbase.h"
#include "../rtengine/noncopyable.h" #include "../rtengine/noncopyable.h"

View File

@ -20,7 +20,7 @@
#include <glibmm/ustring.h> #include <glibmm/ustring.h>
#include "paramsedited.h" class ParamsEdited;
namespace rtengine namespace rtengine
{ {

View File

@ -22,6 +22,7 @@
#include "multilangmgr.h" #include "multilangmgr.h"
#include "options.h" #include "options.h"
#include "profilestorecombobox.h" #include "profilestorecombobox.h"
#include "paramsedited.h"
#include "pathutils.h" #include "pathutils.h"
#include "rtimage.h" #include "rtimage.h"

View File

@ -26,10 +26,12 @@
#include "partialpastedlg.h" #include "partialpastedlg.h"
#include "pparamschangelistener.h" #include "pparamschangelistener.h"
#include "profilechangelistener.h" #include "profilechangelistener.h"
#include "profilestorecombobox.h"
#include "../rtengine/profilestore.h"
#include "../rtengine/noncopyable.h" #include "../rtengine/noncopyable.h"
class ProfileStoreComboBox;
namespace rtengine namespace rtengine
{ {

View File

@ -24,11 +24,9 @@
#include <glibmm/ustring.h> #include <glibmm/ustring.h>
#include "guiutils.h" #include "guiutils.h"
#include "paramsedited.h"
#include "threadutils.h" #include "threadutils.h"
#include "../rtengine/profilestore.h" class ProfileStoreEntry;
/** /**
* @brief subclass of Gtk::Label with extra fields for Combobox and Menu, to link with a ProfileStoreEntry * @brief subclass of Gtk::Label with extra fields for Combobox and Menu, to link with a ProfileStoreEntry
*/ */

View File

@ -22,7 +22,6 @@
#include "options.h" #include "options.h"
#include "thumbbrowserbase.h" #include "thumbbrowserbase.h"
#include "../rtengine/mytime.h"
#include "../rtengine/rt_math.h" #include "../rtengine/rt_math.h"
using namespace std; using namespace std;

View File

@ -21,8 +21,6 @@
#include "options.h" #include "options.h"
#include "thumbbrowserbase.h" #include "thumbbrowserbase.h"
#include "../rtengine/mytime.h"
namespace namespace
{ {

View File

@ -15,12 +15,15 @@
* 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 <https://www.gnu.org/licenses/>. * along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*/ */
#ifdef WIN32
#include <windows.h>
#endif
#include "cachemanager.h" #include "cachemanager.h"
#include "multilangmgr.h" #include "multilangmgr.h"
#include "thumbnail.h" #include "thumbnail.h"
#include <sstream> #include <sstream>
#include <iomanip> #include <iomanip>
#include "../rtengine/mytime.h"
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include "../rtengine/colortemp.h" #include "../rtengine/colortemp.h"
@ -30,12 +33,13 @@
#include <glib/gstdio.h> #include <glib/gstdio.h>
#include "../rtengine/dynamicprofile.h" #include "../rtengine/dynamicprofile.h"
#include "../rtengine/profilestore.h"
#include "../rtengine/settings.h" #include "../rtengine/settings.h"
#include "guiutils.h" #include "guiutils.h"
#include "batchqueue.h" #include "batchqueue.h"
#include "extprog.h" #include "extprog.h"
#include "pathutils.h" #include "pathutils.h"
#include "profilestorecombobox.h" #include "paramsedited.h"
#include "procparamchangers.h" #include "procparamchangers.h"
using namespace rtengine::procparams; using namespace rtengine::procparams;

View File

@ -30,8 +30,6 @@
#include "../rtengine/noncopyable.h" #include "../rtengine/noncopyable.h"
#include "../rtengine/rtengine.h" #include "../rtengine/rtengine.h"
class ParamsEdited;
namespace rtengine namespace rtengine
{ {
class ProcEvent; class ProcEvent;