00001
00014 #ifndef _cTabGuiAct_h
00015 #define _cTabGuiAct_h
00016
00017 #include "cTabGui.h"
00018 #include "cFile.h"
00019 #include "cSqlAct.h"
00020
00021
00022
00023 #include "cMovieWidgetAct.h"
00024
00025 #include <wx/listctrl.h>
00026
00027 #include <string>
00028 #include <list>
00029
00030 using std::string;
00031 using std::list;
00032
00033 class cTabGuiAct: public cTabGui
00034 {
00035 public:
00037 cTabGuiAct(wxWindow *pParent);
00038
00040 ~cTabGuiAct(void);
00041
00042 const Int AppendItem2List(wxListCtrl *pGeneralListCtrl,
00043 const string sFilename,
00044 const string sDone,
00045 const string sSize,
00046 const string sPriority,
00047 const string sAvailability,
00048 const string sMd4);
00049
00050 protected:
00051 cSqlAct SqlAct;
00052
00054 void DisplayInfoListCtrlOf(list< list<string> > FileList);
00055
00056 const Int FindListCtrlItem(wxListCtrl *pListCtrl, const Int iCol, const string sStr);
00057
00058 DECLARE_EVENT_TABLE()
00059
00060 private:
00061 void DisplayCategoryInfo(const string sMd4, const string sCategory);
00062
00063
00064
00065
00066 void OnRowSelected(wxListEvent& event);
00067 void OnDownloadClick(wxCommandEvent& command);
00068 void OnListCtrlDel(wxListEvent& event);
00069 };
00070
00071 #endif // _cTabGuiAct_h