-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBmpSwitcher.h
50 lines (35 loc) · 1.32 KB
/
BmpSwitcher.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/////////////////////////////////////////////////////////////////////////////
// Name: BmpSwitcher.h
// Purpose: wxIndustrialControls Library
// Author: Marco Cavallini <m.cavallini AT koansoftware.com>
// Modified by:
// Copyright: (C)2004-2006 Copyright by Koan s.a.s. - www.koansoftware.com
// Licence: KWIC License http://www.koansoftware.com/kwic/kwic-license.htm
/////////////////////////////////////////////////////////////////////////////
WX_DECLARE_LIST(wxBitmap, CBmpList);
class kwxBmpSwitcher : public wxWindow
{
public:
kwxBmpSwitcher(wxWindow *parent,
const wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize);
virtual ~kwxBmpSwitcher();
//Incrementa stato di avanzamento
void IncState() ;
//Imposta stato di avanzamento
void SetState(int state) ;
int GetState() { return m_nState ; } ;
//Aggiunge una bitmap alla lista
void AddBitmap(wxBitmap *bitmap) ;
CBmpList m_bmplist;
wxBitmap *m_pCurrent ;
private:
// any class wishing to process wxWindows events must use this macro
DECLARE_EVENT_TABLE()
void OnPaint(wxPaintEvent& event);
// void OnEraseBackGround(wxEraseEvent& event) {};
wxBitmap *membitmap ;
int m_nCount ;
int m_nState ;
} ;