mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Copying ede-bug-report from branches in trunk
This commit is contained in:
42
ede-bug-tools/ede-bug-report/PulseProgress.h
Normal file
42
ede-bug-tools/ede-bug-report/PulseProgress.h
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* ede-bug-report, a tool to report bugs on EDE bugzilla instance
|
||||
* Part of Equinox Desktop Environment (EDE).
|
||||
* Copyright (c) 2009 EDE Authors.
|
||||
*
|
||||
* This program is licensed under terms of the
|
||||
* GNU General Public License version 2 or newer.
|
||||
* See COPYING for details.
|
||||
*/
|
||||
|
||||
#ifndef __PULSEPROGRESS_H__
|
||||
#define __PULSEPROGRESS_H__
|
||||
|
||||
#include <FL/Fl_Widget.H>
|
||||
|
||||
class PulseProgress : public Fl_Widget {
|
||||
private:
|
||||
int cprogress; /* current progress */
|
||||
int blen; /* bar length */
|
||||
int slen; /* step length */
|
||||
|
||||
protected:
|
||||
void draw(void);
|
||||
|
||||
public:
|
||||
PulseProgress(int x, int y, int w, int h, const char *l = 0);
|
||||
|
||||
void bar_len(int l) { blen = l; }
|
||||
int bar_len(void) { return blen; }
|
||||
|
||||
void step_len(int l) { slen = l; }
|
||||
int step_len(void) { return slen; }
|
||||
|
||||
void step(void);
|
||||
|
||||
void restart(void) { cprogress = 0; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user