00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
#ifndef PROGRESSBAR_H
00028
#define PROGRESSBAR_H
00029
#include <vdk/vdkobj.h>
00030
#include <vdk/vdkprops.h>
00031
class VDKForm;
00038 class VDKProgressBar:
public VDKObject
00039 {
00040
00041
protected:
00042
double min,max;
00043
public:
00047 VDKReadWriteValueProp<VDKProgressBar, double>
Value;
00051 VDKReadWriteValueProp<VDKProgressBar, int>
BlockCount;
00059 VDKReadWriteValueProp<VDKProgressBar, int>
BarStyle;
00070 VDKReadWriteValueProp<VDKProgressBar, int>
BarOrientation;
00074 VDKReadWriteValueProp<VDKProgressBar, bool>
ActivityMode;
00075
public:
00082
VDKProgressBar(
VDKForm* owner,
00083
double min = 0.0,
double max = 1.0);
00087
virtual ~VDKProgressBar();
00091
void Update(
double val);
00095
double Position();
00096
void SetBlockCount(
int bc)
00097 {
00098 gtk_progress_bar_set_discrete_blocks (GTK_PROGRESS_BAR (widget),
00099 bc);
00100 }
00101
00102
00103
00104
00105
void SetBarStyle(
int style)
00106 {
00107 gtk_progress_bar_set_bar_style (GTK_PROGRESS_BAR (widget),
00108 (GtkProgressBarStyle) style);
00109 }
00110
00111
00112
00113
00114
00115
00116
void SetBarOrientation(
int orientation)
00117 {
00118 gtk_progress_bar_set_orientation (GTK_PROGRESS_BAR (widget),
00119 (GtkProgressBarOrientation) orientation);
00120 }
00121
00122
00123
void SetActivityMode(
bool flag)
00124 {
00125 gtk_progress_set_activity_mode (GTK_PROGRESS (widget),
00126 flag);
00127 }
00128 };
00129
#endif