26 #ifndef QTCanvasManager_H
27 #define QTCanvasManager_H
32 #include <display/QtViewer/QtCanvasManager.ui.h>
33 #include <display/QtViewer/CursorLink.ui.h>
41 #include <QSpacerItem>
48 class QtCanvasManager;
68 class CursorLink :
public QFrame,
protected Ui::CursorLink {
72 std::string
name( )
const {
76 return link->checkState( ) == Qt::Unchecked ?
false :
true;
79 link->setCheckState( val ? Qt::Checked : Qt::Unchecked );
82 link->setText(QString::fromStdString(txt));
void loadRecord(casacore::Record rec)
call once only during initialization, to populate the gui, if you used the QtAutoGui(QWidget=0) const...
QtDisplayPanelGui * getDPG()
void setText(const std::string &txt)
void setOptions(casacore::Record options)
void setDPG(QtDisplayPanelGui *g)
CursorLink(const std::string &name, QtCanvasManager *mgr, QWidget *parent=0)
General-purpose Qt options widget created from Record.
virtual casacore::Record getOptions()
Return Options record (of margins and no.
virtual void changeOptions(casacore::Record changedOptions)
QtCanvasManagerOptions(QtDisplayPanel *qdp, QWidget *parent)
The main display window for the Qt version of the viewer.
A hierarchical collection of named fields of various types.
QtCanvasManagerOptions * options
void setChecked(bool val)
const Double c
Fundamental physical constants (SI units):
~QtCanvasManagerOptions()
QtDisplayPanelGui * dpg()
QtCanvasManager(QtDisplayPanelGui *dpg)
Options widget for single DisplayPanel.
std::list< CursorLink * > link_widgets
void showEvent(QShowEvent *)