Krita Source Code Documentation
Loading...
Searching...
No Matches
KisConfig Class Reference

#include <kis_config.h>

Public Types

enum  AssistantsDrawMode { ASSISTANTS_DRAW_MODE_DIRECT = 0 , ASSISTANTS_DRAW_MODE_PIXMAP_CACHE = 1 , ASSISTANTS_DRAW_MODE_LARGE_PIXMAP_CACHE = 2 }
 
enum  BackgroundStyle { RASTER_LAYER = 0 , CANVAS_COLOR = 1 , FILL_LAYER = 2 }
 
enum class  CanvasSurfaceBitDepthMode { DepthAuto = 0 , Depth8Bit , Depth10Bit }
 
enum class  CanvasSurfaceMode {
  Preferred = 0 , Rec709g22 , Rec709g10 , Rec2020pq ,
  Unmanaged
}
 
enum class  ColorSamplerPreviewStyle {
  None , Circle , RectangleLeft , RectangleRight ,
  RectangleAbove , Count
}
 
enum  LayerInfoTextStyle { INFOTEXT_NONE = 0 , INFOTEXT_SIMPLE , INFOTEXT_BALANCED , INFOTEXT_DETAILED }
 
enum  OcioColorManagementMode { INTERNAL = 0 , OCIO_CONFIG , OCIO_ENVIRONMENT }
 
enum  RootSurfaceFormat { BT709_G22 = 0 , BT709_G10 , BT2020_PQ }
 
enum  SessionOnStartup { SOS_BlankSession , SOS_PreviousSession , SOS_ShowSessionManager }
 
enum  TouchPainting { TOUCH_PAINTING_AUTO , TOUCH_PAINTING_ENABLED , TOUCH_PAINTING_DISABLED }
 

Public Slots

void logImportantSettings () const
 Log the most interesting settings to the usage log.
 

Public Member Functions

bool activateTransformToolAfterPaste (bool defaultValue=false) const
 
bool adaptivePlaybackRange (bool defaultValue=false) const
 
bool allowLCMSOptimization (bool defaultValue=false) const
 
bool animationDropFrames (bool defaultValue=false) const
 
int animationPlaybackBackend (bool defaultValue=false) const
 
bool antialiasCurves (bool defaultValue=false) const
 
bool antialiasSelectionOutline (bool defaultValue=false) const
 
AssistantsDrawMode assistantsDrawMode (bool defaultValue=false) const
 
int audioOffsetTolerance (bool defaultValue=false) const
 
bool autoPinLayersToTimeline (bool defaultValue=false) const
 
int autoSaveInterval (bool defaultValue=false) const
 
bool autoSmoothBezierCurves (bool defaultValue=false) const
 
bool autoZoomTimelineToPlaybackRange (bool defaultValue=false) const
 
bool backupFile (bool defaultValue=false) const
 
QString brushHudSetting (bool defaultValue=false) const
 
bool calculateAnimationCacheInBackground (bool defaultValue=false) const
 
QColor canvasBorderColor (bool defaultValue=false) const
 
QString canvasState (bool defaultValue=false) const
 
CanvasSurfaceBitDepthMode canvasSurfaceBitDepthMode (bool defaultValue=false) const
 
CanvasSurfaceMode canvasSurfaceColorSpaceManagementMode (bool defaultValue=false) const
 
QColor checkersColor1 (bool defaultValue=false) const
 
QColor checkersColor2 (bool defaultValue=false) const
 
qint32 checkSize (bool defaultValue=false) const
 
bool clicklessSpacePan (bool defaultValue=false) const
 
bool colorHistoryPerDocument (bool defaultValue=false) const
 
int colorSamplerPreviewCircleDiameter (bool defaultValue=false) const
 
bool colorSamplerPreviewCircleExtraCirclesEnabled (bool defaultValue=false) const
 
bool colorSamplerPreviewCircleOutlineEnabled (bool defaultValue=false) const
 
qreal colorSamplerPreviewCircleThickness (bool defaultValue=false) const
 
ColorSamplerPreviewStyle colorSamplerPreviewStyle (bool defaultValue=false) const
 
bool compressKra (bool defaultValue=false) const
 
bool convertLayerColorSpaceInProperties (bool defaultValue=false) const
 
bool convertToImageColorspaceOnImport (bool defaultValue=false) const
 
KisCumulativeUndoData cumulativeUndoData (bool defaultValue=false) const
 
QString currentInputProfile (bool defaultValue=false) const
 
const KoColorSpacecustomColorSelectorColorSpace (bool defaultValue=false) const
 
QColor defaultAssistantsColor (bool defaultValue=false) const
 
QColor defaultBackgroundColor (bool defaultValue=false) const
 
quint8 defaultBackgroundOpacity (bool defaultValue=false) const
 
BackgroundStyle defaultBackgroundStyle (bool defaultValue=false) const
 
QString defaultColorDepth (bool defaultValue=false) const
 
QString defaultPalette (bool defaultValue=false) const
 
QString defColorModel (bool defaultValue=false) const
 
void defColorModel (const QString &model) const
 
QString defColorProfile (bool defaultValue=false) const
 
void defColorProfile (const QString &depth) const
 
qint32 defImageHeight (bool defaultValue=false) const
 
void defImageHeight (qint32 height) const
 
qreal defImageResolution (bool defaultValue=false) const
 
void defImageResolution (qreal res) const
 
qint32 defImageWidth (bool defaultValue=false) const
 
void defImageWidth (qint32 width) const
 
bool disableAVXOptimizations (bool defaultValue=false) const
 
void disableOpenGL () const
 
bool disableTouchOnCanvas () const
 
bool disableVectorOptimizations (bool defaultValue=false) const
 
const KoColorProfiledisplayProfile (int screen) const
 
CanvasSurfaceBitDepthMode effectiveCanvasSurfaceBitDepthMode (const QSurfaceFormat &format) const
 
bool enableBrushSpeedLogging (bool defaultValue=false) const
 
bool enableCanvasSurfaceColorSpaceManagement (bool defaultValue=false) const
 
bool enableOpenGLFramerateLogging (bool defaultValue=false) const
 
void enablePixelGrid (bool v) const
 
CursorStyle eraserCursorStyle (bool defaultValue=false) const
 
OutlineStyle eraserOutlineStyle (bool defaultValue=false) const
 
KisPropertiesConfigurationSP exportConfiguration (const QString &filterId, bool defaultValue=false) const
 
QString exportConfigurationXML (const QString &filterId, bool defaultValue=false) const
 
QString exportMimeType (bool defaultValue) const
 
QStringList favoriteCompositeOps (bool defaultValue=false) const
 
int favoritePresets (bool defaultValue=false) const
 
QString ffmpegLocation (bool defaultValue=false) const
 
bool firstRun (bool defaultValue=false) const
 
bool forceAlwaysFullSizedEraserOutline (bool defaultValue=false) const
 
bool forceAlwaysFullSizedOutline (bool defaultValue=false) const
 
bool forceOpenGLFenceWorkaround (bool defaultValue=false) const
 
bool forcePaletteColors (bool defaultValue=false) const
 
bool forceShowAutosaveMessages (bool defaultValue=true) const
 
bool forceShowSaveMessages (bool defaultValue=true) const
 
bool fullscreenMode (bool defaultValue=false) const
 
QColor getCursorMainColor (bool defaultValue=false) const
 
QPoint getDefaultGridSpacing (bool defaultValue=false) const
 
QColor getEraserCursorMainColor (bool defaultValue=false) const
 
QColor getGridIsoVerticalColor (bool defaultValue=false) const
 
quint32 getGridIsoVerticalStyle (bool defaultValue=false) const
 
QColor getGridMainColor (bool defaultValue=false) const
 
quint32 getGridMainStyle (bool defaultValue=false) const
 
QColor getGridSubdivisionColor (bool defaultValue=false) const
 
quint32 getGridSubdivisionStyle (bool defaultValue=false) const
 
QString getMDIBackgroundColor (bool defaultValue=false) const
 
QString getMDIBackgroundImage (bool defaultValue=false) const
 
QColor getPixelGridColor (bool defaultValue=false) const
 
qreal getPixelGridDrawingThreshold (bool defaultValue=false) const
 
const QString getScreenStringIdentfier (int screenNo) const
 
QColor guidesColor (bool defaultValue=false) const
 
quint32 guidesLineStyle (bool defaultValue=false) const
 
bool hideDevFundBanner (bool defaultValue=false) const
 
bool hideDockersFullscreen (bool defaultValue=false) const
 
bool hideMenuFullscreen (bool defaultValue=false) const
 
bool hidePopups (bool defaultValue=false) const
 
bool hideScrollbars (bool defaultValue=false) const
 
bool hideScrollbarsFullscreen (bool defaultValue=false) const
 
bool hideStatusbarFullscreen (bool defaultValue=false) const
 
bool hideTitlebarFullscreen (bool defaultValue=false) const
 
bool hideToolbarFullscreen (bool defaultValue=false) const
 
int horizontalSplitLines (bool defaultValue=false) const
 
bool ignoreHighFunctionKeys (bool defaultValue=false) const
 
QString importConfiguration (const QString &filterId, bool defaultValue=false) const
 
QString importProfile (bool defaultValue=false) const
 
bool kineticScrollingEnabled (bool defaultValue=false) const
 
int kineticScrollingGesture (bool defaultValue=false) const
 
bool kineticScrollingHiddenScrollbars (bool defaultValue=false) const
 
int kineticScrollingSensitivity (bool defaultValue=false) const
 
 KisConfig (bool readOnly)
 KisConfig create a kisconfig object.
 
OutlineStyle lastUsedOutlineStyle (bool defaultValue=false) const
 
int layerInfoTextOpacity (bool defaultValue=false) const
 
LayerInfoTextStyle layerInfoTextStyle (bool defaultValue=false) const
 
int layerThumbnailGenerationTimeout (bool defaultValue=false) const
 
int layerThumbnailSize (bool defaultValue=false) const
 
int layerTreeIndentation (bool defaultValue=false) const
 
bool levelOfDetailEnabled (bool defaultValue=false) const
 
qreal lineSmoothingDelayDistance (bool defaultValue=false) const
 
bool lineSmoothingDistanceKeepAspectRatio (bool defaultValue=false) const
 
qreal lineSmoothingDistanceMax (bool defaultValue=false) const
 
qreal lineSmoothingDistanceMin (bool defaultValue=false) const
 
bool lineSmoothingFinishStabilizedCurve (bool defaultValue=false) const
 
bool lineSmoothingScalableDistance (bool defaultValue=false) const
 
bool lineSmoothingSmoothPressure (bool defaultValue=false) const
 
bool lineSmoothingStabilizeSensors (bool defaultValue=false) const
 
qreal lineSmoothingTailAggressiveness (bool defaultValue=false) const
 
int lineSmoothingType (bool defaultValue=false) const
 
bool lineSmoothingUseDelayDistance (bool defaultValue=false) const
 
void loadSnapConfig (KisSnapConfig *config, bool defaultValue=false) const
 
bool longPressEnabled (bool defaultValue=false) const
 
QString monitorForScreen (int screen, const QString &defaultMonitor, bool defaultValue=true) const
 
QString monitorProfile (int screen) const
 get the profile the user has selected for the given screen
 
qint32 monitorRenderIntent (bool defaultValue=false) const
 
CursorStyle newCursorStyle (bool defaultValue=false) const
 
OutlineStyle newOutlineStyle (bool defaultValue=false) const
 
int numDefaultLayers (bool defaultValue=false) const
 
int numMipmapLevels (bool defaultValue=false) const
 
OcioColorManagementMode ocioColorManagementMode (bool defaultValue=false) const
 
KisOcioConfiguration ocioConfiguration (bool defaultValue=false) const
 
bool ocioLockColorVisualRepresentation (bool defaultValue=false) const
 
int ocioLutEdgeSize (bool defaultValue=false) const
 
int openGLFilteringMode (bool defaultValue=false) const
 
int openGLTextureSize (bool defaultValue=false) const
 
qreal outlineSizeMinimum (bool defaultValue=false) const
 
bool paintopPopupDetached (bool defaultValue=false) const
 
qint32 pasteBehaviour (bool defaultValue=false) const
 
qint32 pasteFormat (bool defaultValue) const
 
bool pixelGridEnabled (bool defaultValue=false) const
 
int preferredVectorImportResolutionPPI (bool defaultValue=false) const
 
bool preferXcbEglProvider (bool defaultValue=false) const
 
int presetChooserViewMode (bool defaultValue=false) const
 
int presetIconSize (bool defaultValue=false) const
 
bool presetStripVisible (bool defaultValue=false) const
 
QString pressureTabletCurve (bool defaultValue=false) const
 
QString printerColorSpace (bool defaultValue=false) const
 
QString printerProfile (bool defaultValue=false) const
 
template<class T >
readEntry (const QString &name, const T &defaultValue=T())
 
KoColor readKoColor (const QString &name, const KoColor &color=KoColor()) const
 
QList< KoColorreadKoColors (const QString &name) const
 
template<class T >
QList< T > readList (const QString &name, const QList< T > &defaultValue=QList< T >())
 
bool renamePastedLayers (bool defaultValue=false) const
 
RootSurfaceFormat rootSurfaceFormat (bool defaultValue=false) const
 
bool rulersTrackMouse (bool defaultValue=false) const
 
bool saveSessionOnQuit (bool defaultValue) const
 
void saveSnapConfig (const KisSnapConfig &config)
 
bool scratchpadVisible (bool defaultValue=false) const
 
bool scrollbarZoomEnabled (bool defaultValue=false) const
 
bool scrollCheckers (bool defaultValue=false) const
 
int scrubbingAudioUpdatesDelay (bool defaultValue=false) const
 
int scrubbingUpdatesDelay (bool defaultValue=false) const
 
bool selectionActionBar (bool defaultValue=false) const
 
qreal selectionViewSizeMinimum (bool defaultValue=false) const
 
bool separateEraserCursor (bool defaultValue=false) const
 
SessionOnStartup sessionOnStartup (bool defaultValue=false) const
 
void setActivateTransformToolAfterPaste (bool value)
 
void setAdaptivePlaybackRange (bool value)
 
void setAllowLCMSOptimization (bool allowLCMSOptimization)
 
void setAnimationDropFrames (bool value)
 
void setAnimationPlaybackBackend (int value)
 
void setAntialiasCurves (bool v) const
 
void setAntialiasSelectionOutline (bool v) const
 
void setAssistantsDrawMode (AssistantsDrawMode value)
 
void setAudioOffsetTolerance (int value)
 
void setAutoPinLayersToTimeline (bool value)
 
void setAutoSaveInterval (int seconds) const
 
void setAutoSmoothBezierCurves (bool value)
 
void setAutoZoomTimelineToPlaybackRange (bool value)
 
void setBackupFile (bool backupFile) const
 
void setBrushHudSetting (const QString &value) const
 
void setCalculateAnimationCacheInBackground (bool value)
 
void setCanvasBorderColor (const QColor &color) const
 
void setCanvasState (const QString &state) const
 
void setCanvasSurfaceBitDepthMode (CanvasSurfaceBitDepthMode value)
 
void setCanvasSurfaceColorSpaceManagementMode (CanvasSurfaceMode value)
 
void setCheckersColor1 (const QColor &v) const
 
void setCheckersColor2 (const QColor &v) const
 
void setCheckSize (qint32 checkSize) const
 
void setClicklessSpacePan (const bool toggle) const
 
void setColorSamplerPreviewCircleDiameter (int style)
 
void setColorSamplerPreviewCircleExtraCirclesEnabled (bool enabled)
 
void setColorSamplerPreviewCircleOutlineEnabled (bool enabled)
 
void setColorSamplerPreviewCircleThickness (qreal thickness)
 
void setColorSamplerPreviewStyle (ColorSamplerPreviewStyle style)
 
void setCompressKra (bool compress)
 
void setConvertLayerColorSpaceInProperties (bool value)
 
void setConvertToImageColorspaceOnImport (bool value)
 
void setCumulativeUndoData (KisCumulativeUndoData value)
 
void setCumulativeUndoRedo (bool value)
 
void setCurrentInputProfile (const QString &name)
 
void setCursorMainColor (const QColor &v) const
 
void setCustomColorSelectorColorSpace (const KoColorSpace *cs)
 
void setDefaultAssistantsColor (const QColor &color) const
 
void setDefaultBackgroundColor (const QColor &value)
 
void setDefaultBackgroundOpacity (quint8 value)
 
void setDefaultBackgroundStyle (BackgroundStyle value)
 
void setDefaultColorDepth (const QString &depth) const
 
void setDefaultGridSpacing (QPoint gridSpacing)
 
void setDefaultPalette (const QString &name) const
 
void setDisableAVXOptimizations (bool value)
 
void setDisableVectorOptimizations (bool value)
 
void setEnableBrushSpeedLogging (bool value) const
 
void setEnableCanvasSurfaceColorSpaceManagement (bool value)
 
void setEnableOpenGLFramerateLogging (bool value) const
 
void setEraserCursorMainColor (const QColor &v) const
 
void setEraserCursorStyle (CursorStyle style)
 
void setEraserOutlineStyle (OutlineStyle style)
 
void setExportConfiguration (const QString &filterId, KisPropertiesConfigurationSP properties) const
 
void setExportMimeType (const QString &defaultExportMimeType)
 
void setFavoriteCompositeOps (const QStringList &compositeOps) const
 
void setFavoritePresets (const int value)
 
void setFFMpegLocation (const QString &value)
 
void setFirstRun (const bool firstRun) const
 
void setForceAlwaysFullSizedEraserOutline (bool value) const
 
void setForceAlwaysFullSizedOutline (bool value) const
 
void setForcePaletteColors (bool forcePaletteColors)
 
void setForceShowAutosaveMessages (bool ShowAutosaveMessages) const
 
void setForceShowSaveMessages (bool value) const
 
void setFullscreenMode (const bool value) const
 
void setGridIsoVerticalColor (const QColor &v) const
 
void setGridIsoVerticalStyle (quint32 v) const
 
void setGridMainColor (const QColor &v) const
 
void setGridMainStyle (quint32 v) const
 
void setGridSubdivisionColor (const QColor &v) const
 
void setGridSubdivisionStyle (quint32 v) const
 
void setGuidesColor (const QColor &v) const
 
void setGuidesLineStyle (quint32 v) const
 
void setHideDevFundBanner (bool value=true)
 
void setHideDockersFullscreen (const bool value) const
 
void setHideMenuFullscreen (const bool value) const
 
void setHidePopups (bool hidePopups)
 
void setHideScrollbars (bool value) const
 
void setHideScrollbarsFullscreen (const bool value) const
 
void setHideStatusbarFullscreen (const bool value) const
 
void setHideTitlebarFullscreen (const bool value) const
 
void setHideToolbarFullscreen (const bool value) const
 
void setHorizontalSplitLines (const int numberLines) const
 
void setIgnoreHighFunctionKeys (bool value)
 
void setImportConfiguration (const QString &filterId, KisPropertiesConfigurationSP properties) const
 
void setImportProfile (const QString &importProfile) const
 
void setKineticScrollingEnabled (bool enabled)
 
void setKineticScrollingGesture (int kineticScroll)
 
void setKineticScrollingHideScrollbars (bool scrollbar)
 
void setKineticScrollingSensitivity (int sensitivity)
 
void setLastUsedOutlineStyle (OutlineStyle style)
 
void setLayerInfoTextOpacity (int value)
 
void setLayerInfoTextStyle (LayerInfoTextStyle value)
 
void setLayerThumbnailGenerationTimeout (int value)
 
void setLayerThumbnailSize (int size)
 
void setLayerTreeIndentation (int percentage)
 
void setLevelOfDetailEnabled (bool value)
 
void setLineSmoothingDelayDistance (qreal value)
 
void setLineSmoothingDistanceKeepAspectRatio (bool value)
 
void setLineSmoothingDistanceMax (qreal value)
 
void setLineSmoothingDistanceMin (qreal value)
 
void setLineSmoothingFinishStabilizedCurve (bool value)
 
void setLineSmoothingScalableDistance (bool value)
 
void setLineSmoothingSmoothPressure (bool value)
 
void setLineSmoothingStabilizeSensors (bool value)
 
void setLineSmoothingTailAggressiveness (qreal value)
 
void setLineSmoothingType (int value)
 
void setLineSmoothingUseDelayDistance (bool value)
 
void setLongPressEnabled (bool value)
 
void setMDIBackgroundColor (const QString &v) const
 
void setMDIBackgroundImage (const QString &fileName) const
 
void setMonitorForScreen (int screen, const QString &monitor)
 
void setMonitorProfile (int screen, const QString &monitorProfile, bool override) const
 
void setNewCursorStyle (CursorStyle style)
 
void setNewOutlineStyle (OutlineStyle style)
 
void setNumDefaultLayers (int num)
 
void setOcioColorManagementMode (OcioColorManagementMode mode) const
 
void setOcioConfiguration (const KisOcioConfiguration &cfg)
 
void setOcioLockColorVisualRepresentation (bool value)
 
void setOcioLutEdgeSize (int value)
 
void setOpenGLFilteringMode (int filteringMode)
 
void setOutlineSizeMinimum (qreal outlineSizeMinimum) const
 
void setPaintopPopupDetached (bool detached) const
 
void setPasteBehaviour (qint32 behaviour) const
 
void setPasteFormat (qint32 format)
 
void setPixelGridColor (const QColor &v) const
 
void setPixelGridDrawingThreshold (qreal v) const
 
void setPreferredVectorImportResolutionPPI (int value) const
 
void setPreferXcbEglProvider (bool value)
 
void setPresetChooserViewMode (const int mode) const
 
void setPresetIconSize (const int value) const
 
void setPresetStripVisible (bool visible)
 
void setPressureTabletCurve (const QString &curveString) const
 
void setPrinterColorSpace (const QString &printerColorSpace) const
 
void setPrinterProfile (const QString &printerProfile) const
 
void setRenamePastedLayers (bool value)
 
void setRenderIntent (qint32 monitorRenderIntent) const
 
void setRootSurfaceFormat (RootSurfaceFormat value)
 
void setRulersTrackMouse (bool value) const
 
void setSaveSessionOnQuit (bool value)
 
void setScratchpadVisible (bool visible)
 
void setScrollbarZoomEnabled (bool enabled) const
 
void setScrollingCheckers (bool scrollCheckers) const
 
void setScrubbingAudioUpdatesDelay (int value)
 
void setScrubbingUpdatesDelay (int value)
 
void setSelectionActionBar (bool value)
 
void setSelectionViewSizeMinimum (qreal outlineSizeMinimum) const
 
void setSeparateEraserCursor (bool value) const
 
void setSessionOnStartup (SessionOnStartup value)
 
void setShowBrushHud (bool value)
 
void setShowCanvasMessages (bool show)
 
void setShowDockers (const bool value) const
 
void setShowDockerTitleBars (const bool value) const
 
void setShowEraserOutlineWhilePainting (bool showEraserOutlineWhilePainting) const
 
void setShowFilterGallery (bool showFilterGallery) const
 
void setShowFilterGalleryLayerMaskDialog (bool showFilterGallery) const
 
void setShowGlobalSelection (bool showGlobalSelection) const
 
void setShowOutlineWhilePainting (bool showOutlineWhilePainting) const
 
void setShowPaletteBottomBar (bool value)
 
void setShowRootLayer (bool showRootLayer) const
 
void setShowRulers (bool rulers) const
 
void setShowSingleChannelAsColor (bool asColor)
 
void setShowStatusBar (const bool value) const
 
void setSliderLabels (bool enabled)
 
void setStabilizerDelayedPaint (bool value)
 
void setStabilizerSampleSize (int value)
 
void setSwitchSelectionCtrlAlt (bool value)
 
void setTabletEventsDelay (int value)
 
void setTestingAcceptCompressedTabletEvents (bool value)
 
void setTestingCompressBrushEvents (bool value)
 
void setTimelineZoom (qreal value)
 
void setToolbarSlider (int sliderNumber, const QString &slider)
 
void setToolOptionsInDocker (bool inDocker)
 
void setToolOptionsPopupDetached (bool detached) const
 
void setTouchPainting (TouchPainting value) const
 
void setTrackTabletEventLatency (bool value)
 
void setTrimFramesImport (bool trim)
 
void setTrimKra (bool trim)
 
void setUndoEnabled (bool undo) const
 
void setUndoStackLimit (int limit) const
 
void setUseBlackPointCompensation (bool useBlackPointCompensation) const
 
void setUseDefaultColorSpace (bool value) const
 
void setUseDirtyPresets (bool value)
 
void setUseEraserBrushOpacity (bool value)
 
void setUseEraserBrushSize (bool value)
 
void setUseInlineLayerInfoText (bool value)
 
void setUseLayerSelectionCheckbox (bool value)
 
void setUseOcio (bool useOCIO) const
 
void setUseOpenGLTextureBuffer (bool useBuffer)
 
void setUseProjections (bool useProj) const
 
void setUseRightMiddleTabletButtonWorkaround (bool value)
 
void setUseSystemMonitorProfile (bool _useSystemMonitorProfile) const
 
void setUseWin8PointerInput (bool value)
 
void setUseZip64 (bool value)
 
void setVastScrolling (const qreal factor) const
 
void setVerticalSplitLines (const int numberLines) const
 
void setWidgetStyle (QString name)
 
void setWorkingColorSpace (const QString &workingColorSpace) const
 
void setZoomHorizontal (bool value)
 
void setZoomMarginSize (int zoomMarginSize)
 
void setZoomSteps (int steps)
 
bool shouldEatDriverShortcuts (bool defaultValue=false) const
 
bool showBrushHud (bool defaultValue=false) const
 
bool showCanvasMessages (bool defaultValue=false) const
 
bool showDockers (bool defaultValue=false) const
 
bool showDockerTitleBars (bool defaultValue=false) const
 
bool showEraserOutlineWhilePainting (bool defaultValue=false) const
 
bool showFilterGallery (bool defaultValue=false) const
 
bool showFilterGalleryLayerMaskDialog (bool defaultValue=false) const
 
bool showGlobalSelection (bool defaultValue=false) const
 
