-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGUI.h
137 lines (108 loc) · 4.38 KB
/
GUI.h
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
// http://www.wxformbuilder.org/
///////////////////////////////////////////////////////////////////////////
#pragma once
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/choice.h>
#include <wx/sizer.h>
#include <wx/button.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/statline.h>
#include <wx/textctrl.h>
#include <wx/statbox.h>
#include <wx/frame.h>
#include <wx/grid.h>
///////////////////////////////////////////////////////////////////////////
#include <vector>
///////////////////////////////////////////////////////////////////////////////
/// Class main_window
///////////////////////////////////////////////////////////////////////////////
class main_window : public wxFrame
{
private:
protected:
wxStaticText* line_txt;
wxChoice* line_box;
wxButton* timetable_but;
wxStaticLine* m_staticline1;
wxStaticText* beg_txt;
wxChoice* beg_box;
wxStaticText* end_txt;
wxChoice* end_box;
wxButton* route_but;
wxStaticLine* m_staticline2;
wxStaticText* bus_txt;
wxChoice* bus_box;
wxButton* bus_but;
wxStaticLine* m_staticline3;
wxStaticText* login_txt;
wxTextCtrl* login_box;
wxStaticText* passwd_txt;
wxTextCtrl* passwd_box;
wxButton* login_but;
wxChoice* table_print_box;
wxButton* print_but;
wxButton* insert_but;
// Virtual event handlers, override them in your derived class
virtual void mainOnClose( wxCloseEvent& event ) { event.Skip(); }
virtual void line_boxOnChoice( wxCommandEvent& event ) { event.Skip(); }
virtual void timetable_butOnButtonClick( wxCommandEvent& event ) { event.Skip(); }
virtual void beg_boxOnChoice( wxCommandEvent& event ) { event.Skip(); }
virtual void end_boxOnChoice( wxCommandEvent& event ) { event.Skip(); }
virtual void route_butOnButtonClick( wxCommandEvent& event ) { event.Skip(); }
virtual void bus_boxOnChoice( wxCommandEvent& event ) { event.Skip(); }
virtual void bus_butOnButtonClick( wxCommandEvent& event ) { event.Skip(); }
virtual void login_boxOnTextEnter( wxCommandEvent& event ) { event.Skip(); }
virtual void passwd_boxOnTextEnter( wxCommandEvent& event ) { event.Skip(); }
virtual void login_butOnButtonClick( wxCommandEvent& event ) { event.Skip(); }
virtual void table_print_boxOnChoice( wxCommandEvent& event ) { event.Skip(); }
virtual void print_butOnButtonClick( wxCommandEvent& event ) { event.Skip(); }
virtual void table_insert_boxOnChoice( wxCommandEvent& event ) { event.Skip(); }
virtual void insert_butOnButtonClick( wxCommandEvent& event ) { event.Skip(); }
public:
wxChoice* table_insert_box;
main_window( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Autobusy"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 600,600 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
~main_window();
protected:
wxArrayString line_boxChoices;
wxArrayString bus_stop_boxChoices;
wxArrayString bus_boxChoices;
std::vector<int> bus_stop_ids;
};
///////////////////////////////////////////////////////////////////////////////
/// Class printout
///////////////////////////////////////////////////////////////////////////////
class printout : public wxFrame
{
private:
public:
wxGrid* printed_table;
printout( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _(L"Przegląd"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 700,400 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
~printout();
};
///////////////////////////////////////////////////////////////////////////////
/// Class Insertion
///////////////////////////////////////////////////////////////////////////////
class Insertion : public wxFrame
{
private:
protected:
public:
Insertion( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Wprowadzanie"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 700,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
virtual void save_ins_butOnButtonClick( wxCommandEvent& event ) { event.Skip(); }
~Insertion();
wxFrame* par;
wxGrid* to_insert;
wxButton* save_ins_but;
};