valentina/mainwindow.h

48 lines
1.1 KiB
C
Raw Normal View History

2013-06-20 16:09:50 +02:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
2013-07-03 14:29:26 +02:00
#include <QLabel>
#include "widgets/vmaingraphicsscene.h"
#include "dialogs/dialogsinglepoint.h"
2013-06-20 16:09:50 +02:00
namespace Ui {
class MainWindow;
}
2013-07-03 14:29:26 +02:00
namespace Tools{
enum Enum
{
ArrowTool,
SinglePointTool
};
}
2013-06-20 16:09:50 +02:00
class MainWindow : public QMainWindow
{
2013-07-03 14:29:26 +02:00
Q_OBJECT
2013-06-20 16:09:50 +02:00
public:
2013-07-03 14:29:26 +02:00
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void mouseMove(QPointF scenePos);
void showEvent( QShowEvent *event );
void clickedToolButtonSinglePoint();
void triggeredActionAroowTool();
2013-06-20 16:09:50 +02:00
private:
2013-07-03 14:29:26 +02:00
Ui::MainWindow *ui;
Tools::Enum tool;
VMainGraphicsScene *scene;
QLabel *mouseCoordinate;
QLabel *helpLabel;
bool isInitialized;
DialogSinglePoint *dialogSinglePoint;
void ToolBarOption();
void ToolBarDraws();
void CanselTool();
void ArrowTool();
2013-06-20 16:09:50 +02:00
};
#endif // MAINWINDOW_H