]> git.saurik.com Git - wxWidgets.git/blame - src/qt/button.cpp
added default ctor for wxDirDialog
[wxWidgets.git] / src / qt / button.cpp
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.cpp
01b2eeec
KB
3// Purpose: wxButton
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
12#ifdef __GNUG__
13#pragma implementation "button.h"
14#endif
15
16#include "wx/button.h"
17
01b2eeec
KB
18#if !USE_SHARED_LIBRARY
19IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
20#endif
7c78e7c7 21
01b2eeec 22// Button
7c78e7c7 23
01b2eeec
KB
24bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
25 const wxPoint& pos,
26 const wxSize& size, long style,
27 const wxValidator& validator,
28 const wxString& name)
29{
30 SetName(name);
31 SetValidator(validator);
32 m_windowStyle = style;
7c78e7c7 33
01b2eeec 34 parent->AddChild((wxButton *)this);
7c78e7c7 35
01b2eeec
KB
36 if (id == -1)
37 m_windowId = NewControlId();
38 else
39 m_windowId = id;
7c78e7c7 40
01b2eeec 41 // TODO: create button
7c78e7c7 42
01b2eeec
KB
43 return FALSE;
44}
45
46void wxButton::SetSize(int x, int y, int width, int height, int sizeFlags)
7c78e7c7 47{
01b2eeec
KB
48 // TODO
49}
7c78e7c7 50
01b2eeec 51void wxButton::SetDefault()
7c78e7c7 52{
01b2eeec
KB
53 wxWindow *parent = (wxWindow *)GetParent();
54 if (parent)
55 parent->SetDefaultItem(this);
56
57 // TODO: make button the default
58}
7c78e7c7 59
01b2eeec 60wxString wxButton::GetLabel() const
7c78e7c7 61{
01b2eeec
KB
62 // TODO
63 return wxString("");
64}
7c78e7c7 65
01b2eeec 66void wxButton::SetLabel(const wxString& label)
7c78e7c7 67{
01b2eeec
KB
68 // TODO
69}
7c78e7c7 70
01b2eeec 71void wxButton::Command (wxCommandEvent & event)
7c78e7c7 72{
01b2eeec
KB
73 ProcessCommand (event);
74}
75