API Documentation
Loading...
Searching...
No Matches
ApplicationSetup Class Reference

Initializes the engine for most applications. Applications using the default workspace should call this function to layout and initialize the application. Calls all relevant module functions. More...

#include <ApplicationSetup.h>

Inheritance diagram for ApplicationSetup:
[legend]
Collaboration diagram for ApplicationSetup:
[legend]

Public Types

enum  UIMode { e_no_ui , e_window_manager , e_3D_window_manager }
 

Public Member Functions

 ApplicationSetup ()
 
 ApplicationSetup (int argc, char **argv)
 
int launch () override
 
void registerMetatypes () override
 
void setupFactories () override
 
void setupUI () override
 
void setupUserOptions () override
 
- Public Member Functions inherited from WidgetInitialization
virtual void errorHandlingInit ()
 
virtual NDEVRApplicationinitializeApplication ()
 
virtual void requestPermissions ()
 
virtual void setupAll ()
 
virtual void setUpdateChecker ()
 
virtual void setupFileStructure ()
 
virtual void setupFonts ()
 
virtual void setupLanguages ()
 
virtual void setupManuals ()
 
virtual void setupModules ()
 
virtual void setupUIThemes ()
 
virtual void setupUnits ()
 
 WidgetInitialization ()
 
 WidgetInitialization (int argc, char **argv)
 

Public Attributes

std::function< void(QWidget *)> main_window_created_callback
 
UIMode ui_mode = e_3D_window_manager
 
- Public Attributes inherited from WidgetInitialization
NDEVRApplicationapp = nullptr
 
int argc
 
char ** argv
 
bool auto_restart = true
 
bool disable_auto_screen_factor = true
 
bool disable_os_keyboard = false
 
QTWindowManager * gui = nullptr
 
bool launch_model_manager = true
 
std::function< void()> load_modules_callback
 
bool load_user_settings = true
 
String main_module_name
 
QTModelManagermanager = nullptr
 
bool qt_allow_virtual_keyboard = false
 
bool qt_enable_high_dpi_scaling = true
 
bool qt_use_high_dpi_bitmaps = true
 
bool setup_error_handling = true
 
bool setup_factories = true
 
bool setup_file_structure = true
 
bool setup_fonts = true
 
bool setup_language = true
 
bool setup_modules = true
 
bool validate_file_structure = true
 

Detailed Description

Initializes the engine for most applications. Applications using the default workspace should call this function to layout and initialize the application. Calls all relevant module functions.


Class: ApplicationSetup

in the correct order.

Member Enumeration Documentation

◆ UIMode

enum UIMode
Enumerator
e_no_ui 
e_window_manager 
e_3D_window_manager 

Constructor & Destructor Documentation

◆ ApplicationSetup() [1/2]

◆ ApplicationSetup() [2/2]

ApplicationSetup ( int argc,
char ** argv )

Member Function Documentation

◆ launch()

int launch ( )
overridevirtual

Reimplemented from WidgetInitialization.

◆ registerMetatypes()

void registerMetatypes ( )
overridevirtual

Reimplemented from WidgetInitialization.

◆ setupFactories()

void setupFactories ( )
overridevirtual

Reimplemented from WidgetInitialization.

◆ setupUI()

void setupUI ( )
overridevirtual

Reimplemented from WidgetInitialization.

◆ setupUserOptions()

void setupUserOptions ( )
overridevirtual

Reimplemented from WidgetInitialization.

Member Data Documentation

◆ main_window_created_callback

std::function<void(QWidget*)> main_window_created_callback

◆ ui_mode


The documentation for this class was generated from the following file: