Something went wrong on our end
-
andreas authored
git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/branches/new_shell@1919 5a81b35b-ba03-0410-adc8-b2c5c5119f08
andreas authoredgit-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/branches/new_shell@1919 5a81b35b-ba03-0410-adc8-b2c5c5119f08
state_machine.hh 556 B
#ifndef PYTHON_SHELL_STATE_MACHINE_HH
#define PYTHON_SHELL_STATE_MACHINE_HH
#include <QObject>
//fw decl
class QEvent;
namespace ost { namespace gui {
//fw decl
class State;
class StateMachine: public QObject{
Q_OBJECT
public:
StateMachine(QObject* parent);
void addState(State* state);
void setInitialState(State* state);
void start();
bool isActive(State* state);
void setActive(State* state);
bool eventFilter (QObject * watched, QEvent * event);
protected:
State* active_state_;
};
}}//ns
#endif // PYTHON_SHELL_STATE_MACHINE_HH