]> git.saurik.com Git - wxWidgets.git/blame - include/wx/qt/combobox.h
Rewrote wxNotebook, incl. PAGE_CHANGING event
[wxWidgets.git] / include / wx / qt / combobox.h
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: combobox.h
01b2eeec
KB
3// Purpose: wxComboBox 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_COMBOBOX_H_
13#define _WX_COMBOBOX_H_
7c78e7c7
RR
14
15#ifdef __GNUG__
16#pragma interface "combobox.h"
17#endif
18
01b2eeec 19#include "wx/choice.h"
7c78e7c7 20
01b2eeec
KB
21WXDLLEXPORT_DATA(extern const char*) wxComboBoxNameStr;
22WXDLLEXPORT_DATA(extern const char*) wxEmptyString;
7c78e7c7 23
01b2eeec
KB
24// Combobox item
25class WXDLLEXPORT wxComboBox: public wxChoice
7c78e7c7
RR
26{
27 DECLARE_DYNAMIC_CLASS(wxComboBox)
28
29 public:
01b2eeec 30 inline wxComboBox() {}
7c78e7c7
RR
31
32 inline wxComboBox(wxWindow *parent, wxWindowID id,
33 const wxString& value = wxEmptyString,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 int n = 0, const wxString choices[] = NULL,
37 long style = 0,
01b2eeec 38 const wxValidator& validator = wxDefaultValidator,
7c78e7c7
RR
39 const wxString& name = wxComboBoxNameStr)
40 {
01b2eeec 41 Create(parent, id, value, pos, size, n, choices, style, validator, name);
7c78e7c7
RR
42 }
43
44 bool Create(wxWindow *parent, wxWindowID id,
45 const wxString& value = wxEmptyString,
46 const wxPoint& pos = wxDefaultPosition,
47 const wxSize& size = wxDefaultSize,
48 int n = 0, const wxString choices[] = NULL,
49 long style = 0,
01b2eeec 50 const wxValidator& validator = wxDefaultValidator,
7c78e7c7
RR
51 const wxString& name = wxComboBoxNameStr);
52
01b2eeec
KB
53 // List functions: see wxChoice
54
7c78e7c7 55 // Text field functions
01b2eeec
KB
56 virtual wxString GetValue() const ;
57 virtual void SetValue(const wxString& value);
7c78e7c7
RR
58
59 // Clipboard operations
01b2eeec
KB
60 virtual void Copy();
61 virtual void Cut();
62 virtual void Paste();
63 virtual void SetInsertionPoint(long pos);
64 virtual void SetInsertionPointEnd();
65 virtual long GetInsertionPoint() const ;
66 virtual long GetLastPosition() const ;
67 virtual void Replace(long from, long to, const wxString& value);
68 virtual void Remove(long from, long to);
69 virtual void SetSelection(int n)
70 {
71 wxChoice::SetSelection(n);
72 }
73 virtual void SetSelection(long from, long to);
74 virtual void SetEditable(bool editable);
7c78e7c7
RR
75};
76
01b2eeec
KB
77#endif
78 // _WX_COMBOBOX_H_