Public Member Functions

FilePreviewComponent Class Reference

Base class for components that live inside a file chooser dialog box and show previews of the files that get selected. More...

Inherits Component.

Inherited by ImagePreviewComponent.

List of all members.

Public Member Functions

 FilePreviewComponent ()
 Creates a FilePreviewComponent.
 ~FilePreviewComponent ()
 Destructor.
virtual void selectedFileChanged (const File &newSelectedFile)=0
 Called to indicate that the user's currently selected file has changed.

Detailed Description

Base class for components that live inside a file chooser dialog box and show previews of the files that get selected.

One of these allows special extra information to be displayed for files in a dialog box as the user selects them. Each time the current file or directory is changed, the selectedFileChanged() method will be called to allow it to update itself appropriately.

See also:
FileChooser, ImagePreviewComponent

Constructor & Destructor Documentation

FilePreviewComponent::FilePreviewComponent (  )
FilePreviewComponent::~FilePreviewComponent (  )

Destructor.


Member Function Documentation

virtual void FilePreviewComponent::selectedFileChanged ( const File newSelectedFile ) [pure virtual]

Called to indicate that the user's currently selected file has changed.

Parameters:
newSelectedFilethe newly selected file or directory, which may be File::nonexistent if none is selected.

Implemented in ImagePreviewComponent.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines