OpenLexocad  28.0
GUIInterface.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <string>
11 
12 
13 namespace Core
14 {
19 class LX_CORE_EXPORT GUIInterface
20 {
21 public:
22  // bottom bar interface
23  //
24  virtual void bottomBar_showIdleMessage() = 0;
25  virtual void bottomBar_showMessage(std::string message) = 0;
26  virtual void bottomBar_showMessage(int id) = 0;
27  virtual void bottomBar_showPrompt(std::string mess, double default_value = 0.0) = 0;
28  virtual void bottomBar_showPrompt(int mess_id, double default_value = 0.0) = 0;
29  virtual void bottomBar_eraseInput() = 0;
30 
31 
32 
33  // translator interface
34  //
35  virtual std::string translator_get(int id, bool forceEnglish = false) = 0;
36 
37 
38  // common interface
39  //
40  virtual void uncheckMainToolbar() = 0;
41  virtual void uncheckAll() = 0;
42 
43 
44  // dialog interface
45  //
46  virtual std::string getOpenFileName(const char* title, const char* filter = nullptr, const char* selectedFilter = NULL) = 0;
47  virtual std::string getSaveFileName(const char* title, const char* filter = nullptr, const char* selectedFilter = NULL) = 0;
48  virtual int msgBox_critical(const char* title, const char* text) = 0;
49  virtual int msgBox_warning(const char* title, const char* text) = 0;
50  virtual int msgBox_info(const char* title, const char* text) = 0;
51 };
52 
53 
54 
55 } // namespace Core
Core::GUIInterface::uncheckMainToolbar
virtual void uncheckMainToolbar()=0
Core::GUIInterface::uncheckAll
virtual void uncheckAll()=0
Core::GUIInterface::getSaveFileName
virtual std::string getSaveFileName(const char *title, const char *filter=nullptr, const char *selectedFilter=NULL)=0
Core::GUIInterface
Definition: GUIInterface.h:20
Core::GUIInterface::msgBox_warning
virtual int msgBox_warning(const char *title, const char *text)=0
Core::GUIInterface::getOpenFileName
virtual std::string getOpenFileName(const char *title, const char *filter=nullptr, const char *selectedFilter=NULL)=0
Core::GUIInterface::bottomBar_showIdleMessage
virtual void bottomBar_showIdleMessage()=0
Core::GUIInterface::bottomBar_showPrompt
virtual void bottomBar_showPrompt(int mess_id, double default_value=0.0)=0
Core
Definition: Base.h:5
Core::GUIInterface::msgBox_critical
virtual int msgBox_critical(const char *title, const char *text)=0
Core::GUIInterface::bottomBar_eraseInput
virtual void bottomBar_eraseInput()=0
Core::GUIInterface::msgBox_info
virtual int msgBox_info(const char *title, const char *text)=0
Core::GUIInterface::translator_get
virtual std::string translator_get(int id, bool forceEnglish=false)=0
Core::GUIInterface::bottomBar_showMessage
virtual void bottomBar_showMessage(int id)=0
Core::GUIInterface::bottomBar_showPrompt
virtual void bottomBar_showPrompt(std::string mess, double default_value=0.0)=0
Core::GUIInterface::bottomBar_showMessage
virtual void bottomBar_showMessage(std::string message)=0