1 #ifndef MAINTORRENTTAB_H 2 #define MAINTORRENTTAB_H 3 4 #include <wx/scrolwin.h> 5 #include <wx/timer.h> 6 #include <map> 7 8 class wxStaticText; 9 class wxButton; 10 class DownloadListCtrl; 11 class Ui; 12 struct DownloadInfo; 13 class wxBoxSizer; 14 class ColorButton; 15 class WidgetDownloadDialog; 16 class ContentDownloadDialog; 17 18 typedef std::map<wxString,DownloadInfo> map_infos; 19 typedef map_infos::iterator map_infos_iter; 20 21 class MainDownloadTab: public wxScrolledWindow 22 { 23 public: 24 25 MainDownloadTab( wxWindow* parent ); 26 ~MainDownloadTab(); 27 28 void OnUpdate(wxTimerEvent& /*event*/); 29 30 protected: 31 32 enum 33 { 34 ID_LIST = wxID_HIGHEST, 35 ID_BUTTON_CANCEL, 36 ID_OUTGOING, 37 ID_INCOMING, 38 ID_OUTGOING_LBL, 39 ID_INCOMING_LBL, 40 ID_DOWNLOAD_DIALOG, 41 ID_BUTTON_CLEAR, 42 ID_BUTTON_WIDGETS, 43 ID_TIMER 44 }; 45 46 wxButton* m_but_cancel; 47 wxButton* m_but_clear; 48 DownloadListCtrl* m_dl_listctrl; 49 WidgetDownloadDialog* m_widgets_dialog; 50 51 void OnCancelButton( wxCommandEvent& event ); 52 void OnDownloadDialog( wxCommandEvent& event ); 53 void OnDLWidgets( wxCommandEvent& event ); 54 void OnClearFinished( wxCommandEvent& event ); 55 56 wxBoxSizer* m_mainbox; 57 58 private: 59 60 //(*Handlers(MainTorrentTab) 61 //*) 62 63 DECLARE_EVENT_TABLE() 64 ContentDownloadDialog* m_download_dialog; 65 wxButton* m_but_download; 66 wxTimer* timer; 67 }; 68 69 #endif 70 71 /** 72 This file is part of SpringLobby, 73 Copyright (C) 2007-2011 74 75 SpringLobby is free software: you can redistribute it and/or modify 76 it under the terms of the GNU General Public License version 2 as published by 77 the Free Software Foundation. 78 79 SpringLobby is distributed in the hope that it will be useful, 80 but WITHOUT ANY WARRANTY; without even the implied warranty of 81 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 82 GNU General Public License for more details. 83 84 You should have received a copy of the GNU General Public License 85 along with SpringLobby. If not, see <http://www.gnu.org/licenses/>. 86 **/ 87 88