]>
Commit | Line | Data |
---|---|---|
5ebcf581 RR |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: styles.h | |
3 | // Author: Robert Roebling | |
4 | // Created: 04/07/02 | |
5 | ///////////////////////////////////////////////////////////////////////////// | |
6 | ||
7 | #ifndef __styles_H__ | |
8 | #define __styles_H__ | |
9 | ||
a1f9e3ec | 10 | #if defined(__GNUG__) && !defined(__APPLE__) |
5ebcf581 RR |
11 | #pragma interface "styles.cpp" |
12 | #endif | |
13 | ||
be5a51fb | 14 | // Include wxWidgets' headers |
5ebcf581 RR |
15 | |
16 | #ifndef WX_PRECOMP | |
17 | #include <wx/wx.h> | |
18 | #endif | |
19 | ||
20 | //---------------------------------------------------------------------------- | |
21 | // constants | |
22 | //---------------------------------------------------------------------------- | |
23 | ||
24 | #define ID_ABOUT 100 | |
25 | #define ID_QUIT 204 | |
26 | ||
27 | //---------------------------------------------------------------------------- | |
28 | // MyFrame | |
29 | //---------------------------------------------------------------------------- | |
30 | ||
31 | class MyFrame: public wxFrame | |
32 | { | |
33 | public: | |
34 | // constructors and destructors | |
35 | MyFrame( wxWindow *parent, wxWindowID id, const wxString &title, | |
36 | const wxPoint& pos = wxDefaultPosition, | |
37 | const wxSize& size = wxDefaultSize, | |
38 | long style = wxDEFAULT_FRAME_STYLE ); | |
39 | ||
40 | private: | |
41 | void CreateMyMenuBar(); | |
42 | ||
43 | private: | |
44 | void OnAbout( wxCommandEvent &event ); | |
45 | void OnQuit( wxCommandEvent &event ); | |
46 | ||
47 | void OnCloseWindow( wxCloseEvent &event ); | |
48 | ||
49 | private: | |
50 | DECLARE_EVENT_TABLE() | |
51 | }; | |
52 | ||
53 | //---------------------------------------------------------------------------- | |
54 | // MyApp | |
55 | //---------------------------------------------------------------------------- | |
56 | ||
57 | class MyApp: public wxApp | |
58 | { | |
59 | public: | |
60 | MyApp(); | |
61 | ||
62 | virtual bool OnInit(); | |
63 | virtual int OnExit(); | |
64 | }; | |
65 | ||
66 | #endif |