MythTV
0.27pre
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
libs
libmythui
mythuiprogressbar.h
Go to the documentation of this file.
1
#ifndef MYTHUI_PROGRESSBAR_H_
2
#define MYTHUI_PROGRESSBAR_H_
3
4
#include "
mythuitype.h
"
5
#include "
mythuiimage.h
"
6
#include "
mythuishape.h
"
7
14
class
MUI_PUBLIC
MythUIProgressBar
:
public
MythUIType
15
{
16
public
:
17
MythUIProgressBar
(
MythUIType
*parent,
const
QString &
name
);
18
~MythUIProgressBar
() { }
19
20
void
Reset
(
void
);
21
22
enum
LayoutType
{
LayoutVertical
, LayoutHorizontal };
23
enum
EffectType
{ EffectReveal, EffectSlide, EffectAnimate };
24
25
void
SetStart(
int
);
26
void
SetUsed(
int
);
27
void
SetTotal(
int
);
28
int
GetUsed
(
void
) {
return
m_current; }
29
30
protected
:
31
virtual
bool
ParseElement
(
32
const
QString &
filename
, QDomElement &element,
bool
showWarnings);
33
virtual
void
CopyFrom
(
MythUIType
*base);
34
virtual
void
CreateCopy
(
MythUIType
*parent);
35
virtual
void
Finalize
(
void
);
36
37
LayoutType
m_layout
;
38
EffectType
m_effect
;
39
40
int
m_total
;
41
int
m_start
;
42
int
m_current
;
43
44
void
CalculatePosition(
void
);
45
};
46
47
#endif
Generated on Thu Jun 20 2013 07:00:05 for MythTV by
1.8.1.2