batchdownloaddlg.h

00001 
00002 // Name:        batchdownloaddlg.h
00003 // Purpose:     wxPackageBatchDownloadDlg definition
00004 // Author:      Francesco Montorsi
00005 // Modified by:
00006 // Created:     15/07/2006 12:43:10
00007 // RCS-ID:      $Id: batchdownloaddlg.h,v 1.4 2007/01/31 13:00:50 frm Exp $
00008 // Copyright:   (c) 2006 Francesco Montorsi
00009 // Licence:     wxWidgets license
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 // wxPackageBatchDownloadDlg
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:     // setters
00069 
00070     void SetPackages(const wxPackageArray &arr);
00071     void SetDestination(const wxString &path)
00072         { m_pDestination->SetPath(path); }
00073 
00074 public:     // getters
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     // _PMBATCHDOWNLOAD_H_

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