29 #ifndef QTVIEWERBASE_H
30 #define QTVIEWERBASE_H
39 # include <QtXml/QDomDocument>
63 class QtDisplayPanelGui;
90 virtual std::list<QtDisplayPanelGui*>
openDPs();
200 std::list<QtDisplayPanelGui*>
qdps_;
virtual const QtMouseToolState * mouseBtns() const
static const int RASTER
viewer displaytypes.
std::list< QtDisplayPanelGui * > qdps_
Existing QtDisplayPanels (whether 'closed' or not, as long as not deleted).
static const casacore::String cvRestoreID
QtMouseToolState msbtns_
This should be the only place this object is ever created....
virtual void hold()
Hold/release of (canvas-draw) refresh of all QDPs.
static bool isRestoreString(casacore::String xmlState, QDomDocument &restoredoc)
Does the given casacore::String have valid ID and form as viewer restore xml? (If so...
static casacore::Vector< float > toVectorF(casacore::String values, bool *ok=0)
static const int SKY_CATALOG
casacore::Vector< casacore::String > datatypeNames_
Translates IMAGE, RASTER, etc.
static casacore::String toString(casacore::Vector< float > values)
Utility routines to convert between casacore::Vector<float> and String.
virtual QtMouseToolState * mouseBtns()
Return the common QtMouseToolState that all mouse tool users should share.
static const int MEASUREMENT_SET
static casacore::String fileType(const casacore::String pathname)
function to aid typing files of interest to the viewer.
bool dataDisplaysAs(casacore::String datatype, casacore::String &displaytype)
Returns true iff datatype is a vaild viewer datatype and displaytype is valid for the datatype...
static bool isRestoreFile(casacore::String filename, QDomDocument &restoredoc)
Does the given file pathname hold a readable file with valid ID and form as a viewer restore xml docu...
static const int INVALID
(for invalid datatype or displaytype).
casacore::Vector< casacore::Vector< int > > dataDisplaysAs_
e.g.
static const int IMAGE
public (const) data.
virtual int nOpenDPs()
The number of open QtDisplayPanels.
virtual void quit()
Closes all open panels, which will exit the Qt loop.
QtViewerBase(bool is_server=false)
virtual void dpDestroyed_(QObject *)
Connected by this class, (only) to QDPs' destroyed() signals (for maintenance of the list of existing...
virtual void dpCreated(QtDisplayPanelGui *newDP, QtDisplayPanel *panel)
Only to be used by QtDisplayPanels, to inform this class of their creation.
The main display window for the Qt version of the viewer.
static casacore::Vector< double > toVectorD(casacore::String values, bool *ok=0)
static const int NEWPANEL
virtual std::list< QtDisplayPanelGui * > openDPs()
The list of QtDisplayPanels that are not closed.
static casacore::String filetype(const casacore::String pathname)
similar to above; returns internal DD datatype names like "ms" (or else 'nonexistent', 'unknown').
String: the storage and methods of handling collections of characters.
virtual void dpHidden_(QtDisplayPanel *)
Connected by this class, (only) to QDPs' dpHidden() signals (for checking on open QDPs – will quit if...
static bool qtviewer_app_exit
casacore::Vector< casacore::String > displaytypeNames_
static const casacore::String cvRestoreFileExt
static const int OLDPANEL
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.