NDEVR
API Documentation
WidgetInitialization

The primary logic for initializing an application within the NDEVR engine by calling module functions in the appropriate order and initializing any common resources or services. More...

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

Public Member Functions

 WidgetInitialization ()
 Constructs a WidgetInitialization with default settings.
 WidgetInitialization (int argc, char **argv)
 Constructs a WidgetInitialization with command-line arguments.
virtual void errorHandlingInit ()
 Initializes error and crash handling.
virtual NDEVRApplicationinitializeApplication ()
 Creates and returns the NDEVRApplication instance.
virtual int launch ()
 Launches the application event loop.
virtual void registerMetatypes ()
 Registers Qt metatypes from loaded modules.
virtual void setupAll ()
 Runs all setup steps in the correct order.
virtual void setUpdateChecker ()
 Registers the software update checker from loaded modules.
virtual void setupFactories ()
 Registers I/O and other factories from loaded modules.
virtual void setupFileStructure ()
 Creates required directories and unpacks resources from loaded modules.
virtual void setupFonts ()
 Loads and configures application fonts.
virtual void setupLanguages ()
 Sets up language translations from loaded modules.
virtual void setupManuals ()
 Registers help manuals from loaded modules.
virtual void setupModules ()
 Loads and initializes all modules.
virtual void setupUI ()
 Initializes the user interface from loaded modules.
virtual void setupUIThemes ()
 Registers UI icon and color themes from loaded modules.
virtual void setupUnits ()
 Configures unit systems from loaded modules.
virtual void setupUserOptions ()
 Registers user-configurable options from loaded modules.

Public Attributes

NDEVRApplicationapp = nullptr
 The application instance.
int argc
 The command-line argument count.
char ** argv
 The command-line argument values.
bool auto_restart = true
 Whether to auto-restart the application on crash.
bool disable_auto_screen_factor = true
 Whether to disable automatic screen scale factor.
QTWindowManagergui = nullptr
 The window manager instance.
bool launch_model_manager = true
 Whether to launch the QTModelManager.
std::function< void()> load_modules_callback
 Optional callback invoked after modules are loaded.
bool load_user_settings = true
 Whether to load saved user settings.
String main_module_name
 The name of the primary application module.
QTModelManagermanager = nullptr
 The model manager instance.
bool qt_allow_virtual_keyboard = false
 Whether to enable the Qt virtual keyboard.
bool qt_enable_high_dpi_scaling = true
 Whether to enable Qt high-DPI scaling.
bool qt_use_high_dpi_bitmaps = true
 Whether to use high-DPI bitmaps.
bool setup_error_handling = true
 Whether to initialize error handling.
bool setup_factories = true
 Whether to register I/O factories.
bool setup_file_structure = true
 Whether to create required directories.
bool setup_fonts = true
 Whether to load and configure fonts.
bool setup_language = true
 Whether to initialize language translations.
bool setup_modules = true
 Whether to load and initialize modules.
bool validate_file_structure = true
 Whether to validate the file structure on startup.

Detailed Description

The primary logic for initializing an application within the NDEVR engine by calling module functions in the appropriate order and initializing any common resources or services.


Definition at line 15 of file WidgetInitialization.h.

Constructor & Destructor Documentation

◆ WidgetInitialization()

WidgetInitialization::WidgetInitialization ( int argc,
char ** argv )

Constructs a WidgetInitialization with command-line arguments.

Parameters
[in]argcThe argument count.
[in]argvThe argument values.

References argc, and argv.

Member Function Documentation

◆ initializeApplication()

virtual NDEVRApplication * WidgetInitialization::initializeApplication ( )
virtual

Creates and returns the NDEVRApplication instance.

Returns
The newly created application object.

◆ launch()

virtual int WidgetInitialization::launch ( )
virtual

Launches the application event loop.

Returns
The application exit code.

Reimplemented in ApplicationSetup.


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