chalk

kis_config.h
1/*
2 * Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18#ifndef KIS_CONFIG_H_
19#define KIS_CONFIG_H_
20
21#include "kis_global.h"
22#include "koffice_export.h"
23
24class KRITACORE_EXPORT KisConfig {
25public:
26 KisConfig();
27 ~KisConfig();
28
29 bool fixDockerWidth() const;
30 void setFixedDockerWidth(bool fix);
31
32 bool undoEnabled() const;
33 void setUndoEnabled(bool undo);
34
35 TQ_INT32 defUndoLimit() const;
36 void defUndoLimit(TQ_INT32 limit);
37
38 TQ_INT32 defImgWidth() const;
39 void defImgWidth(TQ_INT32 width);
40
41 TQ_INT32 defImgHeight() const;
42 void defImgHeight(TQ_INT32 height);
43
44 double defImgResolution() const;
45 void defImgResolution(double res);
46
47 enumCursorStyle cursorStyle() const;
48 enumCursorStyle getDefaultCursorStyle() const;
49 void setCursorStyle(enumCursorStyle style);
50
51 TQString monitorProfile() const;
52 void setMonitorProfile(TQString monitorProfile);
53
54 TQString workingColorSpace() const;
55 void setWorkingColorSpace(TQString workingColorSpace);
56
57 TQString importProfile() const;
58 void setImportProfile(TQString importProfile);
59
60 TQString printerColorSpace() const;
61 void setPrinterColorSpace(TQString printerColorSpace);
62
63 TQString printerProfile() const;
64 void setPrinterProfile(TQString printerProfile);
65
66 bool useBlackPointCompensation() const;
67 void setUseBlackPointCompensation(bool useBlackPointCompensation);
68
69 bool showRulers() const;
70 void setShowRulers(bool rulers);
71
72 TQ_INT32 pasteBehaviour() const;
73 void setPasteBehaviour(TQ_INT32 behaviour);
74
75 TQ_INT32 renderIntent() const;
76 void setRenderIntent(TQ_INT32 renderIntent);
77
78 bool useOpenGL() const;
79 void setUseOpenGL(bool useOpenGL);
80
81 bool useOpenGLShaders() const;
82 void setUseOpenGLShaders(bool useOpenGLShaders);
83
84 TQ_INT32 maxNumberOfThreads();
85 void setMaxNumberOfThreads(TQ_INT32 numberOfThreads);
86
88 TQ_INT32 maxTilesInMem() const;
89 void setMaxTilesInMem(TQ_INT32 tiles);
90
93 TQ_INT32 swappiness() const;
94 void setSwappiness(TQ_INT32 swappiness);
95
96 TQ_INT32 getPressureCorrection();
97 void setPressureCorrection( TQ_INT32 correction);
98 TQ_INT32 getDefaultPressureCorrection();
99
100 bool tabletDeviceEnabled(const TQString& tabletDeviceName) const;
101 void setTabletDeviceEnabled(const TQString& tabletDeviceName, bool enabled);
102
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;
105
106 TQ_INT32 dockability();
107 TQ_INT32 getDefaultDockability();
108 void setDockability( TQ_INT32 dockability);
109
110 float dockerFontSize();
111 float getDefaultDockerFontSize();
112 void setDockerFontSize(float);
113
114
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);
133
134
135private:
136 KisConfig(const KisConfig&);
137 KisConfig& operator=(const KisConfig&);
138
139private:
140 mutable TDEConfig *m_cfg;
141};
142
143#endif // KIS_CONFIG_H_