]> git.saurik.com Git - wxWidgets.git/blame - include/wx/qt/button.h
1. wxMSW::wxNotebook::SetPageSize() and SetPadding() added
[wxWidgets.git] / include / wx / qt / button.h
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.h
01b2eeec
KB
3// Purpose: wxButton class
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
01b2eeec
KB
12#ifndef _WX_BUTTON_H_
13#define _WX_BUTTON_H_
7c78e7c7
RR
14
15#ifdef __GNUG__
01b2eeec 16#pragma interface "button.h"
7c78e7c7
RR
17#endif
18
7c78e7c7 19#include "wx/control.h"
01b2eeec 20#include "wx/gdicmn.h"
7c78e7c7 21
01b2eeec 22WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
7c78e7c7 23
01b2eeec
KB
24// Pushbutton
25class WXDLLEXPORT wxButton: public wxControl
7c78e7c7
RR
26{
27 DECLARE_DYNAMIC_CLASS(wxButton)
01b2eeec
KB
28 public:
29 inline wxButton() {}
30 inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize, long style = 0,
33 const wxValidator& validator = wxDefaultValidator,
34 const wxString& name = wxButtonNameStr)
35 {
36 Create(parent, id, label, pos, size, style, validator, name);
37 }
38
39 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize, long style = 0,
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxButtonNameStr);
44
45 virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
46 virtual void SetDefault();
47 virtual void SetLabel(const wxString& label);
48 virtual wxString GetLabel() const ;
49 virtual void Command(wxCommandEvent& event);
7c78e7c7
RR
50};
51
01b2eeec
KB
52#endif
53 // _WX_BUTTON_H_