1 #ifndef __wxContour_ListViewPanel_h_INCLUDED_H__
2 #define __wxContour_ListViewPanel_h_INCLUDED_H__
5 // -----------------------------------------------------------------------------------------------------------
6 // WX headers inclusion.
7 // For compilers that support precompilation, includes <wx/wx.h>.
8 // -----------------------------------------------------------------------------------------------------------
10 #include <wx/wxprec.h>
19 //------------------------------------------------------------------------------------------------------------
21 //------------------------------------------------------------------------------------------------------------
22 #include <wx/listctrl.h>
24 //------------------------------------------------------------------------------------------------------------
26 //------------------------------------------------------------------------------------------------------------
27 /*BEGIN_DECLARE_EVENT_TYPES()
28 DECLARE_EVENT_TYPE( wxEVT_CONCEPT_RELEASE, -1 )
29 END_DECLARE_EVENT_TYPES()*/
31 /** file wxContour_ListViewPanel.h */
33 class wxContour_ControlPanel;
34 //------------------------------------------------------------------------------------------------------------
36 //------------------------------------------------------------------------------------------------------------
37 class wxContour_ListViewPanel : public wxListCtrl {
41 //------------------------------------------------------------------------------------------------------------
42 // Constructors & Destructors
43 //------------------------------------------------------------------------------------------------------------
45 wxContour_ListViewPanel(wxWindow *parent,const wxWindowID id, const wxPoint& pos,const wxSize& size,long style);
47 ~wxContour_ListViewPanel();
49 //------------------------------------------------------------------------------------------------------------
50 // Methods for capturing events
51 //------------------------------------------------------------------------------------------------------------
52 void InsertItemInReportView(int i);
54 void OnColClick(wxListEvent& event);
55 void OnColRightClick(wxListEvent& event);
56 void OnColBeginDrag(wxListEvent& event);
57 void OnColDragging(wxListEvent& event);
58 void OnColEndDrag(wxListEvent& event);
59 void OnBeginDrag(wxListEvent& event);
60 void OnBeginRDrag(wxListEvent& event);
61 void OnBeginLabelEdit(wxListEvent& event);
62 void OnEndLabelEdit(wxListEvent& event);
63 void OnDeleteItem(wxListEvent& event);
64 void OnDeleteAllItems(wxListEvent& event);
66 void OnGetInfo(wxListEvent& event);
67 void OnSetInfo(wxListEvent& event);
69 void OnSelected(wxListEvent& event);
70 void OnDeselected(wxListEvent& event);
71 void OnListKeyDown(wxListEvent& event);
72 void OnActivated(wxListEvent& event);
73 void OnFocused(wxListEvent& event);
74 void OnCacheHint(wxListEvent& event);
76 void OnChar(wxKeyEvent& event);
78 void OnContextMenu(wxContextMenuEvent& event);
79 void OnRightClick(wxMouseEvent& event);
81 //------------------------------------------------------------------------------------------------------------
82 // Methods for sending events
83 //------------------------------------------------------------------------------------------------------------
84 void sendEnvent( WXTYPE theEventType );
87 //------------------------------------------------------------------------------------------------------------
88 // Attributes getters and setters
89 //------------------------------------------------------------------------------------------------------------
91 void setContainerParent( wxContour_ControlPanel * theBuilder);
94 //------------------------------------------------------------------------------------------------------------
95 // Other functional methods
96 //------------------------------------------------------------------------------------------------------------
99 //------------------------------------------------------------------------------------------------------------
101 //------------------------------------------------------------------------------------------------------------
104 void ShowContextMenu(const wxPoint& pos);
106 void SetColumnImage(int col, int image);
109 void LogEvent(const wxListEvent& event, const wxChar *eventName);
110 void LogColEvent(const wxListEvent& event, const wxChar *eventName);
113 virtual wxString OnGetItemText(long item, long column) const;
114 virtual int OnGetItemColumnImage(long item, long column) const;
115 virtual wxListItemAttr *OnGetItemAttr(long item) const;
117 //------------------------------------------------------------------------------------------------------------
118 // Creational and initialization methods
119 //------------------------------------------------------------------------------------------------------------
122 //------------------------------------------------------------------------------------------------------------
124 //------------------------------------------------------------------------------------------------------------
125 wxContour_ControlPanel * containerParent;
127 wxListItemAttr itemsStyle;
130 #endif // __wxContour_ListViewPanel_HEADER_FILE__