1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: wx/qt/textentry.h 3 // Author: Peter Most, Mariano Reingart 4 // Copyright: (c) 2010 wxWidgets dev team 5 // Licence: wxWindows licence 6 ///////////////////////////////////////////////////////////////////////////// 7 8 #ifndef _WX_QT_TEXTENTRY_H_ 9 #define _WX_QT_TEXTENTRY_H_ 10 11 class WXDLLIMPEXP_CORE wxTextEntry : public wxTextEntryBase 12 { 13 public: 14 wxTextEntry(); 15 16 virtual void WriteText(const wxString& text) wxOVERRIDE; 17 18 virtual void Remove(long from, long to) wxOVERRIDE; 19 20 virtual void Copy() wxOVERRIDE; 21 virtual void Cut() wxOVERRIDE; 22 virtual void Paste() wxOVERRIDE; 23 24 virtual void Undo() wxOVERRIDE; 25 virtual void Redo() wxOVERRIDE; 26 virtual bool CanUndo() const wxOVERRIDE; 27 virtual bool CanRedo() const wxOVERRIDE; 28 29 virtual void SetInsertionPoint(long pos) wxOVERRIDE; 30 virtual long GetInsertionPoint() const wxOVERRIDE; 31 virtual long GetLastPosition() const wxOVERRIDE; 32 33 virtual void SetSelection(long from, long to) wxOVERRIDE; 34 virtual void GetSelection(long *from, long *to) const wxOVERRIDE; 35 36 virtual bool IsEditable() const wxOVERRIDE; 37 virtual void SetEditable(bool editable) wxOVERRIDE; 38 39 protected: 40 virtual wxString DoGetValue() const wxOVERRIDE; 41 virtual void DoSetValue(const wxString& value, int flags=0) wxOVERRIDE; 42 43 virtual wxWindow *GetEditableWindow() wxOVERRIDE; 44 }; 45 46 #endif // _WX_QT_TEXTENTRY_H_ 47