21#include "kis_global.h"
22#include "koffice_export.h"
24class KRITACORE_EXPORT KisConfig {
29 bool fixDockerWidth()
const;
30 void setFixedDockerWidth(
bool fix);
32 bool undoEnabled()
const;
33 void setUndoEnabled(
bool undo);
35 TQ_INT32 defUndoLimit()
const;
36 void defUndoLimit(TQ_INT32 limit);
38 TQ_INT32 defImgWidth()
const;
39 void defImgWidth(TQ_INT32 width);
41 TQ_INT32 defImgHeight()
const;
42 void defImgHeight(TQ_INT32 height);
44 double defImgResolution()
const;
45 void defImgResolution(
double res);
47 enumCursorStyle cursorStyle()
const;
48 enumCursorStyle getDefaultCursorStyle()
const;
49 void setCursorStyle(enumCursorStyle style);
51 TQString monitorProfile()
const;
52 void setMonitorProfile(TQString monitorProfile);
54 TQString workingColorSpace()
const;
55 void setWorkingColorSpace(TQString workingColorSpace);
57 TQString importProfile()
const;
58 void setImportProfile(TQString importProfile);
60 TQString printerColorSpace()
const;
61 void setPrinterColorSpace(TQString printerColorSpace);
63 TQString printerProfile()
const;
64 void setPrinterProfile(TQString printerProfile);
66 bool useBlackPointCompensation()
const;
67 void setUseBlackPointCompensation(
bool useBlackPointCompensation);
69 bool showRulers()
const;
70 void setShowRulers(
bool rulers);
72 TQ_INT32 pasteBehaviour()
const;
73 void setPasteBehaviour(TQ_INT32 behaviour);
75 TQ_INT32 renderIntent()
const;
76 void setRenderIntent(TQ_INT32 renderIntent);
78 bool useOpenGL()
const;
79 void setUseOpenGL(
bool useOpenGL);
81 bool useOpenGLShaders()
const;
82 void setUseOpenGLShaders(
bool useOpenGLShaders);
84 TQ_INT32 maxNumberOfThreads();
85 void setMaxNumberOfThreads(TQ_INT32 numberOfThreads);
88 TQ_INT32 maxTilesInMem()
const;
89 void setMaxTilesInMem(TQ_INT32 tiles);
93 TQ_INT32 swappiness()
const;
94 void setSwappiness(TQ_INT32 swappiness);
96 TQ_INT32 getPressureCorrection();
97 void setPressureCorrection( TQ_INT32 correction);
98 TQ_INT32 getDefaultPressureCorrection();
100 bool tabletDeviceEnabled(
const TQString& tabletDeviceName)
const;
101 void setTabletDeviceEnabled(
const TQString& tabletDeviceName,
bool enabled);
103 TQ_INT32 tabletDeviceAxis(
const TQString& tabletDeviceName,
const TQString& axisName, TQ_INT32 defaultAxis)
const;
104 void setTabletDeviceAxis(
const TQString& tabletDeviceName,
const TQString& axisName, TQ_INT32 axis)
const;
106 TQ_INT32 dockability();
107 TQ_INT32 getDefaultDockability();
108 void setDockability( TQ_INT32 dockability);
110 float dockerFontSize();
111 float getDefaultDockerFontSize();
112 void setDockerFontSize(
float);
115 TQ_UINT32 getGridMainStyle();
116 void setGridMainStyle(TQ_UINT32 v);
117 TQ_UINT32 getGridSubdivisionStyle();
118 void setGridSubdivisionStyle(TQ_UINT32 v);
119 TQColor getGridMainColor();
120 void setGridMainColor(TQColor v);
121 TQColor getGridSubdivisionColor();
122 void setGridSubdivisionColor(TQColor v);
123 TQ_UINT32 getGridHSpacing();
124 void setGridHSpacing(TQ_UINT32 v);
125 TQ_UINT32 getGridVSpacing();
126 void setGridVSpacing(TQ_UINT32 v);
127 TQ_UINT32 getGridSubdivisions();
128 void setGridSubdivisions(TQ_UINT32 v);
129 TQ_UINT32 getGridOffsetX();
130 void setGridOffsetX(TQ_UINT32 v);
131 TQ_UINT32 getGridOffsetY();
132 void setGridOffsetY(TQ_UINT32 v);
136 KisConfig(
const KisConfig&);
137 KisConfig& operator=(
const KisConfig&);
140 mutable TDEConfig *m_cfg;