tbx
0.7.5
|
Class to use save as dialogue box to save the document. More...
#include <docsaveas.h>
Public Member Functions | |
DocSaveAs () | |
Constructor. More... | |
virtual void | auto_created (std::string template_name, tbx::Object object) |
SaveAs has been created so attach listeners for saving documents. More... | |
virtual void | about_to_be_shown (tbx::AboutToBeShownEvent &event) |
Interrogate document for parameters for save and fill in save as dialog. | |
virtual void | saveas_save_to_file (tbx::SaveAs saveas, bool selection, std::string filename) |
Save the document or selection to a file. | |
virtual void | saveas_save_completed (tbx::SaveAsSaveCompletedEvent &event) |
Called when document has been successfully saved. | |
![]() | |
virtual | ~Listener () |
Destroy the listener object. | |
Additional Inherited Members | |
![]() | |
Listener () | |
Construct the Listener object. | |
Class to use save as dialogue box to save the document.
Requires a SaveAs resource called "SaveAs" that has the follow flags: shared delivers event before shown client participates in transfer RAM transfer must not be set
TODO: Currently only supports save to file, should support ram transmit as well
tbx::doc::DocSaveAs::DocSaveAs | ( | ) |
Constructor.
Sets up listener for when toolbox save as object is created
|
virtual |
SaveAs has been created so attach listeners for saving documents.
As the save as object is shared, this routine can be called multiple times. However the old object would have been deleted before this happened which automatically removes the old listeners.
Implements tbx::AutoCreateListener.