source: filezilla/trunk/fuentes/src/interface/customheightlistctrl.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 888 bytes
Line 
1#ifndef __CUSTOMHIGHTLISTCTRL_H__
2#define __CUSTOMHIGHTLISTCTRL_H__
3
4#include <set>
5#include <wx/scrolwin.h>
6
7class wxCustomHeightListCtrl : public wxScrolledWindow
8{
9public:
10        wxCustomHeightListCtrl(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHSCROLL | wxVSCROLL, const wxString& name = _T("scrolledWindow"));
11
12        void SetLineHeight(int height);
13        void SetLineCount(int count);
14
15        virtual void SetFocus();
16
17        void ClearSelection();
18
19        std::set<int> GetSelection() const;
20        void SelectLine(int line);
21
22        void AllowSelection(bool allow_selection);
23
24protected:
25        virtual void OnDraw(wxDC& dc);
26
27        DECLARE_EVENT_TABLE()
28        void OnMouseEvent(wxMouseEvent& event);
29
30        int m_lineHeight;
31        int m_lineCount;
32
33        std::set<int> m_selectedLines;
34        int m_focusedLine;
35
36        bool m_allow_selection;
37};
38
39#endif //__CUSTOMHIGHTLISTCTRL_H__
Note: See TracBrowser for help on using the repository browser.