-
Notifications
You must be signed in to change notification settings - Fork 0
/
LineEditor.h
119 lines (102 loc) · 2.8 KB
/
LineEditor.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
#ifndef LINEEDITOR_H
#define LINEEDITOR_H
#include <wx/imaglist.h>
//(*Headers(LineEditor)
#include <wx/listctrl.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/panel.h>
#include <wx/choice.h>
#include <wx/button.h>
#include <wx/dialog.h>
#include "TimeTablePanel.h"
//*)
#include "lines.h"
enum LE_RC
{
LE_RC_OK,
LE_RC_CANCEL
};
int wxCALLBACK StopCompareFuncASC(wxIntPtr item1, wxIntPtr item2, wxIntPtr WXUNUSED(sortData));
class LineEditor: public wxDialog
{
public:
LineEditor(Line& line, wxWindow* parent, wxImageList* imageList = 0, wxWindowID id=wxID_ANY);
virtual ~LineEditor();
//(*Declarations(LineEditor)
wxButton* btEditStop;
wxButton* btOK;
wxButton* btRemoveStop;
wxButton* btAddStation;
wxPanel* Panel5;
wxTextCtrl* txtNumber;
wxListView* lvStations;
TimeTablePanel* panTimetable;
wxStaticText* StaticText2;
wxPanel* Panel4;
wxButton* btStopAtStation;
wxPanel* Panel11;
wxPanel* Panel9;
wxPanel* Panel8;
wxPanel* Panel1;
wxStaticText* StaticText1;
wxPanel* panMiddle;
wxChoice* chIcon;
wxButton* btCancel;
wxPanel* Panel7;
wxListView* lvStops;
wxTextCtrl* txtName;
wxPanel* Panel2;
wxPanel* Panel10;
wxButton* btEditStation;
//*)
protected:
//(*Identifiers(LineEditor)
static const long ID_CHOICE1;
static const long ID_STATICTEXT1;
static const long ID_TEXTCTRL1;
static const long ID_STATICTEXT2;
static const long ID_TEXTCTRL2;
static const long ID_PANEL5;
static const long ID_PANEL2;
static const long ID_CUSTOM1;
static const long ID_LISTVIEW1;
static const long ID_BUTTON7;
static const long ID_BUTTON6;
static const long ID_PANEL10;
static const long ID_PANEL8;
static const long ID_LISTVIEW2;
static const long ID_BUTTON5;
static const long ID_BUTTON3;
static const long ID_BUTTON4;
static const long ID_PANEL11;
static const long ID_PANEL9;
static const long ID_PANEL7;
static const long ID_PANEL3;
static const long ID_BUTTON1;
static const long ID_BUTTON2;
static const long ID_PANEL4;
static const long ID_PANEL1;
//*)
private:
Line& _line;
wxImageList* _imageList;
void apply();
//(*Handlers(LineEditor)
void OnListView1BeginDrag(wxListEvent& event);
void OnbtOKClick(wxCommandEvent& event);
void OnbtCancelClick(wxCommandEvent& event);
void OnbtStopAtStationClick(wxCommandEvent& event);
void OnbtAddStationClick(wxCommandEvent& event);
void OnbtRemoveStopClick(wxCommandEvent& event);
void OnlvStopsEndLabelEdit(wxListEvent& event);
void OnlvStationsItemSelect(wxListEvent& event);
void OnlvStopsItemSelect(wxListEvent& event);
void OnlvStationsBeginLabelEdit(wxListEvent& event);
void OnlvStopsBeginLabelEdit(wxListEvent& event);
void OnbtEditStopClick(wxCommandEvent& event);
//*)
DECLARE_EVENT_TABLE()
};
#endif