git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1569
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual bool LoadFile(const wxString& file);
virtual bool SaveFile(const wxString& file);
virtual void WriteText(const wxString& text);
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;
virtual void DiscardEdits();
virtual bool IsModified() const;
virtual bool LoadFile(const wxString& file);
virtual bool SaveFile(const wxString& file);
virtual void WriteText(const wxString& text);
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;
virtual void DiscardEdits();
virtual bool IsModified() const;
virtual bool LoadFile(const wxString& file);
virtual bool SaveFile(const wxString& file);
virtual void WriteText(const wxString& text);
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;
virtual void DiscardEdits();
virtual bool IsModified() const;
// TODO write text to control
}
// TODO write text to control
}
+void wxTextCtrl::AppendText(const wxString& text)
+{
+ // TODO append text to control
+}
+
void wxTextCtrl::Clear()
{
// TODO
void wxTextCtrl::Clear()
{
// TODO
txt[plen] = (char)c; // append c
txt[plen+xtra] = '\0'; // append '\0' or overwrite c
// If the put area already contained \0, output will be truncated there
txt[plen] = (char)c; // append c
txt[plen+xtra] = '\0'; // append '\0' or overwrite c
// If the put area already contained \0, output will be truncated there
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%ld", i);
{
wxString str;
str.Printf("%ld", i);
// TODO write text to control
}
// TODO write text to control
}
+void wxTextCtrl::AppendText(const wxString& text)
+{
+ // TODO append text to control
+}
+
void wxTextCtrl::Clear()
{
// TODO
void wxTextCtrl::Clear()
{
// TODO
txt[plen] = (char)c; // append c
txt[plen+xtra] = '\0'; // append '\0' or overwrite c
// If the put area already contained \0, output will be truncated there
txt[plen] = (char)c; // append c
txt[plen+xtra] = '\0'; // append '\0' or overwrite c
// If the put area already contained \0, output will be truncated there
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%ld", i);
{
wxString str;
str.Printf("%ld", i);
// TODO write text to control
}
// TODO write text to control
}
+void wxTextCtrl::AppendText(const wxString& text)
+{
+ // TODO append text to control
+}
+
void wxTextCtrl::Clear()
{
// TODO
void wxTextCtrl::Clear()
{
// TODO
txt[plen] = (char)c; // append c
txt[plen+xtra] = '\0'; // append '\0' or overwrite c
// If the put area already contained \0, output will be truncated there
txt[plen] = (char)c; // append c
txt[plen+xtra] = '\0'; // append '\0' or overwrite c
// If the put area already contained \0, output will be truncated there
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%ld", i);
{
wxString str;
str.Printf("%ld", i);
// TODO write text to control
}
// TODO write text to control
}
+void wxTextCtrl::AppendText(const wxString& text)
+{
+ // TODO append text to control
+}
+
void wxTextCtrl::Clear()
{
// TODO
void wxTextCtrl::Clear()
{
// TODO
txt[plen] = (char)c; // append c
txt[plen+xtra] = '\0'; // append '\0' or overwrite c
// If the put area already contained \0, output will be truncated there
txt[plen] = (char)c; // append c
txt[plen+xtra] = '\0'; // append '\0' or overwrite c
// If the put area already contained \0, output will be truncated there
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
wxTextCtrl& wxTextCtrl::operator<<(const wxString& s)
{
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", f);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%.2f", d);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%d", i);
{
wxString str;
str.Printf("%ld", i);
{
wxString str;
str.Printf("%ld", i);