optpresetchooserdlg.h

00001 
00002 // Name:        optpresetchooserdlg.h
00003 // Purpose:     wxPackageOptionPresetChooserDialog
00004 // Author:      Francesco Montorsi
00005 // Modified by:
00006 // Created:     18/09/2006 23:11:38
00007 // RCS-ID:      $Id: optpresetchooserdlg.h,v 1.4 2007/01/27 23:15:35 frm Exp $
00008 // Copyright:   (c) 2006 Francesco Montorsi
00009 // Licence:     wxWidgets license
00011 
00012 #ifndef _OPTPRESETCHOOSERDLG_H_
00013 #define _OPTPRESETCHOOSERDLG_H_
00014 
00019 #include "wxp/wxp.h"
00020 
00021 
00026 
00027 class wxOptionListCtrl;
00029 
00034 
00035 #define ID_OPTPRESETCHOOSER_PRESETS 10013
00036 #define ID_OPTPRESETCHOOSER_DESC 10014
00037 #define ID_OPTPRESETCHOOSER_PREVIEW 10012
00038 #define SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
00039 #define SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_TITLE _("Choose an option preset")
00040 #define SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_IDNAME wxID_ANY
00041 #define SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_SIZE wxSize(400, -1)
00042 #define SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_POSITION wxDefaultPosition
00044 
00045 
00046 // ----------------------------------------------------------------------------
00047 // wxPackageOptionPresetChooserDialog
00048 // ----------------------------------------------------------------------------
00049 
00050 class wxPackageOptionPresetChooserDlg: public wxDialog
00051 {    
00052     DECLARE_DYNAMIC_CLASS( wxPackageOptionPresetChooserDlg )
00053     DECLARE_EVENT_TABLE()
00054 
00055 public:
00057     wxPackageOptionPresetChooserDlg( );
00058     wxPackageOptionPresetChooserDlg( wxWindow* parent, 
00059         wxWindowID id = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_IDNAME, 
00060         wxPackageBuildSystemType type = wxPBST_INVALID,
00061         const wxString& caption = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_TITLE, 
00062         const wxPoint& pos = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_POSITION, 
00063         const wxSize& size = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_SIZE, 
00064         long style = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_STYLE );
00065 
00067     bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_IDNAME, 
00068         wxPackageBuildSystemType type = wxPBST_INVALID, 
00069         const wxString& caption = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_TITLE, 
00070         const wxPoint& pos = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_POSITION, 
00071         const wxSize& size = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_SIZE, 
00072         long style = SYMBOL_WXPACKAGEOPTIONPRESETCHOOSERDLG_STYLE );
00073 
00075     void CreateControls(wxPackageBuildSystemType);
00076 
00078     static bool ShowToolTips();
00079 
00080 public:     // public API
00081 
00082     const wxPackageCommandOptionArray &GetSelectedPreset() const
00083         { return wxPresetXMLDescriptor::s_hashmapOptions[m_pPresets->GetStringSelection()]; }
00084 
00085 public:     // event handlers
00086 
00087     void OnPreset(wxCommandEvent &ev);
00088 
00089 protected:
00091     wxChoice* m_pPresets;
00092     wxTextCtrl* m_pDescription;
00093     wxOptionListCtrl* m_pPreview;
00095 };
00096 
00097 #endif
00098     // _OPTPRESETCHOOSERDLG_H_

Generated on Thu Feb 1 22:14:31 2007 for wxWidgets Package Manager by  doxygen 1.5.1-p1