#ifndef ATOSINFOWIDGET_HH #define ATOSINFOWIDGET_HH #include class QBoxLayout; class Hep3Vector; namespace asap { namespace atos { class AtosElement; class AtosTreeWidget; class AtosInfoWidget : public QDockWidget { Q_OBJECT ; public: AtosInfoWidget (AtosElement* el = 0, QWidget * parent = 0, Qt::WindowFlags f = 0); virtual ~AtosInfoWidget (); public slots: virtual void setElement (AtosElement* el) = 0; protected slots: void setCandidate (AtosElement* el); void contextMenu (QContextMenuEvent * event, AtosElement* el, QWidget* orig); void projectionXY (); void projectionYZ (); void projectionZX (); signals: void selectedCandidate (AtosElement* el); void centerView (); void hideElement (); void hideElementDaughters (); void unHideElement (); void unHideElementDaughters (); void coordinateSystem (); void info (); void referenceCoordinateSystemSelected(); void requestProjection (AtosElement* el, const Hep3Vector& xdir, const Hep3Vector& ydir); protected: void connectTreeWidget (AtosTreeWidget* wd); private: AtosElement* _atosel; AtosElement* _cand; }; } } #endif