#include <App_WithDoc.h>
Inheritance diagram for Bakery::App_WithDoc:
Public Types | |
typedef std::vector< Glib::ustring > | type_vecStrings |
enum | enumSaveChanges { SAVECHANGES_Save, SAVECHANGES_Cancel, SAVECHANGES_Discard } |
Public Member Functions | |
App_WithDoc (const Glib::ustring &appname) | |
Don't forget to call init() too. | |
virtual | ~App_WithDoc () |
virtual void | init () |
virtual void | on_menu_file_open () |
virtual void | on_menu_file_open_recent (guint index) |
virtual void | on_menu_file_saveas () |
virtual void | offer_saveas () |
virtual void | on_menu_file_save () |
virtual void | on_menu_file_close () |
virtual void | on_menu_edit_copy () |
virtual void | on_menu_edit_paste () |
virtual void | on_menu_edit_clear () |
virtual void | on_document_modified () |
Update visual status. | |
virtual void | on_document_load () |
override this to show document contents. | |
virtual void | offer_to_save_changes () |
virtual void | cancel_close_or_exit () |
Stop the File|Close or the File|Exit. | |
virtual void | close_mark_or_destroy () |
destroy it or mark it for destruction. | |
virtual void | update_window_title () |
virtual void | show_document_history () |
virtual void | after_successful_save () |
virtual void | ui_warning (const Glib::ustring &text)=0 |
virtual Glib::ustring | ui_file_select_open ()=0 |
virtual Glib::ustring | ui_file_select_save (const Glib::ustring &old_filepath)=0 |
virtual void | ui_show_modification_status ()=0 |
virtual enumSaveChanges | ui_offer_to_save_changes ()=0 |
virtual bool | ui_ask_overwrite (const std::string &filepath)=0 |
Static Public Member Functions | |
void | show_document_history_in_all_instances () |
Glib::ustring | get_conf_fullkey (const Glib::ustring &key) |
Public Attributes | |
Document * | m_pDocument |
bool | m_bCloseAfterSave |
Static Public Attributes | |
type_vecStrings | m_vecDocHistory |
Protected Member Functions | |
virtual void | init_create_document () |
virtual Document * | get_document () |
static_cast<> or dynamic_cast<> this pointer to the correct type. | |
virtual const Document * | get_document () const |
static_cast<> or dynamic_cast<> this pointer to the correct type. | |
virtual void | set_document_modified (bool bModified=true) |
virtual bool | open_document (const Glib::ustring &strFilepath) |
bool indicates success. | |
Static Protected Member Functions | |
void | document_history_add (const Glib::ustring &strFilepath) |
void | document_history_remove (const Glib::ustring &strFilepath) |
void | session_load_document_history () |
void | session_save_document_history () |
This is an abstract class. You must use a class such as App_WithDoc_Gtk, which implements the ui_* methods for a particular GUI toolkit.
Features:
TODO: Bonobo integration - when Bonobo is ready. (An App subclass?)
|
Reimplemented from Bakery::App. |
|
|
|
Don't forget to call init() too.
|
|
|
|
|
|
Stop the File|Close or the File|Exit.
|
|
destroy it or mark it for destruction.
|
|
|
|
|
|
|
|
static_cast<> or dynamic_cast<> this pointer to the correct type.
|
|
static_cast<> or dynamic_cast<> this pointer to the correct type.
|
|
Reimplemented from Bakery::App. Reimplemented in Bakery::App_WithDoc_Gtk. |
|
|
|
|
|
|
|
override this to show document contents.
|
|
Update visual status.
|
|
Reimplemented from Bakery::App. |
|
Reimplemented from Bakery::App. |
|
Reimplemented from Bakery::App. |
|
Reimplemented from Bakery::App. |
|
|
|
|
|
|
|
|
|
bool indicates success.
|
|
|
|
|
|
|
|
Reimplemented in Bakery::App_WithDoc_Gtk. |
|
|
|
Implemented in Bakery::App_WithDoc_Gtk. |
|
Implemented in Bakery::App_WithDoc_Gtk. |
|
Implemented in Bakery::App_WithDoc_Gtk. |
|
Implemented in Bakery::App_WithDoc_Gtk. |
|
Implemented in Bakery::App_WithDoc_Gtk. |
|
Implemented in Bakery::App_WithDoc_Gtk. |
|
Reimplemented in Bakery::App_WithDoc_Gtk. |
|
|
|
|
|
|