API Documentation
Loading...
Searching...
No Matches
GettingStarted.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: GettingStarted
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#include <NDEVR/NDEVRProxyStyle.h>
35#include <QWidget>
36#include <functional>
37namespace Ui
38{
39 class GettingStartedUI;
40}
41namespace NDEVR
42{
43 class WindowManager;
44 class FileChooserDialog;
45 class QTModelManager;
46 class ImageView;
47 class TouchDesktopThemeButton;
48 class NDEVR_API GettingStartedDialog : public QWidget
49 {
50 Q_OBJECT
51 public:
52 GettingStartedDialog(QTModelManager* model_manager, WindowManager* manager, QWidget* parent = nullptr);
53 virtual ~GettingStartedDialog();
54 void resizeEvent(QResizeEvent *resize_event) override;
55 QSize sizeHint() const override;
56 QSize minimumSizeHint() const override;
57 void setQuickStartVisible(bool is_visible);
58 void setTouchThemeVisible(bool is_visible);
59 void addWidget(QWidget* widget);
60 void removeWidget(QWidget* widget);
61 bool event(QEvent* event) override;
62 void paintEvent(QPaintEvent*) override;
63 void showEvent(QShowEvent* event) override;
64 void updateHorizontal();
65 void setQuickStartCallback(const std::function<void()>& callback) { m_quickstart_callback = callback; }
66 public slots:
67 void updateBackgroundSlot();
68 void globalStyleDestroyedSlot();
69 protected:
70 void ensureBackroundLoaded(NDEVRLightingTheme theme);
71 void updateOpacity();
72 void updateTouchMode();
73 void updateLogoVisible();
74 void updateFont();
75 void dragEnterEvent(QDragEnterEvent *event) override;
76 void dropEvent(QDropEvent *event) override;
77 void setLogoVisible(bool logo_visible);
85 Ui::GettingStartedUI* ui;
86 std::function<void()> m_quickstart_callback;
87 };
88}
#define NDEVR_API
Definition DLLInfo.h:67
Definition GettingStarted.h:49
Ui::GettingStartedUI * ui
Definition GettingStarted.h:85
std::function< void()> m_quickstart_callback
Definition GettingStarted.h:86
QPixmap m_dark_background
Definition GettingStarted.h:83
TouchDesktopThemeButton * m_touch_desktop_theme
Definition GettingStarted.h:84
QPixmap m_light_background
Definition GettingStarted.h:82
bool m_is_logo_visible
Definition GettingStarted.h:78
bool m_is_quick_start_visible
Definition GettingStarted.h:79
WindowManager * m_window_manager
Definition GettingStarted.h:80
QTModelManager * m_model_manager
Definition GettingStarted.h:81
void setQuickStartCallback(const std::function< void()> &callback)
Definition GettingStarted.h:65
Definition QTModelManager.h:94
Definition ThemeButton.h:61
Definition WindowManager.h:68
Definition ACIColor.h:37
NDEVRLightingTheme
Definition NDEVRTheme.h:43
Definition FontEditor.h:6