Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
CalDAV: WIP CalDAV support
[xestiacalendar/.git] / source / forms / actmgr / frmActivityMgr.cpp
1 // frmActivityMgr.cpp - frmActivityMgr form functions.
2 //
3 // (c) 2016-2017 Xestia Software Development.
4 //
5 // This file is part of Xestia Calendar.
6 //
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.
10 //
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.
15 //
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 )
22 :
23 frmActivityMgrADT( parent )
24 {
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);
29         wxIcon activityicon;
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."));
40         
41         ActListProcTimer.SetupPointers(&ActivityList, &ActivityListIndex, &ActivityListTaskDetail, 
42                                         &TasksActive, lstActivity, lblDetails, GauProgress, this, &AnimationTimer,
43                                         &ActProcessTimer, &ActivityListFinDate, &ActivityListConnObject);
44         
45         AnimationTimer.SetBitmap(bmpActivity);
46         AnimationTimer.SetSleepBitmap(&SleepBitmap);
47         AnimationTimer.SetupPointer(this->GetParent());
48         
49         wxListItem ColumnData;
50         ColumnData.SetId(0);
51         ColumnData.SetText(_("Activity"));
52         ColumnData.SetWidth(175);
53         lstActivity->InsertColumn(0, ColumnData);
54         
55         wxListItem ColumnData2;
56         ColumnData2.SetId(1);
57         ColumnData2.SetText(_("Account"));
58         ColumnData2.SetWidth(100);
59         lstActivity->InsertColumn(1, ColumnData2);
61         wxListItem ColumnData3;
62         ColumnData3.SetId(2);
63         ColumnData3.SetText(_("Status"));
64         ColumnData3.SetWidth(100);
65         lstActivity->InsertColumn(2, ColumnData3);*/
67 }
69 void frmActivityMgr::CloseWindow( wxCommandEvent& event )
70 {
71         this->Hide();
72 }
74 void frmActivityMgr::CloseWindow( wxCloseEvent& event )
75 {
76         this->Hide();
77 }
79 void frmActivityMgr::StopTask( wxCommandEvent& event )
80 {
81 // TODO: Implement StopTask
82 }
84 void frmActivityMgr::StopAllTasks( wxCommandEvent& event )
85 {
86 // TODO: Implement StopAllTasks
87 }
89 void frmActivityMgr::RetryTask( wxCommandEvent& event )
90 {
91 // TODO: Implement RetryTask
92 }
94 void frmActivityMgr::SleepMode( wxCommandEvent& event )
95 {
96 // TODO: Implement SleepMode
97 }
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy