00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012 #ifndef _PMBATCHDOWNLOAD_H_
00013 #define _PMBATCHDOWNLOAD_H_
00014
00015
00020 #include "wx/statline.h"
00021 #include "wx/filepicker.h"
00022
00027 class wxPackageArray;
00028 class wxAnimationCtrl;
00029
00034
00035 #define ID_BATCHDOWNLOAD_LIST 10039
00036 #define ID_BATCHDOWNLOAD_ANIMATION 10046
00037 #define ID_BATCHDOWNLOAD_SIZE 10040
00038 #define ID_BATCHDOWNLOAD_DESTINATION 10045
00039 #define SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
00040 #define SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_TITLE _("Batch download")
00041 #define SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_IDNAME wxID_ANY
00042 #define SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_SIZE wxSize(400, 300)
00043 #define SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_POSITION wxDefaultPosition
00045
00046
00047
00048
00049
00050
00051 class wxPackageBatchDownloadDlg: public wxDialog
00052 {
00053 DECLARE_DYNAMIC_CLASS( wxPackageBatchDownloadDlg )
00054 DECLARE_EVENT_TABLE()
00055
00056 public:
00058 wxPackageBatchDownloadDlg( );
00059 wxPackageBatchDownloadDlg( wxWindow* parent, wxWindowID id = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_IDNAME, const wxString& caption = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_TITLE, const wxPoint& pos = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_POSITION, const wxSize& size = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_SIZE, long style = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_STYLE );
00060
00062 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_IDNAME, const wxString& caption = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_TITLE, const wxPoint& pos = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_POSITION, const wxSize& size = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_SIZE, long style = SYMBOL_WXPACKAGEBATCHDOWNLOADDLG_STYLE );
00063
00065 void CreateControls();
00066
00067
00068 public:
00069
00070 void SetPackages(const wxPackageArray &arr);
00071 void SetDestination(const wxString &path)
00072 { m_pDestination->SetPath(path); }
00073
00074 public:
00075
00076 wxString GetDestination() const
00077 { return m_pDestination->GetPath(); }
00078
00079 protected:
00080 wxListBox* m_pPackageList;
00081 wxStaticText* m_pTotalSize;
00082 wxDirPickerCtrl *m_pDestination;
00083 wxAnimationCtrl *m_pAnimation;
00084 };
00085
00086
00087 #endif
00088