- tms-old
- tms
- tmsControlGui
- BGraphControls.h
This file ( 755B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
/*
* Title: BGraphControls.cpp
* Author: M.Thomas BEAM Ltd
* Date: 2007-05-31
*
* Contents: GUI controls for BGraph object
*
*/
#ifndef BGRAPHCONTROLS_H
#define BGRAPHCONTROLS_H
#include <BGraph.h>
#include <BList.h>
#include <qscrollbar.h>
#include <qpushbutton.h>
#include <qwidget.h>
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<BGraph*> ographs;
QScrollBar* oscroll;
QPushButton* ozoomIn;
QPushButton* ozoomOut;
double omax;
};
#endif