]> git.saurik.com Git - wxWidgets.git/blame - src/qt/button.cpp
If, in a single-selection listctrl, a focused item is selected, and the
[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 18IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
7c78e7c7 19
01b2eeec 20// Button
7c78e7c7 21
01b2eeec
KB
22bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
23 const wxPoint& pos,
24 const wxSize& size, long style,
25 const wxValidator& validator,
26 const wxString& name)
27{
28 SetName(name);
29 SetValidator(validator);
30 m_windowStyle = style;
7c78e7c7 31
01b2eeec 32 parent->AddChild((wxButton *)this);
7c78e7c7 33
01b2eeec
KB
34 if (id == -1)
35 m_windowId = NewControlId();
36 else
37 m_windowId = id;
7c78e7c7 38
01b2eeec 39 // TODO: create button
7c78e7c7 40
01b2eeec
KB
41 return FALSE;
42}
43
44void wxButton::SetSize(int x, int y, int width, int height, int sizeFlags)
7c78e7c7 45{
01b2eeec
KB
46 // TODO
47}
7c78e7c7 48
01b2eeec 49void wxButton::SetDefault()
7c78e7c7 50{
01b2eeec
KB
51 wxWindow *parent = (wxWindow *)GetParent();
52 if (parent)
53 parent->SetDefaultItem(this);
54
55 // TODO: make button the default
56}
7c78e7c7 57
01b2eeec 58wxString wxButton::GetLabel() const
7c78e7c7 59{
01b2eeec
KB
60 // TODO
61 return wxString("");
62}
7c78e7c7 63
01b2eeec 64void wxButton::SetLabel(const wxString& label)
7c78e7c7 65{
01b2eeec
KB
66 // TODO
67}
7c78e7c7 68
01b2eeec 69void wxButton::Command (wxCommandEvent & event)
7c78e7c7 70{
01b2eeec
KB
71 ProcessCommand (event);
72}
73