bool showOutlineWhilePainting (bool defaultValue=false) const
 
bool showPaletteBottomBar (bool defaultValue=false) const
 
bool showRootLayer (bool defaultValue=false) const
 
bool showRulers (bool defaultValue=false) const
 
bool showSingleChannelAsColor (bool defaultValue=false) const
 
bool showStatusBar (bool defaultValue=false) const
 
bool sliderLabels (bool defaultValue=false) const
 
bool stabilizerDelayedPaint (bool defaultValue=false) const
 
int stabilizerSampleSize (bool defaultValue=false) const
 
bool switchSelectionCtrlAlt (bool defaultValue=false) const
 
int tabletEventsDelay (bool defaultValue=false) const
 
bool testingAcceptCompressedTabletEvents (bool defaultValue=false) const
 
bool testingCompressBrushEvents (bool defaultValue=false) const
 
int textureOverlapBorder () const
 
qreal timelineZoom (bool defaultValue=false) const
 
QString toolbarSlider (int sliderNumber, bool defaultValue=false) const
 
bool toolOptionsInDocker (bool defaultValue=false) const
 
bool toolOptionsPopupDetached (bool defaultValue=false) const
 
TouchPainting touchPainting (bool defaultValue=false) const
 
bool trackTabletEventLatency (bool defaultValue=false) const
 
bool trimFramesImport (bool defaultValue=false) const
 
bool trimKra (bool defaultValue=false) const
 
bool undoEnabled (bool defaultValue=false) const
 
int undoStackLimit (bool defaultValue=false) const
 
bool useBlackPointCompensation (bool defaultValue=false) const
 
bool useCumulativeUndoRedo (bool defaultValue=false) const
 
bool useDefaultColorSpace (bool defaultvalue=false) const
 
bool useDirtyPresets (bool defaultValue=false) const
 
bool useEraserBrushOpacity (bool defaultValue=false) const
 
bool useEraserBrushSize (bool defaultValue=false) const
 
bool useInlineLayerInfoText (bool defaultValue=false) const
 
bool useLayerSelectionCheckbox (bool defaultValue=false) const
 
bool useOcio (bool defaultValue=false) const
 
bool useOpenGL (bool defaultValue=false) const
 
bool useOpenGLTextureBuffer (bool defaultValue=false) const
 
bool useProjections (bool defaultValue=false) const
 
bool useRightMiddleTabletButtonWorkaround (bool defaultValue=false) const
 
bool useSystemMonitorProfile (bool defaultValue=false) const
 
bool useWin8PointerInput (bool defaultValue=false) const
 
bool useZip64 (bool defaultValue=false) const
 
qreal vastScrolling (bool defaultValue=false) const
 
int verticalSplitLines (bool defaultValue=false) const
 
QString widgetStyle (bool defaultValue=false)
 
int workaroundX11SmoothPressureSteps (bool defaultValue=false) const
 
QString workingColorSpace (bool defaultValue=false) const
 
template<class T >
void writeEntry (const QString &name, const T &value)
 
void writeKoColor (const QString &name, const KoColor &color) const
 
void writeKoColors (const QString &name, const QList< KoColor > &colors) const
 
template<class T >
void writeList (const QString &name, const QList< T > &value)
 
bool zoomHorizontal (bool defaultValue=false) const
 
int zoomMarginSize (bool defaultValue=false) const
 
int zoomSteps (bool defaultValue=false) const
 
 ~KisConfig ()
 

Static Public Member Functions

static CanvasSurfaceBitDepthMode canvasSurfaceBitDepthMode (QSettings *settings, bool defaultValue=false)
 
static const KoColorProfilegetScreenProfile (int screen)
 get the profile the color management system has stored for the given screen
 
static bool preferXcbEglProvider (const QSettings *settings, bool defaultValue=false)
 
static RootSurfaceFormat rootSurfaceFormat (QSettings *displayrc, bool defaultValue=false)
 
static void setCanvasSurfaceBitDepthMode (QSettings *settings, CanvasSurfaceBitDepthMode value)
 
static void setRootSurfaceFormat (QSettings *displayrc, RootSurfaceFormat value)
 
static void setUseWin8PointerInputNoApp (QSettings *settings, bool value)
 
static bool useWin8PointerInputNoApp (QSettings *settings, bool defaultValue=false)
 

Private Member Functions

 KisConfig (const KisConfig &)
 
KisConfigoperator= (const KisConfig &) const
 

Private Attributes

KConfigGroup m_cfg
 
bool m_readOnly
 

Detailed Description

Definition at line 30 of file kis_config.h.

Member Enumeration Documentation

◆ AssistantsDrawMode

Enumerator
ASSISTANTS_DRAW_MODE_DIRECT 
ASSISTANTS_DRAW_MODE_PIXMAP_CACHE 
ASSISTANTS_DRAW_MODE_LARGE_PIXMAP_CACHE 

Definition at line 801 of file kis_config.h.

801 {
802 ASSISTANTS_DRAW_MODE_DIRECT = 0, // no caching, draw directly on canvas
805 };
@ ASSISTANTS_DRAW_MODE_PIXMAP_CACHE
Definition kis_config.h:803
@ ASSISTANTS_DRAW_MODE_DIRECT
Definition kis_config.h:802
@ ASSISTANTS_DRAW_MODE_LARGE_PIXMAP_CACHE
Definition kis_config.h:804

◆ BackgroundStyle

Enumerator
RASTER_LAYER 
CANVAS_COLOR 
FILL_LAYER 

Definition at line 564 of file kis_config.h.

564 {
565 RASTER_LAYER = 0,
566 CANVAS_COLOR = 1,
567 FILL_LAYER = 2
568 };

◆ CanvasSurfaceBitDepthMode

Enumerator
DepthAuto 
Depth8Bit 
Depth10Bit 

Definition at line 189 of file kis_config.h.

◆ CanvasSurfaceMode

enum class KisConfig::CanvasSurfaceMode
strong
Enumerator
Preferred 
Rec709g22 
Rec709g10 
Rec2020pq 
Unmanaged 

Definition at line 173 of file kis_config.h.

◆ ColorSamplerPreviewStyle

Enumerator
None 
Circle 
RectangleLeft 
RectangleRight 
RectangleAbove 
Count 

Definition at line 138 of file kis_config.h.

◆ LayerInfoTextStyle

Enumerator
INFOTEXT_NONE 
INFOTEXT_SIMPLE 
INFOTEXT_BALANCED 
INFOTEXT_DETAILED 

Definition at line 783 of file kis_config.h.

783 {
784 INFOTEXT_NONE = 0,
788 };
@ INFOTEXT_SIMPLE
Definition kis_config.h:785
@ INFOTEXT_BALANCED
Definition kis_config.h:786
@ INFOTEXT_DETAILED
Definition kis_config.h:787

◆ OcioColorManagementMode

Enumerator
INTERNAL 
OCIO_CONFIG 
OCIO_ENVIRONMENT 

Definition at line 505 of file kis_config.h.

505 {
506 INTERNAL = 0,
509 };
@ OCIO_ENVIRONMENT
Definition kis_config.h:508

◆ RootSurfaceFormat

Enumerator
BT709_G22 
BT709_G10 
BT2020_PQ 

Definition at line 763 of file kis_config.h.

763 {
764 BT709_G22 = 0,
765 BT709_G10,
767 };

◆ SessionOnStartup

Enumerator
SOS_BlankSession 
SOS_PreviousSession 
SOS_ShowSessionManager 

Definition at line 369 of file kis_config.h.

369 {
373 };
@ SOS_PreviousSession
Definition kis_config.h:371
@ SOS_ShowSessionManager
Definition kis_config.h:372
@ SOS_BlankSession
Definition kis_config.h:370

◆ TouchPainting

Enumerator
TOUCH_PAINTING_AUTO 
TOUCH_PAINTING_ENABLED 
TOUCH_PAINTING_DISABLED 

Definition at line 47 of file kis_config.h.

Constructor & Destructor Documentation

◆ KisConfig() [1/2]

KisConfig::KisConfig ( bool readOnly)

KisConfig create a kisconfig object.

Parameters
readOnlyif true, there will be no call to sync when the object is deleted. Any KisConfig object created in a thread must be read-only.

Definition at line 56 of file kis_config.cc.

57 : m_cfg( KSharedConfig::openConfig()->group(""))
58 , m_readOnly(readOnly)
59{
60 if (!readOnly) {
61 KIS_SAFE_ASSERT_RECOVER_RETURN(qApp && qApp->thread() == QThread::currentThread());
62 }
63}
KConfigGroup m_cfg
Definition kis_config.h:850
bool m_readOnly
Definition kis_config.h:851
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
Definition kis_assert.h:128

References KIS_SAFE_ASSERT_RECOVER_RETURN.

◆ ~KisConfig()

KisConfig::~KisConfig ( )

Definition at line 65 of file kis_config.cc.

66{
67 if (m_readOnly) return;
68
69 if (qApp && qApp->thread() != QThread::currentThread()) {
70 dbgKrita.noquote() << "WARNING: KisConfig: requested config synchronization from nonGUI thread! Called from:" << kisBacktrace();
71 return;
72 }
73
74 m_cfg.sync();
75}
QString kisBacktrace()
Definition kis_debug.cpp:51
#define dbgKrita
Definition kis_debug.h:45

References dbgKrita, kisBacktrace(), m_cfg, and m_readOnly.

◆ KisConfig() [2/2]

KisConfig::KisConfig ( const KisConfig & )
private

Member Function Documentation

◆ activateTransformToolAfterPaste()

bool KisConfig::activateTransformToolAfterPaste ( bool defaultValue = false) const

Definition at line 2758 of file kis_config.cc.

2759{
2760 return defaultValue ? false : m_cfg.readEntry("activateTransformToolAfterPaste", false);
2761}

References m_cfg.

◆ adaptivePlaybackRange()

bool KisConfig::adaptivePlaybackRange ( bool defaultValue = false) const

Definition at line 2573 of file kis_config.cc.

2574{
2575 return (defaultValue ? true : m_cfg.readEntry("adaptivePlaybackRange", true));
2576}
T readEntry(const QString &name, const T &defaultValue=T())
Definition kis_config.h:832

References m_cfg.

◆ allowLCMSOptimization()

bool KisConfig::allowLCMSOptimization ( bool defaultValue = false) const

Definition at line 965 of file kis_config.cc.

966{
967 return (defaultValue ? true : m_cfg.readEntry("allowLCMSOptimization", true));
968}

References m_cfg.

◆ animationDropFrames()

bool KisConfig::animationDropFrames ( bool defaultValue = false) const

Definition at line 2611 of file kis_config.cc.

2612{
2613 return (defaultValue ? true : m_cfg.readEntry("animationDropFrames", true));
2614}

References m_cfg.

◆ animationPlaybackBackend()

int KisConfig::animationPlaybackBackend ( bool defaultValue = false) const

Definition at line 2548 of file kis_config.cc.

2549{
2550 return (defaultValue ? 1 : m_cfg.readEntry("animationPlaybackBackend", 1));
2551}

References m_cfg.

◆ antialiasCurves()

bool KisConfig::antialiasCurves ( bool defaultValue = false) const

Definition at line 1388 of file kis_config.cc.

1389{
1390 return (defaultValue ? true : m_cfg.readEntry("antialiascurves", true));
1391}

References m_cfg.

◆ antialiasSelectionOutline()

bool KisConfig::antialiasSelectionOutline ( bool defaultValue = false) const

Definition at line 1398 of file kis_config.cc.

1399{
1400 return (defaultValue ? false : m_cfg.readEntry("AntialiasSelectionOutline", false));
1401}

References m_cfg.

◆ assistantsDrawMode()

KisConfig::AssistantsDrawMode KisConfig::assistantsDrawMode ( bool defaultValue = false) const

Definition at line 2897 of file kis_config.cc.

2898{
2899 if (defaultValue) {
2901 }
2902
2903 return static_cast<AssistantsDrawMode>(
2904 m_cfg.readEntry("assistantsDrawMode", static_cast<int>(ASSISTANTS_DRAW_MODE_DIRECT)));
2905}

References ASSISTANTS_DRAW_MODE_DIRECT, and m_cfg.

◆ audioOffsetTolerance()

int KisConfig::audioOffsetTolerance ( bool defaultValue = false) const

Definition at line 2636 of file kis_config.cc.

2637{
2638 return (defaultValue ? -1 : m_cfg.readEntry("audioOffsetTolerance", -1));
2639}

References m_cfg.

◆ autoPinLayersToTimeline()

bool KisConfig::autoPinLayersToTimeline ( bool defaultValue = false) const

Definition at line 2563 of file kis_config.cc.

2564{
2565 return (defaultValue ? true : m_cfg.readEntry("autoPinLayers", true));
2566}

References m_cfg.

◆ autoSaveInterval()

int KisConfig::autoSaveInterval ( bool defaultValue = false) const

Definition at line 1521 of file kis_config.cc.

1522{
1523 int def = 7 * 60;
1524 return (defaultValue ? def : m_cfg.readEntry("AutoSaveInterval", def));
1525}

References m_cfg.

◆ autoSmoothBezierCurves()

bool KisConfig::autoSmoothBezierCurves ( bool defaultValue = false) const

Definition at line 2748 of file kis_config.cc.

2749{
2750 return defaultValue ? false : m_cfg.readEntry("autoSmoothBezierCurves", false);
2751}

References m_cfg.

◆ autoZoomTimelineToPlaybackRange()

bool KisConfig::autoZoomTimelineToPlaybackRange ( bool defaultValue = false) const

Definition at line 2583 of file kis_config.cc.

2584{
2585 return (defaultValue ? true : m_cfg.readEntry("autoZoomTimelineToPlaybackRange", true));
2586}

References m_cfg.

◆ backupFile()

bool KisConfig::backupFile ( bool defaultValue = false) const

Definition at line 1532 of file kis_config.cc.

1533{
1534 return (defaultValue ? true : m_cfg.readEntry("CreateBackupFile", true));
1535}

References m_cfg.

◆ brushHudSetting()

QString KisConfig::brushHudSetting ( bool defaultValue = false) const

Definition at line 2716 of file kis_config.cc.

2717{
2718 QString defaultDoc = "<!DOCTYPE hud_properties>\n<hud_properties>\n <version value=\"1\" type=\"value\"/>\n <paintbrush>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n <item_2 value=\"angle\" type=\"value\"/>\n </properties_list>\n </paintbrush>\n <colorsmudge>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n <item_2 value=\"smudge_mode\" type=\"value\"/>\n <item_3 value=\"smudge_length\" type=\"value\"/>\n <item_4 value=\"smudge_color_rate\" type=\"value\"/>\n </properties_list>\n </colorsmudge>\n <sketchbrush>\n <properties_list type=\"array\">\n <item_0 value=\"opacity\" type=\"value\"/>\n <item_1 value=\"size\" type=\"value\"/>\n </properties_list>\n </sketchbrush>\n <hairybrush>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n </properties_list>\n </hairybrush>\n <experimentbrush>\n <properties_list type=\"array\">\n <item_0 value=\"opacity\" type=\"value\"/>\n <item_1 value=\"shape_windingfill\" type=\"value\"/>\n </properties_list>\n </experimentbrush>\n <spraybrush>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n <item_2 value=\"spray_particlecount\" type=\"value\"/>\n <item_3 value=\"spray_density\" type=\"value\"/>\n </properties_list>\n </spraybrush>\n <hatchingbrush>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n <item_2 value=\"hatching_angle\" type=\"value\"/>\n <item_3 value=\"hatching_thickness\" type=\"value\"/>\n <item_4 value=\"hatching_separation\" type=\"value\"/>\n </properties_list>\n </hatchingbrush>\n <gridbrush>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n <item_2 value=\"grid_divisionlevel\" type=\"value\"/>\n </properties_list>\n </gridbrush>\n <curvebrush>\n <properties_list type=\"array\">\n <item_0 value=\"opacity\" type=\"value\"/>\n <item_1 value=\"curve_historysize\" type=\"value\"/>\n <item_2 value=\"curve_linewidth\" type=\"value\"/>\n <item_3 value=\"curve_lineopacity\" type=\"value\"/>\n <item_4 value=\"curve_connectionline\" type=\"value\"/>\n </properties_list>\n </curvebrush>\n <dynabrush>\n <properties_list type=\"array\">\n <item_0 value=\"dyna_diameter\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n <item_2 value=\"dyna_mass\" type=\"value\"/>\n <item_3 value=\"dyna_drag\" type=\"value\"/>\n </properties_list>\n </dynabrush>\n <particlebrush>\n <properties_list type=\"array\">\n <item_0 value=\"opacity\" type=\"value\"/>\n <item_1 value=\"particle_particles\" type=\"value\"/>\n <item_2 value=\"particle_opecityweight\" type=\"value\"/>\n <item_3 value=\"particle_iterations\" type=\"value\"/>\n </properties_list>\n </particlebrush>\n <duplicate>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n <item_2 value=\"clone_healing\" type=\"value\"/>\n <item_3 value=\"clone_movesource\" type=\"value\"/>\n </properties_list>\n </duplicate>\n <deformbrush>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n <item_2 value=\"deform_amount\" type=\"value\"/>\n <item_3 value=\"deform_mode\" type=\"value\"/>\n </properties_list>\n </deformbrush>\n <tangentnormal>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n </properties_list>\n </tangentnormal>\n <filter>\n <properties_list type=\"array\">\n <item_0 value=\"size\" type=\"value\"/>\n <item_1 value=\"opacity\" type=\"value\"/>\n </properties_list>\n </filter>\n <roundmarker>\n <properties_list type=\"array\">\n <item_0 vlue=\"opacity\" type=\"value\"/>\n <item_1 value=\"size\" type=\"value\"/>\n </properties_list>\n </roundmarker>\n</hud_properties>\n";
2719 return defaultValue ? defaultDoc : m_cfg.readEntry("brushHudSettings", defaultDoc);
2720}

References m_cfg.

◆ calculateAnimationCacheInBackground()

bool KisConfig::calculateAnimationCacheInBackground ( bool defaultValue = false) const

Definition at line 2727 of file kis_config.cc.

2728{
2729 return defaultValue ? true : m_cfg.readEntry("calculateAnimationCacheInBackground", true);
2730}

References m_cfg.

◆ canvasBorderColor()

QColor KisConfig::canvasBorderColor ( bool defaultValue = false) const

Definition at line 1336 of file kis_config.cc.

1337{
1338 QColor color(QColor(128,128,128));
1339 return (defaultValue ? color : m_cfg.readEntry("canvasBorderColor", color));
1340}

References m_cfg.

◆ canvasState()

QString KisConfig::canvasState ( bool defaultValue = false) const

Definition at line 1562 of file kis_config.cc.

1563{
1564 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
1565 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
1566 return (defaultValue ? "OPENGL_NOT_TRIED" : kritarc.value("canvasState", "OPENGL_NOT_TRIED").toString());
1567}
float value(const T *src, size_t ch)
QString toString(const QString &value)

◆ canvasSurfaceBitDepthMode() [1/2]

KisConfig::CanvasSurfaceBitDepthMode KisConfig::canvasSurfaceBitDepthMode ( bool defaultValue = false) const

Definition at line 753 of file kis_config.cc.

754{
755 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
756 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
757 return canvasSurfaceBitDepthMode(&kritarc, defaultValue);
758}
static CanvasSurfaceBitDepthMode canvasSurfaceBitDepthMode(QSettings *settings, bool defaultValue=false)

References canvasSurfaceBitDepthMode().

◆ canvasSurfaceBitDepthMode() [2/2]

KisConfig::CanvasSurfaceBitDepthMode KisConfig::canvasSurfaceBitDepthMode ( QSettings * settings,
bool defaultValue = false )
static

Definition at line 719 of file kis_config.cc.

720{
721 QString modeStr = defaultValue ? "auto" : settings->value("canvasSurfaceBitDepthMode", "auto").toString();
722
723 if (modeStr == "auto") {
725 } else if (modeStr == "8bit") {
727 } else if (modeStr == "10bit") {
729 }
730
732}

References Depth10Bit, Depth8Bit, and DepthAuto.

◆ canvasSurfaceColorSpaceManagementMode()

KisConfig::CanvasSurfaceMode KisConfig::canvasSurfaceColorSpaceManagementMode ( bool defaultValue = false) const

The user-selected mode for the canvas color management mode. The value is meaningful when the operating system supports managed surfaces mode and if the canvas has native surface under it.

Definition at line 676 of file kis_config.cc.

676 {
677 QString modeStr = defaultValue ? "preferred" : m_cfg.readEntry("canvasSurfaceColorSpaceManagementMode", "preferred");
678
679 if (modeStr == "preferred") {
681 } else if (modeStr == "rec709g22") {
683 } else if (modeStr == "rec709g10") {
685 } else if (modeStr == "rec2020pq") {
687 } else if (modeStr == "unmanaged") {
689 } else {
691 }
692}

References m_cfg, Preferred, Rec2020pq, Rec709g10, Rec709g22, and Unmanaged.

◆ checkersColor1()

QColor KisConfig::checkersColor1 ( bool defaultValue = false) const

Definition at line 1367 of file kis_config.cc.

1368{
1369 QColor col(220, 220, 220);
1370 return (defaultValue ? col : m_cfg.readEntry("checkerscolor", col));
1371}

References m_cfg.

◆ checkersColor2()

QColor KisConfig::checkersColor2 ( bool defaultValue = false) const

Definition at line 1378 of file kis_config.cc.

1379{
1380 return (defaultValue ? QColor(Qt::white) : m_cfg.readEntry("checkerscolor2", QColor(Qt::white)));
1381}

References m_cfg.

◆ checkSize()

qint32 KisConfig::checkSize ( bool defaultValue = false) const

Definition at line 1311 of file kis_config.cc.

1312{
1313 qint32 size = (defaultValue ? 32 : m_cfg.readEntry("checksize", 32));
1314 if (size == 0) size = 32;
1315 return size;
1316}
int size(const Forest< T > &forest)
Definition KisForest.h:1232

References m_cfg.

◆ clicklessSpacePan()

bool KisConfig::clicklessSpacePan ( bool defaultValue = false) const

Definition at line 1768 of file kis_config.cc.

1769{
1770 return (defaultValue ? true : m_cfg.readEntry("clicklessSpacePan", true));
1771}

References m_cfg.

◆ colorHistoryPerDocument()

bool KisConfig::colorHistoryPerDocument ( bool defaultValue = false) const

Definition at line 985 of file kis_config.cc.

986{
987 KConfigGroup cfg = KSharedConfig::openConfig()->group("advancedColorSelector");
988 return (defaultValue ? false : cfg.readEntry("lastUsedColorsPerDocument", false));
989}

◆ colorSamplerPreviewCircleDiameter()

int KisConfig::colorSamplerPreviewCircleDiameter ( bool defaultValue = false) const

Definition at line 544 of file kis_config.cc.

545{
546 int def = 180;
547 if (!defaultValue) {
548 return m_cfg.readEntry("colorSamplerPreviewCircleDiameter", def);
549 }
550 return def;
551}

References m_cfg.

◆ colorSamplerPreviewCircleExtraCirclesEnabled()

bool KisConfig::colorSamplerPreviewCircleExtraCirclesEnabled ( bool defaultValue = false) const

Definition at line 586 of file kis_config.cc.

587{
588 bool def = true;
589 if (!defaultValue) {
590 return m_cfg.readEntry("colorSamplerPreviewCircleExtraCirclesEnabled", def);
591 }
592 return def;
593}

References m_cfg.

◆ colorSamplerPreviewCircleOutlineEnabled()

bool KisConfig::colorSamplerPreviewCircleOutlineEnabled ( bool defaultValue = false) const

Definition at line 572 of file kis_config.cc.

573{
574 bool def = true;
575 if (!defaultValue) {
576 return m_cfg.readEntry("colorSamplerPreviewCircleOutlineEnabled", def);
577 }
578 return def;
579}

References m_cfg.

◆ colorSamplerPreviewCircleThickness()

qreal KisConfig::colorSamplerPreviewCircleThickness ( bool defaultValue = false) const

Definition at line 558 of file kis_config.cc.

559{
560 qreal def = 12; // percentage
561 if (!defaultValue) {
562 return m_cfg.readEntry("colorSamplerPreviewCircleThickness", def);
563 }
564 return def;
565}

References m_cfg.

◆ colorSamplerPreviewStyle()

KisConfig::ColorSamplerPreviewStyle KisConfig::colorSamplerPreviewStyle ( bool defaultValue = false) const

Definition at line 527 of file kis_config.cc.

528{
529 if (!defaultValue) {
530 int style = m_cfg.readEntry("colorSamplerPreviewStyle", int(ColorSamplerPreviewStyle::Circle));
531 if (style >= 0 && style < int(ColorSamplerPreviewStyle::Count)) {
532 return ColorSamplerPreviewStyle(style);
533 }
534 }
536}
ColorSamplerPreviewStyle
Definition kis_config.h:138

References Circle, Count, and m_cfg.

◆ compressKra()

bool KisConfig::compressKra ( bool defaultValue = false) const

Definition at line 2355 of file kis_config.cc.

2356{
2357 return (defaultValue ? false : m_cfg.readEntry("compressLayersInKra", false));
2358}

References m_cfg.

◆ convertLayerColorSpaceInProperties()

bool KisConfig::convertLayerColorSpaceInProperties ( bool defaultValue = false) const

Definition at line 2837 of file kis_config.cc.

2838{
2839 return defaultValue ? true : m_cfg.readEntry("convertLayerColorSpaceInProperties", true);
2840}

References m_cfg.

◆ convertToImageColorspaceOnImport()

bool KisConfig::convertToImageColorspaceOnImport ( bool defaultValue = false) const

Definition at line 2656 of file kis_config.cc.

2657{
2658 return defaultValue ? false : m_cfg.readEntry("ConvertToImageColorSpaceOnImport", false);
2659}

References m_cfg.

◆ cumulativeUndoData()

KisCumulativeUndoData KisConfig::cumulativeUndoData ( bool defaultValue = false) const

Definition at line 213 of file kis_config.cc.

214{
215 if (defaultValue) {
217 }
218
220 data.read(&m_cfg);
221 return data;
222}
static const KisCumulativeUndoData defaultValue
bool read(const KConfigGroup *config)

References KisCumulativeUndoData::defaultValue, m_cfg, and KisCumulativeUndoData::read().

◆ currentInputProfile()

QString KisConfig::currentInputProfile ( bool defaultValue = false) const

Definition at line 2075 of file kis_config.cc.

2076{
2077 return (defaultValue ? QString() : m_cfg.readEntry("currentInputProfile", QString()));
2078}

References m_cfg.

◆ customColorSelectorColorSpace()

const KoColorSpace * KisConfig::customColorSelectorColorSpace ( bool defaultValue = false) const

Definition at line 2470 of file kis_config.cc.

2471{
2472 const KoColorSpace *cs = 0;
2473
2474 KConfigGroup cfg = KSharedConfig::openConfig()->group("advancedColorSelector");
2475 if (defaultValue || cfg.readEntry("useCustomColorSpace", true)) {
2477 QString modelID = cfg.readEntry("customColorSpaceModel", "RGBA");
2478 QString depthID = cfg.readEntry("customColorSpaceDepthID", "U8");
2479 QString profile = cfg.readEntry("customColorSpaceProfile", "sRGB built-in - (lcms internal)");
2480 if (profile == "default") {
2481 // qDebug() << "Falling back to default color profile.";
2482 profile = "sRGB built-in - (lcms internal)";
2483 }
2484 cs = csr->colorSpace(modelID, depthID, profile);
2485 }
2486
2487 return cs;
2488}
const KoColorSpace * colorSpace(const QString &colorModelId, const QString &colorDepthId, const KoColorProfile *profile)
static KoColorSpaceRegistry * instance()

References KoColorSpaceRegistry::colorSpace(), and KoColorSpaceRegistry::instance().

◆ defaultAssistantsColor()

QColor KisConfig::defaultAssistantsColor ( bool defaultValue = false) const

Definition at line 2737 of file kis_config.cc.

2738{
2739 static const QColor defaultColor = QColor(176, 176, 176, 255);
2740 return defaultValue ? defaultColor : m_cfg.readEntry("defaultAssistantsColor", defaultColor);
2741}

References m_cfg.

◆ defaultBackgroundColor()

QColor KisConfig::defaultBackgroundColor ( bool defaultValue = false) const

Definition at line 2155 of file kis_config.cc.

2156{
2157 return (defaultValue ? QColor(Qt::white) : m_cfg.readEntry("BackgroundColorForNewImage", QColor(Qt::white)));
2158}

References m_cfg.

◆ defaultBackgroundOpacity()

quint8 KisConfig::defaultBackgroundOpacity ( bool defaultValue = false) const

Definition at line 2145 of file kis_config.cc.

2146{
2147 return (defaultValue ? (int)OPACITY_OPAQUE_U8 : m_cfg.readEntry("BackgroundOpacityForNewImage", (int)OPACITY_OPAQUE_U8));
2148}
const quint8 OPACITY_OPAQUE_U8

References m_cfg, and OPACITY_OPAQUE_U8.

◆ defaultBackgroundStyle()

KisConfig::BackgroundStyle KisConfig::defaultBackgroundStyle ( bool defaultValue = false) const

Definition at line 2165 of file kis_config.cc.

2166{
2167 return (KisConfig::BackgroundStyle)(defaultValue ? RASTER_LAYER : m_cfg.readEntry("BackgroundStyleForNewImage", (int)RASTER_LAYER));
2168}

References m_cfg, and RASTER_LAYER.

◆ defaultColorDepth()

QString KisConfig::defaultColorDepth ( bool defaultValue = false) const
Returns
the id of the default color depth used for creating new images.

Definition at line 255 of file kis_config.cc.

256{
257 return (defaultValue ? KoColorSpaceRegistry::instance()->rgb8()->colorDepthId().id()
258 : m_cfg.readEntry("colorDepthDef", KoColorSpaceRegistry::instance()->rgb8()->colorDepthId().id()));
259}
PythonPluginManager * instance

References KoColorSpaceRegistry::instance(), and m_cfg.

◆ defaultPalette()

QString KisConfig::defaultPalette ( bool defaultValue = false) const

Definition at line 2018 of file kis_config.cc.

2019{
2020 return (defaultValue ? QString() : m_cfg.readEntry("defaultPalette", "Default"));
2021}

References m_cfg.

◆ defColorModel() [1/2]

QString KisConfig::defColorModel ( bool defaultValue = false) const
Returns
the id of the default color model used for creating new images.

Definition at line 244 of file kis_config.cc.

245{
246 return (defaultValue ? KoColorSpaceRegistry::instance()->rgb8()->colorModelId().id()
247 : m_cfg.readEntry("colorModelDef", KoColorSpaceRegistry::instance()->rgb8()->colorModelId().id()));
248}

References KoColorSpaceRegistry::instance(), and m_cfg.

◆ defColorModel() [2/2]

void KisConfig::defColorModel ( const QString & model) const

set the id of the default color model used for creating new images.

Definition at line 250 of file kis_config.cc.

251{
252 m_cfg.writeEntry("colorModelDef", model);
253}

References m_cfg.

◆ defColorProfile() [1/2]

QString KisConfig::defColorProfile ( bool defaultValue = false) const
Returns
the id of the default color profile used for creating new images.

Definition at line 266 of file kis_config.cc.

267{
268 return (defaultValue ? KoColorSpaceRegistry::instance()->rgb8()->profile()->name() :
269 m_cfg.readEntry("colorProfileDef",
270 KoColorSpaceRegistry::instance()->rgb8()->profile()->name()));
271}
const char * name(StandardAction id)

References KoColorSpaceRegistry::instance(), and m_cfg.

◆ defColorProfile() [2/2]

void KisConfig::defColorProfile ( const QString & depth) const

set the id of the default color profile used for creating new images.

Definition at line 273 of file kis_config.cc.

274{
275 m_cfg.writeEntry("colorProfileDef", profile);
276}

References m_cfg.

◆ defImageHeight() [1/2]

qint32 KisConfig::defImageHeight ( bool defaultValue = false) const

Definition at line 234 of file kis_config.cc.

235{
236 return (defaultValue ? 3508 : m_cfg.readEntry("imageHeightDef", 3508));
237}

References m_cfg.

◆ defImageHeight() [2/2]

void KisConfig::defImageHeight ( qint32 height) const

Definition at line 283 of file kis_config.cc.

284{
285 m_cfg.writeEntry("imageHeightDef", height);
286}

References m_cfg.

◆ defImageResolution() [1/2]

qreal KisConfig::defImageResolution ( bool defaultValue = false) const

Definition at line 239 of file kis_config.cc.

240{
241 return (defaultValue ? 300.0 : m_cfg.readEntry("imageResolutionDef", 300.0)) / 72.0;
242}

References m_cfg.

◆ defImageResolution() [2/2]

void KisConfig::defImageResolution ( qreal res) const

Definition at line 288 of file kis_config.cc.

289{
290 m_cfg.writeEntry("imageResolutionDef", res*72.0);
291}

References m_cfg.

◆ defImageWidth() [1/2]

qint32 KisConfig::defImageWidth ( bool defaultValue = false) const

Definition at line 229 of file kis_config.cc.

230{
231 return (defaultValue ? 2480 : m_cfg.readEntry("imageWidthDef", 2480));
232}

References m_cfg.

◆ defImageWidth() [2/2]

void KisConfig::defImageWidth ( qint32 width) const

Definition at line 278 of file kis_config.cc.

279{
280 m_cfg.writeEntry("imageWidthDef", width);
281}

References m_cfg.

◆ disableAVXOptimizations()

bool KisConfig::disableAVXOptimizations ( bool defaultValue = false) const

Definition at line 2538 of file kis_config.cc.

2539{
2540 return (defaultValue ? false : m_cfg.readEntry("disableAVXOptimizations", false));
2541}

References m_cfg.

◆ disableOpenGL()

void KisConfig::disableOpenGL ( ) const

Definition at line 1078 of file kis_config.cc.

1079{
1080 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
1081 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
1082
1083 kritarc.setValue("OpenGLRenderer", "none");
1084}

◆ disableTouchOnCanvas()

bool KisConfig::disableTouchOnCanvas ( ) const

Definition at line 158 of file kis_config.cc.

159{
160 switch (touchPainting()) {
162 return false;
164 return true;
165 default:
166 // Automatic detection: enable or disable touch input based on whether
167 // we've received a tablet input during this session and therefore know
168 // that the user has a pen available.
170 }
171}
TouchPainting touchPainting(bool defaultValue=false) const
static bool tabletInputReceived()

References KoPointerEvent::tabletInputReceived(), TOUCH_PAINTING_DISABLED, TOUCH_PAINTING_ENABLED, and touchPainting().

◆ disableVectorOptimizations()

bool KisConfig::disableVectorOptimizations ( bool defaultValue = false) const

Definition at line 2527 of file kis_config.cc.

2528{
2529 // use the old key name for compatibility
2530 return (defaultValue ? false : m_cfg.readEntry("amdDisableVectorWorkaround", false));
2531}

References m_cfg.

◆ displayProfile()

const KoColorProfile * KisConfig::displayProfile ( int screen) const

Get the actual profile to be used for the given screen, which is either the screen profile set by the color management system or the custom monitor profile set by the user, depending on the configuration

Definition at line 857 of file kis_config.cc.

858{
859 if (screen < 0) return 0;
860
861 // if the user plays with the settings, they can override the display profile, in which case
862 // we don't want the system setting.
863 bool override = useSystemMonitorProfile();
864 //dbgKrita << "KisConfig::displayProfile(). Override X11:" << override;
865 const KoColorProfile *profile = 0;
866 if (override) {
867 //dbgKrita << "\tGoing to get the screen profile";
868 profile = KisConfig::getScreenProfile(screen);
869 }
870
871 // if it fails. check the configuration
872 if (!profile || !profile->isSuitableForDisplay()) {
873 //dbgKrita << "\tGoing to get the monitor profile";
874 QString monitorProfileName = monitorProfile(screen);
875 //dbgKrita << "\t\tmonitorProfileName:" << monitorProfileName;
876 if (!monitorProfileName.isEmpty()) {
877 profile = KoColorSpaceRegistry::instance()->profileByName(monitorProfileName);
878 }
879 if (profile) {
880 //dbgKrita << "\t\tsuitable for display" << profile->isSuitableForDisplay();
881 }
882 else {
883 //dbgKrita << "\t\tstill no profile";
884 }
885 }
886 // if we still don't have a profile, or the profile isn't suitable for display,
887 // we need to get a last-resort profile. the built-in sRGB is a good choice then.
888 if (!profile || !profile->isSuitableForDisplay()) {
889 //dbgKrita << "\tnothing worked, going to get sRGB built-in";
890 profile = KoColorSpaceRegistry::instance()->profileByName("sRGB Built-in");
891 }
892
893 if (profile) {
894 //dbgKrita << "\tKisConfig::displayProfile for screen" << screen << "is" << profile->name();
895 }
896 else {
897 //dbgKrita << "\tCouldn't get a display profile at all";
898 }
899
900 return profile;
901}
QString monitorProfile(int screen) const
get the profile the user has selected for the given screen
bool useSystemMonitorProfile(bool defaultValue=false) const
static const KoColorProfile * getScreenProfile(int screen)
get the profile the color management system has stored for the given screen
virtual bool isSuitableForDisplay() const =0
const KoColorProfile * profileByName(const QString &name) const

References getScreenProfile(), KoColorSpaceRegistry::instance(), KoColorProfile::isSuitableForDisplay(), monitorProfile(), KoColorSpaceRegistry::profileByName(), and useSystemMonitorProfile().

◆ effectiveCanvasSurfaceBitDepthMode()

KisConfig::CanvasSurfaceBitDepthMode KisConfig::effectiveCanvasSurfaceBitDepthMode ( const QSurfaceFormat & format) const

Definition at line 767 of file kis_config.cc.

768{
769 auto mode = canvasSurfaceBitDepthMode();
770
772 if (format.redBufferSize() == 10 &&
773 format.greenBufferSize() == 10 &&
774 format.blueBufferSize() == 10) {
775
777 } else {
779 }
780 }
781
782 return mode;
783}

References canvasSurfaceBitDepthMode(), Depth10Bit, Depth8Bit, and DepthAuto.

◆ enableBrushSpeedLogging()

bool KisConfig::enableBrushSpeedLogging ( bool defaultValue = false) const

Definition at line 2511 of file kis_config.cc.

2512{
2513 return (defaultValue ? false : m_cfg.readEntry("enableBrushSpeedLogging", false));
2514}

References m_cfg.

◆ enableCanvasSurfaceColorSpaceManagement()

bool KisConfig::enableCanvasSurfaceColorSpaceManagement ( bool defaultValue = false) const

Controls if the canvas should have a separate color managed surface. Even though the surface can be created on any platform the proper color management support for it may be not present (currently supported on Wayland only). To check if the current platform supports surface management mode, test if KisMainWindow::managedSurfaceProfile() is not null.

Definition at line 666 of file kis_config.cc.

667{
668 return (defaultValue ? true : m_cfg.readEntry("enableCanvasSurfaceColorSpaceManagement",true));
669}

References m_cfg.

◆ enableOpenGLFramerateLogging()

bool KisConfig::enableOpenGLFramerateLogging ( bool defaultValue = false) const

Definition at line 2501 of file kis_config.cc.

2502{
2503 return (defaultValue ? false : m_cfg.readEntry("enableOpenGLFramerateLogging", false));
2504}

References m_cfg.

◆ enablePixelGrid()

void KisConfig::enablePixelGrid ( bool v) const

Definition at line 1252 of file kis_config.cc.

1253{
1254 m_cfg.writeEntry("pixelGridEnabled", v);
1255}
qreal v

References m_cfg, and v.

◆ eraserCursorStyle()

CursorStyle KisConfig::eraserCursorStyle ( bool defaultValue = false) const

Definition at line 473 of file kis_config.cc.

474{
475 if (defaultValue) {
476 return CURSOR_STYLE_ERASER;
477 }
478
479 int style = m_cfg.readEntry("eraserCursorStyle", int(-1));
480
481 // compatibility with future versions
482 if (style < 0 || style >= N_CURSOR_STYLE_SIZE) {
483 style = CURSOR_STYLE_ERASER;
484 }
485
486 return (CursorStyle) style;
487}
CursorStyle
Definition kis_global.h:62
@ N_CURSOR_STYLE_SIZE
Definition kis_global.h:74
@ CURSOR_STYLE_ERASER
Definition kis_global.h:72

References CURSOR_STYLE_ERASER, m_cfg, and N_CURSOR_STYLE_SIZE.

◆ eraserOutlineStyle()

OutlineStyle KisConfig::eraserOutlineStyle ( bool defaultValue = false) const

Definition at line 506 of file kis_config.cc.

507{
508 if (defaultValue) {
509 return OUTLINE_FULL;
510 }
511
512 int style = m_cfg.readEntry("eraserOutlineStyle", int(-1));
513
514 // compatibility with future versions
515 if (style < 0 || style >= N_OUTLINE_STYLE_SIZE) {
516 style = OUTLINE_FULL;
517 }
518
519 return (OutlineStyle) style;
520}
OutlineStyle
Definition kis_global.h:53
@ N_OUTLINE_STYLE_SIZE
Definition kis_global.h:59
@ OUTLINE_FULL
Definition kis_global.h:56

References m_cfg, N_OUTLINE_STYLE_SIZE, and OUTLINE_FULL.

◆ exportConfiguration()

KisPropertiesConfigurationSP KisConfig::exportConfiguration ( const QString & filterId,
bool defaultValue = false ) const

Definition at line 1896 of file kis_config.cc.

1897{
1899 const QString xmlData = exportConfigurationXML(filterId, defaultValue);
1900 cfg->fromXML(xmlData);
1901 return cfg;
1902}
QString exportConfigurationXML(const QString &filterId, bool defaultValue=false) const

References exportConfigurationXML().

◆ exportConfigurationXML()

QString KisConfig::exportConfigurationXML ( const QString & filterId,
bool defaultValue = false ) const

Definition at line 1891 of file kis_config.cc.

1892{
1893 return (defaultValue ? QString() : m_cfg.readEntry("ExportConfiguration-" + filterId, QString()));
1894}

References m_cfg.

◆ exportMimeType()

QString KisConfig::exportMimeType ( bool defaultValue) const

Definition at line 2384 of file kis_config.cc.

2385{
2386 return (defaultValue ? 0 : m_cfg.readEntry("defaultExportMimeType", QString()));
2387}

References m_cfg.

◆ favoriteCompositeOps()

QStringList KisConfig::favoriteCompositeOps ( bool defaultValue = false) const

Definition at line 1879 of file kis_config.cc.

1880{
1881 return (defaultValue ? QStringList() :
1882 m_cfg.readEntry("favoriteCompositeOps",
1883 QString("normal,erase,multiply,burn,darken,add,dodge,screen,overlay,soft_light_svg,luminize,lighten,saturation,color,divide").split(',')));
1884}
QList< QString > QStringList
QList< KoSubpath * > split(const KoPathShape &path)

References m_cfg.

◆ favoritePresets()

int KisConfig::favoritePresets ( bool defaultValue = false) const

Definition at line 1936 of file kis_config.cc.

1937{
1938 return (defaultValue ? 10: m_cfg.readEntry("numFavoritePresets", 10));
1939}

References m_cfg.

◆ ffmpegLocation()

QString KisConfig::ffmpegLocation ( bool defaultValue = false) const

Definition at line 2593 of file kis_config.cc.

2593 {
2594 return (defaultValue ? "" : m_cfg.readEntry("ffmpegLocation", ""));
2595}

References m_cfg.

◆ firstRun()

bool KisConfig::firstRun ( bool defaultValue = false) const

Definition at line 1739 of file kis_config.cc.

1740{
1741 return (defaultValue ? true : m_cfg.readEntry("firstRun", true));
1742}

References m_cfg.

◆ forceAlwaysFullSizedEraserOutline()

bool KisConfig::forceAlwaysFullSizedEraserOutline ( bool defaultValue = false) const

Definition at line 1462 of file kis_config.cc.

1463{
1464 return (defaultValue ? false : m_cfg.readEntry("forceAlwaysFullSizedEraserOutline", false));
1465}

References m_cfg.

◆ forceAlwaysFullSizedOutline()

bool KisConfig::forceAlwaysFullSizedOutline ( bool defaultValue = false) const

Definition at line 1440 of file kis_config.cc.

1441{
1442 return (defaultValue ? false : m_cfg.readEntry("forceAlwaysFullSizedOutline", false));
1443}

References m_cfg.

◆ forceOpenGLFenceWorkaround()

bool KisConfig::forceOpenGLFenceWorkaround ( bool defaultValue = false) const

Definition at line 1140 of file kis_config.cc.

1141{
1142 return (defaultValue ? false : m_cfg.readEntry("forceOpenGLFenceWorkaround", false));
1143}

References m_cfg.

◆ forcePaletteColors()

bool KisConfig::forcePaletteColors ( bool defaultValue = false) const

Definition at line 975 of file kis_config.cc.

976{
977 return (defaultValue ? false : m_cfg.readEntry("colorsettings/forcepalettecolors", false));
978}

References m_cfg.

◆ forceShowAutosaveMessages()

bool KisConfig::forceShowAutosaveMessages ( bool defaultValue = true) const

Definition at line 1011 of file kis_config.cc.

1012{
1013 return (defaultValue ? false : m_cfg.readEntry("forceShowAutosaveMessages", false));
1014}

References m_cfg.

◆ forceShowSaveMessages()

bool KisConfig::forceShowSaveMessages ( bool defaultValue = true) const

Definition at line 1001 of file kis_config.cc.

1002{
1003 return (defaultValue ? false : m_cfg.readEntry("forceShowSaveMessages", false));
1004}

References m_cfg.

◆ fullscreenMode()

bool KisConfig::fullscreenMode ( bool defaultValue = false) const

Definition at line 1869 of file kis_config.cc.

1870{
1871 return (defaultValue ? true : m_cfg.readEntry("fullscreenMode", false));
1872}

References m_cfg.

◆ getCursorMainColor()

QColor KisConfig::getCursorMainColor ( bool defaultValue = false) const

Definition at line 384 of file kis_config.cc.

385{
386 QColor col;
387 col.setRgbF(1.0, 0.0, 1.0);
388 return (defaultValue ? col : m_cfg.readEntry("cursorMaincColor", col));
389}

References m_cfg.

◆ getDefaultGridSpacing()

QPoint KisConfig::getDefaultGridSpacing ( bool defaultValue = false) const

Definition at line 632 of file kis_config.cc.

633{
634 return (defaultValue ? QPoint(16, 16) : m_cfg.readEntry("defaultGridSpacing", QPoint(16, 16)));
635}

References m_cfg.

◆ getEraserCursorMainColor()

QColor KisConfig::getEraserCursorMainColor ( bool defaultValue = false) const

Definition at line 494 of file kis_config.cc.

495{
496 QColor col;
497 col.setRgbF(0.501961, 1.0, 0.501961);
498 return (defaultValue ? col : m_cfg.readEntry("eraserCursorMaincColor", col));
499}

References m_cfg.

◆ getGridIsoVerticalColor()

QColor KisConfig::getGridIsoVerticalColor ( bool defaultValue = false) const

Definition at line 1213 of file kis_config.cc.

1214{
1215 QColor col(150, 150, 150);
1216 return (defaultValue ? col : m_cfg.readEntry("gridisoverticalcolor", col));
1217}

References m_cfg.

◆ getGridIsoVerticalStyle()

quint32 KisConfig::getGridIsoVerticalStyle ( bool defaultValue = false) const

Definition at line 1179 of file kis_config.cc.

1180{
1181 int v = m_cfg.readEntry("gridisoverticalstyle", 0);
1182 v = qBound(0, v, 3);
1183 return (defaultValue ? 0 : v);
1184}

References m_cfg, and v.

◆ getGridMainColor()

QColor KisConfig::getGridMainColor ( bool defaultValue = false) const

Definition at line 1191 of file kis_config.cc.

1192{
1193 QColor col(99, 99, 99);
1194 return (defaultValue ? col : m_cfg.readEntry("gridmaincolor", col));
1195}

References m_cfg.

◆ getGridMainStyle()

quint32 KisConfig::getGridMainStyle ( bool defaultValue = false) const

Definition at line 1155 of file kis_config.cc.

1156{
1157 int v = m_cfg.readEntry("gridmainstyle", 0);
1158 v = qBound(0, v, 2);
1159 return (defaultValue ? 0 : v);
1160}

References m_cfg, and v.

◆ getGridSubdivisionColor()

QColor KisConfig::getGridSubdivisionColor ( bool defaultValue = false) const

Definition at line 1202 of file kis_config.cc.

1203{
1204 QColor col(150, 150, 150);
1205 return (defaultValue ? col : m_cfg.readEntry("gridsubdivisioncolor", col));
1206}

References m_cfg.

◆ getGridSubdivisionStyle()

quint32 KisConfig::getGridSubdivisionStyle ( bool defaultValue = false) const

Definition at line 1167 of file kis_config.cc.

1168{
1169 quint32 v = m_cfg.readEntry("gridsubdivisionstyle", 1);
1170 if (v > 2) v = 2;
1171 return (defaultValue ? 1 : v);
1172}

References m_cfg, and v.

◆ getMDIBackgroundColor()

QString KisConfig::getMDIBackgroundColor ( bool defaultValue = false) const

Definition at line 642 of file kis_config.cc.

643{
644 QColor col(77, 77, 77);
646 kol.fromQColor(col);
647 QString xml = kol.toXML();
648 return (defaultValue ? xml : m_cfg.readEntry("mdiBackgroundColorXML", xml));
649}

References KoColor::fromQColor(), KoColorSpaceRegistry::instance(), m_cfg, and KoColor::toXML().

◆ getMDIBackgroundImage()

QString KisConfig::getMDIBackgroundImage ( bool defaultValue = false) const

Definition at line 656 of file kis_config.cc.

657{
658 return (defaultValue ? "" : m_cfg.readEntry("mdiBackgroundImage", ""));
659}

References m_cfg.

◆ getPixelGridColor()

QColor KisConfig::getPixelGridColor ( bool defaultValue = false) const

Definition at line 1224 of file kis_config.cc.

1225{
1226 QColor col(255, 255, 255);
1227 return (defaultValue ? col : m_cfg.readEntry("pixelGridColor", col));
1228}

References m_cfg.

◆ getPixelGridDrawingThreshold()

qreal KisConfig::getPixelGridDrawingThreshold ( bool defaultValue = false) const

Definition at line 1235 of file kis_config.cc.

1236{
1237 qreal border = 24.0f;
1238 return (defaultValue ? border : m_cfg.readEntry("pixelGridDrawingThreshold", border));
1239}

References m_cfg.

◆ getScreenProfile()

const KoColorProfile * KisConfig::getScreenProfile ( int screen)
static

get the profile the color management system has stored for the given screen

Definition at line 831 of file kis_config.cc.

832{
833 if (screen < 0) return 0;
834
835 KisConfig cfg(true);
836 QString monitorId;
837 if (KisColorManager::instance()->devices().size() > screen) {
838 monitorId = cfg.monitorForScreen(screen, KisColorManager::instance()->devices()[screen]);
839 }
840 //dbgKrita << "getScreenProfile(). Screen" << screen << "monitor id" << monitorId;
841
842 if (monitorId.isEmpty()) {
843 return 0;
844 }
845
846 QByteArray bytes = KisColorManager::instance()->displayProfile(monitorId);
847
848 //dbgKrita << "\tgetScreenProfile()" << bytes.size();
849 const KoColorProfile * profile = 0;
850 if (bytes.length() > 0) {
852 //dbgKrita << "\tKisConfig::getScreenProfile for screen" << screen << profile->name();
853 }
854 return profile;
855}
const KoID Integer8BitsColorDepthID("U8", ki18n("8-bit integer/channel"))
const KoID RGBAColorModelID("RGBA", ki18n("RGB/Alpha"))
QByteArray displayProfile(const QString &device, int profile=0) const
Return the icc profile for the given device and index (if a device has more than one profile)
static KisColorManager * instance()
QString id() const
Definition KoID.cpp:63
const KoColorProfile * createColorProfile(const QString &colorModelId, const QString &colorDepthId, const QByteArray &rawData)

