Some doc corrections (added blank lines at end of docs); corrected Forty sample
dialog behaviour; added dummy menubar constructors; corrected wxMSW wxRegion bug git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,7 +144,7 @@ public:
|
||||
wxBitmap(char **data, wxControl* control = NULL);
|
||||
|
||||
// Load a file or resource
|
||||
wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_XBM);
|
||||
wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_XPM);
|
||||
|
||||
// Constructor for generalised creation from data
|
||||
wxBitmap(void *data, long type, int width, int height, int depth = 1);
|
||||
@@ -155,7 +155,7 @@ public:
|
||||
|
||||
virtual bool Create(int width, int height, int depth = -1);
|
||||
virtual bool Create(void *data, long type, int width, int height, int depth = 1);
|
||||
virtual bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_XBM);
|
||||
virtual bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_XPM);
|
||||
virtual bool SaveFile(const wxString& name, int type, const wxPalette *cmap = NULL);
|
||||
|
||||
inline bool Ok() const { return (M_BITMAPDATA && M_BITMAPDATA->m_ok); }
|
||||
|
@@ -50,14 +50,14 @@ public:
|
||||
// Initialize with XPM data
|
||||
wxIcon(char **data);
|
||||
|
||||
wxIcon(const wxString& name, long flags = wxBITMAP_TYPE_ICO_RESOURCE,
|
||||
wxIcon(const wxString& name, long flags = wxBITMAP_TYPE_XPM,
|
||||
int desiredWidth = -1, int desiredHeight = -1);
|
||||
~wxIcon();
|
||||
|
||||
bool LoadFile(const wxString& name, long flags = wxBITMAP_TYPE_ICO_RESOURCE,
|
||||
bool LoadFile(const wxString& name, long flags = wxBITMAP_TYPE_XPM,
|
||||
int desiredWidth = -1, int desiredHeight = -1);
|
||||
bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_XBM)
|
||||
{ return wxBitmap::LoadFile(name, type); }
|
||||
// bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_XBM)
|
||||
// { return wxBitmap::LoadFile(name, type); }
|
||||
|
||||
inline wxIcon& operator = (const wxIcon& icon) { if (*this == icon) return (*this); Ref(icon); return *this; }
|
||||
inline bool operator == (const wxIcon& icon) { return m_refData == icon.m_refData; }
|
||||
|
@@ -169,6 +169,7 @@ class WXDLLEXPORT wxMenuBar: public wxEvtHandler
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxMenuBar)
|
||||
|
||||
wxMenuBar( long style );
|
||||
wxMenuBar();
|
||||
wxMenuBar(int n, wxMenu *menus[], const wxString titles[]);
|
||||
~wxMenuBar();
|
||||
|
@@ -143,6 +143,7 @@ class WXDLLEXPORT wxMenuBar: public wxEvtHandler
|
||||
|
||||
public:
|
||||
wxMenuBar();
|
||||
wxMenuBar( long style );
|
||||
wxMenuBar(int n, wxMenu *menus[], const wxString titles[]);
|
||||
~wxMenuBar();
|
||||
|
||||
|
@@ -42,27 +42,27 @@ class WXDLLEXPORT wxPropertySheet: public wxObject
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxPropertySheet)
|
||||
public:
|
||||
wxPropertySheet(wxString name = "");
|
||||
wxPropertySheet(const wxString& name = "");
|
||||
~wxPropertySheet(void);
|
||||
|
||||
// Set the name of the sheet
|
||||
inline virtual void SetName(wxString name) { m_name=name; }
|
||||
inline virtual wxString GetName() { return m_name; }
|
||||
inline virtual void SetName(const wxString& name) { m_name=name; }
|
||||
inline virtual wxString GetName() const { return m_name; }
|
||||
// Does this sheet contain a property with this name
|
||||
virtual bool HasProperty(wxString name);
|
||||
virtual bool HasProperty(const wxString& name) const;
|
||||
|
||||
// Set property name to value
|
||||
virtual bool SetProperty(const wxString name, wxPropertyValue value);
|
||||
virtual bool SetProperty(const wxString& name, const wxPropertyValue& value);
|
||||
|
||||
// Remove property from sheet by name, deleting it
|
||||
virtual void RemoveProperty(wxString name);
|
||||
virtual void RemoveProperty(const wxString& name);
|
||||
|
||||
// Get the name of the sheet
|
||||
// Add a property
|
||||
virtual void AddProperty(wxProperty *property);
|
||||
|
||||
// Get property by name
|
||||
virtual wxProperty *GetProperty(wxString name);
|
||||
virtual wxProperty *GetProperty(const wxString& name) const;
|
||||
|
||||
// Clear all properties
|
||||
virtual void Clear(void);
|
||||
|
Reference in New Issue
Block a user