Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::CommonDialog Class Reference

Base class for all the standard, or "common" dialog classes. More...

#include <vcf/ApplicationKit/CommonDialog.h>

Inheritance diagram for VCF::CommonDialog:

VCF::Component VCF::ObjectWithEvents VCF::Object VCF::CommonColorDialog VCF::CommonFileBrowseDialog VCF::CommonFileDialog VCF::CommonFontDialog VCF::CommonPrintDialog VCF::CommonFileOpenDialog VCF::CommonFileSaveDialog List of all members.

Public Member Functions

 CommonDialog ()
virtual ~CommonDialog ()
virtual bool execute ()=0
 "Executes" or displays the dialog.
virtual void afterCreate (ComponentEvent *event)
 Special initializations may then happen here.

Detailed Description

Base class for all the standard, or "common" dialog classes.

A common dialog is one like a color dialog, or font selection dialog or open or save file dialog. These are generally provided by the windowing system, and these classes just provide convenient wrappers around them.

To display any common dialog, you simply call the execute() function. This funtion will return true if the user chose something, like a font, color, or filename, and false if the user canceled the dialog.


Constructor & Destructor Documentation

VCF::CommonDialog::CommonDialog  )  [inline]
 

virtual VCF::CommonDialog::~CommonDialog  )  [inline, virtual]
 


Member Function Documentation

virtual void VCF::CommonDialog::afterCreate ComponentEvent event  )  [inline, virtual]
 

Special initializations may then happen here.

See also:
Component::afterCreate()

Reimplemented from VCF::Component.

virtual bool VCF::CommonDialog::execute  )  [pure virtual]
 

"Executes" or displays the dialog.

Returns:
bool returns true if the user made a valid selection, otherwise false.

Implemented in VCF::CommonColorDialog, VCF::CommonFileBrowseDialog, VCF::CommonFileOpenDialog, VCF::CommonFileSaveDialog, VCF::CommonFontDialog, and VCF::CommonPrintDialog.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information