Rapicorn - Experimental UI Toolkit - Source Code
13.07.0
|
00001 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html 00002 #ifndef __RAPICORN_APPLICATION_HH__ 00003 #define __RAPICORN_APPLICATION_HH__ 00004 00005 #include <ui/commands.hh> 00006 00007 namespace Rapicorn { 00008 00009 class ApplicationImpl : public ApplicationIface { 00010 vector<WindowIface*> windows_; 00011 int tc_; 00012 public: 00013 explicit ApplicationImpl (); 00014 virtual String auto_path (const String &file_name, 00015 const String &binary_path, 00016 bool search_vpath = true); 00017 virtual StringSeq auto_load (const std::string &defs_domain, 00018 const std::string &file_name, 00019 const std::string &binary_path, 00020 const std::string &i18n_domain = ""); 00021 virtual void load_string (const std::string &defs_domain, 00022 const std::string &xml_string, 00023 const std::string &i18n_domain = ""); 00024 virtual WindowIface* create_window (const std::string &window_identifier, 00025 const StringSeq &arguments = StringSeq()); 00026 void add_window (WindowIface &window); 00027 bool remove_window (WindowIface &window); 00028 virtual void close_all (); 00029 virtual WindowIface*query_window (const String &selector); 00030 virtual WindowList query_windows (const String &selector); 00031 virtual WindowList list_windows (); 00032 virtual ListModelRelayIface* create_list_model_relay (const std::string &name = ""); 00033 virtual void test_counter_set (int val); 00034 virtual void test_counter_add (int val); 00035 virtual int test_counter_get (); 00036 virtual int test_counter_inc_fetch (); 00037 virtual int64 test_hook (); 00038 void lost_primaries (); 00039 static ApplicationImpl& the (); 00040 }; 00041 00042 } // Rapicorn 00043 00044 #endif /* __RAPICORN_APPLICATION_HH__ */