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

« back to all changes in this revision

Viewing changes to samples/xrc/derivdlg.h

  • Committer: Daniel T Chen
  • Date: 2006-06-26 10:15:11 UTC
  • Revision ID: crimsun@ubuntu.com-20060626101511-a4436cec4c6d9b35
ImportĀ DebianĀ 2.6.3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-----------------------------------------------------------------------------
 
2
// Name:        xmldemo.cpp
 
3
// Purpose:     XML resources sample: A derived dialog
 
4
// Author:      Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
 
5
// RCS-ID:      $Id: derivdlg.h,v 1.6 2004/12/06 10:28:47 VS Exp $
 
6
// Copyright:   (c) Robert O'Connor and Vaclav Slavik
 
7
// Licence:     wxWindows licence
 
8
//-----------------------------------------------------------------------------
 
9
 
 
10
//-----------------------------------------------------------------------------
 
11
// Begin single inclusion of this .h file condition
 
12
//-----------------------------------------------------------------------------
 
13
 
 
14
#ifndef _DERIVDLG_H_
 
15
#define _DERIVDLG_H_
 
16
 
 
17
//-----------------------------------------------------------------------------
 
18
// GCC interface
 
19
//-----------------------------------------------------------------------------
 
20
 
 
21
#if defined(__GNUG__) && !defined(__APPLE__)
 
22
    #pragma interface "derivdlg.h"
 
23
#endif
 
24
 
 
25
//-----------------------------------------------------------------------------
 
26
// Headers
 
27
//-----------------------------------------------------------------------------
 
28
 
 
29
#include "wx/dialog.h"
 
30
 
 
31
//-----------------------------------------------------------------------------
 
32
// Class definition: PreferencesDialog
 
33
//-----------------------------------------------------------------------------
 
34
 
 
35
// A derived dialog.
 
36
class PreferencesDialog : public wxDialog
 
37
{
 
38
 
 
39
public:
 
40
 
 
41
    // Constructor.
 
42
    /*
 
43
       \param parent The parent window. Simple constructor.
 
44
     */
 
45
    PreferencesDialog( wxWindow* parent );
 
46
 
 
47
    // Destructor.
 
48
    ~PreferencesDialog(){};
 
49
 
 
50
private:
 
51
 
 
52
    // Stuff to do when "My Button" gets clicked
 
53
    void OnMyButtonClicked( wxCommandEvent &event );
 
54
 
 
55
    // Stuff to do when a "My Checkbox" gets updated
 
56
    // (drawn, or it changes its value)
 
57
    void OnUpdateUIMyCheckbox( wxUpdateUIEvent &event );
 
58
 
 
59
    // Override base class functions of a wxDialog.
 
60
    void OnOK( wxCommandEvent &event );
 
61
 
 
62
    // Any class wishing to process wxWidgets events must use this macro
 
63
    DECLARE_EVENT_TABLE()
 
64
 
 
65
};
 
66
 
 
67
//-----------------------------------------------------------------------------
 
68
// End single inclusion of this .h file condition
 
69
//-----------------------------------------------------------------------------
 
70
 
 
71
#endif  //_DERIVDLG_H_