QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RSettings Class Reference

#include <RSettings.h>

List of all members.

Static Public Member Functions

static void addRecentFile (const QString &fileName)
 Adds a recent file to the list of recent files.
static void clearRecentFiles ()
static QStringList getAllKeys (const QString &group)
static QString getAppId ()
static QString getApplicationPath ()
static double getArcAngleLengthThreshold ()
static bool getAutoScaleGrid ()
static bool getAutoScaleLinetypePatterns ()
static bool getAutoScaleMetaGrid ()
static bool getAutoScalePatterns ()
static bool getBoolValue (const QString &key, bool defaultValue)
static int getBuildVersion ()
static QString getCacheLocation ()
static RColor getColor (const QString &key, const RColor &defaultValue=RDEFAULT_RCOLOR)
static bool getColorCorrection ()
static int getColorThreshold ()
static QString getCompilerVersion ()
static bool getConcurrentDrawing ()
static QString getDefaultStyle ()
static QString getDesktopLocation ()
static QString getDocumentsLocation ()
static double getDoubleValue (const QString &key, double defaultValue)
static QString getFileName ()
static QString getHomeLocation ()
static QFont getInfoLabelFont ()
static int getIntValue (const QString &key, int defaultValue)
static QString getLaunchPath ()
static bool getLimitZoomAndScroll ()
static QString getLocale ()
static int getMajorVersion ()
static int getMinorVersion ()
static QLocale getNumberLocale ()
static QString getNumericalVersionString ()
static QStringList getOriginalArguments ()
static QString getOSVersion ()
static QString getPath ()
static int getPickRange ()
static QString getPluginPath ()
static int getPreviewEntities ()
static QSettings * getQSettings ()
static QString getQtVersion ()
static QStringList getRecentFiles ()
static QString getReleaseDate ()
static int getRevisionVersion ()
static QFont getRulerFont ()
static bool getShowCrosshair ()
static bool getShowLargeCrosshair ()
static bool getShowLargeOriginAxis ()
static QFont getSnapLabelFont ()
static int getSnapRange ()
static QString getStandardLocation (int sl)
static QFont getStatusBarFont ()
static QString getStringValue (const QString &key, const QString &defaultValue)
static int getTextHeightThreshold ()
static bool getUseSecondarySelectionColor ()
static bool getUseSolidLineSelection ()
static QVariant getValue (const QString &key, const QVariant &defaultValue=RDEFAULT_QVARIANT)
static QString getVersionString ()
static int getZeroWeightWeight ()
static bool hasQuitFlag ()
static bool hasValue (const QString &key)
static void initRecentFiles ()
static bool isDebuggerEnabled ()
static bool isDeployed ()
static bool isGuiEnabled ()
static bool isQt (int majorVersion)
static bool isXDataEnabled ()
static void loadTranslations (const QString &module, const QStringList &dirs=RDEFAULT_QSTRINGLIST)
static void removeRecentFile (const QString &fileName)
static void removeValue (const QString &key)
static void resetCache ()
static void setApplicationName (const QString &n)
static void setConcurrentDrawing (bool on)
static void setLaunchPath (const QString &launchPath)
static void setOriginalArguments (const QStringList &a)
static void setQuitFlag ()
static void setRulerFont (const QFont &font)
static void setShowCrosshair (bool on)
static void setShowLargeCrosshair (bool on)
static void setShowLargeOriginAxis (bool on)
static void setSnapLabelFont (const QFont &font)
static void setValue (const QString &key, const QVariant &value)
static void setXDataEnabled (bool on)
static QString translate (const QString &context, const QString &str)
static void uninit ()

Static Private Member Functions

static bool isInitialized ()
static void shortenRecentFiles ()

Static Private Attributes

static QString applicationNameOverride
static double arcAngleLengthThreshold = -1
static int autoScaleLinetypePattern = -1
static QVariantMap cache
 Copyright (c) 2011-2013 by Andrew Mustun.
