-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (18 loc) · 982 Bytes
/
main.cpp
File metadata and controls
26 lines (18 loc) · 982 Bytes
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
#include "shapeobjecteditor.h"
#include "tabletcoord.h"
#include "cuberesize.h"
#include <QApplication>
int main(int argc, char *argv[]){
QApplication a(argc, argv);
std::unique_ptr<ShapeObjectEditor> shape{ShapeObjectEditor::getInstance()};
shape->show();
tabletCoord tableWindow;
CubeResize cube;
QObject::connect(shape.get(),&ShapeObjectEditor::widgetOpenTablet,&tableWindow,&tabletCoord::widgetOpen);
QObject::connect(shape.get(),&ShapeObjectEditor::sendShapeTable,&tableWindow,&tabletCoord::shapeTableGetter);
QObject::connect(shape.get(),&ShapeObjectEditor::widgetClose,&tableWindow,&tabletCoord::widgetClose);
QObject::connect(shape.get(),&ShapeObjectEditor::widgetOpenResize,&cube,&CubeResize::widgetOpen);
QObject::connect(&cube,&CubeResize::sendCubeSize,shape.get(),&ShapeObjectEditor::cubeSizeGetter);
QObject::connect(shape.get(),&ShapeObjectEditor::widgetClose,&cube,&CubeResize::widgetClose);
return a.exec();
}