/* * Title: BGraphControls.cpp * Author: M.Thomas BEAM Ltd * Date: 2007-05-31 * * Contents: * * * * */ #ifndef BGRAPHCONTROLS_H #define BGRAPHCONTROLS_H #include #include #include #include #include #include #include class BGraphControlBasic: public QWidget { Q_OBJECT public: BGraphControlBasic(QWidget*p ); void addGraph(BGraph* graph); ///< Add Graph to be managed void setMax(double max); public slots: void scroll(int val); void scroll(); void zoomIn(); void zoomOut(); void updateScrollbar(); private: void zoom(int in); BList ographs; QScrollBar* oscroll; QPushButton* ozoomIn; QPushButton* ozoomOut; double omax; }; #endif