From e2de64d6f1beb9e492daf5b886e19933c1fa41dd Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun/modules/kjofol-skin/kjprefs.h | 96 ++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 noatun/modules/kjofol-skin/kjprefs.h (limited to 'noatun/modules/kjofol-skin/kjprefs.h') diff --git a/noatun/modules/kjofol-skin/kjprefs.h b/noatun/modules/kjofol-skin/kjprefs.h new file mode 100644 index 00000000..ce1725d5 --- /dev/null +++ b/noatun/modules/kjofol-skin/kjprefs.h @@ -0,0 +1,96 @@ +#ifndef KJPREFS_H +#define KJPREFS_H + +//#include "kjprefswidget.h" +#include "kjskinselectorwidget.h" +#include "kjguisettingswidget.h" + +// system includes +#include +#include + +#include +#include + +class QVBoxLayout; +class QHBoxLayout; +class QGridLayout; +class QComboBox; +class QLabel; +class QPushButton; +class QTabWidget; +class KConfig; +class KJLoader; + +class KJPrefs : public CModule +{ +Q_OBJECT +public: + KJPrefs(QObject* parent); + + // Save which Skin is currently selected + virtual void save(); + + // Rebuild the Skinlist + virtual void reopen(); + + QString skin( void ) const; + + int minimumPitch( void ) const; + int maximumPitch( void ) const; + + int visTimerValue ( void ) const; + + int titleMovingUpdates ( void ) const; + float titleMovingDistance ( void ) const; + + int visType ( void ) const; + void setVisType ( int vis ); + + bool useSysFont( void ) const; + void setUseSysFont( bool ); + + QFont sysFont(void) const; + void setSysFont(QFont&); + + QColor sysFontColor(void) const; + void sysFontColor(QColor &); + + bool displayTooltips( void ) const; + bool displaySplash( void ) const; + +public slots: + // Installs a skin defined by the URL in mSkinRequester + void installNewSkin( void ); + + // Delete the currently selected Skin (does not work for systemwide skins!) + void removeSelectedSkin ( void ); + + // Show a preview of "skin" in mPixmap + void showPreview(const QString &skin); + + // gets called after a KIO-action has finished + // KIO is used for installing/removing skins + void slotResult(KIO::Job *job); + +signals: + void configChanged(); + +private: + QPixmap mPixmap; // preview Pixmap + KConfig *cfg; + + // Dialog-Widgets + QTabWidget *mTabWidget; + KJSkinselector *mSkinselectorWidget; + KJGuiSettings *mGuiSettingsWidget; +}; + +/** + * resolve a filename to its correct case. + * badNodes is the amount of directories/files (at the end) + * that aren't known) + **/ +QString filenameNoCase(const QString &filename, int badNodes=1); + +#endif // KJPREFS_H -- cgit v1.2.1