00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012 #ifndef _COMMANDEDITORTYPEDIALOG_H_
00013 #define _COMMANDEDITORTYPEDIALOG_H_
00014
00015
00020
00021 #include "wx/valgen.h"
00023
00024 #include "commandeditor/commandeditor.h"
00025
00030
00031
00032
00037
00038 #define ID_COMMANDEDITORTYPEDIALOG 21600
00039 #define ID_COMMANDEDITORTYPEDIALOG_NAME 21601
00040 #define ID_COMMANDEDITORTYPEDIALOG_MEDIA_TYPE 21605
00041 #define ID_COMMANDEDITORTYPEDIALOG_EXTENSIONS 21602
00042 #define ID_COMMANDEDITORTYPEDIALOG_VIEW_EXTENSION 21603
00043 #define ID_COMMANDEDITORTYPEDIALOG_EDIT_EXTENSION 21604
00044 #define SYMBOL_WXCOMMANDEDITORTYPEDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
00045 #define SYMBOL_WXCOMMANDEDITORTYPEDIALOG_TITLE _("Type Properties")
00046 #define SYMBOL_WXCOMMANDEDITORTYPEDIALOG_IDNAME ID_COMMANDEDITORTYPEDIALOG
00047 #define SYMBOL_WXCOMMANDEDITORTYPEDIALOG_SIZE wxSize(400, 300)
00048 #define SYMBOL_WXCOMMANDEDITORTYPEDIALOG_POSITION wxDefaultPosition
00050
00051
00056 class wxCommandEditorTypeDialog: public wxDialog
00057 {
00058 DECLARE_DYNAMIC_CLASS( wxCommandEditorTypeDialog )
00059 DECLARE_EVENT_TABLE()
00060
00061 public:
00063 wxCommandEditorTypeDialog();
00064 wxCommandEditorTypeDialog( const wxEditorCommands& commands, wxWindow* parent, wxWindowID id = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_IDNAME, const wxString& caption = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_TITLE, const wxPoint& pos = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_POSITION, const wxSize& size = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_SIZE, long style = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_STYLE );
00065
00067 bool Create( const wxEditorCommands& commands, wxWindow* parent, wxWindowID id = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_IDNAME, const wxString& caption = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_TITLE, const wxPoint& pos = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_POSITION, const wxSize& size = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_SIZE, long style = SYMBOL_WXCOMMANDEDITORTYPEDIALOG_STYLE );
00068
00070 ~wxCommandEditorTypeDialog();
00071
00073 void Init();
00074
00076 void CreateControls();
00077
00078 const wxEditorCommands& GetCommands() const { return m_commands; }
00079
00081 static void SetUseTooltips(bool useTooltips) { sm_useTooltips = useTooltips; }
00082
00084
00086
00088
00090 wxBitmap GetBitmapResource( const wxString& name );
00091
00093 wxIcon GetIconResource( const wxString& name );
00095
00097 static bool ShowToolTips();
00098
00100 wxChoice* m_mediaTypeCtrl;
00102
00103 wxEditorCommands m_commands;
00104 static bool sm_useTooltips;
00105 };
00106
00107 #endif
00108