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 /**--------------------------------------------------------------------------------------------------
41 \brief A button for adjusting the color theme used by the NDEVR engine (Typically light or dark color
42 palettes).
43 **/
44 class ColorThemeButton : public QObject
45 {
46 Q_OBJECT
47 public:
48 ColorThemeButton(Button* button, bool use_big_icons = false);
49 void setMakeUpper(bool make_upper);
54 protected slots:
57 protected:
61 bool m_make_upper = false;
62 };
63 /**--------------------------------------------------------------------------------------------------
64 \brief A button for allowing the user to switch between Desktop/Touch mode which affects the size of
65 all of the widgets and text.
66 **/
67 class TouchDesktopThemeButton : public QObject
68 {
69 Q_OBJECT
70 public:
72 void setUseLargeIcons(bool use_large_icons);
74 void invert(bool is_inverted = true);
76 protected:
80 bool m_use_large_icons = false;
81 bool m_invert = false;
82 };
83}
A core widget that allows the user to click one of many button types.
Definition Button.h:66
A button for adjusting the color theme used by the NDEVR engine (Typically light or dark color palett...
Definition ThemeButton.h:45
bool m_use_big_icons
Definition ThemeButton.h:60
NDEVRLightingTheme themeTarget() const
bool m_make_upper
Definition ThemeButton.h:61
NDEVRLightingTheme m_constant_theme
Definition ThemeButton.h:58
ColorThemeButton(Button *button, bool use_big_icons=false)
void setMakeUpper(bool make_upper)
Button * m_button
Definition ThemeButton.h:59
void setConstantTheme(NDEVRLightingTheme theme)
NDEVRLightingTheme clickedTarget() const
A button for allowing the user to switch between Desktop/Touch mode which affects the size of all of ...
Definition ThemeButton.h:68
WindowManager * m_manager
Definition ThemeButton.h:79
void setUseLargeIcons(bool use_large_icons)
bool m_invert
Definition ThemeButton.h:81
WidgetOptions::WidgetMode m_constant_theme
Definition ThemeButton.h:77
TouchDesktopThemeButton(WindowManager *manager, Button *button)
Button * m_button
Definition ThemeButton.h:78
bool m_use_large_icons
Definition ThemeButton.h:80
void invert(bool is_inverted=true)
WidgetOptions::WidgetMode themeTarget() const
WidgetMode
Definition WidgetOptions.h:18
@ e_size
Definition WidgetOptions.h:22
Manages all windows and logic surrounding dialogs and views for displaying and managing any environme...
Definition WindowManager.h:68
Definition ACIColor.h:37
NDEVRLightingTheme
Definition NDEVRTheme.h:43
@ e_num_of_themes
Definition NDEVRTheme.h:46