tabulations.

icc-effect-5.14.5
Hugo Pereira Da Costa 2011-07-17 16:27:26 +02:00
parent 0ae4d9489f
commit 31d6f0e7ac
1 changed files with 44 additions and 44 deletions

View File

@ -38,74 +38,74 @@
namespace Oxygen { namespace Oxygen {
class Configuration; class Configuration;
class ShadowConfiguration; class ShadowConfiguration;
// oxygen configuration object // oxygen configuration object
class Config: public QObject class Config: public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
//! constructor //! constructor
Config( KConfig* conf, QWidget* parent ); Config( KConfig* conf, QWidget* parent );
//! destructor //! destructor
~Config(); ~Config();
signals: signals:
//! emmited whenever configuration is changed //! emmited whenever configuration is changed
void changed(); void changed();
//! emmited whenever configuration is changed //! emmited whenever configuration is changed
void changed( bool ); void changed( bool );
public slots: public slots:
//! load configuration //! load configuration
void load( const KConfigGroup& ); void load( const KConfigGroup& );
//! save configuration //! save configuration
void save( KConfigGroup& ); void save( KConfigGroup& );
//! restore defaults //! restore defaults
void defaults( void ); void defaults( void );
//! toggle expert mode //! toggle expert mode
void toggleExpertMode( bool ); void toggleExpertMode( bool );
private slots: private slots:
//! update change state //! update change state
void updateChanged( void ); void updateChanged( void );
private: private:
//! load configuration //! load configuration
void loadConfiguration( const Configuration& ); void loadConfiguration( const Configuration& );
//! load configuration //! load configuration
void loadShadowConfiguration( QPalette::ColorGroup, const ShadowConfiguration& ); void loadShadowConfiguration( QPalette::ColorGroup, const ShadowConfiguration& );
//! load configuration //! load configuration
void saveShadowConfiguration( QPalette::ColorGroup, const ShadowConfigurationUi& ) const; void saveShadowConfiguration( QPalette::ColorGroup, const ShadowConfigurationUi& ) const;
//! returns true if shadow configuration changed //! returns true if shadow configuration changed
bool shadowConfigurationChanged( const ShadowConfiguration&, const ShadowConfigurationUi& ) const; bool shadowConfigurationChanged( const ShadowConfiguration&, const ShadowConfigurationUi& ) const;
//! returns true if exception list is changed //! returns true if exception list is changed
bool exceptionListChanged( void ) const; bool exceptionListChanged( void ) const;
//! user interface //! user interface
ConfigurationUi *ui; ConfigurationUi *ui;
//! kconfiguration object //! kconfiguration object
KConfig *_configuration; KConfig *_configuration;
}; };
} //namespace Oxygen } //namespace Oxygen