• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/contrib/samples/foldbar/foldpanelbar/
1/////////////////////////////////////////////////////////////////////////////
2// Name:        foldtestpanel.h
3// Purpose:
4// Author:      Jorgen Bodde
5// Modified by: ABX - 19/12/2004 : possibility of horizontal orientation
6//                               : wxWidgets coding standards
7// Created:     18/06/2004
8// RCS-ID:      $Id: foldtestpanel.h 35650 2005-09-23 12:56:45Z MR $
9// Copyright:   (c) Jorgen Bodde
10// Licence:     wxWindows licence
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef _FOLDTESTPANEL_H_
14#define _FOLDTESTPANEL_H_
15
16/*!
17 * Includes
18 */
19
20#include "wx/foldbar/foldpanelbar.h"
21
22////@begin includes
23////@end includes
24
25/*!
26 * Forward declarations
27 */
28
29////@begin forward declarations
30class wxBoxSizer;
31////@end forward declarations
32
33/*!
34 * Control identifiers
35 */
36
37////@begin control identifiers
38#define ID_TESTPANEL 10000
39#define SYMBOL_FOLDTESTPANEL_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
40#define SYMBOL_FOLDTESTPANEL_TITLE _("FoldTestPanel")
41#define SYMBOL_FOLDTESTPANEL_IDNAME ID_TESTPANEL
42#define SYMBOL_FOLDTESTPANEL_SIZE wxSize(400, 300)
43#define SYMBOL_FOLDTESTPANEL_POSITION wxDefaultPosition
44#define ID_PANEL 10002
45#define ID_CHOICE 10003
46#define ID_TEXTCTRL 10016
47#define ID_RADIOBUTTON 10004
48#define ID_RADIOBUTTON1 10005
49////@end control identifiers
50
51/*!
52 * Compatibility
53 */
54
55#ifndef wxCLOSE_BOX
56#define wxCLOSE_BOX 0x1000
57#endif
58#ifndef wxFIXED_MINSIZE
59#define wxFIXED_MINSIZE 0
60#endif
61
62/*!
63 * FoldTestPanel class declaration
64 */
65
66class FoldTestPanel: public wxPanel
67{
68    DECLARE_CLASS( FoldTestPanel )
69    DECLARE_EVENT_TABLE()
70
71private:
72    wxImageList *m_images;
73    wxRect m_oldsize;
74
75    void OnCaptionPanel(wxCaptionBarEvent &event);
76
77public:
78    /// Constructors
79    FoldTestPanel( );
80    FoldTestPanel( wxWindow* parent, wxWindowID id = SYMBOL_FOLDTESTPANEL_IDNAME, const wxString& caption = SYMBOL_FOLDTESTPANEL_TITLE, const wxPoint& pos = SYMBOL_FOLDTESTPANEL_POSITION, const wxSize& size = SYMBOL_FOLDTESTPANEL_SIZE, long style = SYMBOL_FOLDTESTPANEL_STYLE );
81
82    /// Creation
83    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_FOLDTESTPANEL_IDNAME, const wxString& caption = SYMBOL_FOLDTESTPANEL_TITLE, const wxPoint& pos = SYMBOL_FOLDTESTPANEL_POSITION, const wxSize& size = SYMBOL_FOLDTESTPANEL_SIZE, long style = SYMBOL_FOLDTESTPANEL_STYLE );
84
85    /// Creates the controls and sizers
86    void CreateControls();
87
88////@begin FoldTestPanel event handler declarations
89
90////@end FoldTestPanel event handler declarations
91
92////@begin FoldTestPanel member function declarations
93
94
95    /// Retrieves bitmap resources
96    wxBitmap GetBitmapResource( const wxString& name );
97
98    /// Retrieves icon resources
99    wxIcon GetIconResource( const wxString& name );
100////@end FoldTestPanel member function declarations
101
102    /// Should we show tooltips?
103    static bool ShowToolTips();
104
105////@begin FoldTestPanel member variables
106    wxBoxSizer* blaat;
107////@end FoldTestPanel member variables
108};
109
110#endif
111    // _FOLDTESTPANEL_H_
112