Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

VDKFileDialog Class Reference

Provides a file selection modal window that supports multiple file selection. More...

#include <FileDialog.h>

Inheritance diagram for VDKFileDialog:

VDKForm VDKObject VDKNotCopyAble VDKFileSaveAsDialog List of all members.

Public Member Functions

Public Attributes


Detailed Description

Provides a file selection modal window that supports multiple file selection.

Usage
#include <vdk/FileDialog.h> FileStringArray selections; VDKFileDialog *child = new VDKFileDialog( Application()->MainForm, &selections, "File Open dialog"); child->Filter = "*.cc"; child->ShowModal(); for( int t = 0; t < selections.size(); t++) { printf("\nselection:%s",(char*) selections[t]); fflush(stdout); }
On return selections will be an empty array if user presses "cancel" button.
Tip
#define _USE_FNMATCH Undefining above line into FileDialog.h and recompiling make possible to use regex library for filters. i.e:
child->Filter = "*\.(cc|h)$"


Member Function Documentation

bool VDKFileDialog::CanClose  )  [virtual]
 

Placeholder for subclasses. User should override this returning a false (don't close) or true (close) value.

Reimplemented from VDKForm.

virtual void VDKFileDialog::Setup void   )  [inline, virtual]
 

Must be overridden by subclasses, in this method user fills form with useful widgets

Implements VDKForm.


Member Data Documentation

VDKReadWriteValueProp<VDKFileDialog,VDKString> VDKFileDialog::Filter
 

Sets/gets file filter


The documentation for this class was generated from the following files:
Generated on Wed Jul 28 17:23:54 2004 for vdk 2.0.3 by doxygen 1.3.7