References KoColorSpaceRegistry::createColorProfile(), KisColorManager::displayProfile(), KoID::id(), KisColorManager::instance(), KoColorSpaceRegistry::instance(), Integer8BitsColorDepthID, monitorForScreen(), and RGBAColorModelID.

◆ getScreenStringIdentfier()

const QString KisConfig::getScreenStringIdentfier ( int screenNo) const

Definition at line 903 of file kis_config.cc.

903 {
904 if (screenNo < 0 || screenNo >= QGuiApplication::screens().length()) {
905 return QString();
906 }
907 QScreen* screen = QGuiApplication::screens()[screenNo];
908
909 QString manufacturer = screen->manufacturer();
910 QString model = screen->model();
911 QString serialNumber = screen->serialNumber();
912
913 if (manufacturer == "" && model == "" && serialNumber == "") {
914 return QString(); // it would be scary to base the profile just on resolution
915 }
916
917 QString identifier = QStringList({manufacturer, model, serialNumber}).join("_");
918 return identifier;
919}
qreal length(const QPointF &vec)
Definition Ellipse.cc:82

References length().

◆ guidesColor()

QColor KisConfig::guidesColor ( bool defaultValue = false) const

Definition at line 1269 of file kis_config.cc.

1270{
1271 QColor col(99, 99, 99);
1272 return (defaultValue ? col : m_cfg.readEntry("guidesColor", col));
1273}

References m_cfg.

◆ guidesLineStyle()

quint32 KisConfig::guidesLineStyle ( bool defaultValue = false) const

Definition at line 1257 of file kis_config.cc.

1258{
1259 int v = m_cfg.readEntry("guidesLineStyle", 0);
1260 v = qBound(0, v, 2);
1261 return (defaultValue ? 0 : v);
1262}

References m_cfg, and v.

◆ hideDevFundBanner()

bool KisConfig::hideDevFundBanner ( bool defaultValue = false) const

Definition at line 1491 of file kis_config.cc.

1492{
1493 return defaultValue ? false : m_cfg.readEntry("hideDevFundBanner", false);
1494}

References m_cfg.

◆ hideDockersFullscreen()

bool KisConfig::hideDockersFullscreen ( bool defaultValue = false) const

Definition at line 1779 of file kis_config.cc.

1780{
1781 return (defaultValue ? true : m_cfg.readEntry("hideDockersFullScreen", true));
1782}

References m_cfg.

◆ hideMenuFullscreen()

bool KisConfig::hideMenuFullscreen ( bool defaultValue = false) const

Definition at line 1819 of file kis_config.cc.

1820{
1821 return (defaultValue ? true: m_cfg.readEntry("hideMenuFullScreen", true));
1822}

References m_cfg.

◆ hidePopups()

bool KisConfig::hidePopups ( bool defaultValue = false) const

Definition at line 2125 of file kis_config.cc.

2126{
2127 return (defaultValue ? false : m_cfg.readEntry("hidePopups", false));
2128}

References m_cfg.

◆ hideScrollbars()

bool KisConfig::hideScrollbars ( bool defaultValue = false) const

Definition at line 1347 of file kis_config.cc.

1348{
1349 return (defaultValue ? false : m_cfg.readEntry("hideScrollbars", false));
1350}

References m_cfg.

◆ hideScrollbarsFullscreen()

bool KisConfig::hideScrollbarsFullscreen ( bool defaultValue = false) const

Definition at line 1829 of file kis_config.cc.

1830{
1831 return (defaultValue ? true : m_cfg.readEntry("hideScrollbarsFullScreen", true));
1832}

References m_cfg.

◆ hideStatusbarFullscreen()

bool KisConfig::hideStatusbarFullscreen ( bool defaultValue = false) const

Definition at line 1839 of file kis_config.cc.

1840{
1841 return (defaultValue ? true: m_cfg.readEntry("hideStatusbarFullScreen", true));
1842}

References m_cfg.

◆ hideTitlebarFullscreen()

bool KisConfig::hideTitlebarFullscreen ( bool defaultValue = false) const

Definition at line 1849 of file kis_config.cc.

1850{
1851 return (defaultValue ? true : m_cfg.readEntry("hideTitleBarFullscreen", true));
1852}

References m_cfg.

◆ hideToolbarFullscreen()

bool KisConfig::hideToolbarFullscreen ( bool defaultValue = false) const

Definition at line 1859 of file kis_config.cc.

1860{
1861 return (defaultValue ? true : m_cfg.readEntry("hideToolbarFullscreen", true));
1862}

References m_cfg.

◆ horizontalSplitLines()

int KisConfig::horizontalSplitLines ( bool defaultValue = false) const

Definition at line 1749 of file kis_config.cc.

1750{
1751 return (defaultValue ? 1 : m_cfg.readEntry("horizontalSplitLines", 1));
1752}

References m_cfg.

◆ ignoreHighFunctionKeys()

bool KisConfig::ignoreHighFunctionKeys ( bool defaultValue = false) const

Definition at line 2305 of file kis_config.cc.

2306{
2307 return (defaultValue ? true : m_cfg.readEntry("ignoreHighFunctionKeys", true));
2308}

References m_cfg.

◆ importConfiguration()

QString KisConfig::importConfiguration ( const QString & filterId,
bool defaultValue = false ) const

Definition at line 1910 of file kis_config.cc.

1911{
1912 return (defaultValue ? QString() : m_cfg.readEntry("ImportConfiguration-" + filterId, QString()));
1913}

References m_cfg.

◆ importProfile()

QString KisConfig::importProfile ( bool defaultValue = false) const

◆ kineticScrollingEnabled()

bool KisConfig::kineticScrollingEnabled ( bool defaultValue = false) const

Definition at line 2404 of file kis_config.cc.

2405{
2406 return (defaultValue ? true : m_cfg.readEntry("KineticScrollingEnabled", true));
2407}

References m_cfg.

◆ kineticScrollingGesture()

int KisConfig::kineticScrollingGesture ( bool defaultValue = false) const

Definition at line 2414 of file kis_config.cc.

2415{
2416#ifdef Q_OS_ANDROID
2417 int defaultGesture = 1; // LeftMouseButtonGesture
2418#else
2419 int defaultGesture = 2; // MiddleMouseButtonGesture
2420#endif
2421
2422 return (defaultValue ? defaultGesture : m_cfg.readEntry("KineticScrollingGesture", defaultGesture));
2423}

References m_cfg.

◆ kineticScrollingHiddenScrollbars()

bool KisConfig::kineticScrollingHiddenScrollbars ( bool defaultValue = false) const

Definition at line 2440 of file kis_config.cc.

2441{
2442 return (defaultValue ? false : m_cfg.readEntry("KineticScrollingHideScrollbar", false));
2443}

References m_cfg.

◆ kineticScrollingSensitivity()

int KisConfig::kineticScrollingSensitivity ( bool defaultValue = false) const

Definition at line 2430 of file kis_config.cc.

2431{
2432 return (defaultValue ? 75 : m_cfg.readEntry("KineticScrollingSensitivity", 75));
2433}

References m_cfg.

◆ lastUsedOutlineStyle()

OutlineStyle KisConfig::lastUsedOutlineStyle ( bool defaultValue = false) const

Definition at line 445 of file kis_config.cc.

446{
447 if (defaultValue) {
448 return OUTLINE_NONE;
449 }
450
451 int style = m_cfg.readEntry("lastUsedOutlineStyle", int(-1));
452
453 return (OutlineStyle) style;
454}
@ OUTLINE_NONE
Definition kis_global.h:54

References m_cfg, and OUTLINE_NONE.

◆ layerInfoTextOpacity()

int KisConfig::layerInfoTextOpacity ( bool defaultValue = false) const

Definition at line 2867 of file kis_config.cc.

2868{
2869 return defaultValue ? 55 : m_cfg.readEntry("layerInfoTextOpacity", 55);
2870}

References m_cfg.

◆ layerInfoTextStyle()

KisConfig::LayerInfoTextStyle KisConfig::layerInfoTextStyle ( bool defaultValue = false) const

Definition at line 2857 of file kis_config.cc.

2858{
2859 return (KisConfig::LayerInfoTextStyle)(defaultValue ? INFOTEXT_NONE : m_cfg.readEntry("layerInfoTextStyle", (int)INFOTEXT_NONE));
2860}

References INFOTEXT_NONE, and m_cfg.

◆ layerThumbnailGenerationTimeout()

int KisConfig::layerThumbnailGenerationTimeout ( bool defaultValue = false) const

The timeout for the layer thumbnail generation after which the thumbnail algorithm will be switched to an imprecise one.

Measured in milliseconds.

Definition at line 2932 of file kis_config.cc.

2933{
2934 return defaultValue ? 40 : m_cfg.readEntry("layerThumbnailGenerationTimeout", 40);
2935}

References m_cfg.

◆ layerThumbnailSize()

int KisConfig::layerThumbnailSize ( bool defaultValue = false) const

Definition at line 2045 of file kis_config.cc.

2046{
2047 return (defaultValue ? 20 : m_cfg.readEntry("layerThumbnailSize", 20));
2048}

References m_cfg.

◆ layerTreeIndentation()

int KisConfig::layerTreeIndentation ( bool defaultValue = false) const

Definition at line 2055 of file kis_config.cc.

2056{
2057 return (defaultValue ? 50 : m_cfg.readEntry("layerTreeIndentation", 50));
2058}

References m_cfg.

◆ levelOfDetailEnabled()

bool KisConfig::levelOfDetailEnabled ( bool defaultValue = false) const

Definition at line 1946 of file kis_config.cc.

1947{
1948 return (defaultValue ? false : m_cfg.readEntry("levelOfDetailEnabled", false));
1949}

References m_cfg.

◆ lineSmoothingDelayDistance()

qreal KisConfig::lineSmoothingDelayDistance ( bool defaultValue = false) const

Definition at line 2245 of file kis_config.cc.

2246{
2247 return (defaultValue ? 50.0 : m_cfg.readEntry("LineSmoothingDelayDistance", 50.0));
2248}

References m_cfg.

◆ lineSmoothingDistanceKeepAspectRatio()

bool KisConfig::lineSmoothingDistanceKeepAspectRatio ( bool defaultValue = false) const

Definition at line 2205 of file kis_config.cc.

2206{
2207 return (defaultValue ? true : m_cfg.readEntry("LineSmoothingDistanceKeepAspectRatio", true));
2208}

References m_cfg.

◆ lineSmoothingDistanceMax()

qreal KisConfig::lineSmoothingDistanceMax ( bool defaultValue = false) const

Definition at line 2195 of file kis_config.cc.

2196{
2197 return (defaultValue ? 50.0 : m_cfg.readEntry("LineSmoothingDistanceMax", 50.0));
2198}

References m_cfg.

◆ lineSmoothingDistanceMin()

qreal KisConfig::lineSmoothingDistanceMin ( bool defaultValue = false) const

Definition at line 2185 of file kis_config.cc.

2186{
2187 return (defaultValue ? 50.0 : m_cfg.readEntry("LineSmoothingDistanceMin", 50.0));
2188}

References m_cfg.

◆ lineSmoothingFinishStabilizedCurve()

bool KisConfig::lineSmoothingFinishStabilizedCurve ( bool defaultValue = false) const

Definition at line 2265 of file kis_config.cc.

2266{
2267 return (defaultValue ? true : m_cfg.readEntry("LineSmoothingFinishStabilizedCurve", true));
2268}

References m_cfg.

◆ lineSmoothingScalableDistance()

bool KisConfig::lineSmoothingScalableDistance ( bool defaultValue = false) const

Definition at line 2235 of file kis_config.cc.

2236{
2237 return (defaultValue ? true : m_cfg.readEntry("LineSmoothingScalableDistance", true));
2238}

References m_cfg.

◆ lineSmoothingSmoothPressure()

bool KisConfig::lineSmoothingSmoothPressure ( bool defaultValue = false) const

Definition at line 2225 of file kis_config.cc.

2226{
2227 return (defaultValue ? false : m_cfg.readEntry("LineSmoothingSmoothPressure", false));
2228}

References m_cfg.

◆ lineSmoothingStabilizeSensors()

bool KisConfig::lineSmoothingStabilizeSensors ( bool defaultValue = false) const

Definition at line 2275 of file kis_config.cc.

2276{
2277 return (defaultValue ? true : m_cfg.readEntry("LineSmoothingStabilizeSensors", true));
2278}

References m_cfg.

◆ lineSmoothingTailAggressiveness()

qreal KisConfig::lineSmoothingTailAggressiveness ( bool defaultValue = false) const

Definition at line 2215 of file kis_config.cc.

2216{
2217 return (defaultValue ? 0.15 : m_cfg.readEntry("LineSmoothingTailAggressiveness", 0.15));
2218}

References m_cfg.

◆ lineSmoothingType()

int KisConfig::lineSmoothingType ( bool defaultValue = false) const

Definition at line 2175 of file kis_config.cc.

2176{
2177 return (defaultValue ? 1 : m_cfg.readEntry("LineSmoothingType", 1));
2178}

References m_cfg.

◆ lineSmoothingUseDelayDistance()

bool KisConfig::lineSmoothingUseDelayDistance ( bool defaultValue = false) const

Definition at line 2255 of file kis_config.cc.

2256{
2257 return (defaultValue ? true : m_cfg.readEntry("LineSmoothingUseDelayDistance", true));
2258}

References m_cfg.

◆ loadSnapConfig()

void KisConfig::loadSnapConfig ( KisSnapConfig * config,
bool defaultValue = false ) const

Definition at line 1280 of file kis_config.cc.

1281{
1282 KisSnapConfig defaultConfig(false);
1283
1284 if (defaultValue) {
1285 *config = defaultConfig;
1286 return;
1287 }
1288
1289 config->setOrthogonal(m_cfg.readEntry("globalSnapOrthogonal", defaultConfig.orthogonal()));
1290 config->setNode(m_cfg.readEntry("globalSnapNode", defaultConfig.node()));
1291 config->setExtension(m_cfg.readEntry("globalSnapExtension", defaultConfig.extension()));
1292 config->setIntersection(m_cfg.readEntry("globalSnapIntersection", defaultConfig.intersection()));
1293 config->setBoundingBox(m_cfg.readEntry("globalSnapBoundingBox", defaultConfig.boundingBox()));
1294 config->setImageBounds(m_cfg.readEntry("globalSnapImageBounds", defaultConfig.imageBounds()));
1295 config->setImageCenter(m_cfg.readEntry("globalSnapImageCenter", defaultConfig.imageCenter()));
1296 config->setToPixel(m_cfg.readEntry("globalSnapToPixel", defaultConfig.toPixel()));
1297}
void setImageCenter(bool value)
void setIntersection(bool value)
void setOrthogonal(bool value)
void setExtension(bool value)
void setToPixel(bool value)
void setBoundingBox(bool value)
void setImageBounds(bool value)
void setNode(bool value)

References KisSnapConfig::boundingBox(), KisSnapConfig::extension(), KisSnapConfig::imageBounds(), KisSnapConfig::imageCenter(), KisSnapConfig::intersection(), m_cfg, KisSnapConfig::node(), KisSnapConfig::orthogonal(), KisSnapConfig::setBoundingBox(), KisSnapConfig::setExtension(), KisSnapConfig::setImageBounds(), KisSnapConfig::setImageCenter(), KisSnapConfig::setIntersection(), KisSnapConfig::setNode(), KisSnapConfig::setOrthogonal(), KisSnapConfig::setToPixel(), and KisSnapConfig::toPixel().

◆ logImportantSettings

void KisConfig::logImportantSettings ( ) const
slot

Log the most interesting settings to the usage log.

Definition at line 77 of file kis_config.cc.

78{
79 KisUsageLogger::writeSysInfo("Current Settings\n");
80 KisUsageLogger::writeSysInfo(QString(" Current Swap Location: %1").arg(KisImageConfig(true).swapDir()));
81 KisUsageLogger::writeSysInfo(QString(" Current Swap Location writable: %1").arg(QFileInfo(KisImageConfig(true).swapDir()).isWritable() ? "true" : "false"));
82 KisUsageLogger::writeSysInfo(QString(" Undo Enabled: %1").arg(undoEnabled()? "true" : "false"));
83 KisUsageLogger::writeSysInfo(QString(" Undo Stack Limit: %1").arg(undoStackLimit()));
84 KisUsageLogger::writeSysInfo(QString(" Use OpenGL: %1").arg(useOpenGL() ? "true" : "false"));
85 KisUsageLogger::writeSysInfo(QString(" Use OpenGL Texture Buffer: %1").arg(useOpenGLTextureBuffer() ? "true" : "false"));
86 KisUsageLogger::writeSysInfo(QString(" Disable Vector Optimizations: %1").arg(disableVectorOptimizations() ? "true" : "false"));
87 KisUsageLogger::writeSysInfo(QString(" Disable AVX Optimizations: %1").arg(disableAVXOptimizations() ? "true" : "false"));
88 KisUsageLogger::writeSysInfo(QString(" Canvas State: %1").arg(canvasState()));
89 KisUsageLogger::writeSysInfo(QString(" Autosave Interval: %1").arg(autoSaveInterval()));
90 KisUsageLogger::writeSysInfo(QString(" Use Backup Files: %1").arg(backupFile() ? "true" : "false"));
91 KisUsageLogger::writeSysInfo(QString(" Number of Backups Kept: %1").arg(m_cfg.readEntry("numberofbackupfiles", 1)));
92 KisUsageLogger::writeSysInfo(QString(" Backup File Suffix: %1").arg(m_cfg.readEntry("backupfilesuffix", "~")));
93
94 QString backupDir;
95 switch(m_cfg.readEntry("backupfilelocation", 0)) {
96 case 1:
97 backupDir = QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
98 break;
99 case 2:
100 backupDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
101 break;
102 default:
103 // Do nothing: the empty string is user file location
104 backupDir = "Same Folder as the File";
105 }
106 KisUsageLogger::writeSysInfo(QString(" Backup Location: %1").arg(backupDir));
107 KisUsageLogger::writeSysInfo(QString(" Backup Location writable: %1").arg(QFileInfo(backupDir).isWritable() ? "true" : "false"));
108 KisUsageLogger::writeSysInfo(QString(" Resource Location: %1").arg(m_cfg.readEntry(KisResourceLocator::resourceLocationKey)));
109
110 KisUsageLogger::writeSysInfo(QString(" Use Win8 Pointer Input: %1").arg(useWin8PointerInput() ? "true" : "false"));
111 KisUsageLogger::writeSysInfo(QString(" Use RightMiddleTabletButton Workaround: %1").arg(useRightMiddleTabletButtonWorkaround() ? "true" : "false"));
112 KisUsageLogger::writeSysInfo(QString(" Levels of Detail Enabled: %1").arg(levelOfDetailEnabled() ? "true" : "false"));
113 KisUsageLogger::writeSysInfo(QString(" Use Zip64: %1").arg(useZip64() ? "true" : "false"));
114
116
117 // Tablet API information
118#if defined Q_OS_WIN && QT_VERSION > QT_VERSION_CHECK(6, 0, 0)
119{
120 auto tabletAPIName = [] (bool useWinTab) {
121 return useWinTab ? "WinTab" : "WinInk";
122 };
123
124 QString actualTabletProtocol = "<unknown>";
125
126 using QWindowsApplication = QNativeInterface::Private::QWindowsApplication;
127 if (auto nativeWindowsApp = dynamic_cast<QWindowsApplication *>(QGuiApplicationPrivate::platformIntegration())) {
128 actualTabletProtocol = tabletAPIName(nativeWindowsApp->isWinTabEnabled());
129 } else {
130 KisUsageLogger::log("WARNING: Failed to fetch WinTab protocol status: QWindowsApplication is not available");
131 }
132
133 KisUsageLogger::writeSysInfo("Tablet API Information\n");
134 KisUsageLogger::writeSysInfo(QString(" User-selected tablet API: %1").arg(tabletAPIName(!useWin8PointerInput())));
135 KisUsageLogger::writeSysInfo(QString(" Actually used tablet API: %1").arg(actualTabletProtocol));
137}
138#endif
139
140}
bool backupFile(bool defaultValue=false) const
bool disableVectorOptimizations(bool defaultValue=false) const
bool levelOfDetailEnabled(bool defaultValue=false) const
bool useZip64(bool defaultValue=false) const
bool useWin8PointerInput(bool defaultValue=false) const
bool useOpenGLTextureBuffer(bool defaultValue=false) const
bool useRightMiddleTabletButtonWorkaround(bool defaultValue=false) const
int autoSaveInterval(bool defaultValue=false) const
QString canvasState(bool defaultValue=false) const
bool useOpenGL(bool defaultValue=false) const
int undoStackLimit(bool defaultValue=false) const
bool disableAVXOptimizations(bool defaultValue=false) const
bool undoEnabled(bool defaultValue=false) const
static const QString resourceLocationKey
static void log(const QString &message)
Logs with date/time.
static void writeSysInfo(const QString &message)
Writes to the system information file and Krita log.

References autoSaveInterval(), backupFile(), canvasState(), disableAVXOptimizations(), disableVectorOptimizations(), levelOfDetailEnabled(), KisUsageLogger::log(), m_cfg, KisResourceLocator::resourceLocationKey, undoEnabled(), undoStackLimit(), useOpenGL(), useOpenGLTextureBuffer(), useRightMiddleTabletButtonWorkaround(), useWin8PointerInput(), useZip64(), and KisUsageLogger::writeSysInfo().

◆ longPressEnabled()

bool KisConfig::longPressEnabled ( bool defaultValue = false) const

Definition at line 2912 of file kis_config.cc.

2913{
2914#ifdef Q_OS_ANDROID
2915 bool defaultEnabled = true;
2916#else
2917 bool defaultEnabled = false;
2918#endif
2919 if (defaultValue) {
2920 return defaultEnabled;
2921 } else {
2922 return m_cfg.readEntry("longPressEnabled", defaultEnabled);
2923 }
2924}

References m_cfg.

◆ monitorForScreen()

QString KisConfig::monitorForScreen ( int screen,
const QString & defaultMonitor,
bool defaultValue = true ) const

Definition at line 810 of file kis_config.cc.

811{
812 return (defaultValue ? defaultMonitor
813 : m_cfg.readEntry(QString("monitor_for_screen_%1").arg(screen), defaultMonitor));
814}

References m_cfg.

◆ monitorProfile()

QString KisConfig::monitorProfile ( int screen) const

get the profile the user has selected for the given screen

Screen identifier may be empty (e.g. on macOS), so the identifier key will be plain 'monitorProfile', which is the key for the first display's profile, so we shouldn't fall into this trap...

Definition at line 786 of file kis_config.cc.

787{
788 // Note: keep this in sync with the default profile for the RGB colorspaces!
789 const QString defaultProfile = "sRGB-elle-V2-srgbtrc.icc";
790
791 QString profile;
792 const QString screenIdentifier = getScreenStringIdentfier(screen);
793 const QString screenIdentifierKey = "monitorProfile" + screenIdentifier;
794
800 if (!screenIdentifier.isEmpty() && m_cfg.hasKey(screenIdentifierKey)) {
801 profile = m_cfg.readEntry(screenIdentifierKey, defaultProfile);
802 } else {
803 profile = m_cfg.readEntry("monitorProfile" + QString(screen == 0 ? "": QString("_%1").arg(screen)), defaultProfile);
804 }
805
806 //dbgKrita << "KisConfig::monitorProfile()" << profile;
807 return profile;
808}
const QString getScreenStringIdentfier(int screenNo) const

References getScreenStringIdentfier(), and m_cfg.

◆ monitorRenderIntent()

qint32 KisConfig::monitorRenderIntent ( bool defaultValue = false) const

Definition at line 1051 of file kis_config.cc.

1052{
1053 qint32 intent = m_cfg.readEntry("renderIntent", INTENT_PERCEPTUAL);
1054 if (intent > 3) intent = 3;
1055 if (intent < 0) intent = 0;
1056 return (defaultValue ? INTENT_PERCEPTUAL : intent);
1057}
#define INTENT_PERCEPTUAL
Definition kis_global.h:103

References INTENT_PERCEPTUAL, and m_cfg.

◆ newCursorStyle()

CursorStyle KisConfig::newCursorStyle ( bool defaultValue = false) const

Definition at line 324 of file kis_config.cc.

325{
326 if (defaultValue) {
328 }
329
330
331 int style = m_cfg.readEntry("newCursorStyle", int(-1));
332
333 if (style < 0) {
334 // old style format
335 style = m_cfg.readEntry("cursorStyleDef", int(OLD_CURSOR_STYLE_OUTLINE));
336
337 switch (style) {
339 style = CURSOR_STYLE_TOOLICON;
340 break;
344 break;
346 style = CURSOR_STYLE_POINTER;
347 break;
351 break;
355 break;
359 break;
363 break;
364 default:
365 style = -1;
366 }
367 }
368
370
371 // compatibility with future versions
372 if (style < 0 || style >= N_CURSOR_STYLE_SIZE) {
374 }
375
376 return (CursorStyle) style;
377}
void cleanOldCursorStyleKeys(KConfigGroup &cfg)
@ OLD_CURSOR_STYLE_OUTLINE_TRIANGLE_RIGHTHANDED
Definition kis_global.h:93
@ OLD_CURSOR_STYLE_OUTLINE
Definition kis_global.h:82
@ OLD_CURSOR_STYLE_OUTLINE_CENTER_CROSS
Definition kis_global.h:88
@ OLD_CURSOR_STYLE_CROSSHAIR
Definition kis_global.h:79
@ OLD_CURSOR_STYLE_NO_CURSOR
Definition kis_global.h:84
@ OLD_CURSOR_STYLE_TOOLICON
Definition kis_global.h:78
@ OLD_CURSOR_STYLE_TRIANGLE_LEFTHANDED
Definition kis_global.h:91
@ OLD_CURSOR_STYLE_POINTER
Definition kis_global.h:80
@ OLD_CURSOR_STYLE_OUTLINE_CENTER_DOT
Definition kis_global.h:87
@ OLD_CURSOR_STYLE_OUTLINE_TRIANGLE_LEFTHANDED
Definition kis_global.h:94
@ OLD_CURSOR_STYLE_TRIANGLE_RIGHTHANDED
Definition kis_global.h:90
@ OLD_CURSOR_STYLE_SMALL_ROUND
Definition kis_global.h:85
@ CURSOR_STYLE_POINTER
Definition kis_global.h:65
@ CURSOR_STYLE_SMALL_ROUND
Definition kis_global.h:66
@ CURSOR_STYLE_CROSSHAIR
Definition kis_global.h:67
@ CURSOR_STYLE_TOOLICON
Definition kis_global.h:64
@ CURSOR_STYLE_TRIANGLE_RIGHTHANDED
Definition kis_global.h:68
@ CURSOR_STYLE_TRIANGLE_LEFTHANDED
Definition kis_global.h:69
@ CURSOR_STYLE_NO_CURSOR
Definition kis_global.h:63

