summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_config.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_config.cc')
-rw-r--r--krita/ui/kis_config.cc150
1 files changed, 75 insertions, 75 deletions
diff --git a/krita/ui/kis_config.cc b/krita/ui/kis_config.cc
index b233a1eb..6d07790b 100644
--- a/krita/ui/kis_config.cc
+++ b/krita/ui/kis_config.cc
@@ -30,15 +30,15 @@
namespace {
const double IMG_DEFAULT_RESOLUTION = 100.0;
- const Q_INT32 IMG_DEFAULT_WIDTH = 512;
- const Q_INT32 IMG_DEFAULT_HEIGHT = 512;
+ const TQ_INT32 IMG_DEFAULT_WIDTH = 512;
+ const TQ_INT32 IMG_DEFAULT_HEIGHT = 512;
const enumCursorStyle DEFAULT_CURSOR_STYLE = CURSOR_STYLE_OUTLINE;
- const Q_INT32 DEFAULT_MAX_THREADS = 4;
- const Q_INT32 DEFAULT_MAX_TILES_MEM = 500; // 8192 kilobytes given 64x64 tiles with 32bpp
- const Q_INT32 DEFAULT_SWAPPINESS = 100;
- const Q_INT32 DEFAULT_PRESSURE_CORRECTION = 50;
- const Q_INT32 DEFAULT_DOCKABILITY = 0;
- const Q_INT32 DEFAULT_UNDO_LIMIT = 50;
+ const TQ_INT32 DEFAULT_MAX_THREADS = 4;
+ const TQ_INT32 DEFAULT_MAX_TILES_MEM = 500; // 8192 kilobytes given 64x64 tiles with 32bpp
+ const TQ_INT32 DEFAULT_SWAPPINESS = 100;
+ const TQ_INT32 DEFAULT_PRESSURE_CORRECTION = 50;
+ const TQ_INT32 DEFAULT_DOCKABILITY = 0;
+ const TQ_INT32 DEFAULT_UNDO_LIMIT = 50;
}
KisConfig::KisConfig()
@@ -80,22 +80,22 @@ void KisConfig::setUndoEnabled(bool undo)
}
-Q_INT32 KisConfig::defUndoLimit() const
+TQ_INT32 KisConfig::defUndoLimit() const
{
return m_cfg->readNumEntry("undolimit", DEFAULT_UNDO_LIMIT);
}
-void KisConfig::defUndoLimit(Q_INT32 limit)
+void KisConfig::defUndoLimit(TQ_INT32 limit)
{
m_cfg->writeEntry("undolimit", limit);
}
-Q_INT32 KisConfig::defImgWidth() const
+TQ_INT32 KisConfig::defImgWidth() const
{
return m_cfg->readNumEntry("imgWidthDef", IMG_DEFAULT_WIDTH);
}
-Q_INT32 KisConfig::defImgHeight() const
+TQ_INT32 KisConfig::defImgHeight() const
{
return m_cfg->readNumEntry("imgHeightDef", IMG_DEFAULT_HEIGHT);
}
@@ -105,12 +105,12 @@ double KisConfig::defImgResolution() const
return m_cfg->readDoubleNumEntry("imgResolutionDef", IMG_DEFAULT_RESOLUTION);
}
-void KisConfig::defImgWidth(Q_INT32 width)
+void KisConfig::defImgWidth(TQ_INT32 width)
{
m_cfg->writeEntry("imgWidthDef", width);
}
-void KisConfig::defImgHeight(Q_INT32 height)
+void KisConfig::defImgHeight(TQ_INT32 height)
{
m_cfg->writeEntry("imgHeightDef", height);
}
@@ -136,45 +136,45 @@ void KisConfig::setCursorStyle(enumCursorStyle style)
}
-QString KisConfig::monitorProfile() const
+TQString KisConfig::monitorProfile() const
{
return m_cfg->readEntry("monitorProfile", "");
}
-void KisConfig::setMonitorProfile(QString monitorProfile)
+void KisConfig::setMonitorProfile(TQString monitorProfile)
{
m_cfg->writeEntry("monitorProfile", monitorProfile);
}
-QString KisConfig::workingColorSpace() const
+TQString KisConfig::workingColorSpace() const
{
return m_cfg->readEntry("workingColorSpace", "RGBA");
}
-void KisConfig::setWorkingColorSpace(QString workingColorSpace)
+void KisConfig::setWorkingColorSpace(TQString workingColorSpace)
{
m_cfg->writeEntry(workingColorSpace, workingColorSpace);
}
-QString KisConfig::printerColorSpace() const
+TQString KisConfig::printerColorSpace() const
{
return m_cfg->readEntry("printerColorSpace", "CMYK");
}
-void KisConfig::setPrinterColorSpace(QString printerColorSpace)
+void KisConfig::setPrinterColorSpace(TQString printerColorSpace)
{
m_cfg->writeEntry("printerColorSpace", printerColorSpace);
}
-QString KisConfig::printerProfile() const
+TQString KisConfig::printerProfile() const
{
return m_cfg->readEntry("printerProfile", "");
}
-void KisConfig::setPrinterProfile(QString printerProfile)
+void KisConfig::setPrinterProfile(TQString printerProfile)
{
m_cfg->writeEntry("printerProfile", printerProfile);
}
@@ -202,23 +202,23 @@ void KisConfig::setShowRulers(bool rulers)
}
-Q_INT32 KisConfig::pasteBehaviour() const
+TQ_INT32 KisConfig::pasteBehaviour() const
{
return m_cfg->readNumEntry("pasteBehaviour", 2);
}
-void KisConfig::setPasteBehaviour(Q_INT32 renderIntent)
+void KisConfig::setPasteBehaviour(TQ_INT32 renderIntent)
{
m_cfg->writeEntry("pasteBehaviour", renderIntent);
}
-Q_INT32 KisConfig::renderIntent() const
+TQ_INT32 KisConfig::renderIntent() const
{
return m_cfg->readNumEntry("renderIntent", INTENT_PERCEPTUAL);
}
-void KisConfig::setRenderIntent(Q_INT32 renderIntent)
+void KisConfig::setRenderIntent(TQ_INT32 renderIntent)
{
m_cfg->writeEntry("renderIntent", renderIntent);
}
@@ -243,82 +243,82 @@ void KisConfig::setUseOpenGLShaders(bool useOpenGLShaders)
m_cfg->writeEntry("useOpenGLShaders", useOpenGLShaders);
}
-Q_INT32 KisConfig::maxNumberOfThreads()
+TQ_INT32 KisConfig::maxNumberOfThreads()
{
return m_cfg->readNumEntry("maxthreads", DEFAULT_MAX_THREADS);
}
-void KisConfig::setMaxNumberOfThreads(Q_INT32 maxThreads)
+void KisConfig::setMaxNumberOfThreads(TQ_INT32 maxThreads)
{
m_cfg->writeEntry("maxthreads", maxThreads);
}
-Q_INT32 KisConfig::maxTilesInMem() const
+TQ_INT32 KisConfig::maxTilesInMem() const
{
return m_cfg->readNumEntry("maxtilesinmem", DEFAULT_MAX_TILES_MEM);
}
-void KisConfig::setMaxTilesInMem(Q_INT32 tiles)
+void KisConfig::setMaxTilesInMem(TQ_INT32 tiles)
{
m_cfg->writeEntry("maxtilesinmem", tiles);
}
-Q_INT32 KisConfig::swappiness() const
+TQ_INT32 KisConfig::swappiness() const
{
return m_cfg->readNumEntry("swappiness", DEFAULT_SWAPPINESS);
}
-void KisConfig::setSwappiness(Q_INT32 swappiness)
+void KisConfig::setSwappiness(TQ_INT32 swappiness)
{
m_cfg->writeEntry("swappiness", swappiness);
}
-Q_INT32 KisConfig::getPressureCorrection()
+TQ_INT32 KisConfig::getPressureCorrection()
{
return m_cfg->readNumEntry( "pressurecorrection", DEFAULT_PRESSURE_CORRECTION );
}
-void KisConfig::setPressureCorrection( Q_INT32 correction )
+void KisConfig::setPressureCorrection( TQ_INT32 correction )
{
m_cfg->writeEntry( "pressurecorrection", correction );
}
-Q_INT32 KisConfig::getDefaultPressureCorrection()
+TQ_INT32 KisConfig::getDefaultPressureCorrection()
{
return DEFAULT_PRESSURE_CORRECTION;
}
-bool KisConfig::tabletDeviceEnabled(const QString& tabletDeviceName) const
+bool KisConfig::tabletDeviceEnabled(const TQString& tabletDeviceName) const
{
return m_cfg->readBoolEntry("TabletDevice" + tabletDeviceName + "Enabled", false);
}
-void KisConfig::setTabletDeviceEnabled(const QString& tabletDeviceName, bool enabled)
+void KisConfig::setTabletDeviceEnabled(const TQString& tabletDeviceName, bool enabled)
{
m_cfg->writeEntry("TabletDevice" + tabletDeviceName + "Enabled", enabled);
}
-Q_INT32 KisConfig::tabletDeviceAxis(const QString& tabletDeviceName, const QString& axisName, Q_INT32 defaultAxis) const
+TQ_INT32 KisConfig::tabletDeviceAxis(const TQString& tabletDeviceName, const TQString& axisName, TQ_INT32 defaultAxis) const
{
return m_cfg->readNumEntry("TabletDevice" + tabletDeviceName + axisName, defaultAxis);
}
-void KisConfig::setTabletDeviceAxis(const QString& tabletDeviceName, const QString& axisName, Q_INT32 axis) const
+void KisConfig::setTabletDeviceAxis(const TQString& tabletDeviceName, const TQString& axisName, TQ_INT32 axis) const
{
m_cfg->writeEntry("TabletDevice" + tabletDeviceName + axisName, axis);
}
-void KisConfig::setDockability( Q_INT32 dockability )
+void KisConfig::setDockability( TQ_INT32 dockability )
{
m_cfg->writeEntry( "palettesdockability", dockability );
}
-Q_INT32 KisConfig::dockability()
+TQ_INT32 KisConfig::dockability()
{
return m_cfg->readNumEntry("palettesdockability", DEFAULT_DOCKABILITY);
}
-Q_INT32 KisConfig::getDefaultDockability()
+TQ_INT32 KisConfig::getDefaultDockability()
{
return DEFAULT_DOCKABILITY;
}
@@ -330,7 +330,7 @@ float KisConfig::dockerFontSize()
float KisConfig::getDefaultDockerFontSize()
{
- float ps = QMIN(9, KGlobalSettings::generalFont().pointSize() * 0.8);
+ float ps = TQMIN(9, KGlobalSettings::generalFont().pointSize() * 0.8);
if (ps < 6) ps = 6;
return ps;
}
@@ -340,102 +340,102 @@ void KisConfig::setDockerFontSize(float size)
m_cfg->writeEntry("palettefontsize", size);
}
-Q_UINT32 KisConfig::getGridMainStyle()
+TQ_UINT32 KisConfig::getGridMainStyle()
{
- Q_UINT32 v = m_cfg->readNumEntry("gridmainstyle", 0);
+ TQ_UINT32 v = m_cfg->readNumEntry("gridmainstyle", 0);
if (v > 2)
v = 2;
return v;
}
-void KisConfig::setGridMainStyle(Q_UINT32 v)
+void KisConfig::setGridMainStyle(TQ_UINT32 v)
{
m_cfg->writeEntry("gridmainstyle", v);
}
-Q_UINT32 KisConfig::getGridSubdivisionStyle()
+TQ_UINT32 KisConfig::getGridSubdivisionStyle()
{
- Q_UINT32 v = m_cfg->readNumEntry("gridsubdivisionstyle", 1);
+ TQ_UINT32 v = m_cfg->readNumEntry("gridsubdivisionstyle", 1);
if (v > 2) v = 2;
return v;
}
-void KisConfig::setGridSubdivisionStyle(Q_UINT32 v)
+void KisConfig::setGridSubdivisionStyle(TQ_UINT32 v)
{
m_cfg->writeEntry("gridsubdivisionstyle", v);
}
-QColor KisConfig::getGridMainColor()
+TQColor KisConfig::getGridMainColor()
{
- return m_cfg->readColorEntry("gridmaincolor", new QColor(99,99,99));
+ return m_cfg->readColorEntry("gridmaincolor", new TQColor(99,99,99));
}
-void KisConfig::setGridMainColor(QColor v)
+void KisConfig::setGridMainColor(TQColor v)
{
m_cfg->writeEntry("gridmaincolor", v);
}
-QColor KisConfig::getGridSubdivisionColor()
+TQColor KisConfig::getGridSubdivisionColor()
{
- return m_cfg->readColorEntry("gridsubdivisioncolor", new QColor(150,150,150));
+ return m_cfg->readColorEntry("gridsubdivisioncolor", new TQColor(150,150,150));
}
-void KisConfig::setGridSubdivisionColor(QColor v)
+void KisConfig::setGridSubdivisionColor(TQColor v)
{
m_cfg->writeEntry("gridsubdivisioncolor", v);
}
-Q_UINT32 KisConfig::getGridHSpacing()
+TQ_UINT32 KisConfig::getGridHSpacing()
{
- Q_INT32 v = m_cfg->readNumEntry("gridhspacing", 10);
- return (Q_UINT32)QMAX(1, v );
+ TQ_INT32 v = m_cfg->readNumEntry("gridhspacing", 10);
+ return (TQ_UINT32)TQMAX(1, v );
}
-void KisConfig::setGridHSpacing(Q_UINT32 v)
+void KisConfig::setGridHSpacing(TQ_UINT32 v)
{
m_cfg->writeEntry("gridhspacing", v);
}
-Q_UINT32 KisConfig::getGridVSpacing()
+TQ_UINT32 KisConfig::getGridVSpacing()
{
- Q_INT32 v = m_cfg->readNumEntry("gridvspacing", 10);
- return (Q_UINT32)QMAX(1, v );
+ TQ_INT32 v = m_cfg->readNumEntry("gridvspacing", 10);
+ return (TQ_UINT32)TQMAX(1, v );
}
-void KisConfig::setGridVSpacing(Q_UINT32 v)
+void KisConfig::setGridVSpacing(TQ_UINT32 v)
{
m_cfg->writeEntry("gridvspacing", v);
}
-Q_UINT32 KisConfig::getGridSubdivisions()
+TQ_UINT32 KisConfig::getGridSubdivisions()
{
- Q_INT32 v = m_cfg->readNumEntry("gridsubsivisons", 2);
- return (Q_UINT32)QMAX(1, v );
+ TQ_INT32 v = m_cfg->readNumEntry("gridsubsivisons", 2);
+ return (TQ_UINT32)TQMAX(1, v );
}
-void KisConfig::setGridSubdivisions(Q_UINT32 v)
+void KisConfig::setGridSubdivisions(TQ_UINT32 v)
{
return m_cfg->writeEntry("gridsubsivisons", v);
}
-Q_UINT32 KisConfig::getGridOffsetX()
+TQ_UINT32 KisConfig::getGridOffsetX()
{
- Q_INT32 v = m_cfg->readNumEntry("gridoffsetx", 0);
- return (Q_UINT32)QMAX(0, v );
+ TQ_INT32 v = m_cfg->readNumEntry("gridoffsetx", 0);
+ return (TQ_UINT32)TQMAX(0, v );
}
-void KisConfig::setGridOffsetX(Q_UINT32 v)
+void KisConfig::setGridOffsetX(TQ_UINT32 v)
{
m_cfg->writeEntry("gridoffsetx", v);
}
-Q_UINT32 KisConfig::getGridOffsetY()
+TQ_UINT32 KisConfig::getGridOffsetY()
{
- Q_INT32 v = m_cfg->readNumEntry("gridoffsety", 0);
- return (Q_UINT32)QMAX(0, v );
+ TQ_INT32 v = m_cfg->readNumEntry("gridoffsety", 0);
+ return (TQ_UINT32)TQMAX(0, v );
}
-void KisConfig::setGridOffsetY(Q_UINT32 v)
+void KisConfig::setGridOffsetY(TQ_UINT32 v)
{
m_cfg->writeEntry("gridoffsety", v);
}