wxContour_ListViewPanel.h

Go to the documentation of this file.
00001 #ifndef __wxContour_ListViewPanel_h_INCLUDED_H__
00002 #define __wxContour_ListViewPanel_h_INCLUDED_H__
00003 
00004 
00005 // -----------------------------------------------------------------------------------------------------------
00006 // WX headers inclusion.
00007 // For compilers that support precompilation, includes <wx/wx.h>.
00008 // -----------------------------------------------------------------------------------------------------------
00009 
00010 #include <wx/wxprec.h>
00011 #ifdef __BORLANDC__
00012 #pragma hdrstop
00013 #endif
00014 #ifndef WX_PRECOMP
00015 #include <wx/wx.h>
00016 #endif
00017 
00018 
00019 //------------------------------------------------------------------------------------------------------------
00020 // Includes
00021 //------------------------------------------------------------------------------------------------------------
00022 #include <wx/listctrl.h>
00023 
00024 //------------------------------------------------------------------------------------------------------------
00025 // Events declaration
00026 //------------------------------------------------------------------------------------------------------------
00027 /*BEGIN_DECLARE_EVENT_TYPES()
00028         DECLARE_EVENT_TYPE( wxEVT_CONCEPT_RELEASE, -1 ) 
00029 END_DECLARE_EVENT_TYPES()*/
00030 
00033 class wxContour_ControlPanel;
00034 //------------------------------------------------------------------------------------------------------------
00035 // Class definition
00036 //------------------------------------------------------------------------------------------------------------
00037 class wxContour_ListViewPanel : public wxListCtrl {
00038 
00039                 public:
00040 
00041         //------------------------------------------------------------------------------------------------------------
00042         // Constructors & Destructors
00043         //------------------------------------------------------------------------------------------------------------
00044 
00045         wxContour_ListViewPanel(wxWindow *parent,const wxWindowID id, const wxPoint& pos,const wxSize& size,long style);
00046 
00047         ~wxContour_ListViewPanel();
00048 
00049         //------------------------------------------------------------------------------------------------------------
00050         // Methods for capturing events
00051         //------------------------------------------------------------------------------------------------------------
00052          void InsertItemInReportView(int i);
00053 
00054     void OnColClick(wxListEvent& event);
00055     void OnColRightClick(wxListEvent& event);
00056     void OnColBeginDrag(wxListEvent& event);
00057     void OnColDragging(wxListEvent& event);
00058     void OnColEndDrag(wxListEvent& event);
00059     void OnBeginDrag(wxListEvent& event);
00060     void OnBeginRDrag(wxListEvent& event);
00061     void OnBeginLabelEdit(wxListEvent& event);
00062     void OnEndLabelEdit(wxListEvent& event);
00063     void OnDeleteItem(wxListEvent& event);
00064     void OnDeleteAllItems(wxListEvent& event);
00065 
00066     void OnGetInfo(wxListEvent& event);
00067     void OnSetInfo(wxListEvent& event);
00068 
00069     void OnSelected(wxListEvent& event);
00070     void OnDeselected(wxListEvent& event);
00071     void OnListKeyDown(wxListEvent& event);
00072     void OnActivated(wxListEvent& event);
00073     void OnFocused(wxListEvent& event);
00074     void OnCacheHint(wxListEvent& event);
00075 
00076     void OnChar(wxKeyEvent& event);
00077 
00078     void OnContextMenu(wxContextMenuEvent& event);
00079         void OnRightClick(wxMouseEvent& event);
00080                 
00081         //------------------------------------------------------------------------------------------------------------
00082         //  Methods for sending events
00083         //------------------------------------------------------------------------------------------------------------
00084         void sendEnvent( WXTYPE theEventType );
00085 
00086 
00087         //------------------------------------------------------------------------------------------------------------
00088         //  Attributes getters and setters
00089         //------------------------------------------------------------------------------------------------------------
00090         
00091         void setContainerParent( wxContour_ControlPanel * theBuilder);
00092 
00093 
00094         //------------------------------------------------------------------------------------------------------------
00095         //  Other functional methods
00096         //------------------------------------------------------------------------------------------------------------
00097 
00098 private:
00099         //------------------------------------------------------------------------------------------------------------
00100         //  Private methods
00101         //------------------------------------------------------------------------------------------------------------
00102 
00103 
00104         void ShowContextMenu(const wxPoint& pos);
00105     wxLog *m_logOld;
00106     void SetColumnImage(int col, int image);
00107 
00108         /*
00109     void LogEvent(const wxListEvent& event, const wxChar *eventName);
00110     void LogColEvent(const wxListEvent& event, const wxChar *eventName);
00111         */
00112 
00113     virtual wxString OnGetItemText(long item, long column) const;
00114     virtual int OnGetItemColumnImage(long item, long column) const;
00115     virtual wxListItemAttr *OnGetItemAttr(long item) const;
00116 
00117         //------------------------------------------------------------------------------------------------------------
00118         // Creational and initialization methods
00119         //------------------------------------------------------------------------------------------------------------
00120 
00121                 
00122         //------------------------------------------------------------------------------------------------------------
00123         // Attributtes
00124         //------------------------------------------------------------------------------------------------------------
00125         wxContour_ControlPanel * containerParent;
00126 
00127         wxListItemAttr itemsStyle;
00128 
00129 };
00130 #endif // __wxContour_ListViewPanel_HEADER_FILE__
00131 

Generated on Wed Jun 27 23:28:32 2012 for creaContours_lib by  doxygen 1.5.7.1