aboutsummaryrefslogtreecommitdiff
path: root/dpi/downloads.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-03-09 17:52:53 -0300
committerJorge Arellano Cid <jcid@dillo.org>2011-03-09 17:52:53 -0300
commit0d86ba17ae172ebb413ff5d7b8d6ebfec40ba2c7 (patch)
tree08286f7b78feec9de012a9af527fecebe5dc2a7c /dpi/downloads.cc
parent5e16bc10c531b3d65ab5e0484d6160b2f87c9a0e (diff)
parent1d804614e3a1f0f45edb80170b4096111364d134 (diff)
Merged indentation patch. Kept one-char indentation for child widgets
Diffstat (limited to 'dpi/downloads.cc')
-rw-r--r--dpi/downloads.cc52
1 files changed, 26 insertions, 26 deletions
diff --git a/dpi/downloads.cc b/dpi/downloads.cc
index 4f51438d..d289c69a 100644
--- a/dpi/downloads.cc
+++ b/dpi/downloads.cc
@@ -70,33 +70,33 @@ typedef enum {
// class FL_API ProgressBar : public Fl_Widget {
class ProgressBar : public Fl_Widget {
protected:
- double mMin;
- double mMax;
- double mPresent;
- double mStep;
- bool mShowPct, mShowMsg;
- char mMsg[64];
- Fl_Color mTextColor;
- void draw();
+ double mMin;
+ double mMax;
+ double mPresent;
+ double mStep;
+ bool mShowPct, mShowMsg;
+ char mMsg[64];
+ Fl_Color mTextColor;
+ void draw();
public:
- ProgressBar(int x, int y, int w, int h, const char *lbl = 0);
- void range(double min, double max, double step = 1) {
- mMin = min; mMax = max; mStep = step;
- };
- void step(double step) { mPresent += step; redraw(); };
- void move(double step);
- double minimum() { return mMin; }
- double maximum() { return mMax; }
- void minimum(double nm) { mMin = nm; };
- void maximum(double nm) { mMax = nm; };
- double position () { return mPresent; }
- double step() { return mStep; }
- void position(double pos) { mPresent = pos; redraw(); }
- void showtext(bool st) { mShowPct = st; }
- void message(char *msg) { mShowMsg = true; strncpy(mMsg,msg,63); redraw(); }
- bool showtext() { return mShowPct; }
- void text_color(Fl_Color col) { mTextColor = col; }
- Fl_Color text_color() { return mTextColor; }
+ ProgressBar(int x, int y, int w, int h, const char *lbl = 0);
+ void range(double min, double max, double step = 1) {
+ mMin = min; mMax = max; mStep = step;
+ };
+ void step(double step) { mPresent += step; redraw(); };
+ void move(double step);
+ double minimum() { return mMin; }
+ double maximum() { return mMax; }
+ void minimum(double nm) { mMin = nm; };
+ void maximum(double nm) { mMax = nm; };
+ double position () { return mPresent; }
+ double step() { return mStep; }
+ void position(double pos) { mPresent = pos; redraw(); }
+ void showtext(bool st) { mShowPct = st; }
+ void message(char *msg) { mShowMsg = true; strncpy(mMsg,msg,63); redraw(); }
+ bool showtext() { return mShowPct; }
+ void text_color(Fl_Color col) { mTextColor = col; }
+ Fl_Color text_color() { return mTextColor; }
};
// Download-item class -------------------------------------------------------