blob: 2c92693e46a8b4d21eeb0d7ed28183fb6f778c7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// -*- mode: c++; c-basic-offset: 2; -*-
#ifndef GUI_PROGRESS_HH
#define GUI_PROGRESS_HH
#include <string>
#include <vector>
#include "gui_window.hh"
class GuiProgress : public GuiWindow {
public:
class Listener : public GuiWindow::Listener {
public:
virtual ~Listener() {}
virtual bool about_to_close(GuiProgress* progress) = 0;
protected:
Listener() {}
};
static GuiProgress* create(std::string const& title,
std::string const& text,
float min, float max);
virtual void add_listener(Listener* listener) = 0;
virtual void remove_listener(Listener* listener) = 0;
virtual void show(GuiWindow* parent) = 0;
virtual void set_progress(float progress) = 0;
protected:
GuiProgress() {}
};
#endif // GUI_PROGRESS_HH
|