OpenLexocad  27.1
OpenLxApp::Application Class Reference

The one and only Application. More...

#include <Application.h>

Public Member Functions

 Application ()
 
 ~Application (void)
 
std::shared_ptr< DocumentnewDocument (const Base::String &name=L"")
 Creates a new document. More...
 
std::shared_ptr< DocumentnewVariantTransferDocument (const Base::String &name=L"")
 Creates a new VariantTransferDocument. More...
 
void closeDocument (std::shared_ptr< Document > doc, bool forceClose=false)
 Closes the document. More...
 
std::shared_ptr< DocumentgetActiveDocument (bool createIfNeeded=false)
 Returns the active document. Creates a new one it createIfNeeded = true. More...
 
ActiveScript getActiveScript () const
 Returns the active script. More...
 
void closeApplication ()
 Closes the application. More...
 
void setAlternativeLookupPath (const Base::String &path)
 Sets an alternative path to look for dlls and other application files. More...
 

Static Public Member Functions

static ApplicationgetInstance (void)
 
static void release ()
 
static void initQt (int argc, char *argv[])
 Creates a QApplication. More...
 
static void initQt ()
 Creates a QApplication. More...
 
static void setPluginsToLoad (const LoadPlugins &lp)
 Sets which plugins should be loaded at startup. More...
 

Static Public Attributes

static LoadPlugins s_lp
 

Detailed Description

The one and only Application.

Constructor & Destructor Documentation

◆ Application()

OpenLxApp::Application::Application ( )

◆ ~Application()

OpenLxApp::Application::~Application ( void  )

Member Function Documentation

◆ closeApplication()

void OpenLxApp::Application::closeApplication ( )

Closes the application.

◆ closeDocument()

void OpenLxApp::Application::closeDocument ( std::shared_ptr< Document doc,
bool  forceClose = false 
)

Closes the document.

◆ getActiveDocument()

std::shared_ptr<Document> OpenLxApp::Application::getActiveDocument ( bool  createIfNeeded = false)

Returns the active document. Creates a new one it createIfNeeded = true.

◆ getActiveScript()

ActiveScript OpenLxApp::Application::getActiveScript ( ) const

Returns the active script.

◆ getInstance()

static Application* OpenLxApp::Application::getInstance ( void  )
static

◆ initQt() [1/2]

static void OpenLxApp::Application::initQt ( int  argc,
char *  argv[] 
)
static

Creates a QApplication.

◆ initQt() [2/2]

static void OpenLxApp::Application::initQt ( )
static

Creates a QApplication.

◆ newDocument()

std::shared_ptr<Document> OpenLxApp::Application::newDocument ( const Base::String name = L"")

Creates a new document.

◆ newVariantTransferDocument()

std::shared_ptr<Document> OpenLxApp::Application::newVariantTransferDocument ( const Base::String name = L"")

Creates a new VariantTransferDocument.

◆ release()

static void OpenLxApp::Application::release ( )
static

◆ setAlternativeLookupPath()

void OpenLxApp::Application::setAlternativeLookupPath ( const Base::String path)

Sets an alternative path to look for dlls and other application files.

◆ setPluginsToLoad()

static void OpenLxApp::Application::setPluginsToLoad ( const LoadPlugins lp)
static

Sets which plugins should be loaded at startup.

Member Data Documentation

◆ s_lp

LoadPlugins OpenLxApp::Application::s_lp
static

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