]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/carbon/private/mactext.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / osx / carbon / private / mactext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/carbon/private/mactext.h
3 // Purpose: private wxMacTextControl base class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 03/02/99
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_MAC_PRIVATE_MACTEXT_H_
12 #define _WX_MAC_PRIVATE_MACTEXT_H_
13
14 #include "wx/osx/private.h"
15
16 // implementation exposed, so that search control can pull it
17
18 class wxMacUnicodeTextControl : public wxMacControl, public wxTextWidgetImpl
19 {
20 public :
21 wxMacUnicodeTextControl( wxTextCtrl *wxPeer ) ;
22 wxMacUnicodeTextControl( wxTextCtrl *wxPeer,
23 const wxString& str,
24 const wxPoint& pos,
25 const wxSize& size, long style ) ;
26 virtual ~wxMacUnicodeTextControl();
27
28 virtual bool CanFocus() const
29 { return true; }
30 virtual void VisibilityChanged(bool shown);
31 virtual wxString GetStringValue() const ;
32 virtual void SetStringValue( const wxString &str) ;
33 virtual void Copy();
34 virtual void Cut();
35 virtual void Paste();
36 virtual bool CanPaste() const;
37 virtual void SetEditable(bool editable) ;
38 virtual void GetSelection( long* from, long* to) const ;
39 virtual void SetSelection( long from , long to ) ;
40 virtual void WriteText(const wxString& str) ;
41
42 protected :
43 void InstallEventHandlers();
44
45 // contains the tag for the content (is different for password and non-password controls)
46 OSType m_valueTag ;
47 WXEVENTHANDLERREF m_macTextCtrlEventHandler ;
48 public :
49 ControlEditTextSelectionRec m_selection ;
50 };
51
52 #endif // _WX_MAC_PRIVATE_MACTEXT_H_