2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: editlbox.h
|
2008-03-10 15:24:38 +00:00
|
|
|
// Purpose: interface of wxEditableListBox
|
2008-03-08 13:52:38 +00:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxEditableListBox
|
|
|
|
@wxheader{editlbox.h}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
An editable listbox is composite control that lets the
|
|
|
|
user easily enter, delete and reorder a list of strings.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@beginStyleTable
|
|
|
|
@style{wxEL_ALLOW_NEW}:
|
|
|
|
Allows the user to enter new strings.
|
|
|
|
@style{wxEL_ALLOW_EDIT}:
|
|
|
|
Allows the user to edit existing strings.
|
|
|
|
@style{wxEL_ALLOW_DELETE}:
|
|
|
|
Allows the user to delete existing strings.
|
|
|
|
@style{wxEL_NO_REORDER}:
|
|
|
|
Does not allow the user to reorder the strings.
|
|
|
|
@style{wxEL_DEFAULT_STYLE}:
|
|
|
|
wxEL_ALLOW_NEW|wxEL_ALLOW_EDIT|wxEL_ALLOW_DELETE
|
|
|
|
@endStyleTable
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxadv}
|
|
|
|
@category{FIXME}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-10 15:24:38 +00:00
|
|
|
@see wxListBox
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
class wxEditableListBox : public wxPanel
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Constructor, creating and showing a list box.
|
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
@param parent
|
2008-03-09 12:33:59 +00:00
|
|
|
Parent window. Must not be @NULL.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param id
|
2008-03-09 12:33:59 +00:00
|
|
|
Window identifier. The value wxID_ANY indicates a default value.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param label
|
2008-03-09 12:33:59 +00:00
|
|
|
The text shown just before the list control.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param pos
|
2008-03-09 12:33:59 +00:00
|
|
|
Window position.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param size
|
2008-03-09 12:33:59 +00:00
|
|
|
Window size. If wxDefaultSize is specified then the window is
|
|
|
|
sized
|
|
|
|
appropriately.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param style
|
2008-03-09 12:33:59 +00:00
|
|
|
Window style. See wxEditableListBox.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param name
|
2008-03-09 12:33:59 +00:00
|
|
|
Window name.
|
2008-03-08 13:52:38 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see Create()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
wxEditableListBox();
|
2008-03-08 14:43:31 +00:00
|
|
|
wxEditableListBox(wxWindow* parent, wxWindowID id,
|
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxEL_DEFAULT_STYLE,
|
|
|
|
const wxString& name = "editableListBox");
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
Destructor, destroying the list box.
|
|
|
|
*/
|
|
|
|
~wxEditableListBox();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Creates the editable listbox for two-step construction. See wxEditableListBox()
|
|
|
|
for further details.
|
|
|
|
*/
|
|
|
|
bool Create(wxWindow* parent, wxWindowID id,
|
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxEL_DEFAULT_STYLE,
|
|
|
|
const wxString& name = "editableListBox");
|
|
|
|
|
|
|
|
/**
|
|
|
|
Replaces current contents with given strings.
|
|
|
|
*/
|
|
|
|
void SetStrings(const wxArrayString& strings);
|
|
|
|
};
|
2008-03-10 15:24:38 +00:00
|
|
|
|