ToolMap
Loading...
Searching...
No Matches
openerror_dlg.h
1/***************************************************************************
2 openerror_dlg.h
3 Display the error message dialog
4 -------------------
5 copyright : (C) 2008 CREALP Lucien Schreiber
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef __OPEN_ERROR_DLG_H__
18#define __OPEN_ERROR_DLG_H__
19
20// For compilers that support precompilation, includes "wx/wx.h".
21#include <wx/wxprec.h>
22
23// Include wxWidgets' headers
24#ifndef WX_PRECOMP
25#include <wx/wx.h>
26#endif
27
28#include <wx/valgen.h>
29
30class DataBaseTM;
31
32class tmOpenError_DLG : public wxDialog {
33 private:
34 wxPanel* m_ErrPanelDB;
35 wxStaticText* m_ErrDBTextCtrl;
36 wxTextCtrl* m_ErrDBLogCtrl;
37 wxPanel* m_ErrPanelProjVersion;
38 wxStaticText* m_ErrVerTextCtrl;
39 wxButton* m_ErrVerBackupConvertCtrl;
40 wxButton* m_ErrVerConvertCtrl;
41 wxPanel* m_ErrPanelTMVersion;
42 wxStaticText* m_ErrTMTextCtrl;
43 wxButton* m_ErrTMDownloadCtrl;
44
45 DataBaseTM* m_pDB;
46
47 void _CreateControls(const wxString& projname, int iActDBVersion);
48
49 void OnConvertBackup(wxCommandEvent& event);
50
51 void OnConvert(wxCommandEvent& event);
52
53 void OnDownload(wxCommandEvent& event);
54
55 public:
56 tmOpenError_DLG(wxWindow* parent, int iActDBVersion, const wxString& projname, DataBaseTM* database,
57 wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
58 const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
59
61};
62
63class tmOpenRecentError_DLG : public wxDialog {
64 private:
65 wxStaticText* m_ErrorMsgCtrl;
66 wxCheckBox* m_RemoveCheckCtrl;
67 bool m_RemoveCheck;
68
69 void _CreateControls(const wxString& prjname);
70
71 public:
72 tmOpenRecentError_DLG(wxWindow* parent, wxWindowID id, const wxString& title, const wxString& prjname,
73 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
74 long style = wxDEFAULT_DIALOG_STYLE);
75
76 virtual ~tmOpenRecentError_DLG();
77
78 inline const bool GetRemoveFromRecent() const;
79};
80
81inline const bool tmOpenRecentError_DLG::GetRemoveFromRecent() const {
82 return m_RemoveCheck;
83}
84
85#endif
Definition database_tm.h:80
Definition openerror_dlg.h:32
Definition openerror_dlg.h:63