summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kjofol-skin/kjprefs.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /noatun/modules/kjofol-skin/kjprefs.h
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
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
Diffstat (limited to 'noatun/modules/kjofol-skin/kjprefs.h')
-rw-r--r--noatun/modules/kjofol-skin/kjprefs.h96
1 files changed, 96 insertions, 0 deletions
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 <qwidget.h>
+#include <noatun/pref.h>
+
+#include <kio/job.h>
+#include <kurlrequester.h>
+
+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