X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee2ec18e88701d8f0709009616584153ca85d7a7..8946ede10c2702c7acbb194fe8bd2793d7fb8358:/src/palmos/textctrl.cpp diff --git a/src/palmos/textctrl.cpp b/src/palmos/textctrl.cpp index e925b130c6..febb66a683 100644 --- a/src/palmos/textctrl.cpp +++ b/src/palmos/textctrl.cpp @@ -45,9 +45,6 @@ #include "wx/textfile.h" -#include "wx/palmos/private.h" -#include "wx/palmos/winundef.h" - #include #if wxUSE_RICHEDIT @@ -213,11 +210,6 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, return false; } -WXDWORD wxTextCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const -{ - return 0; -} - // ---------------------------------------------------------------------------- // set/get the controls text // ---------------------------------------------------------------------------- @@ -225,7 +217,12 @@ WXDWORD wxTextCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const wxString wxTextCtrl::GetValue() const { wxString res; + return res; +} +wxString wxTextCtrl::GetRange(long from, long to) const +{ + wxString res; return res; } @@ -237,7 +234,7 @@ void wxTextCtrl::WriteText(const wxString& value) { } -void wxTextCtrl::DoWriteText(const wxString& value, bool selectionOnly) +void wxTextCtrl::DoWriteText(const wxString& text, int flags) { } @@ -265,11 +262,6 @@ void wxTextCtrl::Paste() { } -bool wxTextCtrl::HasSelection() const -{ - return false; -} - bool wxTextCtrl::CanCopy() const { return false; @@ -330,7 +322,7 @@ void wxTextCtrl::SetSelection(long from, long to) { } -void wxTextCtrl::DoSetSelection(long from, long to, bool scrollCaret) +void wxTextCtrl::DoSetSelection(long from, long to, int flags) { } @@ -388,7 +380,7 @@ bool wxTextCtrl::PositionToXY(long pos, long *x, long *y) const } wxTextCtrlHitTestResult -wxTextCtrl::HitTest(const wxPoint& pt, wxTextCoord *col, wxTextCoord *row) const +wxTextCtrl::HitTest(const wxPoint& pt, long *pos) const { return wxTE_HT_UNKNOWN; } @@ -436,10 +428,12 @@ void wxTextCtrl::Redo() bool wxTextCtrl::CanUndo() const { + return false; } bool wxTextCtrl::CanRedo() const { + return false; } // ---------------------------------------------------------------------------- @@ -467,20 +461,10 @@ void wxTextCtrl::OnDropFiles(wxDropFilesEvent& event) // kbd input processing // ---------------------------------------------------------------------------- -bool wxTextCtrl::MSWShouldPreProcessMessage(WXMSG* pMsg) -{ - return false; -} - void wxTextCtrl::OnChar(wxKeyEvent& event) { } -WXLRESULT wxTextCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) -{ - return 0; -} - // ---------------------------------------------------------------------------- // text control event processing // ---------------------------------------------------------------------------- @@ -490,21 +474,11 @@ bool wxTextCtrl::SendUpdateEvent() return false; } -bool wxTextCtrl::MSWCommand(WXUINT param, WXWORD WXUNUSED(id)) -{ - return false; -} - bool wxTextCtrl::AdjustSpaceLimit() { return false; } -bool wxTextCtrl::AcceptsFocus() const -{ - return false; -} - wxSize wxTextCtrl::DoGetBestSize() const { return wxSize(0,0); @@ -570,11 +544,39 @@ void wxTextCtrl::OnUpdateSelectAll(wxUpdateUIEvent& event) { } -void wxTextCtrl::OnRightClick(wxMouseEvent& event) +void wxTextCtrl::OnSetFocus(wxFocusEvent& WXUNUSED(event)) { } -void wxTextCtrl::OnSetFocus(wxFocusEvent& WXUNUSED(event)) +wxVisualAttributes wxTextCtrl::GetDefaultAttributes() const +{ + wxVisualAttributes attrs; + attrs.font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT); + attrs.colFg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT); + attrs.colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW); //white + return attrs; +} + +bool wxTextCtrl::EmulateKeyPress(const wxKeyEvent& rEvent) +{ + return false; +} +bool wxTextCtrl::CanApplyThemeBorder() const +{ + return false; +} +bool wxTextCtrl::IsEmpty() const +{ + return false; +} +bool wxTextCtrl::AcceptsFocusFromKeyboard() const +{ + return false; +} +void wxTextCtrl::AdoptAttributesFromHWND() +{ +} +void wxTextCtrl::SetWindowStyleFlag(long lStyle) { } @@ -605,43 +607,43 @@ bool wxTextCtrl::SetForegroundColour(const wxColour& colour) } // ---------------------------------------------------------------------------- -// styling support for rich edit controls +// wxRichEditModule // ---------------------------------------------------------------------------- -#if wxUSE_RICHEDIT - -bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style) +bool wxRichEditModule::OnInit() { return false; } -bool wxTextCtrl::SetDefaultStyle(const wxTextAttr& style) +void wxRichEditModule::OnExit() { - return false; } -bool wxTextCtrl::GetStyle(long position, wxTextAttr& style) +/* static */ +bool wxRichEditModule::Load(int version) { return false; } -#endif +#endif // wxUSE_RICHEDIT // ---------------------------------------------------------------------------- -// wxRichEditModule +// styling support for rich edit controls // ---------------------------------------------------------------------------- -bool wxRichEditModule::OnInit() +#if wxUSE_RICHEDIT + +bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style) { return false; } -void wxRichEditModule::OnExit() +bool wxTextCtrl::SetDefaultStyle(const wxTextAttr& style) { + return false; } -/* static */ -bool wxRichEditModule::Load(int version) +bool wxTextCtrl::GetStyle(long position, wxTextAttr& style) { return false; }