tbx  0.7.5
Public Member Functions | List of all members
tbx::doc::DocFileInfo Class Reference

Show the File information dialog box and automatically fill it in from the document in it's ancestor window. More...

#include <docfileinfo.h>

Inheritance diagram for tbx::doc::DocFileInfo:
tbx::AutoCreateListener tbx::AboutToBeShownListener tbx::Listener tbx::Listener

Public Member Functions

 DocFileInfo ()
 Constructor registers this to detect when resource "FileInfo" is created.
 
virtual void auto_created (std::string template_name, tbx::Object object)
 FileInfo has been created so attach listeners for showing information on the current document. More...
 
virtual void about_to_be_shown (tbx::AboutToBeShownEvent &event)
 Interrogate document for parameters for file info dialogue.
 
- 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

Show the File information dialog box and automatically fill it in from the document in it's ancestor window.

Requires a resource called "FileInfo" which is shared and has generate event before showing set.

Member Function Documentation

◆ auto_created()

void tbx::doc::DocFileInfo::auto_created ( std::string  template_name,
tbx::Object  object 
)
virtual

FileInfo has been created so attach listeners for showing information on the current document.

As the file info object is shared, this routine can be called multiple times. However the old object would have been deleted before this happens which automatically removes the old listeners.

Implements tbx::AutoCreateListener.


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