// ----------------------------------
virtual wxString GetValue() const;
- virtual void SetValue(const wxString& value) { DoSetValue(value, SetValue_SendEvent); }
-
- virtual void ChangeValue(const wxString &value) { DoSetValue(value); }
+ virtual bool IsEmpty() const;
virtual int GetLineLength(long lineNo) const;
virtual wxString GetLineText(long lineNo) const;
virtual void SetSelection(long from, long to);
virtual void SetEditable(bool editable);
+ // Overridden wxWindow methods
+ virtual void SetWindowStyleFlag( long style );
virtual bool Enable( bool enable = true );
// Implementation from now on
bool SetBackgroundColour(const wxColour& colour);
GtkWidget* GetConnectWidget();
- void CalculateScrollbar();
void SetUpdateFont(bool WXUNUSED(update)) { }
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+ // has the control been frozen by Freeze()?
+ bool IsFrozen() const { return m_frozenness > 0; }
+
protected:
virtual wxSize DoGetBestSize() const;
virtual void DoApplyWidgetStyle(GtkRcStyle *style);
// override this and return true.
virtual bool UseGTKStyleBase() const { return true; }
- // has the control been frozen by Freeze()?
- bool IsFrozen() const { return m_frozenness > 0; }
+ virtual void DoSetValue(const wxString &value, int flags = 0);
- void DoSetValue(const wxString &value, int flags = 0);
+ // wrappers hiding the differences between functions doing the same thing
+ // for GtkTextView and GtkEntry (all of them use current window style to
+ // set the given characteristic)
+ void GTKSetEditable();
+ void GTKSetVisibility();
+ void GTKSetWrapMode();
+ void GTKSetJustification();
private:
// change the font for everything in this control