// frmActivityMgr.cpp - frmActivityMgr form functions. // // (c) 2016-2017 Xestia Software Development. // // This file is part of Xestia Calendar. // // Xestia Calendar is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by the // Free Software Foundation, version 3 of the license. // // Xestia Calendar is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License along // with Xestia Calendar. If not, see #include "frmActivityMgr.h" frmActivityMgr::frmActivityMgr( wxWindow* parent ) : frmActivityMgrADT( parent ) { /*wxMemoryInputStream istream(icons_activitywindow_png, sizeof(icons_activitywindow_png)); wxImage icons_activitywindow_pngi(istream, wxBITMAP_TYPE_PNG); wxBitmap activityiconbmp(icons_activitywindow_pngi, -1); wxIcon activityicon; activityicon.CopyFromBitmap(activityiconbmp); this->SetIcon(activityicon); wxMemoryInputStream istream2(misc_activitysleep_png, sizeof(misc_activitysleep_png)); wxImage misc_activitysleep_pngi(istream2, wxBITMAP_TYPE_PNG); wxBitmap sleepiconbmp(misc_activitysleep_pngi, -1); SleepBitmap = sleepiconbmp; bmpActivity->SetBitmap(SleepBitmap); ActProcessTimer.SetupPointers(this); lblDetails->SetLabel(_("No activity.")); ActListProcTimer.SetupPointers(&ActivityList, &ActivityListIndex, &ActivityListTaskDetail, &TasksActive, lstActivity, lblDetails, GauProgress, this, &AnimationTimer, &ActProcessTimer, &ActivityListFinDate, &ActivityListConnObject); AnimationTimer.SetBitmap(bmpActivity); AnimationTimer.SetSleepBitmap(&SleepBitmap); AnimationTimer.SetupPointer(this->GetParent()); wxListItem ColumnData; ColumnData.SetId(0); ColumnData.SetText(_("Activity")); ColumnData.SetWidth(175); lstActivity->InsertColumn(0, ColumnData); wxListItem ColumnData2; ColumnData2.SetId(1); ColumnData2.SetText(_("Account")); ColumnData2.SetWidth(100); lstActivity->InsertColumn(1, ColumnData2); wxListItem ColumnData3; ColumnData3.SetId(2); ColumnData3.SetText(_("Status")); ColumnData3.SetWidth(100); lstActivity->InsertColumn(2, ColumnData3);*/ } void frmActivityMgr::CloseWindow( wxCommandEvent& event ) { this->Hide(); } void frmActivityMgr::CloseWindow( wxCloseEvent& event ) { this->Hide(); } void frmActivityMgr::StopTask( wxCommandEvent& event ) { // TODO: Implement StopTask } void frmActivityMgr::StopAllTasks( wxCommandEvent& event ) { // TODO: Implement StopAllTasks } void frmActivityMgr::RetryTask( wxCommandEvent& event ) { // TODO: Implement RetryTask } void frmActivityMgr::SleepMode( wxCommandEvent& event ) { // TODO: Implement SleepMode }