~ubuntu-dev/wxwidgets2.6/upstream-debian

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
//-----------------------------------------------------------------------------
// Name:        myframe.h
// Purpose:     XML resources sample: A derived frame, called MyFrame
// Author:      Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
// RCS-ID:      $Id: myframe.h,v 1.5 2005/07/13 18:04:55 VZ Exp $
// Copyright:   (c) Robert O'Connor and Vaclav Slavik
// Licence:     wxWindows licence
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
// Begin single inclusion of this .h file condition
//-----------------------------------------------------------------------------

#ifndef _MYFRAME_H_
#define _MYFRAME_H_

//-----------------------------------------------------------------------------
// GCC interface
//-----------------------------------------------------------------------------

#if defined(__GNUG__) && !defined(__APPLE__)
    #pragma interface "myframe.h"
#endif

//-----------------------------------------------------------------------------
// Headers
//-----------------------------------------------------------------------------

#include "wx/frame.h"

//-----------------------------------------------------------------------------
// Class definition: MyFrame
//-----------------------------------------------------------------------------

// Define a new frame type: this is going to be our main frame
class MyFrame : public wxFrame
{

public:

    // Constructor.
    MyFrame( wxWindow* parent=(wxWindow *)NULL);

private:

    // Event handlers (these functions should _not_ be virtual)
    void OnUnloadResourceMenuCommand(wxCommandEvent& event);
    void OnReloadResourceMenuCommand(wxCommandEvent& event);
    void OnExitToolOrMenuCommand(wxCommandEvent& event);
    void OnAboutToolOrMenuCommand(wxCommandEvent& event);
    void OnNonDerivedDialogToolOrMenuCommand(wxCommandEvent& event);
    void OnDerivedDialogToolOrMenuCommand(wxCommandEvent& event);
    void OnControlsToolOrMenuCommand(wxCommandEvent& event);
    void OnUncenteredToolOrMenuCommand(wxCommandEvent& event);
    void OnCustomClassToolOrMenuCommand(wxCommandEvent& event);
    void OnPlatformPropertyToolOrMenuCommand(wxCommandEvent& event);
    void OnArtProviderToolOrMenuCommand(wxCommandEvent& event);
    void OnVariableExpansionToolOrMenuCommand(wxCommandEvent& event);

    // Any class wishing to process wxWidgets events must use this macro
    DECLARE_EVENT_TABLE()

};

//-----------------------------------------------------------------------------
// End single inclusion of this .h file condition
//-----------------------------------------------------------------------------

#endif  // _MYFRAME_H_