API Documentation
Loading...
Searching...
No Matches
ThemeButton.h
Go to the documentation of this file.
1/**--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: NDEVR
28File: ThemeButton
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/NDEVRProxyStyle.h>
34#include <NDEVR/Button.h>
35#include <NDEVR/WidgetOptions.h>
36namespace NDEVR
37{
38 class WindowManager;
39 class NDEVRProxyStyle;
40 class ColorThemeButton : public QObject
41 {
42 Q_OBJECT
43 public:
44 ColorThemeButton(Button* button, bool use_big_icons = false);
45 void setMakeUpper(bool make_upper);
47 void clearConstantTheme();
50 protected slots:
51 void themeChangedSlot();
52 void styleDestroyed();
53 protected:
57 bool m_make_upper = false;
58 };
59
60 class TouchDesktopThemeButton : public QObject
61 {
62 Q_OBJECT
63 public:
65 void setUseLargeIcons(bool use_large_icons);
66 void themeChanged();
67 void invert(bool is_inverted = true);
69 protected:
73 bool m_use_large_icons = false;
74 bool m_invert = false;
75 };
76}
Definition Button.h:60
Definition ThemeButton.h:41
bool m_use_big_icons
Definition ThemeButton.h:56
void clearConstantTheme()
Definition ThemeButton.cpp:40
NDEVRLightingTheme themeTarget() const
Definition ThemeButton.cpp:54
bool m_make_upper
Definition ThemeButton.h:57
NDEVRLightingTheme m_constant_theme
Definition ThemeButton.h:54
void themeChangedSlot()
Definition ThemeButton.cpp:66
ColorThemeButton(Button *button, bool use_big_icons=false)
Definition ThemeButton.cpp:10
void setMakeUpper(bool make_upper)
Definition ThemeButton.cpp:26
Button * m_button
Definition ThemeButton.h:55
void setConstantTheme(NDEVRLightingTheme theme)
Definition ThemeButton.cpp:34
void styleDestroyed()
Definition ThemeButton.cpp:61
NDEVRLightingTheme clickedTarget() const
Definition ThemeButton.cpp:44
Definition ThemeButton.h:61
WindowManager * m_manager
Definition ThemeButton.h:72
void setUseLargeIcons(bool use_large_icons)
Definition ThemeButton.cpp:94
bool m_invert
Definition ThemeButton.h:74
WidgetOptions::WidgetMode m_constant_theme
Definition ThemeButton.h:70
TouchDesktopThemeButton(WindowManager *manager, Button *button)
Definition ThemeButton.cpp:80
Button * m_button
Definition ThemeButton.h:71
bool m_use_large_icons
Definition ThemeButton.h:73
void themeChanged()
Definition ThemeButton.cpp:102
void invert(bool is_inverted=true)
Definition ThemeButton.cpp:131
WidgetOptions::WidgetMode themeTarget() const
Definition ThemeButton.cpp:136
WidgetMode
Definition WidgetOptions.h:24
@ e_size
Definition WidgetOptions.h:28
Definition WindowManager.h:68
Definition ACIColor.h:37
NDEVRLightingTheme
Definition NDEVRTheme.h:43
@ e_num_of_themes
Definition NDEVRTheme.h:46