/
dropSiteWindow.cpp
35 lines (28 loc) · 1.52 KB
/
dropSiteWindow.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//#include "dropArea.h"
#include <QtGui>
#include "dropSiteWindow.h"
#include "dropArea.h"
DropSiteWindow::DropSiteWindow(const QApplication &app)
{
dropArea = new DropArea;
Ui_Form imageViewerUi;
imageViewerUi.setupUi(this);
connect( imageViewerUi.pushButton_5, SIGNAL(clicked()), this, SLOT(zoomInView()) );
connect( imageViewerUi.pushButton, SIGNAL(clicked()), this, SLOT(zoomOutView()) );
connect( imageViewerUi.pushButton_10, SIGNAL(clicked()), this, SLOT(panLeftView()) );
connect( imageViewerUi.pushButton_8, SIGNAL(clicked()), this, SLOT(panRightView()) );
connect( imageViewerUi.pushButton_3, SIGNAL(clicked()), this, SLOT(panUpView()) );
connect( imageViewerUi.pushButton_7, SIGNAL(clicked()), this, SLOT(panDownView()) );
connect( imageViewerUi.pushButton_4, SIGNAL(clicked()), this, SLOT(rotateAntiClockwiseView()) );
connect( imageViewerUi.pushButton_6, SIGNAL(clicked()), this, SLOT(rotateClockWiseView()) );
connect( imageViewerUi.pushButton_2, SIGNAL(clicked()), &app, SLOT(quit()));
connect( imageViewerUi.pushButton_9, SIGNAL(clicked()), dropArea, SLOT(clearView()));
connect(imageViewerUi.pushButton_11, SIGNAL(clicked()), this, SLOT(openFile()));
abstractLabel = new QLabel(tr("Drop an Image below"));
abstractLabel->setMaximumHeight(20);
abstractLabel->setFrameStyle(QFrame::Panel | QFrame::Sunken);
imageViewerUi.verticalLayout_2->addWidget(abstractLabel);
imageViewerUi.verticalLayout_2->addWidget(dropArea);
setWindowTitle(tr("Drop Site"));
setMinimumSize(350, 500);
}