12 #include <QtCore/QObject>
13 #include <QtCore/QMap>
14 #include <QtCore/QString>
15 #include <QtCore/QTimer>
16 #include <QtCore/QStringList>
18 #if QT_VERSION >= 0x050000
19 #include <QtWidgets/QMainWindow>
21 #include <QtGui/QMainWindow>
85 void autoSave(
bool onlyPNG=
false)
const;
void autoSaveImages() const
save the data displayed by all windows as png images
void clearHistogram() const
send clear histograms
void autoSave(bool onlyPNG=false) const
save the data displayed by all windows in the possible files
void startViewer()
start the viewer
QStringList displayableItems() const
retrieve a list with all items
void on_source_changed(QString newSource)
react on when the source has been changed
a LED that should display the status
QSpinBox * _serverport
the server port input widget
QToolBar * _serverToolBar
the toolbar with the server options
void print()
react when print has been triggered
std::tr1::shared_ptr< self_type > shared_pointer
a shared pointer of this class
QTimer _updateTimer
timer for the auto update function it is used as singleshot timer
StatusLED * _statusLED
the status LED
QMap< QString, DataViewer * > _viewers
the container for all opened viewers
QLineEdit * _servername
the servername input widget
void changeAutoUpdate()
change the autoupdate based upon what the user set
QAction * _autoUpdate
the auto update input
void removeViewer(DataViewer *obj)
remove the viewer from the container when it has been destroyed
QDoubleSpinBox * _rate
the rate input
void sendCustomCommand() const
send a custom command
void openFile(QString filename=QString(), QString key=QString())
load data from a file
void setDisplayedItem(QString itemName, bool state, bool simulateClickedSignal=true)
check an item in the list
void refreshDisplayableItemsList()
refresh the items on the displayable list
JoCASSViewer(QWidget *parent=0, Qt::WindowFlags flags=0)
constructor
QStringList displayedItems() const
retrieve a list with the selected items
void saveFile(QString filename=QString(), QStringList keys=QStringList()) const
save a data from specific viewer or all viewers to the given filename
void changeServerAddress() const
retrieve the server address
void resizeEvent(QResizeEvent *event)
receive resize events to store the current size to the settings
double interval() const
retrieve the rate as interval in ms
void about()
display about this box
void changeViewers(QListWidgetItem *item)
react on when an item in the list has been checked
bool _updateInProgress
flag to tell whether an update is in progess
double rate() const
retrieve the user set rate in Hz
void broadcastGaincalCommand() const
broadcast the gaincal command
void broadcastDarkcalCommand() const
broadcast the darkcal command
void createViewerForType(QMap< QString, DataViewer * >::iterator view, cass::Result< float >::shared_pointer result)
convenience function to create a viewer thats appropriate for a given type of data ...
void updateViewers()
update the contents within the viewers in the map
void moveEvent(QMoveEvent *event)
receive move events to store the current position to the settings
~JoCASSViewer()
destructor