Skip to content

Latest commit

 

History

History
executable file
·
136 lines (130 loc) · 3.67 KB

testfile3.txt

File metadata and controls

executable file
·
136 lines (130 loc) · 3.67 KB
 
Jun 16, 2003
Jun 16, 2003
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
/* MainWindow.h - Primary application window
*
*/
#ifndef _MAINWINDOW_H_
#define _MAINWINDOW_H_
#include "wx/wx.h"
#include "Menu.h"
#include "Toolbar.h"
#include "Application.h"
#include "Test.h"
namespace MojoMerge
{
class MainWindow : public wxSomeOtherCrazyClass
{
public:
MainWindow();
private:
DECLARE_EVENT_TABLE()
// This comment added for some reason...
/* Menu Event Handlers
* These functions handle the associated menu events. They will
* simply call the Application command functions assoicated with
* the event. These are implicitly inline to avoid the overhead
* of calling several functions unnecessarily.
* Parameters
* event
* Event object passed when event is generated
* Returns
* none
*/
void OnNewComparison(wxCommandEvent& event)
{
Application::CmdNewComparison();
}
void OnSaveFirstFile(wxCommandEvent& event)
{
Application::CmdSaveFirstFile();
}
void OnSaveSecondFile(wxCommandEvent& event)
{
Application::CmdSaveSecondFile();
}
void OnSaveThirdFile(wxCommandEvent& event)
{
Application::CmdSaveThirdFile();
}
void OnSaveFirstFileAs(wxCommandEvent& event)
{
Application::CmdSaveFirstFileAs();
}
void OnSaveSecondFileAs(wxCommandEvent& event)
{
Application::CmdSaveSecondFileAs();
}
void OnSaveThirdFileAs(wxCommandEvent& event)
{
Application::CmdSaveThirdFileAs();
}
void OnPrint(wxCommandEvent& event)
{
Application::CmdPrint();
}
void OnPrintPreview(wxCommandEvent& event)
{
Application::CmdPrintPreview();
}
void OnUndo(wxCommandEvent& event)
{
Application::CmdUndo();
}
void OnRedo(wxCommandEvent& event)
{
Application::CmdRedo();
}
void OnCut(wxCommandEvent& event)
{
Application::CmdCut();
}
void OnCopy(wxCommandEvent& event)
{
Application::CmdCopy();
}
void OnPaste(wxCommandEvent& event)
{
Application::CmdPaste();
}
void OnSelectAll(wxCommandEvent& event)
{
Application::CmdSelectAll();
}
void OnCompareFiles(wxCommandEvent& event)
{
Application::CmdCompareFiles();
}
void OnCompareFolders(wxCommandEvent& event)
{
Application::CmdCompareFolders();
}
void OnTwoWayComparison(wxCommandEvent& event)
{
Application::CmdTwoWayComparison();
}
void OnThreeWayComparison(wxCommandEvent& event)
{
Application::CmdThreeWayComparison();
}
void OnToolbar(wxCommandEvent& event)
{
Application::CmdToolbar();
}
void OnStatusbar(wxCommandEvent& event)
{
Application::CmdStatusbar();
}
void OnTestTwoWayDiff(wxCommandEvent& event)
{
// Test two-way diff and just remove the hunk list for now
delete Test::TestGNUDiff_TwoWay();
}
void OnTestThreeWayDiff(wxCommandEvent& event)
{
// Test three-way diff and just remove the hunk list for now
delete Test::TestGNUDiff_ThreeWay();
}
// Menu object contained in MainWindow
Menu *MyMenu;
Toolbar *MyToolbar;
};
}
#endif