#ifndef __CADTOOLBARINFO_H__
#define __CADTOOLBARINFO_H__
-#include "ui_cadtoolbarinfo.h"
+#include <QtGui>
class CadToolBar;
-class QG_ActionHandler;
class CadToolBarInfo: public QWidget
{
Q_OBJECT
public:
- CadToolBarInfo(QWidget * parent = 0, Qt::WindowFlags flags = 0);
+ CadToolBarInfo(CadToolBar * parent, Qt::WindowFlags flags = 0);
~CadToolBarInfo();
- public slots:
- void mousePressEvent(QMouseEvent * e);
- void contextMenuEvent(QContextMenuEvent * e);
- void setCadToolBar(CadToolBar * tb);
- void infoDist();
- void infoDist2();
- void infoAngle();
- void infoTotalLength();
- void infoArea();
+ protected slots:
void back();
+ private:
+ QToolButton * CreateToolButton(QAction * action);
+
protected:
- QG_ActionHandler * actionHandler;
CadToolBar * cadToolBar;
-
- private:
- Ui::CadToolBarInfo ui;
};
#endif // __CADTOOLBARINFO_H__