ToolMap
Loading...
Searching...
No Matches
tmpercent.h
1
/***************************************************************************
2
tmpercent.h
3
For computing percent value (progress dialog)
4
-------------------
5
copyright : (C) 2007 CREALP Lucien Schreiber
6
***************************************************************************/
7
8
/***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
// comment doxygen
18
19
#ifndef _TM_PERCENT_H_
20
#define _TM_PERCENT_H_
21
22
// For compilers that support precompilation, includes "wx/wx.h".
23
#include <wx/wxprec.h>
24
25
// Include wxWidgets' headers
26
#ifndef WX_PRECOMP
27
#include <wx/wx.h>
28
#endif
29
30
// #ifdef __WXMAC__
31
// const int tmPERCENT = 10;
32
// #else
33
const
int
tmPERCENT = 100;
34
// #endif
35
36
class
tmPercent
:
public
wxObject {
37
private
:
38
bool
m_inited;
39
long
m_TotalValue;
40
double
m_Increment;
41
int
m_PreviousPercent;
42
long
m_ActualValue;
43
44
void
InitMemberValue();
45
46
protected
:
47
public
:
48
// ctor - dtor
49
tmPercent
();
50
51
tmPercent
(
long
value);
52
53
void
Create(
long
value);
54
55
~tmPercent
();
56
57
void
SetValue(
long
actualvalue);
58
59
long
GetValue() {
60
return
m_ActualValue;
61
}
62
63
bool
IsNewStep();
64
65
int
GetPercent();
66
};
67
68
#endif
tmPercent
Definition
tmpercent.h:36
src
core
tmpercent.h
Generated by
1.9.8