aboutsummaryrefslogtreecommitdiff
path: root/src/ui/skin.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-10-30 16:08:15 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-10-30 16:08:15 +0000
commit26da2f9c144799264e2d36bf2988ba8bc404ee11 (patch)
treec6ab7d37db77037ac95a28c34e7eb517edcb43ca /src/ui/skin.h
parent6f72ae7e3e61b330dd1874a951b258075649fe8e (diff)
downloadqmmp-26da2f9c144799264e2d36bf2988ba8bc404ee11.tar.gz
qmmp-26da2f9c144799264e2d36bf2988ba8bc404ee11.tar.bz2
qmmp-26da2f9c144799264e2d36bf2988ba8bc404ee11.zip
added skinned cursors (patch by Erik Ölsar)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1338 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/skin.h')
-rw-r--r--src/ui/skin.h45
1 files changed, 44 insertions, 1 deletions
diff --git a/src/ui/skin.h b/src/ui/skin.h
index 12b5bff23..c50b93743 100644
--- a/src/ui/skin.h
+++ b/src/ui/skin.h
@@ -29,6 +29,7 @@
#include <QPixmap>
#include <QDir>
#include <QRegion>
+#include <QCursor>
@@ -51,6 +52,10 @@ public:
{
return buttons[bt];
};
+ const QCursor getCursor(uint cu) const
+ {
+ return cursors[cu];
+ };
const QPixmap getTitleBar(uint tb) const
{
return titlebar[tb];
@@ -92,7 +97,7 @@ public:
{
return m_ms_parts[n];
};
- const QPixmap getLetter(const QChar& ch)
+ const QPixmap getLetter(const QChar& ch) const
{
return m_letters[ch];
};
@@ -289,12 +294,48 @@ public:
WINDOW_SHADE,
EQUALIZER_WS,
};
+ enum Cursors
+ {
+ CUR_NORMAL = 0,
+ CUR_CLOSE,
+ CUR_MAINMENU,
+ CUR_MIN,
+ CUR_POSBAR,
+ CUR_SONGNAME,
+ CUR_TITLEBAR,
+ CUR_VOLBAL,
+ CUR_WINBUT,
+
+ CUR_WSNORMAL,
+ CUR_WSPOSBAR,
+
+ CUR_EQCLOSE,
+ CUR_EQNORMAL,
+ CUR_EQSLID,
+ CUR_EQTITLE,
+
+ CUR_PCLOSE,
+ CUR_PNORMAL,
+ CUR_PSIZE,
+ CUR_PTBAR,
+ CUR_PVSCROLL,
+ CUR_PWINBUT,
+
+ CUR_PWSNORM,
+ CUR_PWSSIZE,
+
+ CUR_VOLBAR,
+ CUR_WSCLOSE,
+ CUR_WSMIN,
+ CUR_WSWINBUT,
+ };
signals:
void skinChanged();
private:
QPixmap *getPixmap(const QString&);
+ QString getPath(const QString&);
const QString findFile(const QString&, QDir);
const QString findFile(const QString&, const QString&);
@@ -308,6 +349,7 @@ private:
static Skin *pointer;
QDir m_skin_dir;
QMap<uint, QPixmap> buttons;
+ QMap<uint, QCursor> cursors;
QMap<uint, QPixmap> titlebar;
QMap<uint, QPixmap> m_pl_parts;
QMap<uint, QPixmap> m_eq_parts;
@@ -329,6 +371,7 @@ private:
void loadMain();
void loadButtons();
+ void loadCursors();
void loadTitleBar();
void loadPosBar();
void loadNumbers();