lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
LmmsPalette.h
Go to the documentation of this file.
1
/*
2
* LmmsPalette.h - dummy class for fetching palette qproperties from CSS
3
*
4
*
5
* Copyright (c) 2007-2014 Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>
6
*
7
* This file is part of LMMS - https://lmms.io
8
*
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public
11
* License as published by the Free Software Foundation; either
12
* version 2 of the License, or (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public
20
* License along with this program (see COPYING); if not, write to the
21
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22
* Boston, MA 02110-1301 USA.
23
*
24
*/
25
26
#ifndef LMMS_GUI_LMMS_PALETTE_H
27
#define LMMS_GUI_LMMS_PALETTE_H
28
29
#include <QWidget>
30
#include "lmms_export.h"
31
32
namespace
lmms::gui
33
{
34
35
36
class
LMMS_EXPORT
LmmsPalette
:
public
QWidget
37
{
38
Q_OBJECT
39
Q_PROPERTY( QColor
background
READ
background
WRITE setBackground )
40
Q_PROPERTY( QColor
windowText
READ
windowText
WRITE setWindowText )
41
Q_PROPERTY( QColor
base
READ
base
WRITE setBase )
42
Q_PROPERTY( QColor
text
READ
text
WRITE setText )
43
Q_PROPERTY( QColor
button
READ
button
WRITE setButton )
44
Q_PROPERTY( QColor
shadow
READ
shadow
WRITE setShadow )
45
Q_PROPERTY( QColor
buttonText
READ
buttonText
WRITE setButtonText )
46
Q_PROPERTY( QColor
brightText
READ
brightText
WRITE setBrightText )
47
Q_PROPERTY( QColor
highlight
READ
highlight
WRITE setHighlight )
48
Q_PROPERTY( QColor
highlightedText
READ
highlightedText
WRITE setHighlightedText )
49
50
public:
51
LmmsPalette
( QWidget * parent, QStyle * stylearg );
52
~
LmmsPalette
() override = default;
53
54
#define ACCESSMET( read, write ) \
55
QColor read () const; \
56
void write ( const QColor & c ); \
57
58
59
ACCESSMET
( background, setBackground )
60
ACCESSMET
( windowText, setWindowText )
61
ACCESSMET
( base, setBase )
62
ACCESSMET
( text, setText )
63
ACCESSMET
( button, setButton )
64
ACCESSMET
( shadow, setShadow )
65
ACCESSMET
( buttonText, setButtonText )
66
ACCESSMET
( brightText, setBrightText )
67
ACCESSMET
( highlight, setHighlight )
68
ACCESSMET
( highlightedText, setHighlightedText )
69
70
#undef ACCESSMET
71
72
QPalette palette()
const
;
73
74
private
:
75
QColor
m_background
;
76
QColor
m_windowText
;
77
QColor
m_base
;
78
QColor
m_text
;
79
QColor
m_button
;
80
QColor
m_shadow
;
81
QColor
m_buttonText
;
82
QColor
m_brightText
;
83
QColor
m_highlight
;
84
QColor
m_highlightedText
;
85
};
86
87
88
}
// namespace lmms::gui
89
90
#endif
// LMMS_GUI_LMMS_PALETTE_H
ACCESSMET
#define ACCESSMET(read, write)
Definition
LmmsPalette.cpp:55
lmms::gui::LmmsPalette::m_buttonText
QColor m_buttonText
Definition
LmmsPalette.h:81
lmms::gui::LmmsPalette::m_background
QColor m_background
Definition
LmmsPalette.h:75
lmms::gui::LmmsPalette::text
QColor text
Definition
LmmsPalette.h:42
lmms::gui::LmmsPalette::base
QColor base
Definition
LmmsPalette.h:41
lmms::gui::LmmsPalette::m_base
QColor m_base
Definition
LmmsPalette.h:77
lmms::gui::LmmsPalette::button
QColor button
Definition
LmmsPalette.h:43
lmms::gui::LmmsPalette::m_shadow
QColor m_shadow
Definition
LmmsPalette.h:80
lmms::gui::LmmsPalette::m_button
QColor m_button
Definition
LmmsPalette.h:79
lmms::gui::LmmsPalette::LmmsPalette
LmmsPalette(QWidget *parent, QStyle *stylearg)
Definition
LmmsPalette.cpp:34
lmms::gui::LmmsPalette::m_windowText
QColor m_windowText
Definition
LmmsPalette.h:76
lmms::gui::LmmsPalette::m_brightText
QColor m_brightText
Definition
LmmsPalette.h:82
lmms::gui::LmmsPalette::shadow
QColor shadow
Definition
LmmsPalette.h:44
lmms::gui::LmmsPalette::highlightedText
QColor highlightedText
Definition
LmmsPalette.h:48
lmms::gui::LmmsPalette::m_text
QColor m_text
Definition
LmmsPalette.h:78
lmms::gui::LmmsPalette::background
QColor background
Definition
LmmsPalette.h:39
lmms::gui::LmmsPalette::m_highlight
QColor m_highlight
Definition
LmmsPalette.h:83
lmms::gui::LmmsPalette::highlight
QColor highlight
Definition
LmmsPalette.h:47
lmms::gui::LmmsPalette::m_highlightedText
QColor m_highlightedText
Definition
LmmsPalette.h:84
lmms::gui::LmmsPalette::windowText
QColor windowText
Definition
LmmsPalette.h:40
lmms::gui::LmmsPalette::brightText
QColor brightText
Definition
LmmsPalette.h:46
lmms::gui::LmmsPalette::buttonText
QColor buttonText
Definition
LmmsPalette.h:45
lmms::gui
Definition
AudioPortAudio.cpp:209
Generated on
for lmms by
1.18.0