References cleanOldCursorStyleKeys(), CURSOR_STYLE_CROSSHAIR, CURSOR_STYLE_NO_CURSOR, CURSOR_STYLE_POINTER, CURSOR_STYLE_SMALL_ROUND, CURSOR_STYLE_TOOLICON, CURSOR_STYLE_TRIANGLE_LEFTHANDED, CURSOR_STYLE_TRIANGLE_RIGHTHANDED, m_cfg, N_CURSOR_STYLE_SIZE, OLD_CURSOR_STYLE_CROSSHAIR, OLD_CURSOR_STYLE_NO_CURSOR, OLD_CURSOR_STYLE_OUTLINE, OLD_CURSOR_STYLE_OUTLINE_CENTER_CROSS, OLD_CURSOR_STYLE_OUTLINE_CENTER_DOT, OLD_CURSOR_STYLE_OUTLINE_TRIANGLE_LEFTHANDED, OLD_CURSOR_STYLE_OUTLINE_TRIANGLE_RIGHTHANDED, OLD_CURSOR_STYLE_POINTER, OLD_CURSOR_STYLE_SMALL_ROUND, OLD_CURSOR_STYLE_TOOLICON, OLD_CURSOR_STYLE_TRIANGLE_LEFTHANDED, and OLD_CURSOR_STYLE_TRIANGLE_RIGHTHANDED.

◆ newOutlineStyle()

OutlineStyle KisConfig::newOutlineStyle ( bool defaultValue = false) const

Definition at line 396 of file kis_config.cc.

397{
398 if (defaultValue) {
399 return OUTLINE_FULL;
400 }
401
402 int style = m_cfg.readEntry("newOutlineStyle", int(-1));
403
404 if (style < 0) {
405 // old style format
406 style = m_cfg.readEntry("cursorStyleDef", int(OLD_CURSOR_STYLE_OUTLINE));
407
408 switch (style) {
416 style = OUTLINE_NONE;
417 break;
423 style = OUTLINE_FULL;
424 break;
425 default:
426 style = -1;
427 }
428 }
429
431
432 // compatibility with future versions
433 if (style < 0 || style >= N_OUTLINE_STYLE_SIZE) {
434 style = OUTLINE_FULL;
435 }
436
437 return (OutlineStyle) style;
438}

References cleanOldCursorStyleKeys(), m_cfg, N_OUTLINE_STYLE_SIZE, OLD_CURSOR_STYLE_CROSSHAIR, OLD_CURSOR_STYLE_NO_CURSOR, OLD_CURSOR_STYLE_OUTLINE, OLD_CURSOR_STYLE_OUTLINE_CENTER_CROSS, OLD_CURSOR_STYLE_OUTLINE_CENTER_DOT, OLD_CURSOR_STYLE_OUTLINE_TRIANGLE_LEFTHANDED, OLD_CURSOR_STYLE_OUTLINE_TRIANGLE_RIGHTHANDED, OLD_CURSOR_STYLE_POINTER, OLD_CURSOR_STYLE_SMALL_ROUND, OLD_CURSOR_STYLE_TOOLICON, OLD_CURSOR_STYLE_TRIANGLE_LEFTHANDED, OLD_CURSOR_STYLE_TRIANGLE_RIGHTHANDED, OUTLINE_FULL, and OUTLINE_NONE.

◆ numDefaultLayers()

int KisConfig::numDefaultLayers ( bool defaultValue = false) const

Definition at line 2135 of file kis_config.cc.

2136{
2137 return (defaultValue ? 2 : m_cfg.readEntry("NumberOfLayersForNewImage", 2));
2138}

References m_cfg.

◆ numMipmapLevels()

int KisConfig::numMipmapLevels ( bool defaultValue = false) const

Definition at line 1145 of file kis_config.cc.

1146{
1147 return (defaultValue ? 4 : m_cfg.readEntry("numMipmapLevels", 4));
1148}

References m_cfg.

◆ ocioColorManagementMode()

KisConfig::OcioColorManagementMode KisConfig::ocioColorManagementMode ( bool defaultValue = false) const

Definition at line 1985 of file kis_config.cc.

1986{
1987 // FIXME: this option duplicates ocioConfiguration(), please deprecate it
1988 return (OcioColorManagementMode)(defaultValue ? INTERNAL
1989 : m_cfg.readEntry("Krita/Ocio/OcioColorManagementMode", (int) INTERNAL));
1990}
OcioColorManagementMode
Definition kis_config.h:505

References INTERNAL, and m_cfg.

◆ ocioConfiguration()

KisOcioConfiguration KisConfig::ocioConfiguration ( bool defaultValue = false) const

Definition at line 1956 of file kis_config.cc.

1957{
1959
1960 if (!defaultValue) {
1961 cfg.mode = (KisOcioConfiguration::Mode)m_cfg.readEntry("Krita/Ocio/OcioColorManagementMode", 0);
1962 cfg.configurationPath = m_cfg.readEntry("Krita/Ocio/OcioConfigPath", QString());
1963 cfg.lutPath = m_cfg.readEntry("Krita/Ocio/OcioLutPath", QString());
1964 cfg.inputColorSpace = m_cfg.readEntry("Krita/Ocio/InputColorSpace", QString());
1965 cfg.displayDevice = m_cfg.readEntry("Krita/Ocio/DisplayDevice", QString());
1966 cfg.displayView = m_cfg.readEntry("Krita/Ocio/DisplayView", QString());
1967 cfg.look = m_cfg.readEntry("Krita/Ocio/DisplayLook", QString());
1968 }
1969
1970 return cfg;
1971}

References KisOcioConfiguration::configurationPath, KisOcioConfiguration::displayDevice, KisOcioConfiguration::displayView, KisOcioConfiguration::inputColorSpace, KisOcioConfiguration::look, KisOcioConfiguration::lutPath, m_cfg, and KisOcioConfiguration::mode.

◆ ocioLockColorVisualRepresentation()

bool KisConfig::ocioLockColorVisualRepresentation ( bool defaultValue = false) const

Definition at line 2008 of file kis_config.cc.

2009{
2010 return (defaultValue ? false : m_cfg.readEntry("Krita/Ocio/OcioLockColorVisualRepresentation", false));
2011}

References m_cfg.

◆ ocioLutEdgeSize()

int KisConfig::ocioLutEdgeSize ( bool defaultValue = false) const

Definition at line 1998 of file kis_config.cc.

1999{
2000 return (defaultValue ? 64 : m_cfg.readEntry("Krita/Ocio/LutEdgeSize", 64));
2001}

References m_cfg.

◆ openGLFilteringMode()

int KisConfig::openGLFilteringMode ( bool defaultValue = false) const

Definition at line 1086 of file kis_config.cc.

1087{
1088 return (defaultValue ? 3 : m_cfg.readEntry("OpenGLFilterMode", 3));
1089}

References m_cfg.

◆ openGLTextureSize()

int KisConfig::openGLTextureSize ( bool defaultValue = false) const

Definition at line 1135 of file kis_config.cc.

1136{
1137 return (defaultValue ? 256 : m_cfg.readEntry("textureSize", 256));
1138}

References m_cfg.

◆ operator=()

KisConfig & KisConfig::operator= ( const KisConfig & ) const
private

◆ outlineSizeMinimum()

qreal KisConfig::outlineSizeMinimum ( bool defaultValue = false) const

Definition at line 1501 of file kis_config.cc.

1502{
1503 return (defaultValue ? 1.0 : m_cfg.readEntry("OutlineSizeMinimum", 1.0));
1504}

References m_cfg.

◆ paintopPopupDetached()

bool KisConfig::paintopPopupDetached ( bool defaultValue = false) const

Definition at line 1593 of file kis_config.cc.

1594{
1595 return (defaultValue ? true : m_cfg.readEntry("PaintopPopupDetached", true));
1596}

References m_cfg.

◆ pasteBehaviour()

qint32 KisConfig::pasteBehaviour ( bool defaultValue = false) const

Definition at line 1031 of file kis_config.cc.

1032{
1033 return (defaultValue ? 2 : m_cfg.readEntry("pasteBehaviour", 2));
1034}

References m_cfg.

◆ pasteFormat()

qint32 KisConfig::pasteFormat ( bool defaultValue) const

Definition at line 1041 of file kis_config.cc.

1042{
1043 return defaultValue ? 0 : m_cfg.readEntry("pasteFormat", 0);
1044}

References m_cfg.

◆ pixelGridEnabled()

bool KisConfig::pixelGridEnabled ( bool defaultValue = false) const

Definition at line 1246 of file kis_config.cc.

1247{
1248 bool enabled = true;
1249 return (defaultValue ? enabled : m_cfg.readEntry("pixelGridEnabled", enabled));
1250}

References m_cfg.

◆ preferredVectorImportResolutionPPI()

int KisConfig::preferredVectorImportResolutionPPI ( bool defaultValue = false) const

Definition at line 293 of file kis_config.cc.

294{
295 return defaultValue ? 100.0 : m_cfg.readEntry("preferredVectorImportResolution", 100.0);
296}

References m_cfg.

◆ preferXcbEglProvider() [1/2]

bool KisConfig::preferXcbEglProvider ( bool defaultValue = false) const

Definition at line 1121 of file kis_config.cc.

1122{
1123 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
1124 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
1125 return preferXcbEglProvider(&kritarc, defaultValue);
1126}
static bool preferXcbEglProvider(const QSettings *settings, bool defaultValue=false)

References preferXcbEglProvider().

◆ preferXcbEglProvider() [2/2]

bool KisConfig::preferXcbEglProvider ( const QSettings * settings,
bool defaultValue = false )
static

Definition at line 1116 of file kis_config.cc.

1117{
1118 return (defaultValue ? false : settings->value("preferXcbEglProvider", false).toBool());
1119}

◆ presetChooserViewMode()

int KisConfig::presetChooserViewMode ( bool defaultValue = false) const

Definition at line 1719 of file kis_config.cc.

1720{
1721 return (defaultValue ? 0 : m_cfg.readEntry("presetChooserViewMode", 0));
1722}

References m_cfg.

◆ presetIconSize()

int KisConfig::presetIconSize ( bool defaultValue = false) const

Definition at line 1729 of file kis_config.cc.

1730{
1731 return (defaultValue ? 60 : m_cfg.readEntry("presetIconSize", 60));
1732}

References m_cfg.

◆ presetStripVisible()

bool KisConfig::presetStripVisible ( bool defaultValue = false) const

Definition at line 2095 of file kis_config.cc.

2096{
2097 return (defaultValue ? true : m_cfg.readEntry("presetStripVisible", true));
2098}

References m_cfg.

◆ pressureTabletCurve()

QString KisConfig::pressureTabletCurve ( bool defaultValue = false) const

Definition at line 1603 of file kis_config.cc.

1604{
1605 QString fallback = DEFAULT_CURVE_STRING;
1606#ifdef Q_OS_ANDROID
1607 // Xiaomi styluses need superhuman strength to reach full input pressure.
1608 // We use a much steeper default pressure curve for them by default that
1609 // effectively caps out at 70% pressure to make it at least bearable. A
1610 // note for a possible future: Apple styluses have an even greater range,
1611 // so if we somehow end up on iPads, we'll probably need to make those cap
1612 // out at 50% pressure at most something like: "0,0;0.5,1.0;"
1614 fallback = QStringLiteral("0,0;0.7,1;");
1615 }
1616#endif
1617 return (defaultValue ? fallback : m_cfg.readEntry("tabletPressureCurve", fallback));
1618}
const QString DEFAULT_CURVE_STRING

References DEFAULT_CURVE_STRING, KisAndroidUtils::looksLikeXiaomiDevice(), and m_cfg.

◆ printerColorSpace()

QString KisConfig::printerColorSpace ( bool defaultValue = false) const

Definition at line 931 of file kis_config.cc.

932{
933 //TODO currently only rgb8 is supported
934 //return (defaultValue ? "RGBA" : m_cfg.readEntry("printerColorSpace", "RGBA"));
935 return QString("RGBA");
936}

◆ printerProfile()

QString KisConfig::printerProfile ( bool defaultValue = false) const

Definition at line 944 of file kis_config.cc.

945{
946 return (defaultValue ? "" : m_cfg.readEntry("printerProfile", ""));
947}

References m_cfg.

◆ readEntry()

template<class T >
T KisConfig::readEntry ( const QString & name,
const T & defaultValue = T() )
inline

Definition at line 832 of file kis_config.h.

832 {
833 return m_cfg.readEntry(name, defaultValue);
834 }

◆ readKoColor()

KoColor KisConfig::readKoColor ( const QString & name,
const KoColor & color = KoColor() ) const

Definition at line 2955 of file kis_config.cc.

2956{
2957 QDomDocument doc;
2958
2959 KoColor color = _color;
2960
2961 if (!m_cfg.readEntry(name).isNull()) {
2962 doc.setContent(m_cfg.readEntry(name));
2963 QDomElement e = doc.documentElement().firstChild().toElement();
2965 }
2966 else {
2967 QString blackColor = "<!DOCTYPE Color>\n<Color>\n <RGB r=\"0\" space=\"sRGB-elle-V2-srgbtrc.icc\" b=\"0\" g=\"0\"/>\n</Color>\n";
2968 doc.setContent(blackColor);
2969 QDomElement e = doc.documentElement().firstChild().toElement();
2971 }
2972 return color;
2973}
const KoID Integer16BitsColorDepthID("U16", ki18n("16-bit integer/channel"))
static KoColor fromXML(const QDomElement &elt, const QString &channelDepthId)
Definition KoColor.cpp:350

References KoColor::fromXML(), KoID::id(), Integer16BitsColorDepthID, and m_cfg.

◆ readKoColors()

QList< KoColor > KisConfig::readKoColors ( const QString & name) const

Definition at line 2988 of file kis_config.cc.

2989{
2990 QList<KoColor> colors;
2991 QString colorListXML = m_cfg.readEntry(name);
2992
2993 if (!colorListXML.isNull()) {
2994 QDomDocument doc;
2995 doc.setContent(colorListXML);
2996 QDomElement colorsElement = doc.firstChildElement();
2997 if (!colorsElement.isNull()) {
2998 QDomNodeList colorNodes = colorsElement.childNodes();
2999 colors.reserve(colorNodes.size());
3000
3001 for (int k = 0; k < colorNodes.size(); k++) {
3002 QDomElement colorElement = colorNodes.at(k).toElement();
3003 KoColor color = KoColor::fromXML(colorElement, Integer16BitsColorDepthID.id());
3004 colors.push_back(color);
3005 }
3006 }
3007 }
3008
3009 return colors;
3010}

References KoColor::fromXML(), KoID::id(), Integer16BitsColorDepthID, and m_cfg.

◆ readList()

template<class T >
QList< T > KisConfig::readList ( const QString & name,
const QList< T > & defaultValue = QList<T>() )
inline

Definition at line 837 of file kis_config.h.

837 {
838 return m_cfg.readEntry(name, defaultValue);
839 }

◆ renamePastedLayers()

bool KisConfig::renamePastedLayers ( bool defaultValue = false) const

Definition at line 2847 of file kis_config.cc.

2848{
2849 return defaultValue ? true : m_cfg.readEntry("renamePastedLayers", true);
2850}

References m_cfg.

◆ rootSurfaceFormat() [1/2]

KisConfig::RootSurfaceFormat KisConfig::rootSurfaceFormat ( bool defaultValue = false) const

Definition at line 2788 of file kis_config.cc.

2789{
2790 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
2791 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
2792
2793 return rootSurfaceFormat(&kritarc, defaultValue);
2794}
RootSurfaceFormat rootSurfaceFormat(bool defaultValue=false) const

References rootSurfaceFormat().

◆ rootSurfaceFormat() [2/2]

KisConfig::RootSurfaceFormat KisConfig::rootSurfaceFormat ( QSettings * displayrc,
bool defaultValue = false )
static

Definition at line 2804 of file kis_config.cc.

2805{
2806 QString textValue = "bt709-g22";
2807
2808 if (!defaultValue) {
2809 textValue = displayrc->value("rootSurfaceFormat", textValue).toString();
2810 }
2811
2812 return textValue == "bt709-g10" ? BT709_G10 :
2813 textValue == "bt2020-pq" ? BT2020_PQ :
2814 BT709_G22;
2815}

References BT2020_PQ, BT709_G10, and BT709_G22.

◆ rulersTrackMouse()

bool KisConfig::rulersTrackMouse ( bool defaultValue = false) const

Definition at line 1021 of file kis_config.cc.

1022{
1023 return (defaultValue ? true : m_cfg.readEntry("rulersTrackMouse", true));
1024}

References m_cfg.

◆ saveSessionOnQuit()

bool KisConfig::saveSessionOnQuit ( bool defaultValue) const

Definition at line 1482 of file kis_config.cc.

1483{
1484 return defaultValue ? false : m_cfg.readEntry("saveSessionOnQuit", false);
1485}

References m_cfg.

◆ saveSnapConfig()

void KisConfig::saveSnapConfig ( const KisSnapConfig & config)

Definition at line 1299 of file kis_config.cc.

1300{
1301 m_cfg.writeEntry("globalSnapOrthogonal", config.orthogonal());
1302 m_cfg.writeEntry("globalSnapNode", config.node());
1303 m_cfg.writeEntry("globalSnapExtension", config.extension());
1304 m_cfg.writeEntry("globalSnapIntersection", config.intersection());
1305 m_cfg.writeEntry("globalSnapBoundingBox", config.boundingBox());
1306 m_cfg.writeEntry("globalSnapImageBounds", config.imageBounds());
1307 m_cfg.writeEntry("globalSnapImageCenter", config.imageCenter());
1308 m_cfg.writeEntry("globalSnapToPixel", config.toPixel());
1309}
bool orthogonal() const
bool node() const
bool toPixel() const
bool imageBounds() const
bool boundingBox() const
bool intersection() const
bool extension() const
bool imageCenter() const

References KisSnapConfig::boundingBox(), KisSnapConfig::extension(), KisSnapConfig::imageBounds(), KisSnapConfig::imageCenter(), KisSnapConfig::intersection(), m_cfg, KisSnapConfig::node(), KisSnapConfig::orthogonal(), and KisSnapConfig::toPixel().

◆ scratchpadVisible()

bool KisConfig::scratchpadVisible ( bool defaultValue = false) const

Definition at line 2105 of file kis_config.cc.

2106{
2107 return (defaultValue ? true : m_cfg.readEntry("scratchpadVisible", true));
2108}

References m_cfg.

◆ scrollbarZoomEnabled()

bool KisConfig::scrollbarZoomEnabled ( bool defaultValue = false) const

Definition at line 1357 of file kis_config.cc.

1358{
1359 return (defaultValue ? true : m_cfg.readEntry("scrollbarZoomEnabled", true));
1360}

References m_cfg.

◆ scrollCheckers()

bool KisConfig::scrollCheckers ( bool defaultValue = false) const

Definition at line 1326 of file kis_config.cc.

1327{
1328 return (defaultValue ? false : m_cfg.readEntry("scrollingcheckers", false));
1329}

References m_cfg.

◆ scrubbingAudioUpdatesDelay()

int KisConfig::scrubbingAudioUpdatesDelay ( bool defaultValue = false) const

Definition at line 2626 of file kis_config.cc.

2627{
2628 return (defaultValue ? -1 : m_cfg.readEntry("scrubbingAudioUpdatesDelay", -1));
2629}

References m_cfg.

◆ scrubbingUpdatesDelay()

int KisConfig::scrubbingUpdatesDelay ( bool defaultValue = false) const

Definition at line 2616 of file kis_config.cc.

2617{
2618 return (defaultValue ? 30 : m_cfg.readEntry("scrubbingUpdatesDelay", 30));
2619}

References m_cfg.

◆ selectionActionBar()

bool KisConfig::selectionActionBar ( bool defaultValue = false) const

Definition at line 2778 of file kis_config.cc.

2779{
2780 return defaultValue ? true : m_cfg.readEntry("selectionActionBar", true);
2781}

References m_cfg.

◆ selectionViewSizeMinimum()

qreal KisConfig::selectionViewSizeMinimum ( bool defaultValue = false) const

Definition at line 1511 of file kis_config.cc.

1512{
1513 return (defaultValue ? 5.0 : m_cfg.readEntry("SelectionViewSizeMinimum", 5.0));
1514}

References m_cfg.

◆ separateEraserCursor()

bool KisConfig::separateEraserCursor ( bool defaultValue = false) const

Definition at line 463 of file kis_config.cc.

464{
465 return (defaultValue ? false : m_cfg.readEntry("separateEraserCursor", false));
466}

References m_cfg.

◆ sessionOnStartup()

KisConfig::SessionOnStartup KisConfig::sessionOnStartup ( bool defaultValue = false) const

Definition at line 1472 of file kis_config.cc.

1473{
1474 int value = defaultValue ? SOS_BlankSession : m_cfg.readEntry("sessionOnStartup", (int)SOS_BlankSession);
1476}

References m_cfg, SOS_BlankSession, and value().

◆ setActivateTransformToolAfterPaste()

void KisConfig::setActivateTransformToolAfterPaste ( bool value)

Definition at line 2763 of file kis_config.cc.

2764{
2765 m_cfg.writeEntry("activateTransformToolAfterPaste", value);
2766}

References m_cfg, and value().

◆ setAdaptivePlaybackRange()

void KisConfig::setAdaptivePlaybackRange ( bool value)

Definition at line 2578 of file kis_config.cc.

2579{
2580 m_cfg.writeEntry("adaptivePlaybackRange", value);
2581}

References m_cfg, and value().

◆ setAllowLCMSOptimization()

void KisConfig::setAllowLCMSOptimization ( bool allowLCMSOptimization)

Definition at line 970 of file kis_config.cc.

971{
972 m_cfg.writeEntry("allowLCMSOptimization", allowLCMSOptimization);
973}
bool allowLCMSOptimization(bool defaultValue=false) const

References allowLCMSOptimization(), and m_cfg.

◆ setAnimationDropFrames()

void KisConfig::setAnimationDropFrames ( bool value)

Definition at line 2553 of file kis_config.cc.

2554{
2555 bool oldValue = animationDropFrames();
2556
2557 if (value == oldValue) return;
2558
2559 m_cfg.writeEntry("animationDropFrames", value);
2561}
static KisConfigNotifier * instance()
bool animationDropFrames(bool defaultValue=false) const

References animationDropFrames(), KisConfigNotifier::instance(), m_cfg, KisConfigNotifier::notifyDropFramesModeChanged(), and value().

◆ setAnimationPlaybackBackend()

void KisConfig::setAnimationPlaybackBackend ( int value)

Definition at line 2543 of file kis_config.cc.

2544{
2545 m_cfg.writeEntry("animationPlaybackBackend", value);
2546}

References m_cfg, and value().

◆ setAntialiasCurves()

void KisConfig::setAntialiasCurves ( bool v) const

Definition at line 1393 of file kis_config.cc.

1394{
1395 m_cfg.writeEntry("antialiascurves", v);
1396}

References m_cfg, and v.

◆ setAntialiasSelectionOutline()

void KisConfig::setAntialiasSelectionOutline ( bool v) const

Definition at line 1403 of file kis_config.cc.

1404{
1405 m_cfg.writeEntry("AntialiasSelectionOutline", v);
1406}

References m_cfg, and v.

◆ setAssistantsDrawMode()

void KisConfig::setAssistantsDrawMode ( AssistantsDrawMode value)

Definition at line 2907 of file kis_config.cc.

2908{
2909 m_cfg.writeEntry("assistantsDrawMode", static_cast<int>(value));
2910}

References m_cfg, and value().

◆ setAudioOffsetTolerance()

void KisConfig::setAudioOffsetTolerance ( int value)

Definition at line 2641 of file kis_config.cc.

2642{
2643 m_cfg.writeEntry("audioOffsetTolerance", value);
2644}

References m_cfg, and value().

◆ setAutoPinLayersToTimeline()

void KisConfig::setAutoPinLayersToTimeline ( bool value)

Definition at line 2568 of file kis_config.cc.

2569{
2570 m_cfg.writeEntry("autoPinLayers", value);
2571}

References m_cfg, and value().

◆ setAutoSaveInterval()

void KisConfig::setAutoSaveInterval ( int seconds) const

Definition at line 1527 of file kis_config.cc.

1528{
1529 return m_cfg.writeEntry("AutoSaveInterval", seconds);
1530}

References m_cfg.

◆ setAutoSmoothBezierCurves()

void KisConfig::setAutoSmoothBezierCurves ( bool value)

Definition at line 2753 of file kis_config.cc.

2754{
2755 m_cfg.writeEntry("autoSmoothBezierCurves", value);
2756}

References m_cfg, and value().

◆ setAutoZoomTimelineToPlaybackRange()

void KisConfig::setAutoZoomTimelineToPlaybackRange ( bool value)

Definition at line 2588 of file kis_config.cc.

2589{
2590 m_cfg.writeEntry("autoZoomTimelineToPlaybackRange", value);
2591}

References m_cfg, and value().

◆ setBackupFile()

void KisConfig::setBackupFile ( bool backupFile) const

Definition at line 1537 of file kis_config.cc.

1538{
1539 m_cfg.writeEntry("CreateBackupFile", backupFile);
1540}

References backupFile(), and m_cfg.

◆ setBrushHudSetting()

void KisConfig::setBrushHudSetting ( const QString & value) const

Definition at line 2722 of file kis_config.cc.

2723{
2724 m_cfg.writeEntry("brushHudSettings", value);
2725}

References m_cfg, and value().

◆ setCalculateAnimationCacheInBackground()

void KisConfig::setCalculateAnimationCacheInBackground ( bool value)

Definition at line 2732 of file kis_config.cc.

2733{
2734 m_cfg.writeEntry("calculateAnimationCacheInBackground", value);
2735}

References m_cfg, and value().

◆ setCanvasBorderColor()

void KisConfig::setCanvasBorderColor ( const QColor & color) const

Definition at line 1342 of file kis_config.cc.

1343{
1344 m_cfg.writeEntry("canvasBorderColor", color);
1345}

References m_cfg.

◆ setCanvasState()

void KisConfig::setCanvasState ( const QString & state) const

Definition at line 1569 of file kis_config.cc.

1570{
1571 static QStringList acceptableStates;
1572 if (acceptableStates.isEmpty()) {
1573 acceptableStates << "OPENGL_SUCCESS" << "TRY_OPENGL" << "OPENGL_NOT_TRIED" << "OPENGL_FAILED";
1574 }
1575 if (acceptableStates.contains(state)) {
1576 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
1577 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
1578 kritarc.setValue("canvasState", state);
1579 }
1580}

◆ setCanvasSurfaceBitDepthMode() [1/2]

void KisConfig::setCanvasSurfaceBitDepthMode ( CanvasSurfaceBitDepthMode value)

Definition at line 760 of file kis_config.cc.

761{
762 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
763 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
765}
static void setCanvasSurfaceBitDepthMode(QSettings *settings, CanvasSurfaceBitDepthMode value)

References setCanvasSurfaceBitDepthMode(), and value().

◆ setCanvasSurfaceBitDepthMode() [2/2]

void KisConfig::setCanvasSurfaceBitDepthMode ( QSettings * settings,
CanvasSurfaceBitDepthMode value )
static

Definition at line 734 of file kis_config.cc.

735{
736 QString modeStr;
737
738 switch (value) {
740 modeStr = "auto";
741 break;
743 modeStr = "8bit";
744 break;
746 modeStr = "10bit";
747 break;
748 }
749
750 settings->setValue("canvasSurfaceBitDepthMode", modeStr);
751}

References Depth10Bit, Depth8Bit, DepthAuto, and value().

◆ setCanvasSurfaceColorSpaceManagementMode()

void KisConfig::setCanvasSurfaceColorSpaceManagementMode ( KisConfig::CanvasSurfaceMode value)

Definition at line 694 of file kis_config.cc.

694 {
695 QString modeStr;
696
697 switch (value) {
699 modeStr = "preferred";
700 break;
702 modeStr = "rec709g22";
703 break;
705 modeStr = "rec709g10";
706 break;
708 modeStr = "rec2020pq";
709 break;
711 modeStr = "unmanaged";
712 break;
713 }
714
715 m_cfg.writeEntry("canvasSurfaceColorSpaceManagementMode", modeStr);
716}

References m_cfg, Preferred, Rec2020pq, Rec709g10, Rec709g22, Unmanaged, and value().

◆ setCheckersColor1()

void KisConfig::setCheckersColor1 ( const QColor & v) const

Definition at line 1373 of file kis_config.cc.

1374{
1375 m_cfg.writeEntry("checkerscolor", v);
1376}

References m_cfg, and v.

◆ setCheckersColor2()

void KisConfig::setCheckersColor2 ( const QColor & v) const

Definition at line 1383 of file kis_config.cc.

1384{
1385 m_cfg.writeEntry("checkerscolor2", v);
1386}

References m_cfg, and v.

◆ setCheckSize()

void KisConfig::setCheckSize ( qint32 checkSize) const

Definition at line 1318 of file kis_config.cc.

1319{
1320 if (checksize == 0) {
1321 checksize = 32;
1322 }
1323 m_cfg.writeEntry("checksize", checksize);
1324}

References m_cfg.

◆ setClicklessSpacePan()

void KisConfig::setClicklessSpacePan ( const bool toggle) const

Definition at line 1773 of file kis_config.cc.

1774{
1775 m_cfg.writeEntry("clicklessSpacePan", toggle);
1776}

References m_cfg.

◆ setColorSamplerPreviewCircleDiameter()

void KisConfig::setColorSamplerPreviewCircleDiameter ( int style)

Definition at line 553 of file kis_config.cc.

554{
555 m_cfg.writeEntry("colorSamplerPreviewCircleDiameter", diameter);
556}

References m_cfg.

◆ setColorSamplerPreviewCircleExtraCirclesEnabled()

void KisConfig::setColorSamplerPreviewCircleExtraCirclesEnabled ( bool enabled)

Definition at line 595 of file kis_config.cc.

596{
597 m_cfg.writeEntry("colorSamplerPreviewCircleExtraCirclesEnabled", enabled);
598}

References m_cfg.

◆ setColorSamplerPreviewCircleOutlineEnabled()

void KisConfig::setColorSamplerPreviewCircleOutlineEnabled ( bool enabled)

Definition at line 581 of file kis_config.cc.

582{
583 m_cfg.writeEntry("colorSamplerPreviewCircleOutlineEnabled", enabled);
584}

References m_cfg.

◆ setColorSamplerPreviewCircleThickness()

void KisConfig::setColorSamplerPreviewCircleThickness ( qreal thickness)

Definition at line 567 of file kis_config.cc.

568{
569 m_cfg.writeEntry("colorSamplerPreviewCircleThickness", thickness);
570}

References m_cfg.

◆ setColorSamplerPreviewStyle()

void KisConfig::setColorSamplerPreviewStyle ( ColorSamplerPreviewStyle style)

Definition at line 538 of file kis_config.cc.

539{
540 m_cfg.writeEntry("colorSamplerPreviewStyle", int(style));
542}
void notifyColorSamplerPreviewStyleChanged()

References KisConfigNotifier::instance(), m_cfg, and KisConfigNotifier::notifyColorSamplerPreviewStyleChanged().

◆ setCompressKra()

void KisConfig::setCompressKra ( bool compress)

Definition at line 2360 of file kis_config.cc.

2361{
2362 m_cfg.writeEntry("compressLayersInKra", compress);
2363}

References m_cfg.

◆ setConvertLayerColorSpaceInProperties()

void KisConfig::setConvertLayerColorSpaceInProperties ( bool value)

Definition at line 2842 of file kis_config.cc.

2843{
2844 m_cfg.writeEntry("convertLayerColorSpaceInProperties", value);
2845}

References m_cfg, and value().

◆ setConvertToImageColorspaceOnImport()

void KisConfig::setConvertToImageColorspaceOnImport ( bool value)

Definition at line 2661 of file kis_config.cc.

2662{
2663 m_cfg.writeEntry("ConvertToImageColorSpaceOnImport", value);
2664}

References m_cfg, and value().

◆ setCumulativeUndoData()

void KisConfig::setCumulativeUndoData ( KisCumulativeUndoData value)

Definition at line 224 of file kis_config.cc.

225{
226 value.write(&m_cfg);
227}

References m_cfg, value(), and KisCumulativeUndoData::write().

◆ setCumulativeUndoRedo()

void KisConfig::setCumulativeUndoRedo ( bool value)

Definition at line 208 of file kis_config.cc.

209{
210 m_cfg.writeEntry("useCumulativeUndoRedo", value);
211}

References m_cfg, and value().

◆ setCurrentInputProfile()

void KisConfig::setCurrentInputProfile ( const QString & name)

Definition at line 2080 of file kis_config.cc.

2081{
2082 m_cfg.writeEntry("currentInputProfile", name);
2083}

References m_cfg.

◆ setCursorMainColor()

void KisConfig::setCursorMainColor ( const QColor & v) const

Definition at line 391 of file kis_config.cc.

392{
393 m_cfg.writeEntry("cursorMaincColor", v);
394}

References m_cfg, and v.

◆ setCustomColorSelectorColorSpace()

void KisConfig::setCustomColorSelectorColorSpace ( const KoColorSpace * cs)

Definition at line 2490 of file kis_config.cc.

2491{
2492 KConfigGroup cfg = KSharedConfig::openConfig()->group("advancedColorSelector");
2493 cfg.writeEntry("useCustomColorSpace", bool(cs));
2494 if(cs) {
2495 cfg.writeEntry("customColorSpaceModel", cs->colorModelId().id());
2496 cfg.writeEntry("customColorSpaceDepthID", cs->colorDepthId().id());
2497 cfg.writeEntry("customColorSpaceProfile", cs->profile()->name());
2498 }
2499}
virtual KoID colorModelId() const =0
virtual KoID colorDepthId() const =0
virtual const KoColorProfile * profile() const =0

References KoColorSpace::colorDepthId(), KoColorSpace::colorModelId(), KoID::id(), KoColorProfile::name, and KoColorSpace::profile().

◆ setDefaultAssistantsColor()

void KisConfig::setDefaultAssistantsColor ( const QColor & color) const

Definition at line 2743 of file kis_config.cc.

2744{
2745 m_cfg.writeEntry("defaultAssistantsColor", color);
2746}

References m_cfg.

◆ setDefaultBackgroundColor()

void KisConfig::setDefaultBackgroundColor ( const QColor & value)

Definition at line 2160 of file kis_config.cc.

2161{
2162 m_cfg.writeEntry("BackgroundColorForNewImage", value);
2163}

References m_cfg, and value().

◆ setDefaultBackgroundOpacity()

void KisConfig::setDefaultBackgroundOpacity ( quint8 value)

Definition at line 2150 of file kis_config.cc.

2151{
2152 m_cfg.writeEntry("BackgroundOpacityForNewImage", (int)value);
2153}

References m_cfg, and value().

◆ setDefaultBackgroundStyle()

void KisConfig::setDefaultBackgroundStyle ( KisConfig::BackgroundStyle value)

Definition at line 2170 of file kis_config.cc.

2171{
2172 m_cfg.writeEntry("BackgroundStyleForNewImage", (int)value);
2173}

References m_cfg, and value().

◆ setDefaultColorDepth()

void KisConfig::setDefaultColorDepth ( const QString & depth) const

set the id of the default color depth used for creating new images.

Definition at line 261 of file kis_config.cc.

262{
263 m_cfg.writeEntry("colorDepthDef", depth);
264}

References m_cfg.

◆ setDefaultGridSpacing()

void KisConfig::setDefaultGridSpacing ( QPoint gridSpacing)

Definition at line 637 of file kis_config.cc.

638{
639 m_cfg.writeEntry("defaultGridSpacing", gridSpacing);
640}

References m_cfg.

◆ setDefaultPalette()

void KisConfig::setDefaultPalette ( const QString & name) const

Definition at line 2023 of file kis_config.cc.

2024{
2025 m_cfg.writeEntry("defaultPalette", name);
2026}

References m_cfg.

◆ setDisableAVXOptimizations()

void KisConfig::setDisableAVXOptimizations ( bool value)

Definition at line 2533 of file kis_config.cc.

2534{
2535 m_cfg.writeEntry("disableAVXOptimizations", value);
2536}

References m_cfg, and value().

◆ setDisableVectorOptimizations()

void KisConfig::setDisableVectorOptimizations ( bool value)

Definition at line 2521 of file kis_config.cc.

2522{
2523 // use the old key name for compatibility
2524 m_cfg.writeEntry("amdDisableVectorWorkaround", value);
2525}

References m_cfg, and value().

◆ setEnableBrushSpeedLogging()

void KisConfig::setEnableBrushSpeedLogging ( bool value) const

Definition at line 2516 of file kis_config.cc.

2517{
2518 m_cfg.writeEntry("enableBrushSpeedLogging", value);
2519}

References m_cfg, and value().

◆ setEnableCanvasSurfaceColorSpaceManagement()

void KisConfig::setEnableCanvasSurfaceColorSpaceManagement ( bool value)

Definition at line 671 of file kis_config.cc.

672{
673 m_cfg.writeEntry("enableCanvasSurfaceColorSpaceManagement", value);
674}

References m_cfg, and value().

◆ setEnableOpenGLFramerateLogging()

void KisConfig::setEnableOpenGLFramerateLogging ( bool value) const

Definition at line 2506 of file kis_config.cc.

2507{
2508 m_cfg.writeEntry("enableOpenGLFramerateLogging", value);
2509}

References m_cfg, and value().

◆ setEraserCursorMainColor()

void KisConfig::setEraserCursorMainColor ( const QColor & v) const

Definition at line 501 of file kis_config.cc.

502{
503 m_cfg.writeEntry("eraserCursorMaincColor", v);
504}

References m_cfg, and v.

◆ setEraserCursorStyle()

void KisConfig::setEraserCursorStyle ( CursorStyle style)

Definition at line 489 of file kis_config.cc.

490{
491 m_cfg.writeEntry("eraserCursorStyle", (int)style);
492}

References m_cfg.

◆ setEraserOutlineStyle()

void KisConfig::setEraserOutlineStyle ( OutlineStyle style)

Definition at line 522 of file kis_config.cc.

523{
524 m_cfg.writeEntry("eraserOutlineStyle", (int)style);
525}

References m_cfg.

◆ setExportConfiguration()

void KisConfig::setExportConfiguration ( const QString & filterId,
KisPropertiesConfigurationSP properties ) const

Definition at line 1904 of file kis_config.cc.

1905{
1906 QString exportConfig = properties->toXML();
1907 m_cfg.writeEntry("ExportConfiguration-" + filterId, exportConfig);
1908}

References m_cfg.

◆ setExportMimeType()

void KisConfig::setExportMimeType ( const QString & defaultExportMimeType)

Definition at line 2389 of file kis_config.cc.

2390{
2391 m_cfg.writeEntry("defaultExportMimeType", defaultExportMimeType);
2392}

References m_cfg.

◆ setFavoriteCompositeOps()

void KisConfig::setFavoriteCompositeOps ( const QStringList & compositeOps) const

Definition at line 1886 of file kis_config.cc.

1887{
1888 m_cfg.writeEntry("favoriteCompositeOps", compositeOps);
1889}

References m_cfg.

◆ setFavoritePresets()

void KisConfig::setFavoritePresets ( const int value)

Definition at line 1941 of file kis_config.cc.

1942{
1943 m_cfg.writeEntry("numFavoritePresets", value);
1944}

References m_cfg, and value().

◆ setFFMpegLocation()

void KisConfig::setFFMpegLocation ( const QString & value)

Definition at line 2597 of file kis_config.cc.

2597 {
2598 m_cfg.writeEntry("ffmpegLocation", value);
2599}

References m_cfg, and value().

◆ setFirstRun()

void KisConfig::setFirstRun ( const bool firstRun) const

Definition at line 1744 of file kis_config.cc.

1745{
1746 m_cfg.writeEntry("firstRun", first);
1747}

References m_cfg.

◆ setForceAlwaysFullSizedEraserOutline()

void KisConfig::setForceAlwaysFullSizedEraserOutline ( bool value) const

Definition at line 1467 of file kis_config.cc.

1468{
1469 m_cfg.writeEntry("forceAlwaysFullSizedEraserOutline", value);
1470}

References m_cfg, and value().

◆ setForceAlwaysFullSizedOutline()

void KisConfig::setForceAlwaysFullSizedOutline ( bool value) const

Definition at line 1445 of file kis_config.cc.

1446{
1447 m_cfg.writeEntry("forceAlwaysFullSizedOutline", value);
1448}

References m_cfg, and value().

◆ setForcePaletteColors()

void KisConfig::setForcePaletteColors ( bool forcePaletteColors)

Definition at line 980 of file kis_config.cc.

981{
982 m_cfg.writeEntry("colorsettings/forcepalettecolors", forcePaletteColors);
983}
bool forcePaletteColors(bool defaultValue=false) const

References forcePaletteColors(), and m_cfg.

◆ setForceShowAutosaveMessages()

void KisConfig::setForceShowAutosaveMessages ( bool ShowAutosaveMessages) const

Definition at line 1016 of file kis_config.cc.

1017{
1018 m_cfg.writeEntry("forceShowAutosaveMessages", value);
1019}

References m_cfg, and value().

◆ setForceShowSaveMessages()

void KisConfig::setForceShowSaveMessages ( bool value) const

Definition at line 1006 of file kis_config.cc.

1007{
1008 m_cfg.writeEntry("forceShowSaveMessages", value);
1009}

References m_cfg, and value().

◆ setFullscreenMode()

void KisConfig::setFullscreenMode ( const bool value) const

Definition at line 1874 of file kis_config.cc.

1875{
1876 m_cfg.writeEntry("fullscreenMode", value);
1877}

References m_cfg, and value().

◆ setGridIsoVerticalColor()

void KisConfig::setGridIsoVerticalColor ( const QColor & v) const

Definition at line 1219 of file kis_config.cc.

1220{
1221 m_cfg.writeEntry("gridisoverticalcolor", v);
1222}

References m_cfg, and v.

◆ setGridIsoVerticalStyle()

void KisConfig::setGridIsoVerticalStyle ( quint32 v) const

Definition at line 1186 of file kis_config.cc.

1187{
1188 m_cfg.writeEntry("gridisoverticalstyle", v);
1189}

References m_cfg, and v.

◆ setGridMainColor()

void KisConfig::setGridMainColor ( const QColor & v) const

Definition at line 1197 of file kis_config.cc.

1198{
1199 m_cfg.writeEntry("gridmaincolor", v);
1200}

References m_cfg, and v.

◆ setGridMainStyle()

void KisConfig::setGridMainStyle ( quint32 v) const

Definition at line 1162 of file kis_config.cc.

1163{
1164 m_cfg.writeEntry("gridmainstyle", v);
1165}

References m_cfg, and v.

◆ setGridSubdivisionColor()

void KisConfig::setGridSubdivisionColor ( const QColor & v) const

Definition at line 1208 of file kis_config.cc.

1209{
1210 m_cfg.writeEntry("gridsubdivisioncolor", v);
1211}

References m_cfg, and v.

◆ setGridSubdivisionStyle()

void KisConfig::setGridSubdivisionStyle ( quint32 v) const

Definition at line 1174 of file kis_config.cc.

1175{
1176 m_cfg.writeEntry("gridsubdivisionstyle", v);
1177}

References m_cfg, and v.

◆ setGuidesColor()

void KisConfig::setGuidesColor ( const QColor & v) const

Definition at line 1275 of file kis_config.cc.

1276{
1277 m_cfg.writeEntry("guidesColor", v);
1278}

References m_cfg, and v.

◆ setGuidesLineStyle()

void KisConfig::setGuidesLineStyle ( quint32 v) const

Definition at line 1264 of file kis_config.cc.

1265{
1266 m_cfg.writeEntry("guidesLineStyle", v);
1267}

References m_cfg, and v.

◆ setHideDevFundBanner()

void KisConfig::setHideDevFundBanner ( bool value = true)

Definition at line 1496 of file kis_config.cc.

1497{
1498 m_cfg.writeEntry("hideDevFundBanner", value);
1499}

References m_cfg, and value().

◆ setHideDockersFullscreen()

void KisConfig::setHideDockersFullscreen ( const bool value) const

Definition at line 1784 of file kis_config.cc.

1785{
1786 m_cfg.writeEntry("hideDockersFullScreen", value);
1787}

References m_cfg, and value().

◆ setHideMenuFullscreen()

void KisConfig::setHideMenuFullscreen ( const bool value) const

Definition at line 1824 of file kis_config.cc.

1825{
1826 m_cfg.writeEntry("hideMenuFullScreen", value);
1827}

References m_cfg, and value().

◆ setHidePopups()

void KisConfig::setHidePopups ( bool hidePopups)

Definition at line 2130 of file kis_config.cc.

2131{
2132 m_cfg.writeEntry("hidePopups", hidePopups);
2133}
bool hidePopups(bool defaultValue=false) const

References hidePopups(), and m_cfg.

◆ setHideScrollbars()

void KisConfig::setHideScrollbars ( bool value) const

Definition at line 1352 of file kis_config.cc.

1353{
1354 m_cfg.writeEntry("hideScrollbars", value);
1355}

References m_cfg, and value().

◆ setHideScrollbarsFullscreen()

void KisConfig::setHideScrollbarsFullscreen ( const bool value) const

Definition at line 1834 of file kis_config.cc.

1835{
1836 m_cfg.writeEntry("hideScrollbarsFullScreen", value);
1837}

References m_cfg, and value().

◆ setHideStatusbarFullscreen()

void KisConfig::setHideStatusbarFullscreen ( const bool value) const

Definition at line 1844 of file kis_config.cc.

1845{
1846 m_cfg.writeEntry("hideStatusbarFullScreen", value);
1847}

References m_cfg, and value().

◆ setHideTitlebarFullscreen()

void KisConfig::setHideTitlebarFullscreen ( const bool value) const

Definition at line 1854 of file kis_config.cc.

1855{
1856 m_cfg.writeEntry("hideTitleBarFullscreen", value);
1857}

References m_cfg, and value().

◆ setHideToolbarFullscreen()

void KisConfig::setHideToolbarFullscreen ( const bool value) const

Definition at line 1864 of file kis_config.cc.

1865{
1866 m_cfg.writeEntry("hideToolbarFullscreen", value);
1867}

References m_cfg, and value().

◆ setHorizontalSplitLines()

void KisConfig::setHorizontalSplitLines ( const int numberLines) const

Definition at line 1753 of file kis_config.cc.

1754{
1755 m_cfg.writeEntry("horizontalSplitLines", numberLines);
1756}

References m_cfg.

◆ setIgnoreHighFunctionKeys()

void KisConfig::setIgnoreHighFunctionKeys ( bool value)

Definition at line 2310 of file kis_config.cc.

2311{
2312 m_cfg.writeEntry("ignoreHighFunctionKeys", value);
2313}

References m_cfg, and value().

◆ setImportConfiguration()

void KisConfig::setImportConfiguration ( const QString & filterId,
KisPropertiesConfigurationSP properties ) const

Definition at line 1915 of file kis_config.cc.

1916{
1917 QString importConfig = properties->toXML();
1918 m_cfg.writeEntry("ImportConfiguration-" + filterId, importConfig);
1919}

References m_cfg.

◆ setImportProfile()

void KisConfig::setImportProfile ( const QString & importProfile) const

◆ setKineticScrollingEnabled()

void KisConfig::setKineticScrollingEnabled ( bool enabled)

Definition at line 2409 of file kis_config.cc.

2410{
2411 m_cfg.writeEntry("KineticScrollingEnabled", value);
2412}

References m_cfg, and value().

◆ setKineticScrollingGesture()

void KisConfig::setKineticScrollingGesture ( int kineticScroll)

Definition at line 2425 of file kis_config.cc.

2426{
2427 m_cfg.writeEntry("KineticScrollingGesture", gesture);
2428}

References m_cfg.

◆ setKineticScrollingHideScrollbars()

void KisConfig::setKineticScrollingHideScrollbars ( bool scrollbar)

Definition at line 2445 of file kis_config.cc.

2446{
2447 m_cfg.writeEntry("KineticScrollingHideScrollbar", scrollbar);
2448}

References m_cfg.

◆ setKineticScrollingSensitivity()

void KisConfig::setKineticScrollingSensitivity ( int sensitivity)

Definition at line 2435 of file kis_config.cc.

2436{
2437 m_cfg.writeEntry("KineticScrollingSensitivity", sensitivity);
2438}

References m_cfg.

◆ setLastUsedOutlineStyle()

void KisConfig::setLastUsedOutlineStyle ( OutlineStyle style)

Definition at line 456 of file kis_config.cc.

457{
458 m_cfg.writeEntry("lastUsedOutlineStyle", (int)style);
459}

References m_cfg.

◆ setLayerInfoTextOpacity()

void KisConfig::setLayerInfoTextOpacity ( int value)

Definition at line 2872 of file kis_config.cc.

2873{
2874 m_cfg.writeEntry("layerInfoTextOpacity", value);
2875}

References m_cfg, and value().

◆ setLayerInfoTextStyle()

void KisConfig::setLayerInfoTextStyle ( KisConfig::LayerInfoTextStyle value)

Definition at line 2862 of file kis_config.cc.

2863{
2864 m_cfg.writeEntry("layerInfoTextStyle", (int)value);
2865}

References m_cfg, and value().

◆ setLayerThumbnailGenerationTimeout()

void KisConfig::setLayerThumbnailGenerationTimeout ( int value)

Definition at line 2937 of file kis_config.cc.

2938{
2939 m_cfg.writeEntry("layerThumbnailGenerationTimeout", value);
2940}

References m_cfg, and value().

◆ setLayerThumbnailSize()

void KisConfig::setLayerThumbnailSize ( int size)

Definition at line 2050 of file kis_config.cc.

2051{
2052 m_cfg.writeEntry("layerThumbnailSize", size);
2053}

References m_cfg.

◆ setLayerTreeIndentation()

void KisConfig::setLayerTreeIndentation ( int percentage)

Definition at line 2060 of file kis_config.cc.

2061{
2062 m_cfg.writeEntry("layerTreeIndentation", percentage);
2063}

References m_cfg.

◆ setLevelOfDetailEnabled()

void KisConfig::setLevelOfDetailEnabled ( bool value)

Definition at line 1951 of file kis_config.cc.

1952{
1953 m_cfg.writeEntry("levelOfDetailEnabled", value);
1954}

References m_cfg, and value().

◆ setLineSmoothingDelayDistance()

void KisConfig::setLineSmoothingDelayDistance ( qreal value)

Definition at line 2250 of file kis_config.cc.

2251{
2252 m_cfg.writeEntry("LineSmoothingDelayDistance", value);
2253}

References m_cfg, and value().

◆ setLineSmoothingDistanceKeepAspectRatio()

void KisConfig::setLineSmoothingDistanceKeepAspectRatio ( bool value)

Definition at line 2210 of file kis_config.cc.

2211{
2212 m_cfg.writeEntry("LineSmoothingDistanceKeepAspectRatio", value);
2213}

