diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-02 18:23:26 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-02 18:23:26 +0000 |
| commit | ecc137abe40edc93062c8a62168fa7d1cf5dcc63 (patch) | |
| tree | f21654e8c129533e1e26590a2f698a23c72bf8df /src/ui/skin.h | |
| parent | 335948cfb54b7654ccd4157390da6b2b675d7ea9 (diff) | |
| download | qmmp-ecc137abe40edc93062c8a62168fa7d1cf5dcc63.tar.gz qmmp-ecc137abe40edc93062c8a62168fa7d1cf5dcc63.tar.bz2 qmmp-ecc137abe40edc93062c8a62168fa7d1cf5dcc63.zip | |
added possibility to disable skin cursors
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1350 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/skin.h')
| -rw-r--r-- | src/ui/skin.h | 59 |
1 files changed, 25 insertions, 34 deletions
diff --git a/src/ui/skin.h b/src/ui/skin.h index c50b93743..bb16d7687 100644 --- a/src/ui/skin.h +++ b/src/ui/skin.h @@ -31,8 +31,6 @@ #include <QRegion> #include <QCursor> - - class Skin : public QObject { Q_OBJECT @@ -41,33 +39,32 @@ public: ~Skin(); - static Skin *getPointer(); + static Skin *instance(); static QPixmap getPixmap(const QString&, QDir); - void setSkin(const QString& path); const QPixmap getMain() const { return m_main; - }; + } const QPixmap getButton(uint bt) const { return buttons[bt]; - }; + } const QCursor getCursor(uint cu) const { return cursors[cu]; - }; + } const QPixmap getTitleBar(uint tb) const { return titlebar[tb]; - }; + } const QPixmap getPosBar() const { return posbar; - }; + } const QPixmap getNumber(uint n) const { return m_numbers[n]; - }; + } /*! * Returns count of numbers in number list. * We need this to check if we have "-" in pixmaps. @@ -80,59 +77,51 @@ public: const QPixmap getPlPart(uint p) const { return m_pl_parts[p]; - }; + } const QPixmap getEqPart(uint p) const { return m_eq_parts[p]; - }; + } const QPixmap getEqSlider(uint n) const { return m_eq_bar[n]; - }; + } const QPixmap getEqSpline(uint n) const { return m_eq_spline[n]; - }; + } const QPixmap getMSPart(uint n) const { return m_ms_parts[n]; - }; + } const QPixmap getLetter(const QChar& ch) const { return m_letters[ch]; - }; + } const QPixmap getItem(uint n) const { return m_parts[n]; - }; + } const QPixmap getVolumeBar(int n) const { return m_volume[n]; - }; + } const QPixmap getBalanceBar(int n) const { return m_balance[n]; - }; + } const QByteArray getPLValue (QByteArray c) const { return m_pledit_txt[c]; - }; + } const QColor getVisColor(int n) const { return m_vis_colors[n]; - }; - /*const QRegion getMWRegion() const - { - return m_mwRegion; - }; - const QRegion getPLRegion() const - { - return m_plRegion; - };*/ + } const QRegion getRegion(uint r) const { return m_regions[r]; - }; + } enum Buttons { @@ -330,6 +319,10 @@ public: CUR_WSWINBUT, }; +public slots: + void setSkin(const QString& path); + void reloadSkin(); + signals: void skinChanged(); @@ -346,7 +339,7 @@ private: * to load pixmap from default skin. */ QPixmap *getDummyPixmap(const QString&); - static Skin *pointer; + static Skin *m_instance; QDir m_skin_dir; QMap<uint, QPixmap> buttons; QMap<uint, QCursor> cursors; @@ -366,8 +359,7 @@ private: QList<QPixmap> m_volume; QList<QPixmap> m_balance; QList<QColor> m_vis_colors; - //QRegion m_mwRegion; - //QRegion m_plRegion; + bool m_use_cursors; void loadMain(); void loadButtons(); @@ -387,7 +379,6 @@ private: void loadBalance(); void loadRegion(); QRegion createRegion(const QString &path, const QString &key); - }; #endif |
