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

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

First release to xenial

File size: 535 bytes
Line 
1#ifndef __LED_H__
2#define __LED_H__
3
4#include <wx/event.h>
5#include <wx/timer.h>
6
7DECLARE_EVENT_TYPE(fzEVT_UPDATE_LED_TOOLTIP, -1)
8
9class CLed final : public wxWindow
10{
11public:
12        CLed(wxWindow *parent, unsigned int index);
13
14        void Ping();
15
16protected:
17        void Set();
18        void Unset();
19
20        int const m_index;
21        int m_ledState;
22
23        wxBitmap m_leds[2];
24        bool m_loaded{};
25
26        wxTimer m_timer;
27
28        DECLARE_EVENT_TABLE()
29        void OnPaint(wxPaintEvent& event);
30        void OnTimer(wxTimerEvent& event);
31        void OnEnterWindow(wxMouseEvent& event);
32};
33
34#endif //__LED_H__
Note: See TracBrowser for help on using the repository browser.