1 // frmActivityMgr.cpp - frmActivityMgr form functions.
3 // (c) 2016-2017 Xestia Software Development.
5 // This file is part of Xestia Calendar.
7 // Xestia Calendar is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
11 // Xestia Calendar is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Calendar. If not, see <http://www.gnu.org/licenses/>
19 #include "frmActivityMgr.h"
21 frmActivityMgr::frmActivityMgr( wxWindow* parent )
23 frmActivityMgrADT( parent )
26 /*wxMemoryInputStream istream(icons_activitywindow_png, sizeof(icons_activitywindow_png));
27 wxImage icons_activitywindow_pngi(istream, wxBITMAP_TYPE_PNG);
28 wxBitmap activityiconbmp(icons_activitywindow_pngi, -1);
30 activityicon.CopyFromBitmap(activityiconbmp);
31 this->SetIcon(activityicon);
33 wxMemoryInputStream istream2(misc_activitysleep_png, sizeof(misc_activitysleep_png));
34 wxImage misc_activitysleep_pngi(istream2, wxBITMAP_TYPE_PNG);
35 wxBitmap sleepiconbmp(misc_activitysleep_pngi, -1);
36 SleepBitmap = sleepiconbmp;
37 bmpActivity->SetBitmap(SleepBitmap);
38 ActProcessTimer.SetupPointers(this);
39 lblDetails->SetLabel(_("No activity."));
41 ActListProcTimer.SetupPointers(&ActivityList, &ActivityListIndex, &ActivityListTaskDetail,
42 &TasksActive, lstActivity, lblDetails, GauProgress, this, &AnimationTimer,
43 &ActProcessTimer, &ActivityListFinDate, &ActivityListConnObject);
45 AnimationTimer.SetBitmap(bmpActivity);
46 AnimationTimer.SetSleepBitmap(&SleepBitmap);
47 AnimationTimer.SetupPointer(this->GetParent());
49 wxListItem ColumnData;
51 ColumnData.SetText(_("Activity"));
52 ColumnData.SetWidth(175);
53 lstActivity->InsertColumn(0, ColumnData);
55 wxListItem ColumnData2;
57 ColumnData2.SetText(_("Account"));
58 ColumnData2.SetWidth(100);
59 lstActivity->InsertColumn(1, ColumnData2);
61 wxListItem ColumnData3;
63 ColumnData3.SetText(_("Status"));
64 ColumnData3.SetWidth(100);
65 lstActivity->InsertColumn(2, ColumnData3);*/
69 void frmActivityMgr::CloseWindow( wxCommandEvent& event )
74 void frmActivityMgr::CloseWindow( wxCloseEvent& event )
79 void frmActivityMgr::StopTask( wxCommandEvent& event )
81 // TODO: Implement StopTask
84 void frmActivityMgr::StopAllTasks( wxCommandEvent& event )
86 // TODO: Implement StopAllTasks
89 void frmActivityMgr::RetryTask( wxCommandEvent& event )
91 // TODO: Implement RetryTask
94 void frmActivityMgr::SleepMode( wxCommandEvent& event )
96 // TODO: Implement SleepMode