krita
kis_config.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KIS_CONFIG_H_
00019 #define KIS_CONFIG_H_
00020
00021 #include "kis_global.h"
00022 #include "koffice_export.h"
00023
00024 class KRITACORE_EXPORT KisConfig {
00025 public:
00026 KisConfig();
00027 ~KisConfig();
00028
00029 bool fixDockerWidth() const;
00030 void setFixedDockerWidth(bool fix);
00031
00032 bool undoEnabled() const;
00033 void setUndoEnabled(bool undo);
00034
00035 Q_INT32 defUndoLimit() const;
00036 void defUndoLimit(Q_INT32 limit);
00037
00038 Q_INT32 defImgWidth() const;
00039 void defImgWidth(Q_INT32 width);
00040
00041 Q_INT32 defImgHeight() const;
00042 void defImgHeight(Q_INT32 height);
00043
00044 double defImgResolution() const;
00045 void defImgResolution(double res);
00046
00047 enumCursorStyle cursorStyle() const;
00048 enumCursorStyle getDefaultCursorStyle() const;
00049 void setCursorStyle(enumCursorStyle style);
00050
00051 QString monitorProfile() const;
00052 void setMonitorProfile(QString monitorProfile);
00053
00054 QString workingColorSpace() const;
00055 void setWorkingColorSpace(QString workingColorSpace);
00056
00057 QString importProfile() const;
00058 void setImportProfile(QString importProfile);
00059
00060 QString printerColorSpace() const;
00061 void setPrinterColorSpace(QString printerColorSpace);
00062
00063 QString printerProfile() const;
00064 void setPrinterProfile(QString printerProfile);
00065
00066 bool useBlackPointCompensation() const;
00067 void setUseBlackPointCompensation(bool useBlackPointCompensation);
00068
00069 bool showRulers() const;
00070 void setShowRulers(bool rulers);
00071
00072 Q_INT32 pasteBehaviour() const;
00073 void setPasteBehaviour(Q_INT32 behaviour);
00074
00075 Q_INT32 renderIntent() const;
00076 void setRenderIntent(Q_INT32 renderIntent);
00077
00078 bool useOpenGL() const;
00079 void setUseOpenGL(bool useOpenGL);
00080
00081 bool useOpenGLShaders() const;
00082 void setUseOpenGLShaders(bool useOpenGLShaders);
00083
00084 Q_INT32 maxNumberOfThreads();
00085 void setMaxNumberOfThreads(Q_INT32 numberOfThreads);
00086
00088 Q_INT32 maxTilesInMem() const;
00089 void setMaxTilesInMem(Q_INT32 tiles);
00090
00093 Q_INT32 swappiness() const;
00094 void setSwappiness(Q_INT32 swappiness);
00095
00096 Q_INT32 getPressureCorrection();
00097 void setPressureCorrection( Q_INT32 correction);
00098 Q_INT32 getDefaultPressureCorrection();
00099
00100 bool tabletDeviceEnabled(const QString& tabletDeviceName) const;
00101 void setTabletDeviceEnabled(const QString& tabletDeviceName, bool enabled);
00102
00103 Q_INT32 tabletDeviceAxis(const QString& tabletDeviceName, const QString& axisName, Q_INT32 defaultAxis) const;
00104 void setTabletDeviceAxis(const QString& tabletDeviceName, const QString& axisName, Q_INT32 axis) const;
00105
00106 Q_INT32 dockability();
00107 Q_INT32 getDefaultDockability();
00108 void setDockability( Q_INT32 dockability);
00109
00110 float dockerFontSize();
00111 float getDefaultDockerFontSize();
00112 void setDockerFontSize(float);
00113
00114
00115 Q_UINT32 getGridMainStyle();
00116 void setGridMainStyle(Q_UINT32 v);
00117 Q_UINT32 getGridSubdivisionStyle();
00118 void setGridSubdivisionStyle(Q_UINT32 v);
00119 QColor getGridMainColor();
00120 void setGridMainColor(QColor v);
00121 QColor getGridSubdivisionColor();
00122 void setGridSubdivisionColor(QColor v);
00123 Q_UINT32 getGridHSpacing();
00124 void setGridHSpacing(Q_UINT32 v);
00125 Q_UINT32 getGridVSpacing();
00126 void setGridVSpacing(Q_UINT32 v);
00127 Q_UINT32 getGridSubdivisions();
00128 void setGridSubdivisions(Q_UINT32 v);
00129 Q_UINT32 getGridOffsetX();
00130 void setGridOffsetX(Q_UINT32 v);
00131 Q_UINT32 getGridOffsetY();
00132 void setGridOffsetY(Q_UINT32 v);
00133
00134
00135 private:
00136 KisConfig(const KisConfig&);
00137 KisConfig& operator=(const KisConfig&);
00138
00139 private:
00140 mutable KConfig *m_cfg;
00141 };
00142
00143 #endif // KIS_CONFIG_H_
|