-class wxListCtrl: public wxControl
-{
- DECLARE_DYNAMIC_CLASS(wxListCtrl);
-
- public:
-
- wxListCtrl(void);
- wxListCtrl( wxWindow *parent, const wxWindowID id,
- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
- const long style = 0, const wxString &name = "listctrl" );
- ~wxListCtrl(void);
- bool Create( wxWindow *parent, const wxWindowID id,
- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
- const long style = 0, const wxString &name = "listctrl" );
- void OnSize( wxSizeEvent &event );
- void SetBackgroundColour( const wxColour& col );
- bool GetColumn( const int col, wxListItem& item );
- bool SetColumn( const int col, wxListItem& item );
- int GetColumnWidth( const int col );
- bool SetColumnWidth( const int col, const int width);
- int GetCountPerPage(void); // not the same in wxGLC as in Windows, I think
-// wxText& GetEditControl(void) const; // not supported in wxGLC
- bool GetItem( wxListItem& info );
- bool SetItem( wxListItem& info ) ;
- long SetItem( const long index, const int col, const wxString& label, const int imageId = -1 );
- int GetItemState( const long item, const long stateMask );
- bool SetItemState( const long item, const long state, const long stateMask);
- bool SetItemImage( const long item, const int image, const int selImage);
- wxString GetItemText( const long item );
- void SetItemText( const long item, const wxString& str );
- long GetItemData( const long item );
- bool SetItemData( const long item, long data );
- bool GetItemRect( const long item, wxRectangle& rect, const int code = wxLIST_RECT_BOUNDS ); // not supported in wxGLC
- bool GetItemPosition( const long item, wxPoint& pos ) const; // not supported in wxGLC
- bool SetItemPosition( const long item, const wxPoint& pos ); // not supported in wxGLC
- int GetItemCount(void);
- int GetItemSpacing( bool isSmall );
- int GetSelectedItemCount(void);
-// wxColour GetTextColour(void) const; // wxGLC has colours for every Item (see wxListItem)
-// void SetTextColour(const wxColour& col);
- long GetTopItem(void);
- void SetSingleStyle( const long style, const bool add = TRUE ) ;
- void SetWindowStyleFlag(const long style);
- void RecreateWindow(void) {};
- long GetNextItem(const long item, int geometry = wxLIST_NEXT_ALL, int state = wxLIST_STATE_DONTCARE);
- wxImageList *GetImageList(const int which);
- void SetImageList(wxImageList *imageList, const int which) ;
- bool Arrange( const int flag = wxLIST_ALIGN_DEFAULT ); // always wxLIST_ALIGN_LEFT in wxGLC
- bool DeleteItem( const long item );
- bool DeleteAllItems(void) ;
- bool DeleteColumn( const int col );
-// wxText& Edit(const long item) ; // not supported in wxGLC
- bool EnsureVisible( const long item );
- long FindItem(const long start, const wxString& str, const bool partial = FALSE );
- long FindItem(const long start, const long data);
- long FindItem(const long start, const wxPoint& pt, const int direction); // not supported in wxGLC
- long HitTest(const wxPoint& point, int& flags);
- long InsertItem(wxListItem& info);
- long InsertItem(const long index, const wxString& label);
- long InsertItem(const long index, const int imageIndex);
- long InsertItem(const long index, const wxString& label, const int imageIndex);
- long InsertColumn(const long col, wxListItem& info);
- long InsertColumn(const long col, const wxString& heading, const int format = wxLIST_FORMAT_LEFT,
- const int width = -1);
- bool ScrollList(const int dx, const int dy);
- bool SortItems(wxListCtrlCompare fn, long data);
- bool Update(const long item);
- virtual bool OnListNotify(wxListEvent& WXUNUSED(event)) { return FALSE; }
- void SetDropTarget( wxDropTarget *dropTarget )
- { m_mainWin->SetDropTarget( dropTarget ); };
- wxDropTarget *GetDropTarget() const
- { return m_mainWin->GetDropTarget(); };
-
- void OnIdle( wxIdleEvent &event );