ToolMap
Loading...
Searching...
No Matches
wxflatbutton.h
1
/***************************************************************************
2
wxflatbutton.h
3
Creation of a flat button on every plateform
4
uses wxButton flat or wxToggleButton (on mac)
5
-------------------
6
copyright : (C) 2007 CREALP Lucien Schreiber
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
// comment doxygen
19
20
#ifndef WXFLATBUTTON_H
21
#define WXFLATBUTTON_H
22
23
// For compilers that support precompilation, includes "wx/wx.h".
24
#include <wx/wxprec.h>
25
26
// Include wxWidgets' headers
27
#ifndef WX_PRECOMP
28
#include <wx/wx.h>
29
#endif
30
31
#include <wx/tglbtn.h>
32
33
#define wxFLATBUTTON_STYLE wxBORDER_NONE
34
#define wxFLATBUTTON_SIZE wxSize(35, -1)
35
#define wxFLATBUTTON_TEXT_ADD _T("+")
36
#define wxFLATBUTTON_TEXT_REMOVE _T("-")
37
38
#if (__WXMAC__)
39
#define EVT_FLATBUTTON EVT_BUTTON
40
#define EVT_FLATBUTTON_CLICKED wxEVT_COMMAND_BUTTON_CLICKED
41
42
class
wxFlatButton
:
public
wxButton {
43
private
:
44
DECLARE_DYNAMIC_CLASS(
wxFlatButton
)
45
46
public
:
47
wxFlatButton
();
48
wxFlatButton
(wxWindow* parent, wxWindowID
id
,
const
wxString& label = wxEmptyString,
49
wxSize size = wxFLATBUTTON_SIZE);
50
~wxFlatButton
();
51
52
/*private:
53
void OnClickToggleButton(wxCommandEvent & event);
54
void InitwxFlatButton(wxWindowID id= wxID_ANY);
55
DECLARE_DYNAMIC_CLASS(wxFlatButton)*/
56
};
57
#else
58
#define EVT_FLATBUTTON EVT_BUTTON
59
#define EVT_FLATBUTTON_CLICKED wxEVT_COMMAND_BUTTON_CLICKED
60
61
class
wxFlatButton
:
public
wxButton {
62
private
:
63
DECLARE_DYNAMIC_CLASS(
wxFlatButton
)
64
// void InitwxFlatButton();
65
66
public
:
67
wxFlatButton
();
68
69
wxFlatButton
(wxWindow* parent, wxWindowID
id
,
const
wxString& label = wxEmptyString,
70
wxSize size = wxFLATBUTTON_SIZE);
71
72
~wxFlatButton
();
73
};
74
75
#endif
76
77
#endif
wxFlatButton
Definition
wxflatbutton.h:61
src
gui
wxflatbutton.h
Generated by
1.9.8