#include <ax/ax_supportedfiles.h>
Public Member Functions | |
AxSupportedFiles () | |
AxSupportedFiles (const AxSupportedFiles &supported) | |
~AxSupportedFiles () | |
void | operator= (const AxSupportedFiles &supported) |
void | Copy (const AxSupportedFiles &supported) |
bool | LoadConfig (wxConfigBase &config) |
Load config info. | |
bool | SaveConfig (wxConfigBase &config) |
Save config info. | |
void | Init () |
Do some initialisation. | |
void | Clear () |
Clear arrays. | |
bool | AddFileType (const wxString &ext, const wxString &description, bool enabled=true) |
Add a supported file type. | |
bool | Enable (const wxString &ext, bool enabled=true) |
Enable file type. | |
bool | IsEnabled (const wxString &ext) const |
Is this type enabled? | |
bool | TypeExists (const wxString &ext) const |
Does this type exist? | |
size_t | GetCount () const |
Get number of extensions. | |
wxString | GetExtension (int idx) const |
Get extension. | |
wxString | GetDescription (int idx) const |
Get description. | |
bool | GetEnabled (int idx) const |
Get enabled state. | |
bool | RemoveFileType (int idx) |
Remove file type. | |
wxArrayString & | GetFileExtensions () |
Get arrays. | |
wxArrayString & | GetFileDescriptions () |
wxArrayInt & | GetFileStates () |
bool | TransferDataToCheckListBox (wxCheckListBox *checkListBox, bool recreateList=true) |
Transfer enabled states to and from checklistbox. | |
bool | TransferDataFromCheckListBox (wxCheckListBox *checkListBox) |
wxString | GetWildcard () const |
Get a wildcard with all enabled extensions. | |
AxSupportedFiles () | |
AxSupportedFiles (const AxSupportedFiles &supported) | |
~AxSupportedFiles () | |
void | operator= (const AxSupportedFiles &supported) |
void | Copy (const AxSupportedFiles &supported) |
bool | LoadConfig (wxConfigBase &config) |
Load config info. | |
bool | SaveConfig (wxConfigBase &config) |
Save config info. | |
void | Init () |
Do some initialisation. | |
void | Clear () |
Clear arrays. | |
bool | AddFileType (const wxString &ext, const wxString &description, bool enabled=true) |
Add a supported file type. | |
bool | Enable (const wxString &ext, bool enabled=true) |
Enable file type. | |
bool | IsEnabled (const wxString &ext) const |
Is this type enabled? | |
bool | TypeExists (const wxString &ext) const |
Does this type exist? | |
size_t | GetCount () const |
Get number of extensions. | |
wxString | GetExtension (int idx) const |
Get extension. | |
wxString | GetDescription (int idx) const |
Get description. | |
bool | GetEnabled (int idx) const |
Get enabled state. | |
bool | RemoveFileType (int idx) |
Remove file type. | |
wxArrayString & | GetFileExtensions () |
Get arrays. | |
wxArrayString & | GetFileDescriptions () |
wxArrayInt & | GetFileStates () |
bool | TransferDataToCheckListBox (wxCheckListBox *checkListBox, bool recreateList=true) |
Transfer enabled states to and from checklistbox. | |
bool | TransferDataFromCheckListBox (wxCheckListBox *checkListBox) |
wxString | GetWildcard () const |
Get a wildcard with all enabled extensions. | |
Protected Attributes | |
wxArrayString | m_supportedFileExtensions |
wxArrayString | m_supportedFileDescriptions |
wxArrayInt | m_supportedFileStates |
Supported files
AxSupportedFiles::AxSupportedFiles | ( | ) | [inline] |
AxSupportedFiles::AxSupportedFiles | ( | const AxSupportedFiles & | supported | ) | [inline] |
AxSupportedFiles::~AxSupportedFiles | ( | ) | [inline] |
AxSupportedFiles::AxSupportedFiles | ( | ) | [inline] |
AxSupportedFiles::AxSupportedFiles | ( | const AxSupportedFiles & | supported | ) | [inline] |
AxSupportedFiles::~AxSupportedFiles | ( | ) | [inline] |
bool AxSupportedFiles::AddFileType | ( | const wxString & | ext, | |
const wxString & | description, | |||
bool | enabled = true | |||
) |
Add a supported file type.
bool AxSupportedFiles::AddFileType | ( | const wxString & | ext, | |
const wxString & | description, | |||
bool | enabled = true | |||
) |
Add a supported file type.
void AxSupportedFiles::Clear | ( | ) |
Clear arrays.
void AxSupportedFiles::Clear | ( | ) |
Clear arrays.
void AxSupportedFiles::Copy | ( | const AxSupportedFiles & | supported | ) |
void AxSupportedFiles::Copy | ( | const AxSupportedFiles & | supported | ) |
bool AxSupportedFiles::Enable | ( | const wxString & | ext, | |
bool | enabled = true | |||
) |
Enable file type.
bool AxSupportedFiles::Enable | ( | const wxString & | ext, | |
bool | enabled = true | |||
) |
Enable file type.
size_t AxSupportedFiles::GetCount | ( | ) | const [inline] |
Get number of extensions.
size_t AxSupportedFiles::GetCount | ( | ) | const [inline] |
Get number of extensions.
wxString AxSupportedFiles::GetDescription | ( | int | idx | ) | const [inline] |
Get description.
wxString AxSupportedFiles::GetDescription | ( | int | idx | ) | const [inline] |
Get description.
bool AxSupportedFiles::GetEnabled | ( | int | idx | ) | const [inline] |
Get enabled state.
bool AxSupportedFiles::GetEnabled | ( | int | idx | ) | const [inline] |
Get enabled state.
wxString AxSupportedFiles::GetExtension | ( | int | idx | ) | const [inline] |
Get extension.
wxString AxSupportedFiles::GetExtension | ( | int | idx | ) | const [inline] |
Get extension.
wxArrayString& AxSupportedFiles::GetFileDescriptions | ( | ) | [inline] |
wxArrayString& AxSupportedFiles::GetFileDescriptions | ( | ) | [inline] |
wxArrayString& AxSupportedFiles::GetFileExtensions | ( | ) | [inline] |
Get arrays.
wxArrayString& AxSupportedFiles::GetFileExtensions | ( | ) | [inline] |
Get arrays.
wxArrayInt& AxSupportedFiles::GetFileStates | ( | ) | [inline] |
wxArrayInt& AxSupportedFiles::GetFileStates | ( | ) | [inline] |
wxString AxSupportedFiles::GetWildcard | ( | ) | const |
Get a wildcard with all enabled extensions.
wxString AxSupportedFiles::GetWildcard | ( | ) | const |
Get a wildcard with all enabled extensions.
void AxSupportedFiles::Init | ( | ) |
Do some initialisation.
void AxSupportedFiles::Init | ( | ) |
Do some initialisation.
bool AxSupportedFiles::IsEnabled | ( | const wxString & | ext | ) | const |
Is this type enabled?
bool AxSupportedFiles::IsEnabled | ( | const wxString & | ext | ) | const |
Is this type enabled?
bool AxSupportedFiles::LoadConfig | ( | wxConfigBase & | config | ) |
Load config info.
bool AxSupportedFiles::LoadConfig | ( | wxConfigBase & | config | ) |
Load config info.
void AxSupportedFiles::operator= | ( | const AxSupportedFiles & | supported | ) | [inline] |
void AxSupportedFiles::operator= | ( | const AxSupportedFiles & | supported | ) | [inline] |
bool AxSupportedFiles::RemoveFileType | ( | int | idx | ) |
Remove file type.
bool AxSupportedFiles::RemoveFileType | ( | int | idx | ) |
Remove file type.
bool AxSupportedFiles::SaveConfig | ( | wxConfigBase & | config | ) |
Save config info.
bool AxSupportedFiles::SaveConfig | ( | wxConfigBase & | config | ) |
Save config info.
bool AxSupportedFiles::TransferDataFromCheckListBox | ( | wxCheckListBox * | checkListBox | ) |
bool AxSupportedFiles::TransferDataFromCheckListBox | ( | wxCheckListBox * | checkListBox | ) |
bool AxSupportedFiles::TransferDataToCheckListBox | ( | wxCheckListBox * | checkListBox, | |
bool | recreateList = true | |||
) |
Transfer enabled states to and from checklistbox.
bool AxSupportedFiles::TransferDataToCheckListBox | ( | wxCheckListBox * | checkListBox, | |
bool | recreateList = true | |||
) |
Transfer enabled states to and from checklistbox.
bool AxSupportedFiles::TypeExists | ( | const wxString & | ext | ) | const |
Does this type exist?
bool AxSupportedFiles::TypeExists | ( | const wxString & | ext | ) | const |
Does this type exist?
wxArrayString AxSupportedFiles::m_supportedFileDescriptions [protected] |
wxArrayString AxSupportedFiles::m_supportedFileExtensions [protected] |
wxArrayInt AxSupportedFiles::m_supportedFileStates [protected] |