1 #ifndef STATEPUBLISHER_TEMPLATE_H 2 #define STATEPUBLISHER_TEMPLATE_H 16 virtual bool enabled()
const = 0;
18 virtual const char*
name()
const = 0;
22 virtual void play(
double interval) = 0;
28 auto prev =
_action->blockSignals(
true);
43 virtual bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element)
const {
return false; }
45 virtual bool xmlLoadState(
const QDomElement &parent_element ) {
return false; }
51 QDomElement plugin_elem = doc.createElement(
"plugin");
52 plugin_elem.setAttribute(
"ID", QString(this->
name()).replace(
" ",
"_") );
66 #define StatePublisher_iid "com.icarustechnology.PlotJuggler.StatePublisher" virtual bool xmlLoadState(const QDomElement &parent_element)
virtual const char * name() const =0
virtual bool isDebugPlugin()
virtual void setParentMenu(QMenu *parent_menu, QAction *parent_action)
QDomElement xmlSaveState(QDomDocument &doc) const
virtual QWidget * embeddedWidget()
const PlotDataMapRef * _datamap
virtual void updateState(double current_time)=0
#define StatePublisher_iid
void setDataMap(const PlotDataMapRef *datamap)
virtual bool enabled() const =0
virtual void play(double interval)=0
virtual ~StatePublisher()
virtual bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const
virtual void setEnabled(bool enabled)