X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b6dbb09746f8f5ee0549a2ff39ae0ac4c725898..0a9f252212bdc4f9eea745a04632748d5544c042:/include/wx/motif/textctrl.h?ds=sidebyside diff --git a/include/wx/motif/textctrl.h b/include/wx/motif/textctrl.h index 6cc2b83033..0b8f009308 100644 --- a/include/wx/motif/textctrl.h +++ b/include/wx/motif/textctrl.h @@ -18,7 +18,7 @@ #include "wx/control.h" -#if USE_IOSTREAMH +#if wxUSE_IOSTREAMH #include #else #include @@ -78,7 +78,6 @@ public: // operations // ---------- - virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); // Clipboard operations virtual void Copy(); @@ -111,6 +110,7 @@ public: virtual bool LoadFile(const wxString& file); virtual bool SaveFile(const wxString& file); virtual void WriteText(const wxString& text); + virtual void AppendText(const wxString& text); virtual void DiscardEdits(); virtual bool IsModified() const; @@ -122,16 +122,27 @@ public: // callbacks // --------- void OnDropFiles(wxDropFilesEvent& event); -// void OnChar(wxKeyEvent& event); // Process 'enter' if required + void OnChar(wxKeyEvent& event); // void OnEraseBackground(wxEraseEvent& event); - // Implementation - // -------------- virtual void Command(wxCommandEvent& event); +// Implementation + virtual void ChangeFont(bool keepOriginalSize = TRUE); + virtual void ChangeBackgroundColour(); + virtual void ChangeForegroundColour(); + inline void SetModified(bool mod) { m_modified = mod; } + virtual WXWidget GetTopWidget() const; + protected: wxString m_fileName; - +public: + // Motif-specific + void* m_tempCallbackStruct; + bool m_modified; + wxString m_value; // Required for password text controls + bool m_processedDefault; // Did we call wxTextCtrl::OnChar? + // If so, generate a command event. DECLARE_EVENT_TABLE() };