Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

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 Methods

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 Sat May 4 21:58:28 2002 for vdk 2.0.1 by doxygen1.2.15