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