X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52479aefae169d5c85cd0e07d159db0b8dd0a965..3dbfe8f44f6ff4f3b888b59111ff51dad45fb060:/include/wx/mac/classic/listctrl.h?ds=sidebyside diff --git a/include/wx/mac/classic/listctrl.h b/include/wx/mac/classic/listctrl.h index 196f97add1..82defacf72 100644 --- a/include/wx/mac/classic/listctrl.h +++ b/include/wx/mac/classic/listctrl.h @@ -12,10 +12,6 @@ #ifndef _WX_LISTCTRL_H_ #define _WX_LISTCTRL_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "listctrl.h" -#endif - #include "wx/control.h" #include "wx/event.h" #include "wx/imaglist.h" @@ -57,7 +53,7 @@ which item. Each image in an image list can contain a mask, and can be made out of either a bitmap, two bitmaps or an icon. See ImagList.h for more details. - Notifications are passed via the wxWindows 2.0 event system. + Notifications are passed via the wxWidgets 2.0 event system. See the sample wxListCtrl app for API usage. @@ -176,14 +172,14 @@ class WXDLLEXPORT wxListCtrl: public wxControl inline wxListCtrl(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "listCtrl") + const wxString& name = wxListCtrlNameStr) { Create(parent, id, pos, size, style, validator, name); } ~wxListCtrl(); bool Create(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxListCtrl"); + long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListCtrlNameStr); // Attributes @@ -256,7 +252,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl int GetColumnCount() const; // Retrieves the spacing between icons in pixels. - // If small is TRUE, gets the spacing for the small icon + // If isSmall is true, gets the spacing for the small icon // view, otherwise the large icon view. int GetItemSpacing(bool isSmall) const; @@ -274,7 +270,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl long GetTopItem() const ; // Add or remove a single window style - void SetSingleStyle(long style, bool add = TRUE) ; + void SetSingleStyle(long style, bool add = true) ; // Set the whole window style void SetWindowStyleFlag(long style) ; @@ -285,7 +281,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl // Returns the item or -1 if unsuccessful. long GetNextItem(long item, int geometry = wxLIST_NEXT_ALL, int state = wxLIST_STATE_DONTCARE) const ; - // Implementation: converts wxWindows style to MSW style. + // Implementation: converts wxWidgets style to MSW style. // Can be a single style flag or a bit list. // oldStyle is 'normalised' so that it doesn't contain // conflicting styles. @@ -335,7 +331,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl // Find an item whose label matches this string, starting from the item after 'start' // or the beginning if 'start' is -1. - long FindItem(long start, const wxString& str, bool partial = FALSE); + long FindItem(long start, const wxString& str, bool partial = false); // Find an item whose data matches this data, starting from the item after 'start' // or the beginning if 'start' is -1.