ToolMap
Loading...
Searching...
No Matches
backupmanager_dlg.h
1/***************************************************************************
2 backupmanager_dlg.h
3 -------------------
4 copyright : (C) 2011 CREALP Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef _BACKUPMANAGER_DLG_H
17#define _BACKUPMANAGER_DLG_H
18
19#include <wx/wxprec.h>
20
21#ifndef WX_PRECOMP
22#include <wx/wx.h>
23#endif
24
25#include <wx/wupdlock.h>
26
27#include "../core/datalistreportctrl.h"
28
29class BackupManager;
30
31const int ID_BTN_RESTORE = wxID_HIGHEST + 1;
32const int ID_LIST_BACKUPS = wxID_HIGHEST + 2;
33
34class BackupManagerDLG : public wxDialog {
35 private:
36 wxImageList* m_ImgList;
37 DataListReportCtrl* m_ListBackup;
38 bool m_AscendingOrder;
39 int m_ClassedCol;
40
41 wxButton* m_BtnDelete;
42 wxButton* m_BtnRestore;
43 wxStatusBar* m_StatusBar;
44 BackupManager* m_BackupManager;
45 wxString m_BackupPath;
46 wxString m_RestoreFileName;
47
48 void _CreateControls();
49
50 bool _LoadData();
51
52 void _UpdateStatusbar(const unsigned int& bcknumber);
53
54 void OnButtonRestore(wxCommandEvent& event);
55
56 void OnButtonDelete(wxCommandEvent& event);
57
58 void OnListColumnClick(wxListEvent& event);
59
60 void OnUpdateUIDelete(wxUpdateUIEvent& event);
61
62 void OnUpdateUIRestore(wxUpdateUIEvent& event);
63
64 DECLARE_EVENT_TABLE();
65
66 public:
67 BackupManagerDLG(wxWindow* parent, wxWindowID id, const wxString& title, BackupManager* bckmanager);
68
69 virtual ~BackupManagerDLG();
70
71 wxString GetRestoreFileName();
72};
73
74#endif
Definition backupmanager_dlg.h:34
Definition backupmanager.h:101
Definition datalistreportctrl.h:30