tbx  0.7.6
Public Member Functions | List of all members
tbx::doc::DocSaveAs Class Reference

Class to use save as dialogue box to save the document. More...

#include <docsaveas.h>

Inheritance diagram for tbx::doc::DocSaveAs:
tbx::AutoCreateListener tbx::AboutToBeShownListener tbx::SaveAsSaveToFileHandler tbx::SaveAsSaveCompletedListener tbx::Listener tbx::Listener tbx::Listener tbx::Listener

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.
 
- Public Member Functions inherited from tbx::Listener
virtual ~Listener ()
 Destroy the listener object.
 

Additional Inherited Members

- Protected Member Functions inherited from tbx::Listener
 Listener ()
 Construct the Listener object.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ DocSaveAs()

tbx::doc::DocSaveAs::DocSaveAs ( )

Constructor.

Sets up listener for when toolbox save as object is created

Member Function Documentation

◆ auto_created()

void tbx::doc::DocSaveAs::auto_created ( std::string  template_name,
tbx::Object  object 
)
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.


The documentation for this class was generated from the following files: