VSTGUI
4.4
Graphical User Interface Framework not only for VST plugins
|
New file selector class. More...
Public Types | |
enum | Style { kSelectFile, kSelectSaveFile, kSelectDirectory } |
Public Member Functions | |
virtual bool | isTypeOf (IdStringPtr s) const |
virtual CBaseObject * | newCopy () const |
CFileSelector setup | |
void | setTitle (UTF8StringPtr title) |
set title of file selector More... | |
void | setInitialDirectory (UTF8StringPtr path) |
set initial directory (UTF8 string) More... | |
void | setDefaultSaveName (UTF8StringPtr name) |
set initial save name (UTF8 string) More... | |
void | setDefaultExtension (const CFileExtension &extension) |
set default file extension More... | |
void | setAllowMultiFileSelection (bool state) |
set allow multi file selection (only valid for kSelectFile selector style) More... | |
void | addFileExtension (const CFileExtension &extension) |
add a file extension More... | |
CFileSelector result | |
uint32_t | getNumSelectedFiles () const |
get number of selected files More... | |
UTF8StringPtr | getSelectedFile (uint32_t index) const |
get selected file. Result is only valid as long as the instance of CNewFileSelector is valid. More... | |
![]() | |
CBaseObject () | |
virtual | ~CBaseObject () |
virtual void | beforeDelete () |
virtual void | forget () |
decrease refcount and delete object if refcount == 0 More... | |
virtual void | remember () |
increase refcount More... | |
virtual int32_t | getNbReference () const |
get refcount More... | |
virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
Static Public Member Functions | |
static const CFileExtension & | getAllFilesExtension () |
get the all files extension More... | |
Static Public Attributes | |
static IdStringPtr | kSelectEndMessage = "CNewFileSelector Select End Message" |
Protected Types | |
typedef std::list< CFileExtension > | FileExtensionList |
Protected Member Functions | |
CNewFileSelector (CFrame *frame=0) | |
~CNewFileSelector () | |
virtual bool | runInternal (CBaseObject *delegate)=0 |
virtual void | cancelInternal ()=0 |
virtual bool | runModalInternal ()=0 |
Protected Attributes | |
CFrame * | frame |
UTF8StringBuffer | title |
UTF8StringBuffer | initialPath |
UTF8StringBuffer | defaultSaveName |
const CFileExtension * | defaultExtension |
bool | allowMultiFileSelection |
FileExtensionList | extensions |
std::vector< UTF8StringBuffer > | result |
CFileSelector running | |
static CNewFileSelector * | create (CFrame *parent=0, Style style=kSelectFile) |
create a new instance More... | |
bool | run (CBaseObject *delegate) |
the delegate will get a kSelectEndMessage throu the notify method where the sender is this CNewFileSelector object More... | |
void | cancel () |
cancel running the file selector More... | |
bool | runModal () |
run as modal dialog More... | |
New file selector class.
Running the file selector
Getting results
|
protected |
enum Style |
|
protected |
|
protected |
void addFileExtension | ( | const CFileExtension & | extension | ) |
add a file extension
void cancel | ( | ) |
cancel running the file selector
|
protectedpure virtual |
|
static |
create a new instance
|
static |
get the all files extension
uint32_t getNumSelectedFiles | ( | ) | const |
get number of selected files
UTF8StringPtr getSelectedFile | ( | uint32_t | index | ) | const |
get selected file. Result is only valid as long as the instance of CNewFileSelector is valid.
|
inlinevirtual |
|
inlinevirtual |
bool run | ( | CBaseObject * | delegate | ) |
the delegate will get a kSelectEndMessage throu the notify method where the sender is this CNewFileSelector object
|
protectedpure virtual |
bool runModal | ( | ) |
run as modal dialog
|
protectedpure virtual |
void setAllowMultiFileSelection | ( | bool | state | ) |
set allow multi file selection (only valid for kSelectFile selector style)
void setDefaultExtension | ( | const CFileExtension & | extension | ) |
set default file extension
void setDefaultSaveName | ( | UTF8StringPtr | name | ) |
set initial save name (UTF8 string)
void setInitialDirectory | ( | UTF8StringPtr | path | ) |
set initial directory (UTF8 string)
void setTitle | ( | UTF8StringPtr | title | ) |
set title of file selector
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
|
protected |