libcrn
3.9.5
A document image processing library
|
Base class to create an application. More...
#include <GtkCRNApp.h>
Public Member Functions | |
App () | |
Constructor. Creates Actions and adds them to UI manager. More... | |
virtual | ~App () |
Destructor. More... | |
Static Public Member Functions | |
static Gtk::Window * | get_main_window () |
Gets a pointer to the main window. More... | |
static void | set_main_window (Gtk::Window *win) |
Sets the main window of the application to be used as parent for dialogs and messages. More... | |
static void | show_message (const Glib::ustring &message, Gtk::MessageType mtype) |
Displays a message. More... | |
static void | show_exception (crn::Exception &ex, bool kill_app=true) |
Displays an exception. More... | |
static void | show_exception (std::exception &ex, bool kill_app=true) |
Displays an exception. More... | |
static void | show_exception (bool kill_app=true) |
Displays an exception. More... | |
Protected Member Functions | |
virtual bool | ask_for_quit (GdkEventAny *event) |
Callback for application quit event (overloadable) More... | |
virtual void | help () |
Displays help (overloadable) More... | |
virtual void | about () |
Displays credits (overloadable) More... | |
Glib::ustring | ask_for_string (const Glib::ustring &msg, const Glib::ustring &defval="") |
Shows a dialog asking for a single string. More... | |
Static Protected Member Functions | |
static Gtk::Window *& | internal_main_window () |
Protected Attributes | |
Glib::RefPtr< Gtk::UIManager > | ui_manager |
Glib::RefPtr< Gtk::ActionGroup > | actions |
Base class to create an application.
Definition at line 35 of file GtkCRNApp.h.
App::App | ( | ) |
Constructor. Creates Actions and adds them to UI manager.
Available actions are:
Constructor. Creates Actions and adds them to UI manager.
Definition at line 55 of file GtkCRNApp.cpp.
|
inlinevirtual |
Destructor.
Definition at line 54 of file GtkCRNApp.h.
|
inlineprotectedvirtual |
Displays credits (overloadable)
Definition at line 76 of file GtkCRNApp.h.
|
protectedvirtual |
Callback for application quit event (overloadable)
Callback for application quit event (overloadable)
[in] | event | only valid if the callback was called by the window manager |
Definition at line 76 of file GtkCRNApp.cpp.
|
protected |
Shows a dialog asking for a single string.
Shows a dialog asking for a single string
[in] | msg | the message to display in the dialog |
[in] | defval | the default value of the entry |
Definition at line 96 of file GtkCRNApp.cpp.
|
inlinestatic |
Gets a pointer to the main window.
Definition at line 57 of file GtkCRNApp.h.
|
inlineprotectedvirtual |
Displays help (overloadable)
Definition at line 74 of file GtkCRNApp.h.
|
staticprotected |
Definition at line 36 of file GtkCRNApp.cpp.
|
inlinestatic |
Sets the main window of the application to be used as parent for dialogs and messages.
Definition at line 59 of file GtkCRNApp.h.
|
static |
Displays an exception.
Displays an unknown exception
[in] | ex | the exception to display |
[in] | kill_app | shall the application be killed after the exceptions was displayed? |
Definition at line 207 of file GtkCRNApp.cpp.
|
static |
Displays an exception.
Displays an unknown exception
[in] | ex | the exception to display |
[in] | kill_app | shall the application be killed after the exceptions was displayed? |
Definition at line 220 of file GtkCRNApp.cpp.
|
static |
Displays an exception.
Displays an unknown exception
[in] | kill_app | shall the application be killed after the exceptions was displayed? |
Definition at line 195 of file GtkCRNApp.cpp.
|
static |
Displays a message.
Displays a message
[in] | message | the message to display |
[in] | mtype | the icon to display next to the text |
Definition at line 149 of file GtkCRNApp.cpp.
|
protected |
default actions
Definition at line 84 of file GtkCRNApp.h.
|
protected |
add your action groups to the ui manager to easily create menus and toolbars
Definition at line 83 of file GtkCRNApp.h.