Source
38
38
#include <display/QtViewer/SlicerGen.qo.h>
39
39
40
40
#include <graphics/X11/X_enter.h>
41
41
#include <QDir>
42
42
#include <QColor>
43
43
#include <QHash>
44
44
#include <QWidget>
45
45
//#dk Be careful to put *.ui.h within X_enter/exit bracket too,
46
46
//# because they'll have Qt includes.
47
47
//# E.g. <QApplication> needs the X11 definition of 'Display'
48
-
#include <display/QtViewer/QtDataManager.ui.h>
49
-
#include <display/QtViewer/QtDataMgrMsSelect.ui.h>
50
-
#include <display/QtViewer/VOParam.ui.h>
51
-
#include <casaqt/QtDBus/dVO.h>
48
+
#include <ui/ui_QtDataManager.h>
49
+
#include <ui/ui_QtDataMgrMsSelect.h>
50
+
#include <ui/ui_VOParam.h>
51
+
#if ! defined(WITHOUT_DBUS)
52
+
#include <dbus/dVO.h>
53
+
#endif
52
54
#include <graphics/X11/X_exit.h>
53
55
#include <display/Utilities/Lowlevel.h>
54
56
#include <QListWidget>
55
57
#include <set>
56
58
#include <list>
57
59
#if defined(__APPLE__)
58
60
#include <tuple>
59
61
#define TUPLE std::tuple
60
62
#else
61
63
#include <tr1/tuple>
190
192
void region_output_target_changed(bool) {
191
193
region_output_target_changed( );
192
194
}
193
195
194
196
void img_do_output( );
195
197
void region_do_output( );
196
198
197
199
void region_item_state_change(QTreeWidgetItem*,int);
198
200
void region_selection_change( viewer::Region *rgn, bool selected );
199
201
202
+
#if ! defined(WITHOUT_DBUS)
200
203
#ifdef WITH_VO
201
204
//--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
202
205
// VO controls...
203
206
//--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
204
207
void addVOParam( );
205
208
void removeVOParam( );
206
209
//--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
210
+
#endif
207
211
#endif
208
212
209
213
private slots:
210
214
void enable_disable_slice( const QString & );
211
215
void enable_disable_regrid( bool );
212
216
private:
213
217
214
218
typedef std::map<QString,QtDisplayData*> display_data_map_t;
215
219
display_data_map_t display_datas;
216
220
353
357
void region_tab_error( const std::string &value, tab_state & );
354
358
355
359
bool export_to_fits(casacore::ImageInterface<float> *img, std::string outFile);
356
360
bool export_to_casa(casacore::ImageInterface<float> *img, casacore::String outFile);
357
361
void getSpectralCoordFlags(const casacore::ImageInterface<float>* img, bool &preferVelocity, bool &opticalVelocity, bool &preferWavelength, bool &preferAirWavelength);
358
362
359
363
viewer::SlicerGen *slice_gen;
360
364
361
365
bool slice_available;
362
366
bool regrid_available;
367
+
#if ! defined(WITHOUT_DBUS)
363
368
#ifdef WITH_VO
364
369
void setupVO( );
365
370
// returns true if everything is OK...
366
371
bool updateVOstatus( );
367
372
QPushButton *new_vo_dismiss_button( QTableWidgetItem*, QString, QString );
368
373
bool collect_vo_parameters( double &ra, double &dec, double &ra_size, double &dec_size, QVariantMap ¶ms );
369
374
void vo_flag_missing_param( QLineEdit *widget );
370
375
// (enabled, gui label, vo parameter name,vo parameter default,entry box)
371
376
typedef TUPLE<bool,QString,QString,QString,viewer::dvo::param*> vo_param_t;
372
377
std::vector<vo_param_t> voparameters;
463
468
QTimer *vo_action_timeout;
464
469
int vo_action_timeout_id;
465
470
QString vo_action_timeout_msg;
466
471
bool vo_actions_are_enabled;
467
472
468
473
std::map<QString,QString> vo_service_name_to_url;
469
474
QString vo_selected_service;
470
475
std::vector<int> vo_selected_rows;
471
476
472
477
friend void lambda_dsoc_test_pre_( QtDataManager& );
478
+
#endif
473
479
#endif
474
480
};
475
481
476
482
} //# NAMESPACE CASA - END
477
483
478
484
#endif