#include <BFileSelector.h>
Inheritance diagram for BFileSelector:


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 () |
|
||||||||||||
|
|
|
|
|
|
|
Add a file type the selector will accept.
|
|
|
Return whether the user cancelled the dialog.
|
|
|
|
|
|
Reimplemented from BButton::Delegate. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Run the dialog.
Reimplemented from BDialog. |
|
|
Return the name of the selected file (as a normalized full path).
|
1.3-rc3