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 /**--------------------------------------------------------------------------------------------------
49 \brief This dialog is shown front and center before the user has loaded any data or created a project
50 In touch mode large buttons are shown, while the company logo is shown as a backdrop in Desktop
51 mode.
52 **/
53 class NDEVR_API GettingStartedDialog : public QWidget
54 {
55 Q_OBJECT
56 public:
57 GettingStartedDialog(QTModelManager* model_manager, WindowManager* manager, QWidget* parent = nullptr);
59 void resizeEvent(QResizeEvent *resize_event) override;
60 QSize sizeHint() const override;
61 QSize minimumSizeHint() const override;
62 void setQuickStartVisible(bool is_visible);
63 void setTouchThemeVisible(bool is_visible);
64 void addWidget(QWidget* widget);
65 void removeWidget(QWidget* widget);
66 bool event(QEvent* event) override;
67 void paintEvent(QPaintEvent*) override;
68 void showEvent(QShowEvent* event) override;
70 void setQuickStartCallback(const std::function<void()>& callback) { m_quickstart_callback = callback; }
71 public slots:
74 protected:
79 void updateFont();
80 void dragEnterEvent(QDragEnterEvent *event) override;
81 void dropEvent(QDropEvent *event) override;
82 void setLogoVisible(bool logo_visible);
90 Ui::GettingStartedUI* ui;
91 std::function<void()> m_quickstart_callback;
92 };
93}
#define NDEVR_API
Definition DLLInfo.h:50
This dialog is shown front and center before the user has loaded any data or created a project In tou...
Definition GettingStarted.h:54
void ensureBackroundLoaded(NDEVRLightingTheme theme)
QSize minimumSizeHint() const override
void paintEvent(QPaintEvent *) override
Ui::GettingStartedUI * ui
Definition GettingStarted.h:90
void setTouchThemeVisible(bool is_visible)
void addWidget(QWidget *widget)
void showEvent(QShowEvent *event) override
QSize sizeHint() const override
void setQuickStartVisible(bool is_visible)
std::function< void()> m_quickstart_callback
Definition GettingStarted.h:91
bool event(QEvent *event) override
void setLogoVisible(bool logo_visible)
QPixmap m_dark_background
Definition GettingStarted.h:88
void dragEnterEvent(QDragEnterEvent *event) override
TouchDesktopThemeButton * m_touch_desktop_theme
Definition GettingStarted.h:89
QPixmap m_light_background
Definition GettingStarted.h:87
bool m_is_logo_visible
Definition GettingStarted.h:83
void resizeEvent(QResizeEvent *resize_event) override
bool m_is_quick_start_visible
Definition GettingStarted.h:84
WindowManager * m_window_manager
Definition GettingStarted.h:85
void dropEvent(QDropEvent *event) override
QTModelManager * m_model_manager
Definition GettingStarted.h:86
void removeWidget(QWidget *widget)
GettingStartedDialog(QTModelManager *model_manager, WindowManager *manager, QWidget *parent=nullptr)
void setQuickStartCallback(const std::function< void()> &callback)
Definition GettingStarted.h:70
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
A button for allowing the user to switch between Desktop/Touch mode which affects the size of all of ...
Definition ThemeButton.h:68
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
Definition FontEditor.h:6