File: progressbar.h

package info (click to toggle)
photoprint 0.3.8b-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,396 kB
  • ctags: 3,472
  • sloc: cpp: 25,818; sh: 9,132; ansic: 4,778; makefile: 491; sed: 16
file content (23 lines) | stat: -rw-r--r-- 481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PP_PROGRESS_H
#define PP_PROGRESS_H

#include "progress.h"
#include <gtk/gtkwidget.h>

class ProgressBar : public Progress
{
	public:
	ProgressBar(const char *message,bool cancelbutton,GtkWidget *parent=NULL);
	~ProgressBar();
	bool DoProgress(int i,int maxi);
	void SetMessage(const char *msg);
	static void cancel_callback(GtkWidget *wid,gpointer *ob);
	private:
	char *message;
	GtkWidget *window;
	GtkWidget *progressbar;
	GtkWidget *label;
	bool cancelled;
};

#endif