]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/textentry.h
Check axis number in the received joystick messages.
[wxWidgets.git] / include / wx / motif / textentry.h
CommitLineData
978c6e41
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/motif/textentry.h
3// Purpose: wxMotif-specific wxTextEntry implementation
4// Author: Vadim Zeitlin
5// Created: 2007-11-05
6// RCS-ID: $Id$
7// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MOTIF_TEXTENTRY_H_
12#define _WX_MOTIF_TEXTENTRY_H_
13
14// ----------------------------------------------------------------------------
15// wxTextEntry wraps XmTextXXX() methods suitable for single-line controls
16// ----------------------------------------------------------------------------
17
18class WXDLLIMPEXP_CORE wxTextEntry : public wxTextEntryBase
19{
20public:
21 wxTextEntry() { }
22
23 // implement wxTextEntryBase pure virtual methods
24 virtual void WriteText(const wxString& text);
978c6e41
VZ
25 virtual void Replace(long from, long to, const wxString& value);
26 virtual void Remove(long from, long to);
27
28 virtual void Copy();
29 virtual void Cut();
30 virtual void Paste();
31
32 virtual void Undo();
33 virtual void Redo();
34 virtual bool CanUndo() const;
35 virtual bool CanRedo() const;
36
37 virtual void SetInsertionPoint(long pos);
38 virtual long GetInsertionPoint() const;
39 virtual long GetLastPosition() const;
40
41 virtual void SetSelection(long from, long to);
42 virtual void GetSelection(long *from, long *to) const;
43
44 virtual bool IsEditable() const;
45 virtual void SetEditable(bool editable);
46
47protected:
135b23b2
VZ
48 virtual wxString DoGetValue() const;
49
978c6e41
VZ
50 // translate wx text position (which may be -1 meaning "last one") to a
51 // valid Motif text position
52 long GetMotifPos(long pos) const;
53
54private:
55 // implement this to return the associated xmTextWidgetClass widget
56 virtual WXWidget GetTextWidget() const = 0;
57};
58
59#endif // _WX_MOTIF_TEXTENTRY_H_
60