Class Index Cross Index Namespace Index

Class Gnome::App


Contained in: Gnome
Derived from: Gtk::Window
Derived by: none

#include <gtk--/app.h>


public function member index:

App(const Gtk::string& name);
App(const Gtk::string& appname, const Gtk::string& title);
void add_dock_item(DockItem& item, GnomeDockPlacement placement, gint band_num, gint band_position, gint offset);
void add_docked(Gtk::Widget& widget, const Gtk::string& name, GnomeDockItemBehavior behavior, GnomeDockPlacement placement, gint band_num, gint band_position, gint offset);
void add_toolbar(Gtk::Toolbar& toolbar, const Gtk::string& name, GnomeDockItemBehavior behavior, GnomeDockPlacement placement, gint band_num, gint band_position, gint offset);
UI::Array<SubTree>& create_menus(const UI::Array<SubTree>& info);
UI::Array<Info>& create_toolbar(const UI::Array<Info>& info);
void enable_layout_config(gboolean enable);
Dialog* error(const Gtk::string& msg);
void flash(const Gtk::string& msg);
Dock* get_dock();
DockItem* get_dock_item_by_name(const Gtk::string& name);
static GtkType get_type();
GnomeApp* gtkobj();
const GnomeApp* gtkobj() const;
UI::Array<Info>& insert_menus(const Gtk::string& path, const UI::Array<Info>& menuinfo);
void install_menu_hints();
static bool isA(Gtk::Object* checkcast);
Dialog* message(const Gtk::string& msg);
Dialog* ok_cancel(const Gtk::string& msg, ReplyCallback cb = 0);
Dialog* ok_cancel_modal(const Gtk::string& msg, ReplyCallback cb = 0);
Progress progress(const Gtk::string& description, Progress::Cancel cancel=0);
Progress progress(const Gtk::string& description, guint32 interval, Progress::Update percent, Progress::Cancel cancel=0);
Dialog* question(const Gtk::string& message, ReplyCallback cb = 0);
Dialog* question_modal(const Gtk::string& msg, ReplyCallback cb = 0);
void remove_menu_range(const Gtk::string& path, gint start, gint items);
void remove_menus(const Gtk::string& path, gint items);
Dialog* request_password(const Gtk::string& prompt, StringCallback cb = 0);
Dialog* request_string(const Gtk::string& prompt, StringCallback cb = 0);
void set_contents(Gtk::Widget& contents);
void set_menus(Gtk::MenuBar& menubar);
void set_statusbar(Gtk::Widget& statusbar);
void set_statusbar_custom(Gtk::Container& container, Gtk::Widget& statusbar);
void set_toolbar(Gtk::Toolbar& toolbar);
Dialog* warning(const Gtk::string& msg);
virtual ~App();
 

protected function member index:

explicit App(GnomeApp* castitem);
void initialize_class();
 

private function member index:

App(const App&);
void add(Gtk::Widget&);
App& operator =(const App&);
 

Description:



Function Member Descriptions:

Gnome::App::App - Create an application.

App(const Gtk::string& appname, const Gtk::string& title);
appname is used to save preferences. title is for the App window.


Gnome::App::add - add() is not applicable

void add(Gtk::Widget&);
Because a App is a compound widget, you would only use the set_content() function.


Gnome::App::create_menus - Create menus from UI.

UI::Array<SubTree>& create_menus(const UI::Array<SubTree>& info);

Gnome::App::create_toolbar - Create toolbar from UI.

UI::Array<Info>& create_toolbar(const UI::Array<Info>& info);

Gnome::App::flash - Flash a status message on the status bar

void flash(const Gtk::string& msg);
If there isn't a status bar do nothing. Intended for trivial messages.


Gnome::App::insert_menus - Insert menu items at the specified path (e.g. "File/Open" or "File/Open Recent/").

UI::Array<Info>& insert_menus(const Gtk::string& path, const UI::Array<Info>& menuinfo);
This allocates some memory that will only be release when the app is destroyed, even if you call remove_menus() or remove_menu_range().


Gnome::App::install_menu_hints - Adds hints to status bar.

void install_menu_hints();
must be called if create_menus is used after status bar is established.


Gnome::App::message - Popup a status message (ok style).

Dialog* message(const Gtk::string& msg);

Gnome::App::ok_cancel - Create a okay/cancel dialog.

Dialog* ok_cancel(const Gtk::string& msg, ReplyCallback cb = 0);

Gnome::App::ok_cancel_modal - Create a okay/cancel dialog (modal).

Dialog* ok_cancel_modal(const Gtk::string& msg, ReplyCallback cb = 0);

Gnome::App::progress - Create a progress indicator.

Progress progress(const Gtk::string& description, Progress::Cancel cancel=0);

Gnome::App::progress - Create a progress indicator at intervals.

Progress progress(const Gtk::string& description, guint32 interval, Progress::Update percent, Progress::Cancel cancel=0);

Gnome::App::question - Create a question dialog.

Dialog* question(const Gtk::string& message, ReplyCallback cb = 0);

Gnome::App::question_modal - Create a question dialog (modal).

Dialog* question_modal(const Gtk::string& msg, ReplyCallback cb = 0);

Gnome::App::request_password - Create a request password dialog.

Dialog* request_password(const Gtk::string& prompt, StringCallback cb = 0);

Gnome::App::request_string - Create a request string dialog.

Dialog* request_string(const Gtk::string& prompt, StringCallback cb = 0);

Gnome::App::set_contents - Set the contents in the middle.

void set_contents(Gtk::Widget& contents);

Gnome::App::set_menus - Set the menubar on the top.

void set_menus(Gtk::MenuBar& menubar);

Gnome::App::set_statusbar_custom - Sets the status bar with container.

void set_statusbar_custom(Gtk::Container& container, Gtk::Widget& statusbar);
uses the given container widget rather than creating a new one.


Gnome::App::set_toolbar - Set the toolbar on the bottom.

void set_toolbar(Gtk::Toolbar& toolbar);


Variable Member Descriptions: