Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <ApplicationGui.hpp>
Public Member Functions | |
ApplicationGui ()=delete | |
ApplicationGui (std::string_view name, std::string_view icon) | |
ApplicationGui (const ApplicationGui &other)=delete | |
ApplicationGui (ApplicationGui &&other)=default | |
ApplicationGui & | operator= (const ApplicationGui &other)=delete |
ApplicationGui & | operator= (ApplicationGui &&other)=delete |
std::weak_ptr< iv::appdiamar::IApplicationController > | getApplicationController () const override |
void | addIndicator (std::string_view title, bool resizeDialog, std::unique_ptr< IIndicator > &&indicator) const |
void | addOptionToSubMenu (CMenu *submenu, std::string_view nameOption, AbstractMenuOption **option) |
void | addOptionMenuWithImage (std::string_view nameOption, std::string_view nameImage, bool isToolbar, AbstractMenuOption **option) |
void | addOptionWithImageToSubMenu (CMenu *submenu, std::string_view nameOption, std::string_view nameImage, bool isToolbar, AbstractMenuOption **option) |
void | addSubMenu (std::string_view name, CMenu **submenu) |
void | addWorkspace (CWorkspace **workspace) |
void | endApplication () |
bool | canEndApplication () |
void | runDialogIndicator (double xPos, double yPos, unsigned char justify, CIndicator *indicator) |
virtual bool | start () |
void | update () |
bool | closeAllDialogsState () const |
std::string_view | getName () const |
std::string_view | getTitle () const |
CDialog * | getDialogApplicationRef () const |
CWorkspace * | getCurrentWorkspaceRef () const |
const std::shared_ptr< IComponentsGUI > & | getFrameRef () const |
const std::shared_ptr< CIndicators > & | getIndicators () const |
const std::shared_ptr< CMenu > & | getMenu () const |
const std::unique_ptr< CInfoBar > & | getInfoBar () |
const std::optional< iv::gui::HeaderNavigableOptions > & | getHeaderNavigableOptions () const |
iv::app::eState & | state () |
iv::app::eExitMode & | exitMode () |
virtual bool | starting (const std::shared_ptr< AbstractProgress > &progress, CDialog *dlgFather) |
virtual void | ending (const std::shared_ptr< AbstractProgress > &progress, CDialog *dlgFather) |
void | runGUI (const std::shared_ptr< IComponentsGUI > &frame, int32_t argc, char *argv[]) |
void | setModelApplication (iv::model::IModel **modelApplication) |
void | setIcon (std::string_view icon) |
void | setCSS (std::string_view css) |
virtual bool | canEnd (CDialog *dlgFather) |
void | updateWorkSpaces () |
void | updateAppTitle () |
virtual void | run (int32_t argc, char *argv[])=0 |
void | setController (std::shared_ptr< iv::appdiamar::IApplicationController > controller) |
Static Public Member Functions | |
static ApplicationGui * | getApplicationGui () |
static std::unique_ptr< Application > & | get () |
Protected Attributes | |
std::string | m_title |
std::string | m_icon |
std::string | m_css |
std::unique_ptr< CInfoBar > | m_infoBar |
std::shared_ptr< iv::diamar::INotificationIndicator > | m_notificationIndicator |
std::shared_ptr< iv::diamar::IClockNotification > | m_clockNotification |
std::shared_ptr< CMenu > | m_menu |
std::shared_ptr< CIndicators > | m_indicators |
std::optional< std::string > | m_headerTitle |
std::optional< std::set< std::string > > | m_possibleHeaderTitle |
std::optional< iv::gui::HeaderNavigableOptions > | m_headerNavigableOptions |
std::optional< iv::gui::FooterNavigableOptions > | m_navigableOptions |
std::unique_ptr< std::vector< CWorkspace * > > | m_workspaces |
CWorkspace * | m_currentWorkspaceRef |
CDialog * | m_dialogApplicationRef |
std::shared_ptr< IComponentsGUI > | m_frameRef |
iv::ui::theme::ThemesManager | m_themesManager |
std::string_view | m_name |
std::shared_ptr< iv::appdiamar::IApplicationController > | applicationController |
Static Protected Attributes | |
static std::unique_ptr< Application > | instance = nullptr |
|
delete |
|
explicit |
|
delete |
|
default |
void iv::appdiamar::ApplicationGui::addIndicator | ( | std::string_view | title, |
bool | resizeDialog, | ||
std::unique_ptr< IIndicator > && | indicator ) const |
void iv::appdiamar::ApplicationGui::addOptionMenuWithImage | ( | std::string_view | nameOption, |
std::string_view | nameImage, | ||
bool | isToolbar, | ||
AbstractMenuOption ** | option ) |
void iv::appdiamar::ApplicationGui::addOptionToSubMenu | ( | CMenu * | submenu, |
std::string_view | nameOption, | ||
AbstractMenuOption ** | option ) |
void iv::appdiamar::ApplicationGui::addOptionWithImageToSubMenu | ( | CMenu * | submenu, |
std::string_view | nameOption, | ||
std::string_view | nameImage, | ||
bool | isToolbar, | ||
AbstractMenuOption ** | option ) |
void iv::appdiamar::ApplicationGui::addSubMenu | ( | std::string_view | name, |
CMenu ** | submenu ) |
void iv::appdiamar::ApplicationGui::addWorkspace | ( | CWorkspace ** | workspace | ) |
|
virtual |
Reimplemented in CAppDiamar, and iv::app::DiamarRepeaterApplication.
bool iv::appdiamar::ApplicationGui::canEndApplication | ( | ) |
|
nodiscard |
void iv::appdiamar::ApplicationGui::endApplication | ( | ) |
|
virtual |
Reimplemented in CAppDiamar, CAppEditDiamar, and iv::app::DiamarRepeaterApplication.
iv::app::eExitMode & iv::appdiamar::ApplicationGui::exitMode | ( | ) |
|
staticinherited |
|
nodiscardoverridevirtual |
Implements iv::appdiamar::Application.
Reimplemented in CAppEditDiamar.
|
static |
|
nodiscard |
|
nodiscard |
|
nodiscard |
const std::optional< iv::gui::HeaderNavigableOptions > & iv::appdiamar::ApplicationGui::getHeaderNavigableOptions | ( | ) | const |
|
nodiscard |
const std::unique_ptr< CInfoBar > & iv::appdiamar::ApplicationGui::getInfoBar | ( | ) |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
delete |
|
delete |
|
pure virtualinherited |
Implemented in CAppDiamar, CAppEditDiamar, and iv::app::DiamarRepeaterApplication.
void iv::appdiamar::ApplicationGui::runDialogIndicator | ( | double | xPos, |
double | yPos, | ||
unsigned char | justify, | ||
CIndicator * | indicator ) |
void iv::appdiamar::ApplicationGui::runGUI | ( | const std::shared_ptr< IComponentsGUI > & | frame, |
int32_t | argc, | ||
char * | argv[] ) |
|
inherited |
void iv::appdiamar::ApplicationGui::setCSS | ( | std::string_view | css | ) |
void iv::appdiamar::ApplicationGui::setIcon | ( | std::string_view | icon | ) |
void iv::appdiamar::ApplicationGui::setModelApplication | ( | iv::model::IModel ** | modelApplication | ) |
|
virtual |
This has been commented because it made the logic editor not draw the initial logic blocks when the editor was launched from a Project.sni file. So far, no issues have been observed after commenting it, suggesting it might be unnecessary, but it is not completely certain. if (applicationController->programCaller() != iv::eProgramCaller::DiamarRepeater) { updateWorkSpaces(); }
Reimplemented in CAppDiamar.
|
virtual |
Reimplemented in CAppDiamar, CAppEditDiamar, and iv::app::DiamarRepeaterApplication.
iv::app::eState & iv::appdiamar::ApplicationGui::state | ( | ) |
void iv::appdiamar::ApplicationGui::update | ( | ) |
void iv::appdiamar::ApplicationGui::updateAppTitle | ( | ) |
void iv::appdiamar::ApplicationGui::updateWorkSpaces | ( | ) |
|
protectedinherited |
|
staticprotectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |