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

#include <kis_config_notifier.h>

+ Inheritance diagram for KisConfigNotifier:

Classes

struct  Private
 

Signals

void colorHistoryModeChanged ()
 
void configChanged (void)
 
void dropFramesModeChanged ()
 
void pixelGridModeChanged ()
 
void sigLongPressChanged (bool enabled)
 
void signalColorThemeChanged (const QString &filename)
 
void touchPaintingChanged ()
 

Public Member Functions

 KisConfigNotifier ()
 
void notifyColorHistoryModeChanged ()
 
void notifyColorThemeChanged (const QString &filename)
 
void notifyConfigChanged (void)
 
void notifyDropFramesModeChanged ()
 
void notifyLongPressChanged (bool enabled)
 
void notifyPixelGridModeChanged ()
 
void notifyTouchPaintingChanged ()
 
 ~KisConfigNotifier () override
 

Static Public Member Functions

static KisConfigNotifierinstance ()
 

Private Member Functions

 KisConfigNotifier (const KisConfigNotifier &)
 
KisConfigNotifier operator= (const KisConfigNotifier &)
 

Private Attributes

const QScopedPointer< Privatem_d
 

Detailed Description

An object that emits a signal to inform interested parties that the configuration settings have changed.

Definition at line 18 of file kis_config_notifier.h.

Constructor & Destructor Documentation

◆ KisConfigNotifier() [1/2]

KisConfigNotifier::KisConfigNotifier ( )

Definition at line 22 of file kis_config_notifier.cpp.

23 : m_d(new Private)
24{
25 connect(&m_d->dropFramesModeCompressor, SIGNAL(timeout()), SIGNAL(dropFramesModeChanged()));
26}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void dropFramesModeChanged()
const QScopedPointer< Private > m_d

References connect(), dropFramesModeChanged(), and m_d.

◆ ~KisConfigNotifier()

KisConfigNotifier::~KisConfigNotifier ( )
override

Definition at line 28 of file kis_config_notifier.cpp.

29{
30 dbgRegistry << "deleting KisConfigNotifier";
31}
#define dbgRegistry
Definition kis_debug.h:47

References dbgRegistry.

◆ KisConfigNotifier() [2/2]

KisConfigNotifier::KisConfigNotifier ( const KisConfigNotifier & )
private

Member Function Documentation

◆ colorHistoryModeChanged

void KisConfigNotifier::colorHistoryModeChanged ( )
signal

◆ configChanged

void KisConfigNotifier::configChanged ( void )
signal

This signal is emitted whenever notifyConfigChanged() is called.

◆ dropFramesModeChanged

void KisConfigNotifier::dropFramesModeChanged ( )
signal

◆ instance()

KisConfigNotifier * KisConfigNotifier::instance ( )
static
Returns
the KisConfigNotifier singleton

Definition at line 33 of file kis_config_notifier.cpp.

34{
35 return s_instance;
36}

◆ notifyColorHistoryModeChanged()

void KisConfigNotifier::notifyColorHistoryModeChanged ( )

Definition at line 53 of file kis_config_notifier.cpp.

54{
56}
void colorHistoryModeChanged()

References colorHistoryModeChanged().

◆ notifyColorThemeChanged()

void KisConfigNotifier::notifyColorThemeChanged ( const QString & filename)

Definition at line 63 of file kis_config_notifier.cpp.

64{
65 Q_EMIT signalColorThemeChanged(filename);
66}
void signalColorThemeChanged(const QString &filename)

References signalColorThemeChanged().

◆ notifyConfigChanged()

void KisConfigNotifier::notifyConfigChanged ( void )

Notify that the configuration has changed. This will cause the configChanged() signal to be emitted.

Definition at line 38 of file kis_config_notifier.cpp.

39{
40 Q_EMIT configChanged();
41}
void configChanged(void)

References configChanged().

◆ notifyDropFramesModeChanged()

void KisConfigNotifier::notifyDropFramesModeChanged ( )

Definition at line 43 of file kis_config_notifier.cpp.

44{
45 m_d->dropFramesModeCompressor.start();
46}

References m_d.

◆ notifyLongPressChanged()

void KisConfigNotifier::notifyLongPressChanged ( bool enabled)

Definition at line 68 of file kis_config_notifier.cpp.

69{
70 Q_EMIT sigLongPressChanged(enabled);
71}
void sigLongPressChanged(bool enabled)

References sigLongPressChanged().

◆ notifyPixelGridModeChanged()

void KisConfigNotifier::notifyPixelGridModeChanged ( )

Definition at line 48 of file kis_config_notifier.cpp.

49{
50 Q_EMIT pixelGridModeChanged();
51}
void pixelGridModeChanged()

References pixelGridModeChanged().

◆ notifyTouchPaintingChanged()

void KisConfigNotifier::notifyTouchPaintingChanged ( )

Definition at line 58 of file kis_config_notifier.cpp.

59{
60 Q_EMIT touchPaintingChanged();
61}
void touchPaintingChanged()

References touchPaintingChanged().

◆ operator=()

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

◆ pixelGridModeChanged

void KisConfigNotifier::pixelGridModeChanged ( )
signal

◆ sigLongPressChanged

void KisConfigNotifier::sigLongPressChanged ( bool enabled)
signal

◆ signalColorThemeChanged

void KisConfigNotifier::signalColorThemeChanged ( const QString & filename)
signal

◆ touchPaintingChanged

void KisConfigNotifier::touchPaintingChanged ( )
signal

Member Data Documentation

◆ m_d

const QScopedPointer<Private> KisConfigNotifier::m_d
private

Definition at line 61 of file kis_config_notifier.h.


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