-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.cpp
More file actions
35 lines (27 loc) · 1.04 KB
/
Copy pathmainwindow.cpp
File metadata and controls
35 lines (27 loc) · 1.04 KB
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
35
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "pcbview.h"
#include "pcbviewscene.h"
#include <QDebug>
#include <QPushButton>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
zoomView = new PCBView(this);
_layout.addWidget(zoomView, 0, 0, 2, 1);
_layout.addWidget(&_BOMList, 0, 1, 1, 1);
_layout.setColumnMinimumWidth(1, 500);
QWidget *centralWidget = new QWidget(this);
centralWidget->setLayout(&_layout);
this->setCentralWidget(centralWidget);
connect(&_BOMList, SIGNAL(sigComponentsSelected(QList<BOMEntry>)), zoomView, SLOT(onComponentsSelected(QList<BOMEntry>)) );
connect(&_BOMList, SIGNAL(sigSetRefPoint(int,QPointF)), zoomView, SLOT(onSetRefPoint(int,QPointF)) );
connect(&_BOMList, SIGNAL(sigLoadBoardFileButtonClicked()), zoomView, SLOT(onLoadBoardFile()) );
connect(&_BOMList, SIGNAL(sigRotateView180()), zoomView, SLOT(onRotateView180()) );
}
MainWindow::~MainWindow()
{
delete ui;
}