/**
Sets selected items from the array of selected items' indexes.
*/
- void SetSelections(const wxArrayInt& selections) const;
+ void SetSelections(const wxArrayInt& selections);
/**
Shows the dialog, returning either wxID_OK or wxID_CANCEL.
/**
Sets the index of the initially selected item.
*/
- void SetSelection(int selection) const;
+ void SetSelection(int selection);
/**
Shows the dialog, returning either wxID_OK or wxID_CANCEL.
/**
Destructor, destroying the choice item.
*/
- ~wxChoice();
+ virtual ~wxChoice();
//@{
/**
@remarks This is implemented for GTK and Motif only and always
returns 1 for the other platforms.
*/
- int GetColumns() const;
+ virtual int GetColumns() const;
/**
Unlike wxControlWithItems::GetSelection() which only returns the
In older versions, wxControlWithItems::GetSelection() itself
behaved like this.
*/
- int GetCurrentSelection() const;
+ virtual int GetCurrentSelection() const;
/**
Sets the number of columns in this choice item.
@remarks This is implemented for GTK and Motif only and doesn’t do
anything under other platforms.
*/
- void SetColumns(int n = 1);
+ virtual void SetColumns(int n = 1);
};
/**
Destructor.
*/
- ~wxClipboard();
+ virtual ~wxClipboard();
/**
Call this function to add the data object to the clipboard. You may
@see SetData()
*/
- bool AddData(wxDataObject* data);
+ virtual bool AddData(wxDataObject* data);
/**
Clears the global clipboard object and the system's clipboard if
possible.
*/
- void Clear();
+ virtual void Clear();
/**
Call this function to close the clipboard, having opened it with
Open().
*/
- void Close();
+ virtual void Close();
/**
Flushes the clipboard: this means that the data which is currently on
@return @false if the operation is unsuccessful for any reason.
*/
- bool Flush();
+ virtual bool Flush();
/**
Call this function to fill @a data with data on the clipboard, if
available in the required format. Returns @true on success.
*/
- bool GetData(wxDataObject& data);
+ virtual bool GetData(wxDataObject& data);
/**
Returns @true if the clipboard has been opened.
*/
- bool IsOpened() const;
+ virtual bool IsOpened() const;
/**
Returns @true if there is data which matches the data format of the
@todo The name of this function is misleading. This should be renamed
to something that more accurately indicates what it does.
*/
- bool IsSupported(const wxDataFormat& format);
+ virtual bool IsSupported(const wxDataFormat& format);
/**
Returns @true if we are using the primary selection, @false if
@return @true on success. This should be tested (as in the sample
shown above).
*/
- bool Open();
+ virtual bool Open();
/**
Call this function to set the data object to the clipboard. This
@see AddData()
*/
- bool SetData(wxDataObject* data);
+ virtual bool SetData(wxDataObject* data);
/**
On platforms supporting it (all X11-based ports), wxClipboard uses the
/**
Destructor.
*/
- ~wxClientDataContainer();
+ virtual ~wxClientDataContainer();
/**
Get the untyped client data.
/**
Virtual destructor.
*/
- ~wxClientData();
+ virtual ~wxClientData();
};
/**
Destructor.
*/
- ~wxCommand();
+ virtual ~wxCommand();
/**
Returns @true if the command can be undone, @false otherwise.
*/
- bool CanUndo();
+ virtual bool CanUndo() const;
/**
Override this member function to execute the appropriate action when
/**
Returns the command name.
*/
- wxString GetName();
+ virtual wxString GetName() const;
/**
Override this member function to un-execute a previous Do.
/**
Destructor.
*/
- ~wxCommandProcessor();
+ virtual ~wxCommandProcessor();
/**
Returns @true if the currently-active command can be undone, @false
otherwise.
*/
- virtual bool CanUndo();
+ virtual bool CanUndo() const;
/**
Deletes all commands in the list and sets the current command pointer
/**
Returns the list of commands.
*/
- wxList& GetCommands() const;
+ wxList& GetCommands();
/**
Returns the edit menu associated with the command processor.
the last save operation. This only works if MarkAsSaved() is called
whenever the project is saved.
*/
- virtual bool IsDirty();
+ virtual bool IsDirty() const;
/**
You must call this method whenever the project is saved if you plan to
use IsDirty().
*/
- virtual void MarkAsSaved();
+ void MarkAsSaved();
/**
Executes (redoes) the current command (the command that has just been
Sets the menu labels according to the currently set menu and the
current command state.
*/
- void SetMenuStrings();
+ virtual void SetMenuStrings();
/**
Sets the string that will be appended to the Redo menu item.
The default value is @true.
*/
- bool GetAllowSymbols();
+ bool GetAllowSymbols() const;
/**
Gets the font chosen by the user if the user pressed OK
(wxFontDialog::ShowModal() returned wxID_OK).
*/
- wxFont GetChosenFont();
+ wxFont GetChosenFont() const;
/**
Gets the colour associated with the font dialog.
The default value is @true.
*/
- bool GetEnableEffects();
+ bool GetEnableEffects() const;
/**
Gets the font that will be initially used by the font dialog. This
should have previously been set by the application.
*/
- wxFont GetInitialFont();
+ wxFont GetInitialFont() const;
/**
Returns @true if the Help button will be shown (Windows only).
The default value is @false.
*/
- bool GetShowHelp();
+ bool GetShowHelp() const;
/**
Under Windows, determines whether symbol fonts can be selected. Has no
/**
Destructor.
*/
- ~wxPageSetupDialogData();
+ virtual ~wxPageSetupDialogData();
/**
Enables or disables the "Help" button (Windows only).
/**
Destructor.
*/
- ~wxColourData();
+ virtual ~wxColourData();
/**
Under Windows, determines whether the Windows colour dialog will
The default colour is black.
*/
- wxColour& GetColour() const;
+ wxColour& GetColour();
/**
Returns custom colours associated with the colour dialog.
/**
Destructor.
*/
- ~wxPrintData();
+ virtual ~wxPrintData();
/**
Returns the current bin (papersource). By default, the system is left
/**
Destructor.
*/
- ~wxPrintDialogData();
+ virtual ~wxPrintDialogData();
/**
Enables or disables the "Help" button.
/**
Collapses or expands the pane window.
*/
- void Collapse(bool collapse = true);
+ virtual void Collapse(bool collapse = true);
/**
Same as calling Collapse(@false).
Returns a pointer to the pane window. Add controls to the returned
wxWindow to make them collapsible.
*/
- wxWindow* GetPane() const;
+ virtual wxWindow* GetPane() const;
/**
Returns @true if the pane window is currently hidden.
*/
- bool IsCollapsed() const;
+ virtual bool IsCollapsed() const;
/**
Returns @true if the pane window is currently shown.
/**
Destructor.
*/
- ~wxColourDialog();
+ virtual ~wxColourDialog();
/**
Same as wxColourDialog().
Shows the dialog, returning wxID_OK if the user pressed OK, and
wxID_CANCEL otherwise.
*/
- int ShowModal();
+ virtual int ShowModal();
};
Returns the alpha value, on platforms where alpha is not yet supported, this
always returns wxALPHA_OPAQUE.
*/
- unsigned char Alpha() const;
+ virtual unsigned char Alpha() const;
/**
Returns the blue intensity.
*/
- unsigned char Blue() const;
+ virtual unsigned char Blue() const;
/**
Converts this colour to a wxString using the given flags.
/**
Returns the green intensity.
*/
- unsigned char Green() const;
+ virtual unsigned char Green() const;
/**
Returns @true if the colour object is valid (the colour has been initialised
/**
Returns the red intensity.
*/
- unsigned char Red() const;
+ virtual unsigned char Red() const;
//@{
/**
/**
Destructor, destroying the combobox.
*/
- ~wxComboBox();
+ virtual ~wxComboBox();
//@{
/**
and returns the item currently selected in the dropdown list if it's
open or the same thing as wxControlWithItems::GetSelection() otherwise.
*/
- int GetCurrentSelection() const;
+ virtual int GetCurrentSelection() const;
/**
Returns the insertion point for the combobox's text field.
Currently this method is only implemented in wxMSW and wxGTK.
*/
- void GetSelection(long* from, long* to) const;
+ virtual void GetSelection(long* from, long* to) const;
/**
Returns the current value in the combobox text field.
wxControlWithItems::SetSelection().
@endWxPythonOnly
*/
- void SetSelection(long from, long to);
+ virtual void SetSelection(long from, long to);
/**
Sets the text for the combobox text field.
/**
Empty but ensures that dtor of all derived classes is virtual.
*/
- ~wxConfigBase();
+ virtual ~wxConfigBase();
/**
@see wxCommandEvent
*/
- void Command(wxCommandEvent& event);
+ virtual void Command(wxCommandEvent& event);
/**
Returns the control's text.
/**
Destroys the context help object.
*/
- ~wxContextHelp();
+ virtual ~wxContextHelp();
/**
Puts the application into context-sensitive help mode. @a window is the
destroyed when the window is destroyed. wxWidgets destroys all cursors
on application exit, although it is best to clean them up explicitly.
*/
- ~wxCursor();
+ virtual ~wxCursor();
/**
Returns @true if cursor data is present.
@return @true if the class represented by info is the same class as this
one or is derived from it.
*/
- bool IsKindOf(const wxClassInfo* info);
+ bool IsKindOf(const wxClassInfo* info) const;
/**
Returns @true if this object has the same data pointer as @a obj.
@see @ref overview_refcount
*/
- bool IsSameAs(const wxObject& obj);
+ bool IsSameAs(const wxObject& obj) const;
/**
Makes this object refer to the data in @a clone.