many ifacecheck automatic fixes + some access-specifier manual fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,7 +56,7 @@ public:
|
|||||||
processor that the action is not undoable and should not be
|
processor that the action is not undoable and should not be
|
||||||
added to the command history.
|
added to the command history.
|
||||||
*/
|
*/
|
||||||
virtual bool Do();
|
virtual bool Do() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the command name.
|
Returns the command name.
|
||||||
@@ -85,7 +85,7 @@ public:
|
|||||||
processor that the action is not redoable and no change should
|
processor that the action is not redoable and no change should
|
||||||
be made to the command history.
|
be made to the command history.
|
||||||
*/
|
*/
|
||||||
virtual bool Undo();
|
virtual bool Undo() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -34,7 +34,7 @@ public:
|
|||||||
|
|
||||||
@return @true if the call succeeded, @false otherwise.
|
@return @true if the call succeeded, @false otherwise.
|
||||||
*/
|
*/
|
||||||
virtual bool Create(wxWindow* parent);
|
virtual bool Create(wxWindow* parent) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Utility function that hides the popup.
|
Utility function that hides the popup.
|
||||||
@@ -60,13 +60,13 @@ public:
|
|||||||
The derived class must implement this to return pointer to the
|
The derived class must implement this to return pointer to the
|
||||||
associated control created in Create().
|
associated control created in Create().
|
||||||
*/
|
*/
|
||||||
virtual wxWindow* GetControl();
|
virtual wxWindow* GetControl() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The derived class must implement this to return string representation
|
The derived class must implement this to return string representation
|
||||||
of the value.
|
of the value.
|
||||||
*/
|
*/
|
||||||
virtual wxString GetStringValue() const;
|
virtual wxString GetStringValue() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The derived class must implement this to initialize its internal
|
The derived class must implement this to initialize its internal
|
||||||
@@ -350,19 +350,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual ~wxComboCtrl();
|
virtual ~wxComboCtrl();
|
||||||
|
|
||||||
/**
|
|
||||||
This member function is not normally called in application code.
|
|
||||||
Instead, it can be implemented in a derived class to create a custom
|
|
||||||
popup animation.
|
|
||||||
|
|
||||||
The parameters are the same as those for DoShowPopup().
|
|
||||||
|
|
||||||
@return @true if animation finishes before the function returns,
|
|
||||||
@false otherwise. In the latter case you need to manually call
|
|
||||||
DoShowPopup() after the animation ends.
|
|
||||||
*/
|
|
||||||
virtual bool AnimateShow(const wxRect& rect, int flags);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copies the selected text to the clipboard.
|
Copies the selected text to the clipboard.
|
||||||
*/
|
*/
|
||||||
@@ -386,38 +373,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void Cut();
|
virtual void Cut();
|
||||||
|
|
||||||
/**
|
|
||||||
This member function is not normally called in application code.
|
|
||||||
Instead, it can be implemented in a derived class to return default
|
|
||||||
wxComboPopup, incase @a popup is @NULL.
|
|
||||||
|
|
||||||
@note If you have implemented OnButtonClick() to do something else than
|
|
||||||
show the popup, then DoSetPopupControl() must always set @a popup
|
|
||||||
to @NULL.
|
|
||||||
*/
|
|
||||||
void DoSetPopupControl(wxComboPopup* popup);
|
|
||||||
|
|
||||||
/**
|
|
||||||
This member function is not normally called in application code.
|
|
||||||
Instead, it must be called in a derived class to make sure popup is
|
|
||||||
properly shown after a popup animation has finished (but only if
|
|
||||||
AnimateShow() did not finish the animation within its function scope).
|
|
||||||
|
|
||||||
@param rect
|
|
||||||
Position to show the popup window at, in screen coordinates.
|
|
||||||
@param flags
|
|
||||||
Combination of any of the following:
|
|
||||||
@beginTable
|
|
||||||
@row2col{wxComboCtrl::ShowAbove,
|
|
||||||
Popup is shown above the control instead of below.}
|
|
||||||
@row2col{wxComboCtrl::CanDeferShow,
|
|
||||||
Showing the popup can be deferred to happen sometime after
|
|
||||||
ShowPopup() has finished. In this case, AnimateShow() must
|
|
||||||
return false.}
|
|
||||||
@endTable
|
|
||||||
*/
|
|
||||||
virtual void DoShowPopup(const wxRect& rect, int flags);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enables or disables popup animation, if any, depending on the value of
|
Enables or disables popup animation, if any, depending on the value of
|
||||||
the argument.
|
the argument.
|
||||||
@@ -749,5 +704,52 @@ public:
|
|||||||
will appear as if the focus has been lost from it.
|
will appear as if the focus has been lost from it.
|
||||||
*/
|
*/
|
||||||
void UseAltPopupWindow(bool enable = true);
|
void UseAltPopupWindow(bool enable = true);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
/**
|
||||||
|
This member function is not normally called in application code.
|
||||||
|
Instead, it can be implemented in a derived class to create a custom
|
||||||
|
popup animation.
|
||||||
|
|
||||||
|
The parameters are the same as those for DoShowPopup().
|
||||||
|
|
||||||
|
@return @true if animation finishes before the function returns,
|
||||||
|
@false otherwise. In the latter case you need to manually call
|
||||||
|
DoShowPopup() after the animation ends.
|
||||||
|
*/
|
||||||
|
virtual bool AnimateShow(const wxRect& rect, int flags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
This member function is not normally called in application code.
|
||||||
|
Instead, it can be implemented in a derived class to return default
|
||||||
|
wxComboPopup, incase @a popup is @NULL.
|
||||||
|
|
||||||
|
@note If you have implemented OnButtonClick() to do something else than
|
||||||
|
show the popup, then DoSetPopupControl() must always set @a popup
|
||||||
|
to @NULL.
|
||||||
|
*/
|
||||||
|
virtual void DoSetPopupControl(wxComboPopup* popup);
|
||||||
|
|
||||||
|
/**
|
||||||
|
This member function is not normally called in application code.
|
||||||
|
Instead, it must be called in a derived class to make sure popup is
|
||||||
|
properly shown after a popup animation has finished (but only if
|
||||||
|
AnimateShow() did not finish the animation within its function scope).
|
||||||
|
|
||||||
|
@param rect
|
||||||
|
Position to show the popup window at, in screen coordinates.
|
||||||
|
@param flags
|
||||||
|
Combination of any of the following:
|
||||||
|
@beginTable
|
||||||
|
@row2col{wxComboCtrl::ShowAbove,
|
||||||
|
Popup is shown above the control instead of below.}
|
||||||
|
@row2col{wxComboCtrl::CanDeferShow,
|
||||||
|
Showing the popup can be deferred to happen sometime after
|
||||||
|
ShowPopup() has finished. In this case, AnimateShow() must
|
||||||
|
return false.}
|
||||||
|
@endTable
|
||||||
|
*/
|
||||||
|
virtual void DoShowPopup(const wxRect& rect, int flags);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -66,7 +66,7 @@ public:
|
|||||||
May be used to set the same help string for all Cancel buttons in
|
May be used to set the same help string for all Cancel buttons in
|
||||||
the application, for example.
|
the application, for example.
|
||||||
*/
|
*/
|
||||||
virtual wxString GetHelp(const wxWindowBase* window);
|
virtual wxString GetHelp(const wxWindowBase* window) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Removes the association between the window pointer and the help text.
|
Removes the association between the window pointer and the help text.
|
||||||
|
@@ -91,7 +91,7 @@ public:
|
|||||||
object by pickling it first.
|
object by pickling it first.
|
||||||
@endWxPythonOnly
|
@endWxPythonOnly
|
||||||
*/
|
*/
|
||||||
virtual void TakeData(size_t size, const void data);
|
void TakeData(size_t size, void* data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ public:
|
|||||||
Adds the @a dataObject to the list of supported objects and it becomes
|
Adds the @a dataObject to the list of supported objects and it becomes
|
||||||
the preferred object if @a preferred is @true.
|
the preferred object if @a preferred is @true.
|
||||||
*/
|
*/
|
||||||
void Add(wxDataObjectSimple dataObject, bool preferred = false);
|
void Add(wxDataObjectSimple* dataObject, bool preferred = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Report the format passed to the SetData() method. This should be the
|
Report the format passed to the SetData() method. This should be the
|
||||||
@@ -202,7 +202,7 @@ public:
|
|||||||
Returns the (one and only one) format supported by this object. It is
|
Returns the (one and only one) format supported by this object. It is
|
||||||
assumed that the format is supported in both directions.
|
assumed that the format is supported in both directions.
|
||||||
*/
|
*/
|
||||||
const wxDataFormat GetFormat() const;
|
const wxDataFormat& GetFormat() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy the data from the buffer, return @true on success. Must be
|
Copy the data from the buffer, return @true on success. Must be
|
||||||
@@ -352,7 +352,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the platform-specific number identifying the format.
|
Returns the platform-specific number identifying the format.
|
||||||
*/
|
*/
|
||||||
NativeFormat GetType() const;
|
wxDataFormatId GetType() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the format to be the custom format identified by the given name.
|
Sets the format to be the custom format identified by the given name.
|
||||||
@@ -363,7 +363,7 @@ public:
|
|||||||
Sets the format to the given value, which should be one of wxDF_XXX
|
Sets the format to the given value, which should be one of wxDF_XXX
|
||||||
constants.
|
constants.
|
||||||
*/
|
*/
|
||||||
void SetType(NativeFormat format);
|
void SetType(wxDataFormatId type);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if the formats are different.
|
Returns @true if the formats are different.
|
||||||
@@ -556,25 +556,25 @@ public:
|
|||||||
The method will write the data of the format @a format in the buffer
|
The method will write the data of the format @a format in the buffer
|
||||||
@a buf and return @true on success, @false on failure.
|
@a buf and return @true on success, @false on failure.
|
||||||
*/
|
*/
|
||||||
virtual bool GetDataHere(const wxDataFormat& format, void buf) const;
|
virtual bool GetDataHere(const wxDataFormat& format, void* buf) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the data size of the given format @a format.
|
Returns the data size of the given format @a format.
|
||||||
*/
|
*/
|
||||||
virtual size_t GetDataSize(const wxDataFormat& format) const;
|
virtual size_t GetDataSize(const wxDataFormat& format) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the number of available formats for rendering or setting the
|
Returns the number of available formats for rendering or setting the
|
||||||
data.
|
data.
|
||||||
*/
|
*/
|
||||||
virtual size_t GetFormatCount(Direction dir = Get) const;
|
virtual size_t GetFormatCount(Direction dir = Get) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the preferred format for either rendering the data (if @a dir
|
Returns the preferred format for either rendering the data (if @a dir
|
||||||
is @c Get, its default value) or for setting it. Usually this will be
|
is @c Get, its default value) or for setting it. Usually this will be
|
||||||
the native format of the wxDataObject.
|
the native format of the wxDataObject.
|
||||||
*/
|
*/
|
||||||
virtual wxDataFormat GetPreferredFormat(Direction dir = Get) const;
|
virtual wxDataFormat GetPreferredFormat(Direction dir = Get) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the data in the format @a format of the length @a len provided in
|
Set the data in the format @a format of the length @a len provided in
|
||||||
@@ -691,6 +691,6 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the array of file names.
|
Returns the array of file names.
|
||||||
*/
|
*/
|
||||||
const wxArrayString GetFilenames() const;
|
const wxArrayString& GetFilenames() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Gets the icon.
|
Gets the icon.
|
||||||
*/
|
*/
|
||||||
const wxIcon GetIcon() const;
|
const wxIcon& GetIcon() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets the text.
|
Gets the text.
|
||||||
@@ -102,7 +102,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns a reference to a value.
|
Returns a reference to a value.
|
||||||
*/
|
*/
|
||||||
const wxVariant GetValue() const;
|
const wxVariant& GetValue() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Destructor. This should not be called directly. Use DecRef() instead.
|
Destructor. This should not be called directly. Use DecRef() instead.
|
||||||
*/
|
*/
|
||||||
~wxDataViewModel();
|
virtual ~wxDataViewModel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Adds a wxDataViewModelNotifier
|
Adds a wxDataViewModelNotifier
|
||||||
@@ -267,29 +267,28 @@ public:
|
|||||||
/**
|
/**
|
||||||
Override this to indicate the number of columns in the model.
|
Override this to indicate the number of columns in the model.
|
||||||
*/
|
*/
|
||||||
virtual unsigned int GetColumnCount() const;
|
virtual unsigned int GetColumnCount() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Override this to indicate what type of data is stored in the
|
Override this to indicate what type of data is stored in the
|
||||||
column specified by @e col. This should return a string
|
column specified by @e col. This should return a string
|
||||||
indicating the type of data as reported by wxVariant.
|
indicating the type of data as reported by wxVariant.
|
||||||
*/
|
*/
|
||||||
virtual wxString GetColumnType(unsigned int col) const;
|
virtual wxString GetColumnType(unsigned int col) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Override this to indicate which wxDataViewItem representing the parent
|
Override this to indicate which wxDataViewItem representing the parent
|
||||||
of @a item or an invalid wxDataViewItem if the the root item is
|
of @a item or an invalid wxDataViewItem if the the root item is
|
||||||
the parent item.
|
the parent item.
|
||||||
*/
|
*/
|
||||||
virtual wxDataViewItem GetParent(const wxDataViewItem& item) const;
|
virtual wxDataViewItem GetParent(const wxDataViewItem& item) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Override this to indicate the value of @e item
|
Override this to indicate the value of @e item
|
||||||
A wxVariant is used to store the data.
|
A wxVariant is used to store the data.
|
||||||
*/
|
*/
|
||||||
virtual void GetValue(wxVariant& variant,
|
virtual void GetValue(wxVariant& variant, const wxDataViewItem& item,
|
||||||
const wxDataViewItem& item,
|
unsigned int col) const = 0;
|
||||||
unsigned int col) const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Override this method to indicate if a container item merely
|
Override this method to indicate if a container item merely
|
||||||
@@ -314,7 +313,7 @@ public:
|
|||||||
Override this to indicate of @a item is a container, i.e. if
|
Override this to indicate of @a item is a container, i.e. if
|
||||||
it can have child items.
|
it can have child items.
|
||||||
*/
|
*/
|
||||||
virtual bool IsContainer(const wxDataViewItem& item) const;
|
virtual bool IsContainer(const wxDataViewItem& item) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Call this to inform the model that an item has been added
|
Call this to inform the model that an item has been added
|
||||||
@@ -374,9 +373,8 @@ public:
|
|||||||
Afterwards ValueChanged()
|
Afterwards ValueChanged()
|
||||||
has to be called!
|
has to be called!
|
||||||
*/
|
*/
|
||||||
virtual bool SetValue(const wxVariant& variant,
|
virtual bool SetValue(const wxVariant& variant, const wxDataViewItem& item,
|
||||||
const wxDataViewItem& item,
|
unsigned int col) = 0;
|
||||||
unsigned int col);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Call this to inform this model that a value in the model has
|
Call this to inform this model that a value in the model has
|
||||||
@@ -400,8 +398,8 @@ public:
|
|||||||
wxDataViewItem (which you can obtain from this class).
|
wxDataViewItem (which you can obtain from this class).
|
||||||
This model also provides its own wxDataViewIndexListModel::Compare
|
This model also provides its own wxDataViewIndexListModel::Compare
|
||||||
method which sorts the model's data by the index.
|
method which sorts the model's data by the index.
|
||||||
|
|
||||||
This model is not a virtual model since the control stores
|
This model is not a virtual model since the control stores
|
||||||
each wxDataViewItem. Use wxDataViewVirtualListModel if you
|
each wxDataViewItem. Use wxDataViewVirtualListModel if you
|
||||||
need to display millions of items or have other reason to
|
need to display millions of items or have other reason to
|
||||||
use a virtual control.
|
use a virtual control.
|
||||||
@@ -702,7 +700,7 @@ public:
|
|||||||
@event{EVT_DATAVIEW_COLUMN_REORDERED(id, func)}
|
@event{EVT_DATAVIEW_COLUMN_REORDERED(id, func)}
|
||||||
Process a wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED event.
|
Process a wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED event.
|
||||||
@endEventTable
|
@endEventTable
|
||||||
|
|
||||||
@library{wxadv}
|
@library{wxadv}
|
||||||
@category{ctrl,dvc}
|
@category{ctrl,dvc}
|
||||||
<!-- @appearance{dataviewctrl.png} -->
|
<!-- @appearance{dataviewctrl.png} -->
|
||||||
@@ -714,7 +712,7 @@ public:
|
|||||||
Default Constructor.
|
Default Constructor.
|
||||||
*/
|
*/
|
||||||
wxDataViewCtrl();
|
wxDataViewCtrl();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Constructor. Calls Create().
|
Constructor. Calls Create().
|
||||||
*/
|
*/
|
||||||
@@ -747,7 +745,7 @@ public:
|
|||||||
Inserts a wxDataViewColumn to the control. Returns @true on success.
|
Inserts a wxDataViewColumn to the control. Returns @true on success.
|
||||||
*/
|
*/
|
||||||
virtual bool InsertColumn(unsigned int pos, wxDataViewColumn* col);
|
virtual bool InsertColumn(unsigned int pos, wxDataViewColumn* col);
|
||||||
|
|
||||||
//@{
|
//@{
|
||||||
/**
|
/**
|
||||||
Appends a column for rendering a bitmap. Returns the wxDataViewColumn
|
Appends a column for rendering a bitmap. Returns the wxDataViewColumn
|
||||||
@@ -771,7 +769,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Appends a column for rendering a date. Returns the wxDataViewColumn
|
Appends a column for rendering a date. Returns the wxDataViewColumn
|
||||||
created in the function or @NULL on failure.
|
created in the function or @NULL on failure.
|
||||||
|
|
||||||
NB: The @e align parameter is applied to both the column header and
|
NB: The @e align parameter is applied to both the column header and
|
||||||
the column renderer.
|
the column renderer.
|
||||||
*/
|
*/
|
||||||
@@ -794,7 +792,7 @@ public:
|
|||||||
Appends a column for rendering text with an icon. Returns the wxDataViewColumn
|
Appends a column for rendering text with an icon. Returns the wxDataViewColumn
|
||||||
created in the function or @NULL on failure. This method uses the
|
created in the function or @NULL on failure. This method uses the
|
||||||
wxDataViewIconTextRenderer class.
|
wxDataViewIconTextRenderer class.
|
||||||
|
|
||||||
NB: The @e align parameter is applied to both the column header and
|
NB: The @e align parameter is applied to both the column header and
|
||||||
the column renderer.
|
the column renderer.
|
||||||
*/
|
*/
|
||||||
@@ -816,7 +814,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Appends a column for rendering a progress indicator. Returns the
|
Appends a column for rendering a progress indicator. Returns the
|
||||||
wxDataViewColumn created in the function or @NULL on failure.
|
wxDataViewColumn created in the function or @NULL on failure.
|
||||||
|
|
||||||
NB: The @e align parameter is applied to both the column header and
|
NB: The @e align parameter is applied to both the column header and
|
||||||
the column renderer.
|
the column renderer.
|
||||||
*/
|
*/
|
||||||
@@ -838,7 +836,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Appends a column for rendering text. Returns the wxDataViewColumn
|
Appends a column for rendering text. Returns the wxDataViewColumn
|
||||||
created in the function or @NULL on failure.
|
created in the function or @NULL on failure.
|
||||||
|
|
||||||
NB: The @e align parameter is applied to both the column header and
|
NB: The @e align parameter is applied to both the column header and
|
||||||
the column renderer.
|
the column renderer.
|
||||||
*/
|
*/
|
||||||
@@ -860,7 +858,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Appends a column for rendering a toggle. Returns the wxDataViewColumn
|
Appends a column for rendering a toggle. Returns the wxDataViewColumn
|
||||||
created in the function or @NULL on failure.
|
created in the function or @NULL on failure.
|
||||||
|
|
||||||
NB: The @e align parameter is applied to both the column header and
|
NB: The @e align parameter is applied to both the column header and
|
||||||
the column renderer.
|
the column renderer.
|
||||||
*/
|
*/
|
||||||
@@ -1058,7 +1056,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Called by owning model.
|
Called by owning model.
|
||||||
*/
|
*/
|
||||||
bool Cleared();
|
virtual bool Cleared() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get owning wxDataViewModel.
|
Get owning wxDataViewModel.
|
||||||
@@ -1074,7 +1072,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Called by owning model.
|
Called by owning model.
|
||||||
*/
|
*/
|
||||||
bool ItemChanged(const wxDataViewItem& item);
|
virtual bool ItemChanged(const wxDataViewItem& item) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Called by owning model.
|
Called by owning model.
|
||||||
@@ -1102,7 +1100,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Called by owning model.
|
Called by owning model.
|
||||||
*/
|
*/
|
||||||
void Resort();
|
virtual void Resort() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set owner of this notifier. Used internally.
|
Set owner of this notifier. Used internally.
|
||||||
@@ -1112,7 +1110,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Called by owning model.
|
Called by owning model.
|
||||||
*/
|
*/
|
||||||
bool ValueChanged(const wxDataViewItem& item, unsigned int col);
|
virtual bool ValueChanged(const wxDataViewItem& item, unsigned int col) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -1176,7 +1174,7 @@ class wxDataViewRenderer : public wxObject
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
Constructor.
|
Constructor.
|
||||||
*/
|
*/
|
||||||
wxDataViewRenderer(const wxString& varianttype,
|
wxDataViewRenderer(const wxString& varianttype,
|
||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||||
@@ -1202,7 +1200,7 @@ public:
|
|||||||
transfer the value back to the data model. Returns @e @false
|
transfer the value back to the data model. Returns @e @false
|
||||||
on failure.
|
on failure.
|
||||||
*/
|
*/
|
||||||
virtual bool GetValue(wxVariant& value);
|
virtual bool GetValue(wxVariant& value) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns a string with the type of the wxVariant
|
Returns a string with the type of the wxVariant
|
||||||
@@ -1212,7 +1210,7 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the alignment of the renderer's content. The default value
|
Sets the alignment of the renderer's content. The default value
|
||||||
of wxDVR_DEFAULT_ALIGMENT indicates that the content should
|
of wxDVR_DEFAULT_ALIGMENT indicates that the content should
|
||||||
have the same alignment as the column header. The method is
|
have the same alignment as the column header. The method is
|
||||||
not implemented under OS X and the renderer always aligns its
|
not implemented under OS X and the renderer always aligns its
|
||||||
contents as the column header on that platform. The other platforms
|
contents as the column header on that platform. The other platforms
|
||||||
@@ -1229,7 +1227,7 @@ public:
|
|||||||
Set the value of the renderer (and thus its cell) to @e value.
|
Set the value of the renderer (and thus its cell) to @e value.
|
||||||
The internal code will then render this cell with this data.
|
The internal code will then render this cell with this data.
|
||||||
*/
|
*/
|
||||||
virtual bool SetValue(const wxVariant& value);
|
virtual bool SetValue(const wxVariant& value) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Before data is committed to the data model, it is passed to this
|
Before data is committed to the data model, it is passed to this
|
||||||
@@ -1437,7 +1435,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
wxDataViewCustomRenderer(const wxString& varianttype = "string",
|
wxDataViewCustomRenderer(const wxString& varianttype = "string",
|
||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
int align = -1, bool no_init = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destructor.
|
Destructor.
|
||||||
@@ -1471,7 +1469,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Return size required to show content.
|
Return size required to show content.
|
||||||
*/
|
*/
|
||||||
virtual wxSize GetSize();
|
virtual wxSize GetSize() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Overrride this so that the renderer can get the value
|
Overrride this so that the renderer can get the value
|
||||||
@@ -1501,7 +1499,7 @@ public:
|
|||||||
wxDataViewRenderer::SetValue was called
|
wxDataViewRenderer::SetValue was called
|
||||||
so that this instance knows what to render.
|
so that this instance knows what to render.
|
||||||
*/
|
*/
|
||||||
virtual bool Render(wxRect cell, wxDC* dc, int state);
|
virtual bool Render(wxRect cell, wxDC* dc, int state) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This method should be called from within Render()
|
This method should be called from within Render()
|
||||||
@@ -1587,7 +1585,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the bitmap in the header of the column, if any.
|
Returns the bitmap in the header of the column, if any.
|
||||||
*/
|
*/
|
||||||
const wxBitmap GetBitmap();
|
const wxBitmap& GetBitmap() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the index of the column of the model, which this
|
Returns the index of the column of the model, which this
|
||||||
@@ -1766,12 +1764,12 @@ public:
|
|||||||
/**
|
/**
|
||||||
Calls the identical method from wxDataViewTreeStore.
|
Calls the identical method from wxDataViewTreeStore.
|
||||||
*/
|
*/
|
||||||
const wxIcon GetItemExpandedIcon(const wxDataViewItem& item) const;
|
const wxIcon& GetItemExpandedIcon(const wxDataViewItem& item) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Calls the identical method from wxDataViewTreeStore.
|
Calls the identical method from wxDataViewTreeStore.
|
||||||
*/
|
*/
|
||||||
const wxIcon GetItemIcon(const wxDataViewItem& item) const;
|
const wxIcon& GetItemIcon(const wxDataViewItem& item) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Calls the identical method from wxDataViewTreeStore.
|
Calls the identical method from wxDataViewTreeStore.
|
||||||
@@ -1933,12 +1931,12 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the icon to display in expanded containers.
|
Returns the icon to display in expanded containers.
|
||||||
*/
|
*/
|
||||||
const wxIcon GetItemExpandedIcon(const wxDataViewItem& item) const;
|
const wxIcon& GetItemExpandedIcon(const wxDataViewItem& item) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the icon of the item.
|
Returns the icon of the item.
|
||||||
*/
|
*/
|
||||||
const wxIcon GetItemIcon(const wxDataViewItem& item) const;
|
const wxIcon& GetItemIcon(const wxDataViewItem& item) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the text of the item.
|
Returns the text of the item.
|
||||||
|
@@ -115,14 +115,14 @@ public:
|
|||||||
@return @false if no range limits are currently set, @true if at least
|
@return @false if no range limits are currently set, @true if at least
|
||||||
one bound is set.
|
one bound is set.
|
||||||
*/
|
*/
|
||||||
bool GetRange(wxDateTime* dt1, wxDateTime dt2) const;
|
virtual bool GetRange(wxDateTime* dt1, wxDateTime* dt2) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the currently selected. If there is no selection or the
|
Returns the currently selected. If there is no selection or the
|
||||||
selection is outside of the current range, an invalid object is
|
selection is outside of the current range, an invalid object is
|
||||||
returned.
|
returned.
|
||||||
*/
|
*/
|
||||||
wxDateTime GetValue() const;
|
virtual wxDateTime GetValue() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the display format for the date in the control. See wxDateTime for
|
Sets the display format for the date in the control. See wxDateTime for
|
||||||
@@ -143,7 +143,7 @@ public:
|
|||||||
@remarks If the current value of the control is outside of the newly
|
@remarks If the current value of the control is outside of the newly
|
||||||
set range bounds, the behaviour is undefined.
|
set range bounds, the behaviour is undefined.
|
||||||
*/
|
*/
|
||||||
void SetRange(const wxDateTime& dt1, const wxDateTime& dt2);
|
virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Changes the current value of the control. The date should be valid and
|
Changes the current value of the control. The date should be valid and
|
||||||
@@ -151,6 +151,6 @@ public:
|
|||||||
|
|
||||||
Calling this method does not result in a date change event.
|
Calling this method does not result in a date change event.
|
||||||
*/
|
*/
|
||||||
void SetValue(const wxDateTime& dt);
|
virtual void SetValue(const wxDateTime& dt) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the date.
|
Returns the date.
|
||||||
*/
|
*/
|
||||||
const wxDateTime GetDate() const;
|
const wxDateTime& GetDate() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the date carried by the event, normally only used by the library
|
Sets the date carried by the event, normally only used by the library
|
||||||
|
@@ -34,7 +34,8 @@ public:
|
|||||||
@param stream
|
@param stream
|
||||||
The output stream.
|
The output stream.
|
||||||
*/
|
*/
|
||||||
wxDataOutputStream(wxOutputStream& stream);
|
wxDataOutputStream(wxOutputStream& s,
|
||||||
|
const wxMBConv& conv = wxConvAuto(wxFONTENCODING_DEFAULT));
|
||||||
/**
|
/**
|
||||||
Constructs a datastream object from an output stream. Only write
|
Constructs a datastream object from an output stream. Only write
|
||||||
methods will be available. This constructor is only available in
|
methods will be available. This constructor is only available in
|
||||||
@@ -178,7 +179,8 @@ public:
|
|||||||
@param stream
|
@param stream
|
||||||
The input stream.
|
The input stream.
|
||||||
*/
|
*/
|
||||||
wxDataInputStream(wxInputStream& stream);
|
wxDataInputStream(wxInputStream& s,
|
||||||
|
const wxMBConv& conv = wxConvAuto(wxFONTENCODING_DEFAULT));
|
||||||
/**
|
/**
|
||||||
Constructs a datastream object from an input stream. Only read methods
|
Constructs a datastream object from an input stream. Only read methods
|
||||||
will be available. This constructor is only available in Unicode builds
|
will be available. This constructor is only available in Unicode builds
|
||||||
|
@@ -483,7 +483,7 @@ public:
|
|||||||
|
|
||||||
@see wxDC::SetBackground()
|
@see wxDC::SetBackground()
|
||||||
*/
|
*/
|
||||||
const wxBrush GetBackground() const;
|
const wxBrush& GetBackground() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the current background mode: @c wxSOLID or @c wxTRANSPARENT.
|
Returns the current background mode: @c wxSOLID or @c wxTRANSPARENT.
|
||||||
@@ -497,7 +497,7 @@ public:
|
|||||||
|
|
||||||
@see wxDC::SetBrush()
|
@see wxDC::SetBrush()
|
||||||
*/
|
*/
|
||||||
const wxBrush GetBrush() const;
|
const wxBrush& GetBrush() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets the character height of the currently set font.
|
Gets the character height of the currently set font.
|
||||||
@@ -532,7 +532,7 @@ public:
|
|||||||
wxNullFont initially and only after calling SetFont() a valid font is
|
wxNullFont initially and only after calling SetFont() a valid font is
|
||||||
returned.
|
returned.
|
||||||
*/
|
*/
|
||||||
const wxFont GetFont() const;
|
const wxFont& GetFont() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets the current layout direction of the device context. On platforms
|
Gets the current layout direction of the device context. On platforms
|
||||||
@@ -613,7 +613,7 @@ public:
|
|||||||
|
|
||||||
@see SetPen()
|
@see SetPen()
|
||||||
*/
|
*/
|
||||||
const wxPen GetPen() const;
|
const wxPen& GetPen() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets in @a colour the colour at the specified location. Not available
|
Gets in @a colour the colour at the specified location. Not available
|
||||||
@@ -673,7 +673,7 @@ public:
|
|||||||
|
|
||||||
@see SetTextBackground()
|
@see SetTextBackground()
|
||||||
*/
|
*/
|
||||||
const wxColour GetTextBackground() const;
|
const wxColour& GetTextBackground() const;
|
||||||
|
|
||||||
//@{
|
//@{
|
||||||
/**
|
/**
|
||||||
@@ -714,14 +714,14 @@ public:
|
|||||||
|
|
||||||
@see SetTextForeground()
|
@see SetTextForeground()
|
||||||
*/
|
*/
|
||||||
const wxColour GetTextForeground() const;
|
const wxColour& GetTextForeground() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets the current user scale factor.
|
Gets the current user scale factor.
|
||||||
|
|
||||||
@see SetUserScale()
|
@see SetUserScale()
|
||||||
*/
|
*/
|
||||||
void GetUserScale(double x, double y);
|
void GetUserScale(double* x, double* y) const;
|
||||||
|
|
||||||
//@{
|
//@{
|
||||||
/**
|
/**
|
||||||
@@ -752,10 +752,9 @@ public:
|
|||||||
to use @a initialColour on the left part of the rectangle and
|
to use @a initialColour on the left part of the rectangle and
|
||||||
@a destColour on the right one.
|
@a destColour on the right one.
|
||||||
*/
|
*/
|
||||||
void GradientFillLinear(const wxRect& rect,
|
void GradientFillLinear(const wxRect& rect, const wxColour& initialColour,
|
||||||
const wxColour& initialColour,
|
|
||||||
const wxColour& destColour,
|
const wxColour& destColour,
|
||||||
wxDirection nDirection = wxEAST);
|
wxDirection nDirection = wxRIGHT);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if the DC is ok to use.
|
Returns @true if the DC is ok to use.
|
||||||
@@ -1012,7 +1011,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Starts a document page (only relevant when outputting to a printer).
|
Starts a document page (only relevant when outputting to a printer).
|
||||||
*/
|
*/
|
||||||
bool StartPage();
|
void StartPage();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy from a source DC to this DC, specifying the destination
|
Copy from a source DC to this DC, specifying the destination
|
||||||
|
@@ -44,7 +44,7 @@ public:
|
|||||||
chose to cancel report generation or removed all files from
|
chose to cancel report generation or removed all files from
|
||||||
it.
|
it.
|
||||||
*/
|
*/
|
||||||
virtual bool Show(wxDebugReport& dbgrpt) const;
|
virtual bool Show(wxDebugReport& dbgrpt) const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ public:
|
|||||||
Returns the full path of the compressed file (empty if creation
|
Returns the full path of the compressed file (empty if creation
|
||||||
failed).
|
failed).
|
||||||
*/
|
*/
|
||||||
const wxString GetCompressedFileName() const;
|
const wxString& GetCompressedFileName() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -205,25 +205,25 @@ public:
|
|||||||
This function may be overridden to add arbitrary custom context to the
|
This function may be overridden to add arbitrary custom context to the
|
||||||
XML context file created by AddContext(). By default, it does nothing.
|
XML context file created by AddContext(). By default, it does nothing.
|
||||||
*/
|
*/
|
||||||
void DoAddCustomContext(wxXmlNode* nodeRoot);
|
virtual void DoAddCustomContext(wxXmlNode* nodeRoot);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function may be overridden to modify the contents of the exception
|
This function may be overridden to modify the contents of the exception
|
||||||
tag in the XML context file.
|
tag in the XML context file.
|
||||||
*/
|
*/
|
||||||
bool DoAddExceptionInfo(wxXmlNode* nodeContext);
|
virtual bool DoAddExceptionInfo(wxXmlNode* nodeContext);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function may be overridden to modify the contents of the modules
|
This function may be overridden to modify the contents of the modules
|
||||||
tag in the XML context file.
|
tag in the XML context file.
|
||||||
*/
|
*/
|
||||||
bool DoAddLoadedModules(wxXmlNode* nodeModules);
|
virtual bool DoAddLoadedModules(wxXmlNode* nodeModules);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function may be overridden to modify the contents of the system
|
This function may be overridden to modify the contents of the system
|
||||||
tag in the XML context file.
|
tag in the XML context file.
|
||||||
*/
|
*/
|
||||||
bool DoAddSystemInfo(wxXmlNode* nodeSystemInfo);
|
virtual bool DoAddSystemInfo(wxXmlNode* nodeSystemInfo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This method should be used to construct the full name of the files
|
This method should be used to construct the full name of the files
|
||||||
@@ -232,7 +232,7 @@ public:
|
|||||||
@return The name of the temporary directory used for the files in this
|
@return The name of the temporary directory used for the files in this
|
||||||
report.
|
report.
|
||||||
*/
|
*/
|
||||||
const wxString GetDirectory() const;
|
const wxString& GetDirectory() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the name (relative to GetDirectory()) and the description of
|
Retrieves the name (relative to GetDirectory()) and the description of
|
||||||
@@ -341,6 +341,6 @@ public:
|
|||||||
returned. Value returned by this function becomes the return value of
|
returned. Value returned by this function becomes the return value of
|
||||||
wxDebugReport::Process().
|
wxDebugReport::Process().
|
||||||
*/
|
*/
|
||||||
bool OnServerReply(const wxArrayString& reply);
|
virtual bool OnServerReply(const wxArrayString& reply);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -207,9 +207,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
bool Create(wxWindow* parent, wxWindowID id, const wxString& title,
|
bool Create(wxWindow* parent, wxWindowID id, const wxString& title,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize, long style = 536877056,
|
||||||
long style = wxDEFAULT_DIALOG_STYLE,
|
const wxString& name = wxDialogNameStr);
|
||||||
const wxString& name = "dialogBox");
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a sizer with standard buttons. @a flags is a bit list of the
|
Creates a sizer with standard buttons. @a flags is a bit list of the
|
||||||
@@ -343,7 +342,7 @@ public:
|
|||||||
|
|
||||||
@see @ref overview_dialog_autoscrolling (for more on layout adaptation)
|
@see @ref overview_dialog_autoscrolling (for more on layout adaptation)
|
||||||
*/
|
*/
|
||||||
wxArrayInt GetMainButtonIds();
|
wxArrayInt& GetMainButtonIds();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets the return code for this window.
|
Gets the return code for this window.
|
||||||
@@ -549,7 +548,7 @@ public:
|
|||||||
otherwise the box is hidden. If @false and the dialog is modal,
|
otherwise the box is hidden. If @false and the dialog is modal,
|
||||||
control is returned to the calling program.
|
control is returned to the calling program.
|
||||||
*/
|
*/
|
||||||
bool Show(bool show);
|
virtual bool Show(bool show = 1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Shows a modal dialog.
|
Shows a modal dialog.
|
||||||
@@ -599,13 +598,13 @@ public:
|
|||||||
/**
|
/**
|
||||||
Override this to returns @true if adaptation can and should be done.
|
Override this to returns @true if adaptation can and should be done.
|
||||||
*/
|
*/
|
||||||
bool CanDoLayoutAdaptation(wxDialog* dialog);
|
virtual bool CanDoLayoutAdaptation(wxDialog* dialog) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Override this to perform layout adaptation, such as making parts of the
|
Override this to perform layout adaptation, such as making parts of the
|
||||||
dialog scroll and resizing the dialog to fit the display. Normally this
|
dialog scroll and resizing the dialog to fit the display. Normally this
|
||||||
function will be called just before the dialog is shown.
|
function will be called just before the dialog is shown.
|
||||||
*/
|
*/
|
||||||
bool DoLayoutAdaptation(wxDialog* dialog);
|
virtual bool DoLayoutAdaptation(wxDialog* dialog) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -53,7 +53,7 @@ public:
|
|||||||
|
|
||||||
@see IsDialing()
|
@see IsDialing()
|
||||||
*/
|
*/
|
||||||
bool CancelDialing();
|
virtual bool CancelDialing() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function should create and return the object of the
|
This function should create and return the object of the
|
||||||
@@ -80,16 +80,16 @@ public:
|
|||||||
returns immediately - the result is reported via events (an event is
|
returns immediately - the result is reported via events (an event is
|
||||||
sent anyhow, but if dialing failed it will be a DISCONNECTED one).
|
sent anyhow, but if dialing failed it will be a DISCONNECTED one).
|
||||||
*/
|
*/
|
||||||
bool Dial(const wxString& nameOfISP = wxEmptyString,
|
virtual bool Dial(const wxString& nameOfISP = wxEmptyString,
|
||||||
const wxString& username = wxEmptyString,
|
const wxString& username = wxEmptyString,
|
||||||
const wxString& password = wxEmptyString,
|
const wxString& password = wxEmptyString,
|
||||||
bool async = true);
|
bool async = true) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Disable automatic check for connection status change - notice that the
|
Disable automatic check for connection status change - notice that the
|
||||||
@c wxEVT_DIALUP_XXX events won't be sent any more neither.
|
@c wxEVT_DIALUP_XXX events won't be sent any more neither.
|
||||||
*/
|
*/
|
||||||
void DisableAutoCheckOnlineStatus();
|
virtual void DisableAutoCheckOnlineStatus() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enable automatic checks for the connection status and sending of
|
Enable automatic checks for the connection status and sending of
|
||||||
@@ -102,7 +102,7 @@ public:
|
|||||||
|
|
||||||
@return @false if couldn't set up automatic check for online status.
|
@return @false if couldn't set up automatic check for online status.
|
||||||
*/
|
*/
|
||||||
bool EnableAutoCheckOnlineStatus(size_t nSeconds = 60);
|
virtual bool EnableAutoCheckOnlineStatus(size_t nSeconds = 60) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is only implemented under Windows.
|
This function is only implemented under Windows.
|
||||||
@@ -111,12 +111,12 @@ public:
|
|||||||
parameter to Dial() on this machine and returns their number (may be
|
parameter to Dial() on this machine and returns their number (may be
|
||||||
0).
|
0).
|
||||||
*/
|
*/
|
||||||
size_t GetISPNames(wxArrayString& names) const;
|
virtual size_t GetISPNames(wxArrayString& names) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Hang up the currently active dial up connection.
|
Hang up the currently active dial up connection.
|
||||||
*/
|
*/
|
||||||
bool HangUp();
|
virtual bool HangUp() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if the computer has a permanent network connection (i.e.
|
Returns @true if the computer has a permanent network connection (i.e.
|
||||||
@@ -127,14 +127,14 @@ public:
|
|||||||
guaranteed to be correct, so it is better to ask user for
|
guaranteed to be correct, so it is better to ask user for
|
||||||
confirmation or give him a possibility to override it.
|
confirmation or give him a possibility to override it.
|
||||||
*/
|
*/
|
||||||
bool IsAlwaysOnline() const;
|
virtual bool IsAlwaysOnline() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if (async) dialing is in progress.
|
Returns @true if (async) dialing is in progress.
|
||||||
|
|
||||||
@see Dial()
|
@see Dial()
|
||||||
*/
|
*/
|
||||||
bool IsDialing() const;
|
virtual bool IsDialing() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if the dialup manager was initialized correctly. If this
|
Returns @true if the dialup manager was initialized correctly. If this
|
||||||
@@ -142,7 +142,7 @@ public:
|
|||||||
a good idea to call this function and check its result before calling
|
a good idea to call this function and check its result before calling
|
||||||
any other wxDialUpManager methods.
|
any other wxDialUpManager methods.
|
||||||
*/
|
*/
|
||||||
bool IsOk() const;
|
virtual bool IsOk() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if the computer is connected to the network: under
|
Returns @true if the computer is connected to the network: under
|
||||||
@@ -150,7 +150,7 @@ public:
|
|||||||
check that the "well-known host" (as specified by SetWellKnownHost())
|
check that the "well-known host" (as specified by SetWellKnownHost())
|
||||||
is reachable.
|
is reachable.
|
||||||
*/
|
*/
|
||||||
bool IsOnline() const;
|
virtual bool IsOnline() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This method is for Unix only.
|
This method is for Unix only.
|
||||||
@@ -168,7 +168,7 @@ public:
|
|||||||
|
|
||||||
@see IsOnline()
|
@see IsOnline()
|
||||||
*/
|
*/
|
||||||
void SetOnlineStatus(bool isOnline = true);
|
virtual void SetOnlineStatus(bool isOnline = true) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This method is for Unix only.
|
This method is for Unix only.
|
||||||
@@ -178,7 +178,8 @@ public:
|
|||||||
function is always safe to call. The default value is
|
function is always safe to call. The default value is
|
||||||
@c "www.yahoo.com:80".
|
@c "www.yahoo.com:80".
|
||||||
*/
|
*/
|
||||||
void SetWellKnownHost(const wxString& hostname, int portno = 80);
|
virtual void SetWellKnownHost(const wxString& hostname,
|
||||||
|
int portno = 80) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -68,7 +68,7 @@ public:
|
|||||||
This is a pure virtual function and must be implemented in the derived
|
This is a pure virtual function and must be implemented in the derived
|
||||||
class.
|
class.
|
||||||
*/
|
*/
|
||||||
virtual wxDirTraverseResult OnDir(const wxString& dirname);
|
virtual wxDirTraverseResult OnDir(const wxString& dirname) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is called for each file. It may return ::wxDIR_STOP to
|
This function is called for each file. It may return ::wxDIR_STOP to
|
||||||
@@ -78,7 +78,7 @@ public:
|
|||||||
This is a pure virtual function and must be implemented in the derived
|
This is a pure virtual function and must be implemented in the derived
|
||||||
class.
|
class.
|
||||||
*/
|
*/
|
||||||
virtual wxDirTraverseResult OnFile(const wxString& filename);
|
virtual wxDirTraverseResult OnFile(const wxString& filename) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is called for each directory which we failed to open for
|
This function is called for each directory which we failed to open for
|
||||||
|
@@ -91,13 +91,12 @@ public:
|
|||||||
Create function for two-step construction. See wxGenericDirCtrl() for
|
Create function for two-step construction. See wxGenericDirCtrl() for
|
||||||
details.
|
details.
|
||||||
*/
|
*/
|
||||||
bool Create(wxWindow* parent, const wxWindowID id = -1,
|
bool Create(wxWindow* parent, const wxWindowID id = wxID_ANY,
|
||||||
const wxString& dir = wxDirDialogDefaultFolderStr,
|
const wxString& dir = wxDirDialogDefaultFolderStr,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = wxDIRCTRL_3D_INTERNAL|wxBORDER_SUNKEN,
|
long style = wxDIRCTRL_3D_INTERNAL,
|
||||||
const wxString& filter = wxEmptyString,
|
const wxString& filter = wxEmptyString, int defaultFilter = 0,
|
||||||
int defaultFilter = 0,
|
|
||||||
const wxString& name = wxTreeCtrlNameStr);
|
const wxString& name = wxTreeCtrlNameStr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -27,7 +27,7 @@ public:
|
|||||||
The index of the display to use. This must be non-negative and
|
The index of the display to use. This must be non-negative and
|
||||||
lower than the value returned by GetCount().
|
lower than the value returned by GetCount().
|
||||||
*/
|
*/
|
||||||
wxDisplay(unsigned index = 0);
|
wxDisplay(unsigned int n = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destructor.
|
Destructor.
|
||||||
|
@@ -42,7 +42,7 @@ public:
|
|||||||
|
|
||||||
Return @true to accept the data, or @false to veto the operation.
|
Return @true to accept the data, or @false to veto the operation.
|
||||||
*/
|
*/
|
||||||
virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& data);
|
virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& data) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -127,7 +127,7 @@ public:
|
|||||||
to override (but still call) this function in order to set the keyboard
|
to override (but still call) this function in order to set the keyboard
|
||||||
focus for your subwindow.
|
focus for your subwindow.
|
||||||
*/
|
*/
|
||||||
void OnActivate(wxActivateEvent event);
|
void OnActivate(wxActivateEvent& event);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Closes and deletes the current view and document.
|
Closes and deletes the current view and document.
|
||||||
|
@@ -64,10 +64,9 @@ public:
|
|||||||
wxDocTemplate(wxDocManager* manager, const wxString& descr,
|
wxDocTemplate(wxDocManager* manager, const wxString& descr,
|
||||||
const wxString& filter, const wxString& dir,
|
const wxString& filter, const wxString& dir,
|
||||||
const wxString& ext, const wxString& docTypeName,
|
const wxString& ext, const wxString& docTypeName,
|
||||||
const wxString& viewTypeName,
|
const wxString& viewTypeName, wxClassInfo* docClassInfo = 0,
|
||||||
wxClassInfo* docClassInfo = NULL,
|
wxClassInfo* viewClassInfo = 0,
|
||||||
wxClassInfo* viewClassInfo = NULL,
|
long flags = wxTEMPLATE_VISIBLE);
|
||||||
long flags = wxDEFAULT_TEMPLATE_FLAGS);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destructor.
|
Destructor.
|
||||||
@@ -346,7 +345,7 @@ public:
|
|||||||
allowed for the document (by virtue of multiple templates mentioning
|
allowed for the document (by virtue of multiple templates mentioning
|
||||||
the same document type), a choice of view is presented to the user.
|
the same document type), a choice of view is presented to the user.
|
||||||
*/
|
*/
|
||||||
wxView* CreateView(wxDocument* doc, long flags);
|
virtual wxView* CreateView(wxDocument* doc, long flags = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Removes the template from the list of templates.
|
Removes the template from the list of templates.
|
||||||
@@ -415,7 +414,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns a reference to the list of documents.
|
Returns a reference to the list of documents.
|
||||||
*/
|
*/
|
||||||
wxList GetDocuments();
|
wxList& GetDocuments();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns a pointer to file history.
|
Returns a pointer to file history.
|
||||||
@@ -441,7 +440,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns a reference to the list of associated templates.
|
Returns a reference to the list of associated templates.
|
||||||
*/
|
*/
|
||||||
wxList GetTemplates();
|
wxList& GetTemplates();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initializes data; currently just calls OnCreateFileHistory().
|
Initializes data; currently just calls OnCreateFileHistory().
|
||||||
@@ -528,9 +527,9 @@ public:
|
|||||||
|
|
||||||
This function is used in CreateDocument().
|
This function is used in CreateDocument().
|
||||||
*/
|
*/
|
||||||
wxDocTemplate* SelectDocumentPath(wxDocTemplate** templates,
|
virtual wxDocTemplate* SelectDocumentPath(wxDocTemplate** templates,
|
||||||
int noTemplates, wxString& path,
|
int noTemplates, wxString& path,
|
||||||
long flags, bool save);
|
long flags, bool save = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns a document template by asking the user (if there is more than
|
Returns a document template by asking the user (if there is more than
|
||||||
@@ -758,7 +757,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Override this function to render the view on the given device context.
|
Override this function to render the view on the given device context.
|
||||||
*/
|
*/
|
||||||
virtual void OnDraw(wxDC* dc);
|
virtual void OnDraw(wxDC* dc) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Called when the view should be updated.
|
Called when the view should be updated.
|
||||||
@@ -772,7 +771,7 @@ public:
|
|||||||
application-specific information for making updating more
|
application-specific information for making updating more
|
||||||
efficient.
|
efficient.
|
||||||
*/
|
*/
|
||||||
virtual void OnUpdate(wxView* sender, wxObject* hint);
|
virtual void OnUpdate(wxView* sender, wxObject* hint = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Associates the given document with the view. Normally called by the
|
Associates the given document with the view. Normally called by the
|
||||||
@@ -865,7 +864,7 @@ public:
|
|||||||
override (but still call) this function in order to set the keyboard
|
override (but still call) this function in order to set the keyboard
|
||||||
focus for your subwindow.
|
focus for your subwindow.
|
||||||
*/
|
*/
|
||||||
void OnActivate(wxActivateEvent event);
|
void OnActivate(wxActivateEvent& event);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Closes and deletes the current view and document.
|
Closes and deletes the current view and document.
|
||||||
@@ -935,12 +934,10 @@ public:
|
|||||||
/**
|
/**
|
||||||
Used in two-step construction.
|
Used in two-step construction.
|
||||||
*/
|
*/
|
||||||
bool Create(wxDocManager* manager, wxFrame* parent,
|
bool Create(wxDocManager* manager, wxFrame* parent, wxWindowID id,
|
||||||
wxWindowID id, const wxString& title,
|
const wxString& title, const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxSize& size = wxDefaultSize, long style = 541072960,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxString& name = wxFrameNameStr);
|
||||||
long style = wxDEFAULT_FRAME_STYLE,
|
|
||||||
const wxString& name = "frame");
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the associated document manager object.
|
Returns the associated document manager object.
|
||||||
@@ -989,7 +986,7 @@ public:
|
|||||||
Constructor. Define your own default constructor to initialize
|
Constructor. Define your own default constructor to initialize
|
||||||
application-specific data.
|
application-specific data.
|
||||||
*/
|
*/
|
||||||
wxDocument();
|
wxDocument(wxDocument* parent = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destructor. Removes itself from the document manager.
|
Destructor. Removes itself from the document manager.
|
||||||
|
@@ -34,7 +34,7 @@ public:
|
|||||||
@return @true if the load address and module size were retrieved,
|
@return @true if the load address and module size were retrieved,
|
||||||
@false if this information is not available.
|
@false if this information is not available.
|
||||||
*/
|
*/
|
||||||
bool GetAddress(void** addr, size_t len) const;
|
bool GetAddress(void* addr, size_t* len) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the base name of this module, e.g. @c "kernel32.dll" or
|
Returns the base name of this module, e.g. @c "kernel32.dll" or
|
||||||
@@ -156,7 +156,7 @@ public:
|
|||||||
|
|
||||||
@see wxDYNLIB_FUNCTION()
|
@see wxDYNLIB_FUNCTION()
|
||||||
*/
|
*/
|
||||||
void* GetSymbol(const wxString& name) const;
|
void* GetSymbol(const wxString& name, bool* success = 0) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is available only under Windows as it is only useful when
|
This function is available only under Windows as it is only useful when
|
||||||
|
@@ -831,7 +831,7 @@ public:
|
|||||||
|
|
||||||
@param perm
|
@param perm
|
||||||
The permissions for the newly created directory.
|
The permissions for the newly created directory.
|
||||||
See wxPosixPermissions enumeration for more info.
|
See the ::wxPosixPermissions enumeration for more info.
|
||||||
@param flags
|
@param flags
|
||||||
If the flags contain @c wxPATH_MKDIR_FULL flag, try to create each
|
If the flags contain @c wxPATH_MKDIR_FULL flag, try to create each
|
||||||
directory in the path and also don't return an error if the target
|
directory in the path and also don't return an error if the target
|
||||||
@@ -849,7 +849,7 @@ public:
|
|||||||
The directory to create
|
The directory to create
|
||||||
@param parm
|
@param parm
|
||||||
The permissions for the newly created directory.
|
The permissions for the newly created directory.
|
||||||
See wxPosixPermissions enumeration for more info.
|
See the ::wxPosixPermissions enumeration for more info.
|
||||||
@param flags
|
@param flags
|
||||||
If the flags contain @c wxPATH_MKDIR_FULL flag, try to create each
|
If the flags contain @c wxPATH_MKDIR_FULL flag, try to create each
|
||||||
directory in the path and also don't return an error if the target
|
directory in the path and also don't return an error if the target
|
||||||
|
Reference in New Issue
Block a user