libcdos-fw
CFMain.h
1 #ifndef __CF_MAIN_H__
2 #define __CF_MAIN_H__
3 
4 #include <Core/CFDefines.h>
5 #include <Core/CFObject.h>
6 #include <Gui/CFWindow.h>
7 #include <glibmm/optioncontext.h>
8 
9 CF_NAMESPACE_BEGIN
10 
11 class CFMain : public CFObject {
12 public:
13  CFMain(int& argc, char**& argv, Glib::OptionContext& option_context);
14  CFMain(int* argc, char*** argv, bool set_locale = true);
15  CFMain(int& argc, char**& argv, bool set_locale = true);
16  CFMain(bool set_locale = true);
17 
18  virtual ~CFMain();
19 
20 public:
21  static void run();
22  static void run(CFWindow& window);
23  static void quit();
24 
25  static void addGtkOptionGroup(Glib::OptionContext& option_context,
26  bool open_default_display = true);
27 };
28 
29 CF_NAMESPACE_END
30 
31 #endif // __CF_MAIN_H__
Definition: CFWindow.h:10
Definition: CFMain.h:11
支持库的基础类。
Definition: CFObject.h:24