References m_cfg, and value().

◆ setLineSmoothingDistanceMax()

void KisConfig::setLineSmoothingDistanceMax ( qreal value)

Definition at line 2200 of file kis_config.cc.

2201{
2202 m_cfg.writeEntry("LineSmoothingDistanceMax", value);
2203}

References m_cfg, and value().

◆ setLineSmoothingDistanceMin()

void KisConfig::setLineSmoothingDistanceMin ( qreal value)

Definition at line 2190 of file kis_config.cc.

2191{
2192 m_cfg.writeEntry("LineSmoothingDistanceMin", value);
2193}

References m_cfg, and value().

◆ setLineSmoothingFinishStabilizedCurve()

void KisConfig::setLineSmoothingFinishStabilizedCurve ( bool value)

Definition at line 2270 of file kis_config.cc.

2271{
2272 m_cfg.writeEntry("LineSmoothingFinishStabilizedCurve", value);
2273}

References m_cfg, and value().

◆ setLineSmoothingScalableDistance()

void KisConfig::setLineSmoothingScalableDistance ( bool value)

Definition at line 2240 of file kis_config.cc.

2241{
2242 m_cfg.writeEntry("LineSmoothingScalableDistance", value);
2243}

References m_cfg, and value().

◆ setLineSmoothingSmoothPressure()

void KisConfig::setLineSmoothingSmoothPressure ( bool value)

Definition at line 2230 of file kis_config.cc.

2231{
2232 m_cfg.writeEntry("LineSmoothingSmoothPressure", value);
2233}

References m_cfg, and value().

◆ setLineSmoothingStabilizeSensors()

void KisConfig::setLineSmoothingStabilizeSensors ( bool value)

Definition at line 2280 of file kis_config.cc.

2281{
2282 m_cfg.writeEntry("LineSmoothingStabilizeSensors", value);
2283}

References m_cfg, and value().

◆ setLineSmoothingTailAggressiveness()

void KisConfig::setLineSmoothingTailAggressiveness ( qreal value)

Definition at line 2220 of file kis_config.cc.

2221{
2222 m_cfg.writeEntry("LineSmoothingTailAggressiveness", value);
2223}

References m_cfg, and value().

◆ setLineSmoothingType()

void KisConfig::setLineSmoothingType ( int value)

Definition at line 2180 of file kis_config.cc.

2181{
2182 m_cfg.writeEntry("LineSmoothingType", value);
2183}

References m_cfg, and value().

◆ setLineSmoothingUseDelayDistance()

void KisConfig::setLineSmoothingUseDelayDistance ( bool value)

Definition at line 2260 of file kis_config.cc.

2261{
2262 m_cfg.writeEntry("LineSmoothingUseDelayDistance", value);
2263}

References m_cfg, and value().

◆ setLongPressEnabled()

void KisConfig::setLongPressEnabled ( bool value)

Definition at line 2926 of file kis_config.cc.

2927{
2928 m_cfg.writeEntry("longPressEnabled", value);
2930}
void notifyLongPressChanged(bool enabled)

References KisConfigNotifier::instance(), m_cfg, KisConfigNotifier::notifyLongPressChanged(), and value().

◆ setMDIBackgroundColor()

void KisConfig::setMDIBackgroundColor ( const QString & v) const

Definition at line 651 of file kis_config.cc.

652{
653 m_cfg.writeEntry("mdiBackgroundColorXML", v);
654}

References m_cfg, and v.

◆ setMDIBackgroundImage()

void KisConfig::setMDIBackgroundImage ( const QString & fileName) const

Definition at line 661 of file kis_config.cc.

662{
663 m_cfg.writeEntry("mdiBackgroundImage", filename);
664}

References m_cfg.

◆ setMonitorForScreen()

void KisConfig::setMonitorForScreen ( int screen,
const QString & monitor )

Definition at line 816 of file kis_config.cc.

817{
818 m_cfg.writeEntry(QString("monitor_for_screen_%1").arg(screen), monitor);
819}

References m_cfg.

◆ setMonitorProfile()

void KisConfig::setMonitorProfile ( int screen,
const QString & monitorProfile,
bool override ) const

Definition at line 821 of file kis_config.cc.

822{
823 m_cfg.writeEntry("monitorProfile/OverrideX11", override);
824 m_cfg.writeEntry("monitorProfile" + QString(screen == 0 ? "": QString("_%1").arg(screen)), monitorProfile);
825 if (!getScreenStringIdentfier(screen).isEmpty()) {
826 m_cfg.writeEntry("monitorProfile" + getScreenStringIdentfier(screen), monitorProfile);
827 }
828}

References getScreenStringIdentfier(), m_cfg, and monitorProfile().

◆ setNewCursorStyle()

void KisConfig::setNewCursorStyle ( CursorStyle style)

Definition at line 379 of file kis_config.cc.

380{
381 m_cfg.writeEntry("newCursorStyle", (int)style);
382}

References m_cfg.

◆ setNewOutlineStyle()

void KisConfig::setNewOutlineStyle ( OutlineStyle style)

Definition at line 440 of file kis_config.cc.

441{
442 m_cfg.writeEntry("newOutlineStyle", (int)style);
443}

References m_cfg.

◆ setNumDefaultLayers()

void KisConfig::setNumDefaultLayers ( int num)

Definition at line 2140 of file kis_config.cc.

2141{
2142 m_cfg.writeEntry("NumberOfLayersForNewImage", num);
2143}

References m_cfg.

◆ setOcioColorManagementMode()

void KisConfig::setOcioColorManagementMode ( OcioColorManagementMode mode) const

Definition at line 1992 of file kis_config.cc.

1993{
1994 // FIXME: this option duplicates ocioConfiguration(), please deprecate it
1995 m_cfg.writeEntry("Krita/Ocio/OcioColorManagementMode", (int) mode);
1996}

References m_cfg.

◆ setOcioConfiguration()

void KisConfig::setOcioConfiguration ( const KisOcioConfiguration & cfg)

Definition at line 1973 of file kis_config.cc.

1974{
1975 m_cfg.writeEntry("Krita/Ocio/OcioColorManagementMode", (int) cfg.mode);
1976 m_cfg.writeEntry("Krita/Ocio/OcioConfigPath", cfg.configurationPath);
1977 m_cfg.writeEntry("Krita/Ocio/OcioLutPath", cfg.lutPath);
1978 m_cfg.writeEntry("Krita/Ocio/InputColorSpace", cfg.inputColorSpace);
1979 m_cfg.writeEntry("Krita/Ocio/DisplayDevice", cfg.displayDevice);
1980 m_cfg.writeEntry("Krita/Ocio/DisplayView", cfg.displayView);
1981 m_cfg.writeEntry("Krita/Ocio/DisplayLook", cfg.look);
1982}

References KisOcioConfiguration::configurationPath, KisOcioConfiguration::displayDevice, KisOcioConfiguration::displayView, KisOcioConfiguration::inputColorSpace, KisOcioConfiguration::look, KisOcioConfiguration::lutPath, m_cfg, and KisOcioConfiguration::mode.

◆ setOcioLockColorVisualRepresentation()

void KisConfig::setOcioLockColorVisualRepresentation ( bool value)

Definition at line 2013 of file kis_config.cc.

2014{
2015 m_cfg.writeEntry("Krita/Ocio/OcioLockColorVisualRepresentation", value);
2016}

References m_cfg, and value().

◆ setOcioLutEdgeSize()

void KisConfig::setOcioLutEdgeSize ( int value)

Definition at line 2003 of file kis_config.cc.

2004{
2005 m_cfg.writeEntry("Krita/Ocio/LutEdgeSize", value);
2006}

References m_cfg, and value().

◆ setOpenGLFilteringMode()

void KisConfig::setOpenGLFilteringMode ( int filteringMode)

Definition at line 1091 of file kis_config.cc.

1092{
1093 m_cfg.writeEntry("OpenGLFilterMode", filteringMode);
1094}

References m_cfg.

◆ setOutlineSizeMinimum()

void KisConfig::setOutlineSizeMinimum ( qreal outlineSizeMinimum) const

Definition at line 1506 of file kis_config.cc.

1507{
1508 m_cfg.writeEntry("OutlineSizeMinimum", outlineSizeMinimum);
1509}
qreal outlineSizeMinimum(bool defaultValue=false) const

References m_cfg, and outlineSizeMinimum().

◆ setPaintopPopupDetached()

void KisConfig::setPaintopPopupDetached ( bool detached) const

Definition at line 1598 of file kis_config.cc.

1599{
1600 m_cfg.writeEntry("PaintopPopupDetached", detached);
1601}

References m_cfg.

◆ setPasteBehaviour()

void KisConfig::setPasteBehaviour ( qint32 behaviour) const

Definition at line 1036 of file kis_config.cc.

1037{
1038 m_cfg.writeEntry("pasteBehaviour", renderIntent);
1039}

References m_cfg.

◆ setPasteFormat()

void KisConfig::setPasteFormat ( qint32 format)

Definition at line 1046 of file kis_config.cc.

1047{
1048 m_cfg.writeEntry("pasteFormat", format);
1049}

References m_cfg.

◆ setPixelGridColor()

void KisConfig::setPixelGridColor ( const QColor & v) const

Definition at line 1230 of file kis_config.cc.

1231{
1232 m_cfg.writeEntry("pixelGridColor", v);
1233}

References m_cfg, and v.

◆ setPixelGridDrawingThreshold()

void KisConfig::setPixelGridDrawingThreshold ( qreal v) const

Definition at line 1241 of file kis_config.cc.

1242{
1243 m_cfg.writeEntry("pixelGridDrawingThreshold", v);
1244}

References m_cfg, and v.

◆ setPreferredVectorImportResolutionPPI()

void KisConfig::setPreferredVectorImportResolutionPPI ( int value) const

Definition at line 298 of file kis_config.cc.

299{
300 m_cfg.writeEntry("preferredVectorImportResolution", value);
301}

References m_cfg, and value().

◆ setPreferXcbEglProvider()

void KisConfig::setPreferXcbEglProvider ( bool value)

Definition at line 1128 of file kis_config.cc.

1129{
1130 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
1131 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
1132 kritarc.setValue("preferXcbEglProvider", value);
1133}

References value().

◆ setPresetChooserViewMode()

void KisConfig::setPresetChooserViewMode ( const int mode) const

Definition at line 1724 of file kis_config.cc.

1725{
1726 m_cfg.writeEntry("presetChooserViewMode", mode);
1727}

References m_cfg.

◆ setPresetIconSize()

void KisConfig::setPresetIconSize ( const int value) const

Definition at line 1734 of file kis_config.cc.

1735{
1736 m_cfg.writeEntry("presetIconSize", value);
1737}

References m_cfg, and value().

◆ setPresetStripVisible()

void KisConfig::setPresetStripVisible ( bool visible)

Definition at line 2100 of file kis_config.cc.

2101{
2102 m_cfg.writeEntry("presetStripVisible", visible);
2103}

References m_cfg.

◆ setPressureTabletCurve()

void KisConfig::setPressureTabletCurve ( const QString & curveString) const

Definition at line 1620 of file kis_config.cc.

1621{
1622 m_cfg.writeEntry("tabletPressureCurve", curveString);
1623}

References m_cfg.

◆ setPrinterColorSpace()

void KisConfig::setPrinterColorSpace ( const QString & printerColorSpace) const

Definition at line 938 of file kis_config.cc.

939{
940 m_cfg.writeEntry("printerColorSpace", printerColorSpace);
941}
QString printerColorSpace(bool defaultValue=false) const

References m_cfg, and printerColorSpace().

◆ setPrinterProfile()

void KisConfig::setPrinterProfile ( const QString & printerProfile) const

Definition at line 949 of file kis_config.cc.

950{
951 m_cfg.writeEntry("printerProfile", printerProfile);
952}
QString printerProfile(bool defaultValue=false) const

References m_cfg, and printerProfile().

◆ setRenamePastedLayers()

void KisConfig::setRenamePastedLayers ( bool value)

Definition at line 2852 of file kis_config.cc.

2853{
2854 m_cfg.writeEntry("renamePastedLayers", value);
2855}

References m_cfg, and value().

◆ setRenderIntent()

void KisConfig::setRenderIntent ( qint32 monitorRenderIntent) const

Definition at line 1059 of file kis_config.cc.

1060{
1061 if (renderIntent > 3) renderIntent = 3;
1062 if (renderIntent < 0) renderIntent = 0;
1063 m_cfg.writeEntry("renderIntent", renderIntent);
1064}

References m_cfg.

◆ setRootSurfaceFormat() [1/2]

void KisConfig::setRootSurfaceFormat ( QSettings * displayrc,
KisConfig::RootSurfaceFormat value )
static

Definition at line 2817 of file kis_config.cc.

2818{
2819 const QString textValue =
2820 value == BT709_G10 ? "bt709-g10" :
2821 value == BT2020_PQ ? "bt2020-pq" :
2822 "bt709-g22";
2823
2824 displayrc->setValue("rootSurfaceFormat", textValue);
2825}

References BT2020_PQ, BT709_G10, and value().

◆ setRootSurfaceFormat() [2/2]

void KisConfig::setRootSurfaceFormat ( KisConfig::RootSurfaceFormat value)

Definition at line 2796 of file kis_config.cc.

2797{
2798 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
2799 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
2800
2801 setRootSurfaceFormat(&kritarc, value);
2802}
void setRootSurfaceFormat(RootSurfaceFormat value)

References setRootSurfaceFormat(), and value().

◆ setRulersTrackMouse()

void KisConfig::setRulersTrackMouse ( bool value) const

Definition at line 1026 of file kis_config.cc.

1027{
1028 m_cfg.writeEntry("rulersTrackMouse", value);
1029}

References m_cfg, and value().

◆ setSaveSessionOnQuit()

void KisConfig::setSaveSessionOnQuit ( bool value)

Definition at line 1486 of file kis_config.cc.

1487{
1488 m_cfg.writeEntry("saveSessionOnQuit", value);
1489}

References m_cfg, and value().

◆ setScratchpadVisible()

void KisConfig::setScratchpadVisible ( bool visible)

Definition at line 2110 of file kis_config.cc.

2111{
2112 m_cfg.writeEntry("scratchpadVisible", visible);
2113}

References m_cfg.

◆ setScrollbarZoomEnabled()

void KisConfig::setScrollbarZoomEnabled ( bool enabled) const

Definition at line 1362 of file kis_config.cc.

1363{
1364 m_cfg.writeEntry("scrollbarZoomEnabled", enabled);
1365}

References m_cfg.

◆ setScrollingCheckers()

void KisConfig::setScrollingCheckers ( bool scrollCheckers) const

Definition at line 1331 of file kis_config.cc.

1332{
1333 m_cfg.writeEntry("scrollingcheckers", sc);
1334}

References m_cfg.

◆ setScrubbingAudioUpdatesDelay()

void KisConfig::setScrubbingAudioUpdatesDelay ( int value)

Definition at line 2631 of file kis_config.cc.

2632{
2633 m_cfg.writeEntry("scrubbingAudioUpdatesDelay", value);
2634}

References m_cfg, and value().

◆ setScrubbingUpdatesDelay()

void KisConfig::setScrubbingUpdatesDelay ( int value)

Definition at line 2621 of file kis_config.cc.

2622{
2623 m_cfg.writeEntry("scrubbingUpdatesDelay", value);
2624}

References m_cfg, and value().

◆ setSelectionActionBar()

void KisConfig::setSelectionActionBar ( bool value)

Definition at line 2783 of file kis_config.cc.

2784{
2785 m_cfg.writeEntry("selectionActionBar", value);
2786}

References m_cfg, and value().

◆ setSelectionViewSizeMinimum()

void KisConfig::setSelectionViewSizeMinimum ( qreal outlineSizeMinimum) const

Definition at line 1516 of file kis_config.cc.

1517{
1518 m_cfg.writeEntry("SelectionViewSizeMinimum", outlineSizeMinimum);
1519}

References m_cfg, and outlineSizeMinimum().

◆ setSeparateEraserCursor()

void KisConfig::setSeparateEraserCursor ( bool value) const

Definition at line 468 of file kis_config.cc.

469{
470 m_cfg.writeEntry("separateEraserCursor", value);
471}

References m_cfg, and value().

◆ setSessionOnStartup()

void KisConfig::setSessionOnStartup ( SessionOnStartup value)

Definition at line 1477 of file kis_config.cc.

1478{
1479 m_cfg.writeEntry("sessionOnStartup", (int)value);
1480}

References m_cfg, and value().

◆ setShowBrushHud()

void KisConfig::setShowBrushHud ( bool value)

Definition at line 2701 of file kis_config.cc.

2702{
2703 m_cfg.writeEntry("showBrushHud", value);
2704}

References m_cfg, and value().

◆ setShowCanvasMessages()

void KisConfig::setShowCanvasMessages ( bool show)

Definition at line 2350 of file kis_config.cc.

2351{
2352 m_cfg.writeEntry("showOnCanvasMessages", show);
2353}

References m_cfg.

◆ setShowDockers()

void KisConfig::setShowDockers ( const bool value) const

Definition at line 1804 of file kis_config.cc.

1805{
1806 m_cfg.writeEntry("showDockers", value);
1807}

References m_cfg, and value().

◆ setShowDockerTitleBars()

void KisConfig::setShowDockerTitleBars ( const bool value) const

Definition at line 1794 of file kis_config.cc.

1795{
1796 m_cfg.writeEntry("showDockerTitleBars", value);
1797}

References m_cfg, and value().

◆ setShowEraserOutlineWhilePainting()

void KisConfig::setShowEraserOutlineWhilePainting ( bool showEraserOutlineWhilePainting) const

Definition at line 1457 of file kis_config.cc.

1458{
1459 m_cfg.writeEntry("ShowEraserOutlineWhilePainting", showEraserOutlineWhilePainting);
1460}
bool showEraserOutlineWhilePainting(bool defaultValue=false) const

References m_cfg, and showEraserOutlineWhilePainting().

◆ setShowFilterGallery()

void KisConfig::setShowFilterGallery ( bool showFilterGallery) const

Definition at line 1547 of file kis_config.cc.

1548{
1549 m_cfg.writeEntry("showFilterGallery", showFilterGallery);
1550}
bool showFilterGallery(bool defaultValue=false) const

References m_cfg, and showFilterGallery().

◆ setShowFilterGalleryLayerMaskDialog()

void KisConfig::setShowFilterGalleryLayerMaskDialog ( bool showFilterGallery) const

Definition at line 1557 of file kis_config.cc.

1558{
1559 m_cfg.writeEntry("setShowFilterGalleryLayerMaskDialog", showFilterGallery);
1560}

References m_cfg, and showFilterGallery().

◆ setShowGlobalSelection()

void KisConfig::setShowGlobalSelection ( bool showGlobalSelection) const

Definition at line 1423 of file kis_config.cc.

1424{
1425 m_cfg.writeEntry("ShowGlobalSelection", showGlobalSelection);
1426}
bool showGlobalSelection(bool defaultValue=false) const

References m_cfg, and showGlobalSelection().

◆ setShowOutlineWhilePainting()

void KisConfig::setShowOutlineWhilePainting ( bool showOutlineWhilePainting) const

Definition at line 1435 of file kis_config.cc.

1436{
1437 m_cfg.writeEntry("ShowOutlineWhilePainting", showOutlineWhilePainting);
1438}
bool showOutlineWhilePainting(bool defaultValue=false) const

References m_cfg, and showOutlineWhilePainting().

◆ setShowPaletteBottomBar()

void KisConfig::setShowPaletteBottomBar ( bool value)

Definition at line 2711 of file kis_config.cc.

2712{
2713 m_cfg.writeEntry("showPaletteBottomBar", value);
2714}

References m_cfg, and value().

◆ setShowRootLayer()

void KisConfig::setShowRootLayer ( bool showRootLayer) const

Definition at line 1413 of file kis_config.cc.

1414{
1415 m_cfg.writeEntry("ShowRootLayer", showRootLayer);
1416}
bool showRootLayer(bool defaultValue=false) const

References m_cfg, and showRootLayer().

◆ setShowRulers()

void KisConfig::setShowRulers ( bool rulers) const

Definition at line 996 of file kis_config.cc.

997{
998 m_cfg.writeEntry("showrulers", rulers);
999}

References m_cfg.

◆ setShowSingleChannelAsColor()

void KisConfig::setShowSingleChannelAsColor ( bool asColor)

Definition at line 2120 of file kis_config.cc.

2121{
2122 m_cfg.writeEntry("showSingleChannelAsColor", asColor);
2123}

References m_cfg.

◆ setShowStatusBar()

void KisConfig::setShowStatusBar ( const bool value) const

Definition at line 1814 of file kis_config.cc.

1815{
1816 m_cfg.writeEntry("showStatusBar", value);
1817}

References m_cfg, and value().

◆ setSliderLabels()

void KisConfig::setSliderLabels ( bool enabled)

Definition at line 2070 of file kis_config.cc.

2071{
2072 m_cfg.writeEntry("sliderLabels", enabled);
2073}

References m_cfg.

◆ setStabilizerDelayedPaint()

void KisConfig::setStabilizerDelayedPaint ( bool value)

Definition at line 2691 of file kis_config.cc.

2692{
2693 m_cfg.writeEntry("stabilizerDelayedPaint", value);
2694}

References m_cfg, and value().

◆ setStabilizerSampleSize()

void KisConfig::setStabilizerSampleSize ( int value)

Definition at line 2678 of file kis_config.cc.

2679{
2680 m_cfg.writeEntry("stabilizerSampleSize", value);
2681}

References m_cfg, and value().

◆ setSwitchSelectionCtrlAlt()

void KisConfig::setSwitchSelectionCtrlAlt ( bool value)

Definition at line 2651 of file kis_config.cc.

2652{
2653 m_cfg.writeEntry("switchSelectionCtrlAlt", value);
2654}

References m_cfg, and value().

◆ setTabletEventsDelay()

void KisConfig::setTabletEventsDelay ( int value)

Definition at line 2290 of file kis_config.cc.

2291{
2292 m_cfg.writeEntry("tabletEventsDelay", value);
2293}

References m_cfg, and value().

◆ setTestingAcceptCompressedTabletEvents()

void KisConfig::setTestingAcceptCompressedTabletEvents ( bool value)

Definition at line 2320 of file kis_config.cc.

2321{
2322 m_cfg.writeEntry("testingAcceptCompressedTabletEvents", value);
2323}

References m_cfg, and value().

◆ setTestingCompressBrushEvents()

void KisConfig::setTestingCompressBrushEvents ( bool value)

Definition at line 2335 of file kis_config.cc.

2336{
2337 m_cfg.writeEntry("testingCompressBrushEvents", value);
2338}

References m_cfg, and value().

◆ setTimelineZoom()

void KisConfig::setTimelineZoom ( qreal value)

Definition at line 2606 of file kis_config.cc.

2607{
2608 m_cfg.writeEntry("timelineZoom", value);
2609}

References m_cfg, and value().

◆ setToolbarSlider()

void KisConfig::setToolbarSlider ( int sliderNumber,
const QString & slider )

Definition at line 2040 of file kis_config.cc.

2041{
2042 m_cfg.writeEntry(QString("toolbarslider_%1").arg(sliderNumber), slider);
2043}

References m_cfg.

◆ setToolOptionsInDocker()

void KisConfig::setToolOptionsInDocker ( bool inDocker)

Definition at line 2399 of file kis_config.cc.

2400{
2401 m_cfg.writeEntry("ToolOptionsInDocker", inDocker);
2402}

References m_cfg.

◆ setToolOptionsPopupDetached()

void KisConfig::setToolOptionsPopupDetached ( bool detached) const

Definition at line 1587 of file kis_config.cc.

1588{
1589 m_cfg.writeEntry("ToolOptionsPopupDetached", detached);
1590}

References m_cfg.

◆ setTouchPainting()

void KisConfig::setTouchPainting ( TouchPainting value) const

Definition at line 152 of file kis_config.cc.

153{
154 m_cfg.writeEntry("touchPainting", int(value));
156}

References KisConfigNotifier::instance(), m_cfg, KisConfigNotifier::notifyTouchPaintingChanged(), and value().

◆ setTrackTabletEventLatency()

void KisConfig::setTrackTabletEventLatency ( bool value)

Definition at line 2300 of file kis_config.cc.

2301{
2302 m_cfg.writeEntry("trackTabletEventLatency", value);
2303}

References m_cfg, and value().

◆ setTrimFramesImport()

void KisConfig::setTrimFramesImport ( bool trim)

Definition at line 2379 of file kis_config.cc.

2380{
2381 m_cfg.writeEntry("TrimFramesImport", trim);
2382}

References m_cfg.

◆ setTrimKra()

void KisConfig::setTrimKra ( bool trim)

Definition at line 2370 of file kis_config.cc.

2371{
2372 m_cfg.writeEntry("TrimKra", trim);
2373}

References m_cfg.

◆ setUndoEnabled()

void KisConfig::setUndoEnabled ( bool undo) const

Definition at line 188 of file kis_config.cc.

189{
190 m_cfg.writeEntry("undoEnabled", undo);
191}

References m_cfg.

◆ setUndoStackLimit()

void KisConfig::setUndoStackLimit ( int limit) const

Definition at line 198 of file kis_config.cc.

199{
200 m_cfg.writeEntry("undoStackLimit", limit);
201}

References m_cfg.

◆ setUseBlackPointCompensation()

void KisConfig::setUseBlackPointCompensation ( bool useBlackPointCompensation) const

Definition at line 960 of file kis_config.cc.

961{
962 m_cfg.writeEntry("useBlackPointCompensation", useBlackPointCompensation);
963}
bool useBlackPointCompensation(bool defaultValue=false) const

References m_cfg, and useBlackPointCompensation().

◆ setUseDefaultColorSpace()

void KisConfig::setUseDefaultColorSpace ( bool value) const

Definition at line 308 of file kis_config.cc.

309{
310 m_cfg.writeEntry("useDefaultColorSpace", value);
311}

References m_cfg, and value().

◆ setUseDirtyPresets()

void KisConfig::setUseDirtyPresets ( bool value)

Definition at line 604 of file kis_config.cc.

