API Documentation
Loading...
Searching...
No Matches
WidgetInitialization.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/NDEVRApplication.h>
4#include <NDEVR/String.h>
5#include <functional>
6namespace NDEVR
7{
8 class String;
9 class QTModelManager;
10 class QTWindowManager;
11 /**--------------------------------------------------------------------------------------------------
12 \brief The primary logic for initializing an application within the NDEVR engine by calling module
13 functions in the appropriate order and initializing any common resources or services.
14 **/
16 {
17 public:
19 WidgetInitialization(int argc, char** argv);
20 virtual void setupLanguages();
21 virtual void setupUnits();
22 virtual void setupFonts();
23 virtual void setupUI();
24 virtual void registerMetatypes();
25 virtual void setupFileStructure();
26 virtual void setupFactories();
27 virtual void setupManuals();
28 virtual void errorHandlingInit();
29 virtual void setUpdateChecker();
30 virtual void setupUIThemes();
31 virtual void requestPermissions();
32 virtual void setupModules();
33 virtual void setupUserOptions();
35 virtual void setupAll();
36 virtual int launch();
37
38 int argc;
39 char** argv;
40 std::function<void()> load_modules_callback;
42 bool setup_language = true;
43 bool validate_file_structure = true;
44 bool setup_fonts = true;
45 bool setup_factories = true;
46 bool setup_error_handling = true;
47 bool setup_file_structure = true;
48 bool launch_model_manager = true;
49 bool qt_enable_high_dpi_scaling = true;
50 bool qt_use_high_dpi_bitmaps = true;
51 bool qt_allow_virtual_keyboard = false;
52 bool auto_restart = true;
53 bool setup_modules = true;
54 bool disable_os_keyboard = false;
55 bool disable_auto_screen_factor = true;
56 bool load_user_settings = true;
57 NDEVRApplication* app = nullptr;
58 QTModelManager* manager = nullptr;
59 QTWindowManager* gui = nullptr;
60
61 };
62}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:59
The root class of the NDEVR Application.
Definition NDEVRApplication.h:10
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
The core String class for the NDEVR API.
Definition String.h:69
The primary logic for initializing an application within the NDEVR engine by calling module functions...
Definition WidgetInitialization.h:16
virtual void errorHandlingInit()
virtual void requestPermissions()
std::function< void()> load_modules_callback
Definition WidgetInitialization.h:40
String main_module_name
Definition WidgetInitialization.h:41
virtual void setupUserOptions()
virtual NDEVRApplication * initializeApplication()
virtual void setupLanguages()
virtual void setupFactories()
virtual void setUpdateChecker()
virtual void registerMetatypes()
virtual void setupUIThemes()
WidgetInitialization(int argc, char **argv)
virtual void setupFileStructure()
int argc
Definition WidgetInitialization.h:38
char ** argv
Definition WidgetInitialization.h:39
Definition ACIColor.h:37