aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/skinned/skin.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-07-25 18:46:40 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-07-25 18:46:40 +0000
commit623c5155ca90e2d08abba1f7de9f7b2232e03f54 (patch)
treee2fdcd54325ea93d165c85e2f7c22e98ebdcb4e2 /src/plugins/Ui/skinned/skin.h
parent39d81bd36de4e11103648b4f9571d993bd1052bc (diff)
downloadqmmp-623c5155ca90e2d08abba1f7de9f7b2232e03f54.tar.gz
qmmp-623c5155ca90e2d08abba1f7de9f7b2232e03f54.tar.bz2
qmmp-623c5155ca90e2d08abba1f7de9f7b2232e03f54.zip
refactoring
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9449 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/skin.h')
-rw-r--r--src/plugins/Ui/skinned/skin.h106
1 files changed, 21 insertions, 85 deletions
diff --git a/src/plugins/Ui/skinned/skin.h b/src/plugins/Ui/skinned/skin.h
index de1dd9e1e..d733d41b0 100644
--- a/src/plugins/Ui/skinned/skin.h
+++ b/src/plugins/Ui/skinned/skin.h
@@ -36,100 +36,36 @@ class Skin : public QObject
Q_OBJECT
public:
Skin(QObject *parent = nullptr);
-
~Skin();
static Skin *instance();
static QPixmap getPixmap(const QString &name, QDir dir);
- int ratio()
- {
- return m_double_size ? 2 : 1;
- }
- const QPixmap getMain() const
- {
- return m_main;
- }
- const QPixmap getButton(uint bt) const
- {
- return m_buttons[bt];
- }
- const QCursor getCursor(uint cu) const
- {
- return m_cursors[cu];
- }
- const QPixmap getTitleBar(uint tb) const
- {
- return m_titlebar[tb];
- }
- const QPixmap getPosBar() const
- {
- return posbar;
- }
- const QPixmap getNumber(uint n) const
- {
- return m_numbers[n];
- }
+ int ratio() const;
+ const QPixmap &getMain() const;
+ const QPixmap getButton(uint bt) const;
+ const QCursor getCursor(uint cu) const;
+ const QPixmap getTitleBar(uint tb) const;
+ const QPixmap &getPosBar() const;
+ const QPixmap &getNumber(uint n) const;
/*!
* Returns count of numbers in number list.
* We need this to check if we have "-" in pixmaps.
* if no we should draw it manually.
*/
- uint getNumCount(void) const
- {
- return m_numbers.count();
- }
- 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 getMainColor(int n) const
- {
- return m_main_colors[n];
- }
- const QColor getVisColor(int n) const
- {
- return m_vis_colors[n];
- }
- const QRegion getRegion(uint r) const
- {
- return m_regions[r];
- }
+ uint getNumCount(void) const;
+ const QPixmap getPlPart(uint p) const;
+ const QPixmap getEqPart(uint p) const;
+ const QPixmap &getEqSlider(uint n) const;
+ const QPixmap &getEqSpline(uint n) const;
+ const QPixmap getMSPart(uint n) const;
+ const QPixmap getLetter(const QChar& ch) const;
+ const QPixmap getItem(uint n) const;
+ const QPixmap &getVolumeBar(int n) const;
+ const QPixmap &getBalanceBar(int n) const;
+ const QByteArray getPLValue (QByteArray c) const;
+ const QColor getMainColor(int n) const;
+ const QColor &getVisColor(int n) const;
+ const QRegion getRegion(uint r) const;
enum Buttons
{