31 #ifndef TBX_DOCWINDOW_H_ 32 #define TBX_DOCWINDOW_H_ 34 #include "../window.h" 35 #include "../closewindowlistener.h" A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
Listener for when a cancel is selected from the DCS dialog.
Definition: dcs.h:222
void dcs_save(const tbx::EventInfo &info)
Save selected from the DCS prompt so show save window.
Definition: docwindow.cc:96
virtual void document_modified_changed(Document *doc)
Document modified flag has changed.
Definition: docwindow.cc:128
Helper classes to create a document based application.
void dcs_cancel(const tbx::EventInfo &info)
Cancel selected from the DCS prompt so just delete dcs object.
Definition: docwindow.cc:111
Document * document_interface()
Return pointer to the document interface.
Definition: docwindow.h:83
Base class for a document.
Definition: document.h:52
tbx::Window _window
Window showing document.
Definition: docwindow.h:68
Listener for document modified state changed.
Definition: document.h:143
Document * document_interface() const
Return pointer to the document interface.
Definition: docwindow.h:88
static Document * document(tbx::Window window)
Get the document showed by a window.
Definition: docwindow.cc:120
DocWindow(Document *doc, std::string template_name)
Create the main window for a given document using a resource template.
Definition: docwindow.cc:45
The Window object represents a toolbox window.
Definition: window.h:69
Base class for the document window.
Definition: docwindow.h:60
Class to provide information on a toolbox event.
Definition: eventinfo.h:48
Document * _document
Document that is being shown.
Definition: docwindow.h:69
virtual void close_window(const tbx::EventInfo &close_event)
Close window request from window.
Definition: docwindow.cc:67
Listener for when a save is selected from the DCS dialog.
Definition: dcs.h:210
Listener for when a discard is selected from the DCS dialog.
Definition: dcs.h:198
void dcs_discard(const tbx::EventInfo &info)
Discard selected from DCS prompt so just delete the window.
Definition: docwindow.cc:86
Listener for the close window request message.
Definition: closewindowlistener.h:45