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

BFileSelector Class Reference

#include <BFileSelector.h>

Inheritance diagram for BFileSelector:

Inheritance graph
[legend]
Collaboration diagram for BFileSelector:

Collaboration graph
[legend]
List of all members.

Detailed Description

A file selector dialog.

By default, this will let you select any file. Once you start adding file types with the addFileType() method, it will only let you select files with those suffixes.


Public Member Functions

 BFileSelector (BScreen *screen, const std::string &startingDirectory="")
 ~BFileSelector ()
bool cancelled ()
 Return whether the user cancelled the dialog.

std::string selectedFilename ()
 Return the name of the selected file (as a normalized full path).

void onButtonClick (BButton *button)
void onEntryClick (BListbox *box, BListbox::Entry &entry)
void onEntryDoubleClick (BListbox *box, BListbox::Entry &entry)
void addFileType (const std::string &filetype)
 Add a file type the selector will accept.

virtual void run ()
 Run the dialog.


Protected Member Functions

void fillBox ()


Constructor & Destructor Documentation

BFileSelector::BFileSelector BScreen   screen,
const std::string &    startingDirectory = ""
 

BFileSelector::~BFileSelector  
 


Member Function Documentation

void BFileSelector::addFileType const std::string &    filetype
 

Add a file type the selector will accept.

bool BFileSelector::cancelled   [inline]
 

Return whether the user cancelled the dialog.

void BFileSelector::fillBox   [protected]
 

void BFileSelector::onButtonClick BButton   button [virtual]
 

Reimplemented from BButton::Delegate.

void BFileSelector::onEntryClick BListbox   box,
BListbox::Entry   entry
 

void BFileSelector::onEntryDoubleClick BListbox   box,
BListbox::Entry   entry
 

virtual void BFileSelector::run   [virtual]
 

Run the dialog.

Reimplemented from BDialog.

std::string BFileSelector::selectedFilename  
 

Return the name of the selected file (as a normalized full path).


The documentation for this class was generated from the following file:
Generated on Sat Dec 29 10:00:20 2007 for DSGUI by doxygen1.3-rc3