static int concurrentDrawing = -1
static QFont * infoLabelFont = NULL
static QString launchPath
static int limitZoomAndScroll = -1
static QLocale * numberLocale = NULL
static QStringList originalArguments
static int pickRange = -1
static int previewEntities = -1
static QSettings * qSettings = NULL
static bool quitFlag = false
static QStringList recentFiles
static QFont * rulerFont = NULL
static int showCrosshair = -1
static int showLargeCrosshair = -1
static int showLargeOriginAxis = -1
static QFont * snapLabelFont = NULL
static int snapRange = -1
static QFont * statusBarFont = NULL
static int useSecondarySelectionColor = -1
static int useSolidLineSelection = -1
static bool xDataEnabled = false
static int zeroWeightWeight = -1

Detailed Description

Scriptable:
This class is wrapped for script environments.

Member Function Documentation

void RSettings::addRecentFile ( const QString &  fileName)
static

Adds a recent file to the list of recent files.

The newest file is always at the end of the list.

void RSettings::clearRecentFiles ( )
static
QStringList RSettings::getAllKeys ( const QString &  group)
static
QString RSettings::getAppId ( )
static
QString RSettings::getApplicationPath ( )
static
double RSettings::getArcAngleLengthThreshold ( )
static
bool RSettings::getAutoScaleGrid ( )
static
bool RSettings::getAutoScaleLinetypePatterns ( )
static
bool RSettings::getAutoScaleMetaGrid ( )
static
bool RSettings::getAutoScalePatterns ( )
static
bool RSettings::getBoolValue ( const QString &  key,
bool  defaultValue 
)
static
int RSettings::getBuildVersion ( )
static
QString RSettings::getCacheLocation ( )
static
RColor RSettings::getColor ( const QString &  key,
const RColor defaultValue = RDEFAULT_RCOLOR 
)
static
bool RSettings::getColorCorrection ( )
static
int RSettings::getColorThreshold ( )
static
QString RSettings::getCompilerVersion ( )
static
bool RSettings::getConcurrentDrawing ( )
static
QString RSettings::getDefaultStyle ( )
static
QString RSettings::getDesktopLocation ( )
static
QString RSettings::getDocumentsLocation ( )
static
double RSettings::getDoubleValue ( const QString &  key,
double  defaultValue 
)
static
QString RSettings::getFileName ( )
static
QString RSettings::getHomeLocation ( )
static
QFont RSettings::getInfoLabelFont ( )
static
int RSettings::getIntValue ( const QString &  key,
int  defaultValue 
)
static
QString RSettings::getLaunchPath ( )
static
bool RSettings::getLimitZoomAndScroll ( )
static
QString RSettings::getLocale ( )
static
int RSettings::getMajorVersion ( )
static
int RSettings::getMinorVersion ( )
static
QLocale RSettings::getNumberLocale ( )
static
QString RSettings::getNumericalVersionString ( )
static
QStringList RSettings::getOriginalArguments ( )
static
QString RSettings::getOSVersion ( )
static
QString RSettings::getPath ( )
static
Returns:
Path where the configuration file is stored.
int RSettings::getPickRange ( )
static
QString RSettings::getPluginPath ( )
static
int RSettings::getPreviewEntities ( )
static
QSettings * RSettings::getQSettings ( )
static
QString RSettings::getQtVersion ( )
static
QStringList RSettings::getRecentFiles ( )
static
QString RSettings::getReleaseDate ( )
static
int RSettings::getRevisionVersion ( )
static
QFont RSettings::getRulerFont ( )
static
bool RSettings::getShowCrosshair ( )
static
bool RSettings::getShowLargeCrosshair ( )
static
bool RSettings::getShowLargeOriginAxis ( )
static
QFont RSettings::getSnapLabelFont ( )
static
int RSettings::getSnapRange ( )
static
QString RSettings::getStandardLocation ( int  sl)
static
QFont RSettings::getStatusBarFont ( )
static
QString RSettings::getStringValue ( const QString &  key,
const QString &  defaultValue 
)
static
int RSettings::getTextHeightThreshold ( )
static
bool RSettings::getUseSecondarySelectionColor ( )
static
bool RSettings::getUseSolidLineSelection ( )
static
QVariant RSettings::getValue ( const QString &  key,
const QVariant &  defaultValue = RDEFAULT_QVARIANT 
)
static
QString RSettings::getVersionString ( )
static
int RSettings::getZeroWeightWeight ( )
static
bool RSettings::hasQuitFlag ( )
static
bool RSettings::hasValue ( const QString &  key)
static
void RSettings::initRecentFiles ( )
static
bool RSettings::isDebuggerEnabled ( )
static
bool RSettings::isDeployed ( )
static
bool RSettings::isGuiEnabled ( )
static
bool RSettings::isInitialized ( )
staticprivate
bool RSettings::isQt ( int  majorVersion)
static
bool RSettings::isXDataEnabled ( )
static
void RSettings::loadTranslations ( const QString &  module,
const QStringList &  dirs = RDEFAULT_QSTRINGLIST 
)
static
void RSettings::removeRecentFile ( const QString &  fileName)
static
void RSettings::removeValue ( const QString &  key)
static
void RSettings::resetCache ( )
static
void RSettings::setApplicationName ( const QString &  n)
static
void RSettings::setConcurrentDrawing ( bool  on)
static
void RSettings::setLaunchPath ( const QString &  launchPath)
static
void RSettings::setOriginalArguments ( const QStringList &  a)
static
void RSettings::setQuitFlag ( )
static
void RSettings::setRulerFont ( const QFont &  font)
static
void RSettings::setShowCrosshair ( bool  on)
static
void RSettings::setShowLargeCrosshair ( bool  on)
static
void RSettings::setShowLargeOriginAxis ( bool  on)
static
void RSettings::setSnapLabelFont ( const QFont &  font)
static
void RSettings::setValue ( const QString &  key,
const QVariant &  value 
)
static
void RSettings::setXDataEnabled ( bool  on)
static
void RSettings::shortenRecentFiles ( )
staticprivate
QString RSettings::translate ( const QString &  context,
const QString &  str 
)
static
void RSettings::uninit ( )
static

Member Data Documentation

QString RSettings::applicationNameOverride
staticprivate
double RSettings::arcAngleLengthThreshold = -1
staticprivate
int RSettings::autoScaleLinetypePattern = -1
staticprivate
QVariantMap RSettings::cache
staticprivate

Copyright (c) 2011-2013 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

int RSettings::concurrentDrawing = -1
staticprivate
QFont * RSettings::infoLabelFont = NULL
staticprivate
QString RSettings::launchPath
staticprivate
int RSettings::limitZoomAndScroll = -1
staticprivate
QLocale * RSettings::numberLocale = NULL
staticprivate
QStringList RSettings::originalArguments
staticprivate
int RSettings::pickRange = -1
staticprivate
int RSettings::previewEntities = -1
staticprivate
QSettings * RSettings::qSettings = NULL
staticprivate
bool RSettings::quitFlag = false
staticprivate
QStringList RSettings::recentFiles
staticprivate
QFont * RSettings::rulerFont = NULL
staticprivate
int RSettings::showCrosshair = -1
staticprivate
int RSettings::showLargeCrosshair = -1
staticprivate
int RSettings::showLargeOriginAxis = -1
staticprivate
QFont * RSettings::snapLabelFont = NULL
staticprivate
int RSettings::snapRange = -1
staticprivate
QFont * RSettings::statusBarFont = NULL
staticprivate
int RSettings::useSecondarySelectionColor = -1
staticprivate
int RSettings::useSolidLineSelection = -1
staticprivate
bool RSettings::xDataEnabled = false
staticprivate
int RSettings::zeroWeightWeight = -1
staticprivate

The documentation for this class was generated from the following files: