blob: a6c4ebf647dba2fd79ee612d93c9e75fc4dfd786 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/*
* Authors:
* Ted Gould <ted@gould.cx>
*
* Copyright (C) 2007 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef INKSCAPE_EXTENSION_EXECUTION_ENV_H__
#define INKSCAPE_EXTENSION_EXECUTION_ENV_H__
#include <config.h>
#include <glibmm/main.h>
#include <glibmm/ustring.h>
#include <gtkmm/dialog.h>
#include "forward.h"
#include "extension-forward.h"
namespace Inkscape {
namespace Extension {
class ExecutionEnv {
private:
Gtk::Dialog * _visibleDialog;
bool _prefsVisible;
bool _finished;
bool _humanWait;
bool _canceled;
bool _prefsChanged;
bool _livePreview;
bool _shutdown;
bool _selfdelete;
sigc::signal<void> * _changeSignal;
Glib::RefPtr<Glib::MainLoop> _mainloop;
Inkscape::UI::View::View * _doc;
std::list<Glib::ustring> _selected;
sigc::connection _dialogsig;
sigc::connection _changesig;
sigc::connection _timersig;
public:
Effect * _effect;
ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Gtk::Widget * controls = NULL, sigc::signal<void> * changeSignal = NULL, Gtk::Dialog * prefDialog = NULL);
~ExecutionEnv (void);
void run (void);
void livePreview (bool state = true);
void shutdown (bool del = false);
private:
void createPrefsDialog (Gtk::Widget * controls);
void createWorkingDialog (void);
void workingCanceled (const int resp);
void preferencesResponse (const int resp);
void preferencesChange (void);
bool preferencesTimer (void);
void processingCancel (void);
void processingComplete(void);
void documentCancel (void);
void documentCommit (void);
void reselect (void);
};
} } /* namespace Inkscape, Extension */
#endif /* INKSCAPE_EXTENSION_EXECUTION_ENV_H__ */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
|