605{
606 m_cfg.writeEntry("useDirtyPresets",value);
608}

References KisConfigNotifier::instance(), m_cfg, KisConfigNotifier::notifyConfigChanged(), and value().

◆ setUseEraserBrushOpacity()

void KisConfig::setUseEraserBrushOpacity ( bool value)

Definition at line 626 of file kis_config.cc.

627{
628 m_cfg.writeEntry("useEraserBrushOpacity",value);
630}

References KisConfigNotifier::instance(), m_cfg, KisConfigNotifier::notifyConfigChanged(), and value().

◆ setUseEraserBrushSize()

void KisConfig::setUseEraserBrushSize ( bool value)

Definition at line 615 of file kis_config.cc.

616{
617 m_cfg.writeEntry("useEraserBrushSize",value);
619}

References KisConfigNotifier::instance(), m_cfg, KisConfigNotifier::notifyConfigChanged(), and value().

◆ setUseInlineLayerInfoText()

void KisConfig::setUseInlineLayerInfoText ( bool value)

Definition at line 2882 of file kis_config.cc.

2883{
2884 m_cfg.writeEntry("useInlineLayerInfoText", value);
2885}

References m_cfg, and value().

◆ setUseLayerSelectionCheckbox()

void KisConfig::setUseLayerSelectionCheckbox ( bool value)

Definition at line 2892 of file kis_config.cc.

2893{
2894 m_cfg.writeEntry("useLayerSelectionCheckbox", value);
2895}

References m_cfg, and value().

◆ setUseOcio()

void KisConfig::setUseOcio ( bool useOCIO) const

Definition at line 1931 of file kis_config.cc.

1932{
1933 m_cfg.writeEntry("Krita/Ocio/UseOcio", useOCIO);
1934}

References m_cfg.

◆ setUseOpenGLTextureBuffer()

void KisConfig::setUseOpenGLTextureBuffer ( bool useBuffer)

Definition at line 1111 of file kis_config.cc.

1112{
1113 m_cfg.writeEntry("useOpenGLTextureBuffer", useBuffer);
1114}

References m_cfg.

◆ setUseProjections()

void KisConfig::setUseProjections ( bool useProj) const

Definition at line 178 of file kis_config.cc.

179{
180 m_cfg.writeEntry("useProjections", useProj);
181}

References m_cfg.

◆ setUseRightMiddleTabletButtonWorkaround()

void KisConfig::setUseRightMiddleTabletButtonWorkaround ( bool value)

Definition at line 1670 of file kis_config.cc.

1671{
1672 m_cfg.writeEntry("useRightMiddleTabletButtonWorkaround", value);
1673}

References m_cfg, and value().

◆ setUseSystemMonitorProfile()

void KisConfig::setUseSystemMonitorProfile ( bool _useSystemMonitorProfile) const

Definition at line 2090 of file kis_config.cc.

2091{
2092 m_cfg.writeEntry("ColorManagement/UseSystemMonitorProfile", _useSystemMonitorProfile);
2093}

References m_cfg.

◆ setUseWin8PointerInput()

void KisConfig::setUseWin8PointerInput ( bool value)

Definition at line 1638 of file kis_config.cc.

1639{
1640#ifdef Q_OS_WIN
1641
1642 // Special handling: Only set value if changed
1643 // I don't want it to be set if the user hasn't touched it
1644 if (useWin8PointerInput() != value) {
1645 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
1646 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
1648 }
1649
1650#else
1651 Q_UNUSED(value);
1652#endif
1653}
static void setUseWin8PointerInputNoApp(QSettings *settings, bool value)

References setUseWin8PointerInputNoApp(), useWin8PointerInput(), and value().

◆ setUseWin8PointerInputNoApp()

void KisConfig::setUseWin8PointerInputNoApp ( QSettings * settings,
bool value )
static

Definition at line 1660 of file kis_config.cc.

1661{
1662 settings->setValue("useWin8PointerInput", value);
1663}

References value().

◆ setUseZip64()

void KisConfig::setUseZip64 ( bool value)

Definition at line 2832 of file kis_config.cc.

2833{
2834 m_cfg.writeEntry("UseZip64", value);
2835}

References m_cfg, and value().

◆ setVastScrolling()

void KisConfig::setVastScrolling ( const qreal factor) const

Definition at line 1714 of file kis_config.cc.

1715{
1716 m_cfg.writeEntry("vastScrolling", factor);
1717}

References m_cfg.

◆ setVerticalSplitLines()

void KisConfig::setVerticalSplitLines ( const int numberLines) const

Definition at line 1763 of file kis_config.cc.

1764{
1765 m_cfg.writeEntry("verticalSplitLines", numberLines);
1766}

References m_cfg.

◆ setWidgetStyle()

void KisConfig::setWidgetStyle ( QString name)

Definition at line 1096 of file kis_config.cc.

1097{
1098 m_cfg.writeEntry("widgetStyle", name);
1099}

References m_cfg.

◆ setWorkingColorSpace()

void KisConfig::setWorkingColorSpace ( const QString & workingColorSpace) const

Definition at line 926 of file kis_config.cc.

927{
928 m_cfg.writeEntry("workingColorSpace", workingColorSpace);
929}
QString workingColorSpace(bool defaultValue=false) const

References m_cfg, and workingColorSpace().

◆ setZoomHorizontal()

void KisConfig::setZoomHorizontal ( bool value)

Definition at line 2773 of file kis_config.cc.

2774{
2775 m_cfg.writeEntry("zoomHorizontal", value);
2776}

References m_cfg, and value().

◆ setZoomMarginSize()

void KisConfig::setZoomMarginSize ( int zoomMarginSize)

Definition at line 2465 of file kis_config.cc.

2466{
2467 m_cfg.writeEntry("zoomMarginSize", zoomMarginSize);
2468}
int zoomMarginSize(bool defaultValue=false) const

References m_cfg, and zoomMarginSize().

◆ setZoomSteps()

void KisConfig::setZoomSteps ( int steps)

Definition at line 2455 of file kis_config.cc.

2456{
2457 m_cfg.writeEntry("zoomSteps", steps);
2458}

References m_cfg.

◆ shouldEatDriverShortcuts()

bool KisConfig::shouldEatDriverShortcuts ( bool defaultValue = false) const

Definition at line 2325 of file kis_config.cc.

2326{
2327 return (defaultValue ? false : m_cfg.readEntry("shouldEatDriverShortcuts", false));
2328}

References m_cfg.

◆ showBrushHud()

bool KisConfig::showBrushHud ( bool defaultValue = false) const

Definition at line 2696 of file kis_config.cc.

2697{
2698 return defaultValue ? false : m_cfg.readEntry("showBrushHud", false);
2699}

References m_cfg.

◆ showCanvasMessages()

bool KisConfig::showCanvasMessages ( bool defaultValue = false) const

Definition at line 2345 of file kis_config.cc.

2346{
2347 return (defaultValue ? true : m_cfg.readEntry("showOnCanvasMessages", true));
2348}

References m_cfg.

◆ showDockers()

bool KisConfig::showDockers ( bool defaultValue = false) const

Definition at line 1799 of file kis_config.cc.

1800{
1801 return (defaultValue ? true : m_cfg.readEntry("showDockers", true));
1802}

References m_cfg.

◆ showDockerTitleBars()

bool KisConfig::showDockerTitleBars ( bool defaultValue = false) const

Definition at line 1789 of file kis_config.cc.

1790{
1791 return (defaultValue ? true : m_cfg.readEntry("showDockerTitleBars", true));
1792}

References m_cfg.

◆ showEraserOutlineWhilePainting()

bool KisConfig::showEraserOutlineWhilePainting ( bool defaultValue = false) const

Definition at line 1452 of file kis_config.cc.

1453{
1454 return (defaultValue ? true : m_cfg.readEntry("ShowEraserOutlineWhilePainting", true));
1455}

References m_cfg.

◆ showFilterGallery()

bool KisConfig::showFilterGallery ( bool defaultValue = false) const

Definition at line 1542 of file kis_config.cc.

1543{
1544 return (defaultValue ? false : m_cfg.readEntry("showFilterGallery", false));
1545}

References m_cfg.

◆ showFilterGalleryLayerMaskDialog()

bool KisConfig::showFilterGalleryLayerMaskDialog ( bool defaultValue = false) const

Definition at line 1552 of file kis_config.cc.

1553{
1554 return (defaultValue ? true : m_cfg.readEntry("showFilterGalleryLayerMaskDialog", true));
1555}

References m_cfg.

◆ showGlobalSelection()

bool KisConfig::showGlobalSelection ( bool defaultValue = false) const

Definition at line 1418 of file kis_config.cc.

1419{
1420 return (defaultValue ? false : m_cfg.readEntry("ShowGlobalSelection", false));
1421}

References m_cfg.

◆ showOutlineWhilePainting()

bool KisConfig::showOutlineWhilePainting ( bool defaultValue = false) const

Definition at line 1430 of file kis_config.cc.

1431{
1432 return (defaultValue ? true : m_cfg.readEntry("ShowOutlineWhilePainting", true));
1433}

References m_cfg.

◆ showPaletteBottomBar()

bool KisConfig::showPaletteBottomBar ( bool defaultValue = false) const

Definition at line 2706 of file kis_config.cc.

2707{
2708 return defaultValue ? true : m_cfg.readEntry("showPaletteBottomBar", true);
2709}

References m_cfg.

◆ showRootLayer()

bool KisConfig::showRootLayer ( bool defaultValue = false) const

Definition at line 1408 of file kis_config.cc.

1409{
1410 return (defaultValue ? false : m_cfg.readEntry("ShowRootLayer", false));
1411}

References m_cfg.

◆ showRulers()

bool KisConfig::showRulers ( bool defaultValue = false) const

Definition at line 991 of file kis_config.cc.

992{
993 return (defaultValue ? false : m_cfg.readEntry("showrulers", false));
994}

References m_cfg.

◆ showSingleChannelAsColor()

bool KisConfig::showSingleChannelAsColor ( bool defaultValue = false) const

Definition at line 2115 of file kis_config.cc.

2116{
2117 return (defaultValue ? false : m_cfg.readEntry("showSingleChannelAsColor", false));
2118}

References m_cfg.

◆ showStatusBar()

bool KisConfig::showStatusBar ( bool defaultValue = false) const

Definition at line 1809 of file kis_config.cc.

1810{
1811 return (defaultValue ? true : m_cfg.readEntry("showStatusBar", true));
1812}

References m_cfg.

◆ sliderLabels()

bool KisConfig::sliderLabels ( bool defaultValue = false) const

Definition at line 2065 of file kis_config.cc.

2066{
2067 return (defaultValue ? true : m_cfg.readEntry("sliderLabels", true));
2068}

References m_cfg.

◆ stabilizerDelayedPaint()

bool KisConfig::stabilizerDelayedPaint ( bool defaultValue = false) const

Definition at line 2683 of file kis_config.cc.

2684{
2685 const bool defaultEnabled = true;
2686
2687 return defaultValue ?
2688 defaultEnabled : m_cfg.readEntry("stabilizerDelayedPaint", defaultEnabled);
2689}

References m_cfg.

◆ stabilizerSampleSize()

int KisConfig::stabilizerSampleSize ( bool defaultValue = false) const

Definition at line 2666 of file kis_config.cc.

2667{
2668#ifdef Q_OS_WIN
2669 const int defaultSampleSize = 50;
2670#else
2671 const int defaultSampleSize = 15;
2672#endif
2673
2674 return defaultValue ?
2675 defaultSampleSize : m_cfg.readEntry("stabilizerSampleSize", defaultSampleSize);
2676}

References m_cfg.

◆ switchSelectionCtrlAlt()

bool KisConfig::switchSelectionCtrlAlt ( bool defaultValue = false) const

Definition at line 2646 of file kis_config.cc.

2647{
2648 return defaultValue ? false : m_cfg.readEntry("switchSelectionCtrlAlt", false);
2649}

References m_cfg.

◆ tabletEventsDelay()

int KisConfig::tabletEventsDelay ( bool defaultValue = false) const

Definition at line 2285 of file kis_config.cc.

2286{
2287 return (defaultValue ? 10 : m_cfg.readEntry("tabletEventsDelay", 10));
2288}

References m_cfg.

◆ testingAcceptCompressedTabletEvents()

bool KisConfig::testingAcceptCompressedTabletEvents ( bool defaultValue = false) const

Definition at line 2315 of file kis_config.cc.

2316{
2317 return (defaultValue ? false : m_cfg.readEntry("testingAcceptCompressedTabletEvents", false));
2318}

References m_cfg.

◆ testingCompressBrushEvents()

bool KisConfig::testingCompressBrushEvents ( bool defaultValue = false) const

Definition at line 2330 of file kis_config.cc.

2331{
2332 return (defaultValue ? false : m_cfg.readEntry("testingCompressBrushEvents", false));
2333}

References m_cfg.

◆ textureOverlapBorder()

int KisConfig::textureOverlapBorder ( ) const

Definition at line 1150 of file kis_config.cc.

1151{
1152 return 1 << qMax(0, numMipmapLevels());
1153}
int numMipmapLevels(bool defaultValue=false) const

References numMipmapLevels().

◆ timelineZoom()

qreal KisConfig::timelineZoom ( bool defaultValue = false) const

Definition at line 2601 of file kis_config.cc.

2602{
2603 return (defaultValue ? 1.0f : m_cfg.readEntry("timelineZoom", 1.0f));
2604}

References m_cfg.

◆ toolbarSlider()

QString KisConfig::toolbarSlider ( int sliderNumber,
bool defaultValue = false ) const

Definition at line 2028 of file kis_config.cc.

2029{
2030 QString def = "flow";
2031 if (sliderNumber == 1) {
2032 def = "opacity";
2033 }
2034 if (sliderNumber == 2) {
2035 def = "size";
2036 }
2037 return (defaultValue ? def : m_cfg.readEntry(QString("toolbarslider_%1").arg(sliderNumber), def));
2038}

References m_cfg.

◆ toolOptionsInDocker()

bool KisConfig::toolOptionsInDocker ( bool defaultValue = false) const

Definition at line 2394 of file kis_config.cc.

2395{
2396 return (defaultValue ? true : m_cfg.readEntry("ToolOptionsInDocker", true));
2397}

References m_cfg.

◆ toolOptionsPopupDetached()

bool KisConfig::toolOptionsPopupDetached ( bool defaultValue = false) const

Definition at line 1582 of file kis_config.cc.

1583{
1584 return (defaultValue ? false : m_cfg.readEntry("ToolOptionsPopupDetached", false));
1585}

References m_cfg.

◆ touchPainting()

KisConfig::TouchPainting KisConfig::touchPainting ( bool defaultValue = false) const

Definition at line 142 of file kis_config.cc.

143{
144 if (defaultValue) {
145 return TOUCH_PAINTING_AUTO;
146 } else {
147 int value = m_cfg.readEntry("touchPainting", int(TOUCH_PAINTING_AUTO));
148 return TouchPainting(value);
149 }
150}

References m_cfg, TOUCH_PAINTING_AUTO, and value().

◆ trackTabletEventLatency()

bool KisConfig::trackTabletEventLatency ( bool defaultValue = false) const

Definition at line 2295 of file kis_config.cc.

2296{
2297 return (defaultValue ? false : m_cfg.readEntry("trackTabletEventLatency", false));
2298}

References m_cfg.

◆ trimFramesImport()

bool KisConfig::trimFramesImport ( bool defaultValue = false) const

Definition at line 2375 of file kis_config.cc.

2376{
2377 return (defaultValue ? false : m_cfg.readEntry("TrimFramesImport", false));
2378}

References m_cfg.

◆ trimKra()

bool KisConfig::trimKra ( bool defaultValue = false) const

Definition at line 2365 of file kis_config.cc.

2366{
2367 return (defaultValue ? false : m_cfg.readEntry("TrimKra", false));
2368}

References m_cfg.

◆ undoEnabled()

bool KisConfig::undoEnabled ( bool defaultValue = false) const

Definition at line 183 of file kis_config.cc.

184{
185 return (defaultValue ? true : m_cfg.readEntry("undoEnabled", true));
186}

References m_cfg.

◆ undoStackLimit()

int KisConfig::undoStackLimit ( bool defaultValue = false) const

Definition at line 193 of file kis_config.cc.

194{
195 return (defaultValue ? 200 : m_cfg.readEntry("undoStackLimit", 200));
196}

References m_cfg.

◆ useBlackPointCompensation()

bool KisConfig::useBlackPointCompensation ( bool defaultValue = false) const

Definition at line 955 of file kis_config.cc.

956{
957 return (defaultValue ? true : m_cfg.readEntry("useBlackPointCompensation", true));
958}

References m_cfg.

◆ useCumulativeUndoRedo()

bool KisConfig::useCumulativeUndoRedo ( bool defaultValue = false) const

Definition at line 203 of file kis_config.cc.

204{
205 return (defaultValue ? false : m_cfg.readEntry("useCumulativeUndoRedo",false));
206}

References m_cfg.

◆ useDefaultColorSpace()

bool KisConfig::useDefaultColorSpace ( bool defaultvalue = false) const

Definition at line 303 of file kis_config.cc.

304{
305 return (defaultvalue? false: m_cfg.readEntry("useDefaultColorSpace", false));
306}

References m_cfg.

◆ useDirtyPresets()

bool KisConfig::useDirtyPresets ( bool defaultValue = false) const

Definition at line 600 of file kis_config.cc.

601{
602 return (defaultValue ? false : m_cfg.readEntry("useDirtyPresets", true));
603}

References m_cfg.

◆ useEraserBrushOpacity()

bool KisConfig::useEraserBrushOpacity ( bool defaultValue = false) const

Definition at line 621 of file kis_config.cc.

622{
623 return (defaultValue ? false : m_cfg.readEntry("useEraserBrushOpacity",false));
624}

References m_cfg.

◆ useEraserBrushSize()

bool KisConfig::useEraserBrushSize ( bool defaultValue = false) const

Definition at line 610 of file kis_config.cc.

611{
612 return (defaultValue ? false : m_cfg.readEntry("useEraserBrushSize", false));
613}

References m_cfg.

◆ useInlineLayerInfoText()

bool KisConfig::useInlineLayerInfoText ( bool defaultValue = false) const

Definition at line 2877 of file kis_config.cc.

2878{
2879 return defaultValue ? false : m_cfg.readEntry("useInlineLayerInfoText", false);
2880}

References m_cfg.

◆ useLayerSelectionCheckbox()

bool KisConfig::useLayerSelectionCheckbox ( bool defaultValue = false) const

Definition at line 2887 of file kis_config.cc.

2888{
2889 return defaultValue ? false : m_cfg.readEntry("useLayerSelectionCheckbox", true);
2890}

References m_cfg.

◆ useOcio()

bool KisConfig::useOcio ( bool defaultValue = false) const

Definition at line 1921 of file kis_config.cc.

1922{
1923#ifdef HAVE_OCIO
1924 return (defaultValue ? false : m_cfg.readEntry("Krita/Ocio/UseOcio", false));
1925#else
1926 Q_UNUSED(defaultValue);
1927 return false;
1928#endif
1929}

References m_cfg.

◆ useOpenGL()

bool KisConfig::useOpenGL ( bool defaultValue = false) const

Definition at line 1066 of file kis_config.cc.

1067{
1068 if (defaultValue) {
1069 return true;
1070 }
1071
1072 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
1073 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
1074
1075 return kritarc.value("OpenGLRenderer", "auto").toString() != "none";
1076}

◆ useOpenGLTextureBuffer()

bool KisConfig::useOpenGLTextureBuffer ( bool defaultValue = false) const

Definition at line 1106 of file kis_config.cc.

1107{
1108 return (defaultValue ? true : m_cfg.readEntry("useOpenGLTextureBuffer", true));
1109}

References m_cfg.

◆ useProjections()

bool KisConfig::useProjections ( bool defaultValue = false) const

Definition at line 173 of file kis_config.cc.

174{
175 return (defaultValue ? true : m_cfg.readEntry("useProjections", true));
176}

References m_cfg.

◆ useRightMiddleTabletButtonWorkaround()

bool KisConfig::useRightMiddleTabletButtonWorkaround ( bool defaultValue = false) const

Definition at line 1665 of file kis_config.cc.

1666{
1667 return (defaultValue ? false : m_cfg.readEntry("useRightMiddleTabletButtonWorkaround", false));
1668}

References m_cfg.

◆ useSystemMonitorProfile()

bool KisConfig::useSystemMonitorProfile ( bool defaultValue = false) const

Definition at line 2085 of file kis_config.cc.

2086{
2087 return (defaultValue ? false : m_cfg.readEntry("ColorManagement/UseSystemMonitorProfile", false));
2088}

References m_cfg.

◆ useWin8PointerInput()

bool KisConfig::useWin8PointerInput ( bool defaultValue = false) const

Definition at line 1625 of file kis_config.cc.

1626{
1627#ifdef Q_OS_WIN
1628 const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
1629 QSettings kritarc(configPath + QStringLiteral("/kritadisplayrc"), QSettings::IniFormat);
1630
1631 return useWin8PointerInputNoApp(&kritarc, defaultValue);
1632#else
1633 Q_UNUSED(defaultValue);
1634 return false;
1635#endif
1636}
static bool useWin8PointerInputNoApp(QSettings *settings, bool defaultValue=false)

References useWin8PointerInputNoApp().

◆ useWin8PointerInputNoApp()

bool KisConfig::useWin8PointerInputNoApp ( QSettings * settings,
bool defaultValue = false )
static

Definition at line 1655 of file kis_config.cc.

1656{
1657 return defaultValue ? false : settings->value("useWin8PointerInput", false).toBool();
1658}

◆ useZip64()

bool KisConfig::useZip64 ( bool defaultValue = false) const

Definition at line 2827 of file kis_config.cc.

2828{
2829 return defaultValue ? false : m_cfg.readEntry("UseZip64", false);
2830}

References m_cfg.

◆ vastScrolling()

qreal KisConfig::vastScrolling ( bool defaultValue = false) const

Definition at line 1709 of file kis_config.cc.

1710{
1711 return (defaultValue ? 0.9 : m_cfg.readEntry("vastScrolling", 0.9));
1712}

References m_cfg.

◆ verticalSplitLines()

int KisConfig::verticalSplitLines ( bool defaultValue = false) const

Definition at line 1758 of file kis_config.cc.

1759{
1760 return (defaultValue ? 1 : m_cfg.readEntry("verticalSplitLines", 1));
1761}

References m_cfg.

◆ widgetStyle()

QString KisConfig::widgetStyle ( bool defaultValue = false)

Definition at line 1101 of file kis_config.cc.

1102{
1103 return (defaultValue ? "" : m_cfg.readEntry("widgetStyle", ""));
1104}

References m_cfg.

◆ workaroundX11SmoothPressureSteps()

int KisConfig::workaroundX11SmoothPressureSteps ( bool defaultValue = false) const

Definition at line 2340 of file kis_config.cc.

2341{
2342 return (defaultValue ? 0 : m_cfg.readEntry("workaroundX11SmoothPressureSteps", 0));
2343}

References m_cfg.

◆ workingColorSpace()

QString KisConfig::workingColorSpace ( bool defaultValue = false) const

Definition at line 921 of file kis_config.cc.

922{
923 return (defaultValue ? "RGBA" : m_cfg.readEntry("workingColorSpace", "RGBA"));
924}

References m_cfg.

◆ writeEntry()

template<class T >
void KisConfig::writeEntry ( const QString & name,
const T & value )
inline

Definition at line 822 of file kis_config.h.

822 {
823 m_cfg.writeEntry(name, value);
824 }

References value().

◆ writeKoColor()

void KisConfig::writeKoColor ( const QString & name,
const KoColor & color ) const

Definition at line 2945 of file kis_config.cc.

2946{
2947 QDomDocument doc = QDomDocument(name);
2948 QDomElement el = doc.createElement(name);
2949 doc.appendChild(el);
2950 color.toXML(doc, el);
2951 m_cfg.writeEntry(name, doc.toString());
2952}
void toXML(QDomDocument &doc, QDomElement &colorElt) const
Definition KoColor.cpp:304

References m_cfg, and KoColor::toXML().

◆ writeKoColors()

void KisConfig::writeKoColors ( const QString & name,
const QList< KoColor > & colors ) const

Definition at line 2975 of file kis_config.cc.

2976{
2977 QDomDocument doc = QDomDocument(name);
2978 QDomElement colorsElement = doc.createElement("colors");
2979 doc.appendChild(colorsElement);
2980
2981 // Writes like <colors><RGB ../><RGB .. /> ... </colors>
2982 Q_FOREACH(const KoColor & color, colors) {
2983 color.toXML(doc, colorsElement);
2984 }
2985 m_cfg.writeEntry(name, doc.toString());
2986}

References m_cfg, and KoColor::toXML().

◆ writeList()

template<class T >
void KisConfig::writeList ( const QString & name,
const QList< T > & value )
inline

Definition at line 827 of file kis_config.h.

827 {
828 m_cfg.writeEntry(name, value);
829 }

References value().

◆ zoomHorizontal()

bool KisConfig::zoomHorizontal ( bool defaultValue = false) const

Definition at line 2768 of file kis_config.cc.

2769{
2770 return defaultValue ? false : m_cfg.readEntry("zoomHorizontal", false);
2771}

References m_cfg.

◆ zoomMarginSize()

int KisConfig::zoomMarginSize ( bool defaultValue = false) const

Definition at line 2460 of file kis_config.cc.

2461{
2462 return (defaultValue ? 0 : m_cfg.readEntry("zoomMarginSize", 0));
2463}

References m_cfg.

◆ zoomSteps()

int KisConfig::zoomSteps ( bool defaultValue = false) const

Definition at line 2450 of file kis_config.cc.

2451{
2452 return (defaultValue ? 2 : m_cfg.readEntry("zoomSteps", 2));
2453}

References m_cfg.

Member Data Documentation

◆ m_cfg

KConfigGroup KisConfig::m_cfg
mutableprivate

Definition at line 850 of file kis_config.h.

◆ m_readOnly

bool KisConfig::m_readOnly
private

Definition at line 851 of file kis_config.h.


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