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