ASPiK SDK
VSTGUI::GtkFileSelector Struct Reference
Inheritance diagram for VSTGUI::GtkFileSelector:
VSTGUI::CNewFileSelector VSTGUI::CBaseObject VSTGUI::ReferenceCounted< T > VSTGUI::IReference

Public Member Functions

 GtkFileSelector (CFrame *parent, Style style)
 
Gtk::Window * getParent () const
 
void prepareRunning ()
 
void postRun ()
 
bool runInternal (CBaseObject *delegate) override
 
void cancelInternal () override
 
bool runModalInternal () override
 
- Public Member Functions inherited from VSTGUI::CNewFileSelector
void setTitle (const UTF8String &title)
 set title of file selector
 
void setInitialDirectory (const UTF8String &path)
 set initial directory (UTF8 string)
 
void setDefaultSaveName (const UTF8String &name)
 set initial save name (UTF8 string)
 
void setDefaultExtension (const CFileExtension &extension)
 set default file extension
 
void setAllowMultiFileSelection (bool state)
 set allow multi file selection (only valid for kSelectFile selector style)
 
void addFileExtension (const CFileExtension &extension)
 add a file extension
 
void addFileExtension (CFileExtension &&extension)
 add a file 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.
 
bool run (CallbackFunc &&callback)
 
bool run (CBaseObject *delegate)
 the delegate will get a kSelectEndMessage throu the notify method where the sender is this CNewFileSelector object
 
void cancel ()
 cancel running the file selector
 
bool runModal ()
 run as modal dialog
 
- Public Member Functions inherited from VSTGUI::CBaseObject
 CBaseObject (const CBaseObject &o)
 
CBaseObjectoperator= (const CBaseObject &obj)
 
virtual CMessageResult notify (CBaseObject *sender, IdStringPtr message)
 
- Public Member Functions inherited from VSTGUI::ReferenceCounted< T >
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
void forget () override
 decrease refcount and delete object if refcount == 0
 
void remember () override
 increase refcount
 
virtual int32_t getNbReference () const
 get refcount
 
virtual void beforeDelete ()
 

Static Public Member Functions

static std::string getDirectory (UTF8StringPtr str)
 
- Static Public Member Functions inherited from VSTGUI::CNewFileSelector
static const CFileExtensiongetAllFilesExtension ()
 get the all files extension
 
static CNewFileSelectorcreate (CFrame *parent=nullptr, Style style=kSelectFile)
 create a new instance
 

Public Attributes

Style style
 
Gtk::FileChooserDialog dialog
 
bool dialogResult {false}
 
SharedPointer< CBaseObjectdelegate
 

Additional Inherited Members

- Public Types inherited from VSTGUI::CNewFileSelector
enum  Style { kSelectFile, kSelectSaveFile, kSelectDirectory }
 
using CallbackFunc = std::function< void(CNewFileSelector *)>
 
- Static Public Attributes inherited from VSTGUI::CNewFileSelector
static IdStringPtr kSelectEndMessage = "CNewFileSelector Select End Message"
 
- Protected Types inherited from VSTGUI::CNewFileSelector
using FileExtensionList = std::list< CFileExtension >
 
- Protected Member Functions inherited from VSTGUI::CNewFileSelector
 CNewFileSelector (CFrame *frame=nullptr)
 
- Protected Attributes inherited from VSTGUI::CNewFileSelector
CFrameframe
 
UTF8String title
 
UTF8String initialPath
 
UTF8String defaultSaveName
 
const CFileExtensiondefaultExtension
 
bool allowMultiFileSelection
 
FileExtensionList extensions
 
std::vector< UTF8Stringresult
 

The documentation for this struct was generated from the following file: