Go to the documentation of this file.
25 #ifndef CGU_APPLICATION_H
26 #define CGU_APPLICATION_H
47 #if defined(DOXYGEN_PARSING) || defined(CGU_USE_GTK)
48 #if defined(DOXYGEN_PARSING) || GTK_CHECK_VERSION(2,99,0)
56 virtual const char*
what()
const throw() {
return "ApplicationNameError\n";}
410 std::list<WinBase*> win_list;
629 int run(
int argc,
char** argv) {
630 return g_application_run((GApplication*)app.
get(), argc, argv);
712 Application(
const char* prog_name, GApplicationFlags flags);
734 #endif // GTK_CHECK_VERSION
735 #endif // CGU_USE_GTK
739 #endif // CGU_APPLICATION_H
This is a class for managing the lifetime of top level widgets.
Definition: window.h:225
Definition: application.h:45
bool remove(Cgu::WinBase *win)
This class is thrown when the program id name passed to the constructor of Cgu::Application is invali...
Definition: application.h:55
~Application()
Definition: application.h:727
This is a class for constructing and managing GtkApplication objects.
Definition: application.h:408
virtual const char * what() const
Definition: application.h:56
void add(Cgu::WinBase *win)
Cgu::SafeEmitterArg< Cgu::Application * > startup
Definition: application.h:455
Cgu::SafeEmitterArg< TypeTuple< Cgu::Application *, std::pair< GFile **, gint >, gchar * > > open
Definition: application.h:525
std::list< Cgu::WinBase * > get_windows() const
Definition: application.h:661
T * get() const
Definition: gobj_handle.h:265
#define CGU_GLIB_MEMORY_SLICES_FUNCS
Definition: cgu_config.h:84
size_type get_win_count() const
Definition: application.h:686
std::list< WinBase * >::size_type size_type
Definition: application.h:420
GApplication * get_g_app() const
Definition: application.h:644
Cgu::SafeEmitterArg< TypeTuple< Cgu::Application *, GApplicationCommandLine *, gint & > > command_line
Definition: application.h:493
int run(int argc, char **argv)
Definition: application.h:629
This file provides a thread-safe signal/slot mechanism, with automatic disconnection.
Cgu::SafeEmitterArg< Cgu::Application * > activate
Definition: application.h:435