#include <commandeditor/commandeditor.h>
Public Member Functions | |
wxEditorCommands (const wxString &fileTypeName, const wxString &fileTypeDescription, const wxString &fileTypeExtensions, int mediaType=wxEditorCommandMediaTypeUnknown) | |
wxEditorCommands () | |
wxEditorCommands (const wxEditorCommands &commands) | |
void | Init () |
void | Copy (const wxEditorCommands &commands) |
void | operator= (const wxEditorCommands &commands) |
const wxString & | GetFileTypeName () const |
const wxString & | GetFileTypeDescription () const |
const wxString & | GetFileTypeExtensions () const |
const wxString & | GetDefaultViewerName () const |
const wxString & | GetDefaultEditorName () const |
const wxString & | GetFileTypeExtensionForDefaultViewing () const |
const wxString & | GetFileTypeExtensionForDefaultEditing () const |
const wxEditorCommandArray & | GetViewers () const |
wxEditorCommandArray & | GetViewers () |
const wxEditorCommandArray & | GetEditors () const |
wxEditorCommandArray & | GetEditors () |
wxArrayString | GetViewerCommandNames (bool onlyEnabledCommands=true) const |
wxArrayString | GetEditorCommandNames (bool onlyEnabledCommands=true) const |
wxEditorCommand * | FindViewerCommand (const wxString &title) const |
Find viewer command. | |
wxEditorCommand * | FindViewerCommand (int i) const |
wxEditorCommand * | GetDefaultViewerCommand () const |
wxEditorCommand * | FindEditorCommand (const wxString &title) const |
Find editor command. | |
wxEditorCommand * | FindEditorCommand (int i) const |
wxEditorCommand * | GetDefaultEditorCommand () const |
int | GetMediaType () const |
Get/set media type. | |
void | SetMediaType (int mediaType) |
bool | Save (wxOutputStream &stream, wxDataOutputStream &dataStream) |
bool | Load (wxInputStream &stream, wxDataInputStream &dataStream) |
void | InitializeDefaults (const wxString &extForDefaultViewing, const wxString &extForDefaultEditing, bool addInternal=true) |
Initialize default editors. | |
Public Attributes | |
wxString | m_fileTypeName |
wxString | m_fileTypeDescription |
wxString | m_fileTypeExtensions |
wxString | m_fileTypeExtensionForDefaultViewing |
wxString | m_fileTypeExtensionForDefaultEditing |
wxEditorCommandArray | m_viewers |
wxEditorCommandArray | m_editors |
wxString | m_defaultViewerName |
wxString | m_defaultEditorName |
int | m_mediaType |
wxEditorCommands::wxEditorCommands | ( | const wxString & | fileTypeName, | |
const wxString & | fileTypeDescription, | |||
const wxString & | fileTypeExtensions, | |||
int | mediaType = wxEditorCommandMediaTypeUnknown | |||
) | [inline] |
wxEditorCommands::wxEditorCommands | ( | ) | [inline] |
wxEditorCommands::wxEditorCommands | ( | const wxEditorCommands & | commands | ) | [inline] |
void wxEditorCommands::Copy | ( | const wxEditorCommands & | commands | ) |
wxEditorCommand * wxEditorCommands::FindEditorCommand | ( | int | i | ) | const |
wxEditorCommand * wxEditorCommands::FindEditorCommand | ( | const wxString & | title | ) | const |
Find editor command.
wxEditorCommand * wxEditorCommands::FindViewerCommand | ( | int | i | ) | const |
wxEditorCommand * wxEditorCommands::FindViewerCommand | ( | const wxString & | title | ) | const |
Find viewer command.
wxEditorCommand * wxEditorCommands::GetDefaultEditorCommand | ( | ) | const |
const wxString& wxEditorCommands::GetDefaultEditorName | ( | ) | const [inline] |
wxEditorCommand * wxEditorCommands::GetDefaultViewerCommand | ( | ) | const |
const wxString& wxEditorCommands::GetDefaultViewerName | ( | ) | const [inline] |
wxArrayString wxEditorCommands::GetEditorCommandNames | ( | bool | onlyEnabledCommands = true |
) | const |
wxEditorCommandArray& wxEditorCommands::GetEditors | ( | ) | [inline] |
const wxEditorCommandArray& wxEditorCommands::GetEditors | ( | ) | const [inline] |
const wxString& wxEditorCommands::GetFileTypeDescription | ( | ) | const [inline] |
const wxString& wxEditorCommands::GetFileTypeExtensionForDefaultEditing | ( | ) | const [inline] |
const wxString& wxEditorCommands::GetFileTypeExtensionForDefaultViewing | ( | ) | const [inline] |
const wxString& wxEditorCommands::GetFileTypeExtensions | ( | ) | const [inline] |
const wxString& wxEditorCommands::GetFileTypeName | ( | ) | const [inline] |
int wxEditorCommands::GetMediaType | ( | ) | const [inline] |
Get/set media type.
wxArrayString wxEditorCommands::GetViewerCommandNames | ( | bool | onlyEnabledCommands = true |
) | const |
wxEditorCommandArray& wxEditorCommands::GetViewers | ( | ) | [inline] |
const wxEditorCommandArray& wxEditorCommands::GetViewers | ( | ) | const [inline] |
void wxEditorCommands::Init | ( | ) |
void wxEditorCommands::InitializeDefaults | ( | const wxString & | extForDefaultViewing, | |
const wxString & | extForDefaultEditing, | |||
bool | addInternal = true | |||
) |
Initialize default editors.
bool wxEditorCommands::Load | ( | wxInputStream & | stream, | |
wxDataInputStream & | dataStream | |||
) |
void wxEditorCommands::operator= | ( | const wxEditorCommands & | commands | ) | [inline] |
bool wxEditorCommands::Save | ( | wxOutputStream & | stream, | |
wxDataOutputStream & | dataStream | |||
) |
void wxEditorCommands::SetMediaType | ( | int | mediaType | ) | [inline] |
wxEditorCommandArray wxEditorCommands::m_editors |
wxString wxEditorCommands::m_fileTypeName |
wxEditorCommandArray wxEditorCommands::m_viewers |