-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRLRMFrames.h
More file actions
112 lines (96 loc) · 3.86 KB
/
RLRMFrames.h
File metadata and controls
112 lines (96 loc) · 3.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 5 2014)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __RLRMFRAMES_H__
#define __RLRMFRAMES_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/menu.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/dataview.h>
#include <wx/sizer.h>
#include <wx/panel.h>
#include <wx/listctrl.h>
#include <wx/splitter.h>
#include <wx/statusbr.h>
#include <wx/toolbar.h>
#include <wx/frame.h>
///////////////////////////////////////////////////////////////////////////
#define ID_NEW_CATEGORY 1000
#define ID_EXPORT 1001
#define ID_UPLOAD 1002
#define ID_AUTO_UPLOAD 1003
#define ID_PROVIDER_DV 1004
#define ID_REPLAY_DV 1005
///////////////////////////////////////////////////////////////////////////////
/// Class BaseManagerFrame
///////////////////////////////////////////////////////////////////////////////
class BaseManagerFrame : public wxFrame
{
private:
protected:
wxMenuBar* m_menubar;
wxMenu* file;
wxMenu* help;
wxSplitterWindow* m_treeSplitter;
wxPanel* m_treePanel;
wxDataViewCtrl* m_providerDV;
wxPanel* m_replayPanel;
wxSplitterWindow* m_splitter;
wxPanel* m_replayListPanel;
wxDataViewCtrl* m_replayDV;
wxPanel* m_goalPanel;
wxSplitterWindow* m_splitter3;
wxPanel* m_panel5;
wxListCtrl* m_goalListCtrl;
wxPanel* m_panel6;
wxListCtrl* m_statsListCtrl;
wxStatusBar* m_statusBar;
wxToolBar* m_toolBar;
wxToolBarToolBase* m_newCategoryTool;
wxToolBarToolBase* m_exportTool;
wxToolBarToolBase* m_uploadTool;
// Virtual event handlers, overide them in your derived class
virtual void OnFrameClose( wxCloseEvent& event ) { event.Skip(); }
virtual void OnNewCategoryClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnExportClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnUploadClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnDeleteClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnAutoUploadClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnQuitClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnAboutClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnProviderSelectionChanged( wxDataViewEvent& event ) { event.Skip(); }
virtual void OnProviderSizeChanged( wxSizeEvent& event ) { event.Skip(); }
virtual void OnReplaySelectionChanged( wxDataViewEvent& event ) { event.Skip(); }
virtual void OnStatusBarDoubleClicked( wxMouseEvent& event ) { event.Skip(); }
public:
BaseManagerFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 450,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL, const wxString& name = wxT("MainWindow") );
~BaseManagerFrame();
void m_treeSplitterOnIdle( wxIdleEvent& )
{
m_treeSplitter->SetSashPosition( 0 );
m_treeSplitter->Disconnect( wxEVT_IDLE, wxIdleEventHandler( BaseManagerFrame::m_treeSplitterOnIdle ), NULL, this );
}
void m_splitterOnIdle( wxIdleEvent& )
{
m_splitter->SetSashPosition( 0 );
m_splitter->Disconnect( wxEVT_IDLE, wxIdleEventHandler( BaseManagerFrame::m_splitterOnIdle ), NULL, this );
}
void m_splitter3OnIdle( wxIdleEvent& )
{
m_splitter3->SetSashPosition( 0 );
m_splitter3->Disconnect( wxEVT_IDLE, wxIdleEventHandler( BaseManagerFrame::m_splitter3OnIdle ), NULL, this );
}
};
#endif //__RLRMFRAMES_H__