Source
xxxxxxxxxx
19
19
//# Internet email: aips2-request@nrao.edu.
20
20
//# Postal address: AIPS++ Project Office
21
21
//# National Radio Astronomy Observatory
22
22
//# 520 Edgemont Road
23
23
//# Charlottesville, VA 22903-2475 USA
24
24
//#
25
25
#ifndef DISPLAY_CLEANGUI_H_
26
26
#define DISPLAY_CLEANGUI_H_
27
27
28
28
#include <map>
29
+
#if ! defined(WITHOUT_DBUS)
29
30
#include <casadbus/types/variant.h>
31
+
#else
32
+
#include <casagrpc/types/variant.h>
33
+
#endif
30
34
#include <QDialog>
31
-
#include <display/Clean/CleanGui.ui.h>
35
+
#include <ui/ui_CleanGui.h>
32
36
33
37
namespace casa {
34
38
35
39
class ImagerControl;
36
40
37
41
namespace viewer {
38
42
39
43
class CleanGui : public QDialog, private Ui::CleanGui {
40
44
Q_OBJECT
41
45
public:
55
59
void entry_changed_event(const QString&);
56
60
57
61
private:
58
62
enum clean_state_t { UNDEFINED, PAUSED, RUNNING, STOPPED };
59
63
// this class is not intended for copy or assignment...
60
64
CleanGui( const CleanGui & );
61
65
CleanGui operator=( const CleanGui & );
62
66
63
67
// update information for the process currently selected...
64
68
void refresh( );
69
+
#if ! defined(WITHOUT_DBUS)
65
70
std::map<std::string,dbus::variant> collect( );
71
+
#else
72
+
std::map<std::string,grpc::variant> collect( );
73
+
#endif
66
74
67
75
// indicate (or unindicate) that values have changed,
68
76
// and a send is required...
69
77
void set_send_needed( bool );
70
78
void allow_editing( bool );
71
79
72
80
ImagerControl *ic;
73
81
int current_process_index;
74
82
clean_state_t current_process_state;
75
83