23 #ifndef BASEEXPERIMENTGUI_H
24 #define BASEEXPERIMENTGUI_H
27 #include "dataexchange.h"
28 #include "baseexperiment.h"
33 #include <QPushButton>
74 virtual bool event(QEvent* e);
82 void currentOperationChanged(
int index);
87 void startOperation();
97 void pauseOperation(
bool pause);
102 void stepOperation();
109 void changeDelay(
int delay);
116 void updateOperationsList();
126 void enableWidgets(
bool enableStart,
bool enableStop,
bool enablePause,
bool enableDelay);
136 QString describeOperation(
int id, QString prefix =
"")
const;
143 unsigned long sliderValueToDelay(
int value)
const;
151 int delayToSliderValue(
unsigned long interval)
const;
161 QVector<BaseExperiment::AbstractOperationWrapper*> m_operations;
166 QGroupBox* m_operationSelectionGroup;
171 QLabel* m_operationsListLabel;
176 QComboBox* m_operationsList;
182 QLabel* m_selectedOperationInfo;
187 QPushButton* m_startSelectedOperationButton;
192 QGroupBox* m_currentOperationControlGroup;
197 QLabel* m_currentOperationInfo;
202 QPushButton* m_stopCurrentOperationButton;
207 QGroupBox* m_steppableOperationControlGroup;
212 QPushButton* m_pauseOperationButton;
217 QPushButton* m_stepOperationButton;
222 QLabel* m_delaySliderLabel;
228 QSlider* m_delaySlider;
234 int m_runningOperationID;
The GUI to control a BaseExperiment subclass.
This file contains the common type defitions used on the whole framework.
The base class for experiments.