The Document is like the 'Model' in the Model-View-Controller framework.
More...
#include <Document.h>
List of all members.
Detailed Description
The Document is like the 'Model' in the Model-View-Controller framework.
Each App should have a Document. Each View gets and sets data in its document.
Member Typedef Documentation
For instance, void on_document_modified(bool modified);.
Constructor & Destructor Documentation
Bakery::Document::Document |
( |
| ) |
|
virtual Bakery::Document::~Document |
( |
| ) |
[virtual] |
Member Function Documentation
virtual Glib::ustring Bakery::Document::get_contents |
( |
| ) |
const [virtual] |
virtual Glib::ustring Bakery::Document::get_file_extension |
( |
| ) |
const [virtual] |
virtual Glib::ustring Bakery::Document::get_file_uri |
( |
| ) |
const [virtual] |
virtual Glib::ustring Bakery::Document::get_file_uri_with_extension |
( |
const Glib::ustring & |
uri | ) |
[virtual] |
virtual bool Bakery::Document::get_is_new |
( |
| ) |
const [virtual] |
Whether this just a default document.
virtual bool Bakery::Document::get_modified |
( |
| ) |
const [virtual] |
virtual Glib::ustring Bakery::Document::get_name |
( |
| ) |
const [virtual] |
Gets filename part of file_uri, or 'untitled'.
virtual bool Bakery::Document::get_read_only |
( |
| ) |
const [virtual] |
virtual ViewBase* Bakery::Document::get_view |
( |
| ) |
[virtual] |
bool Bakery::Document::load |
( |
| ) |
|
virtual bool Bakery::Document::load_after |
( |
| ) |
[protected, virtual] |
Allow app to update icons/title bar.
overrideable. Does anything which should be done after the data has been loaded from disk, but before updating the View.
Reimplemented in Bakery::Document_XML.
bool Bakery::Document::load_from_data |
( |
const guchar * |
data, |
|
|
std::size_t |
length |
|
) |
| |
virtual bool Bakery::Document::read_from_disk |
( |
| ) |
[protected, virtual] |
bool Bakery::Document::save |
( |
| ) |
|
virtual bool Bakery::Document::save_before |
( |
| ) |
[protected, virtual] |
overrideable.
Does anything which should be done before the view has saved its data, before writing to disk..
Reimplemented in Bakery::Document_XML.
virtual void Bakery::Document::set_contents |
( |
const Glib::ustring & |
strVal | ) |
[virtual] |
virtual void Bakery::Document::set_file_extension |
( |
const Glib::ustring & |
strVal | ) |
[virtual] |
virtual void Bakery::Document::set_file_uri |
( |
const Glib::ustring & |
file_uri, |
|
|
bool |
bEnforceFileExtension = false |
|
) |
| [virtual] |
void Bakery::Document::set_is_new |
( |
bool |
bVal | ) |
|
virtual void Bakery::Document::set_modified |
( |
bool |
bVal = true | ) |
[virtual] |
virtual void Bakery::Document::set_read_only |
( |
bool |
bVal | ) |
[virtual] |
virtual void Bakery::Document::set_view |
( |
ViewBase * |
pView | ) |
[virtual] |
This signal is emitted when the view should forget the document.
This is used internally, and you should not need to use it yourself.
This signal is emitted when the document has been modified.
It allows the view to update itself to show the new information.
static Glib::ustring Bakery::Document::util_file_uri_get_name |
( |
const Glib::ustring & |
file_uri, |
|
|
const Glib::ustring & |
file_extension |
|
) |
| [static] |
virtual bool Bakery::Document::write_to_disk |
( |
| ) |
[protected, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: