DiagramWindow::DiagramWindow()
{
readFile(allResources, sortedResources);
int* sizeCount = new int[allResources.size()];
for(int k1 = 0; k1 < allResources.size(); k1++)
sizeCount[k1] = 0;
int xSize = 0, ySize = 0;
calculateSize(allResources, sizeCount, xSize, ySize);
view = new ZoomView(centralWidget);
view->setScene(scene);
view
->setRenderHints
(QPainter::Antialiasing
view->setContextMenuPolicy(Qt::ActionsContextMenu);
lineEdit
->setObjectName
(QString::fromUtf8("lineEdit"));
lineEdit
->setGeometry
(QRect(15,
515,
530,
20));
view->setGeometry(15, 515, 530, 20);
setCentralWidget(centralWidget);
minZ = 0;
maxZ = 0;
seqNumber = 0;
createActions();
createMenus();
createToolBars();
connect(scene, SIGNAL(selectionChanged()),
this, SLOT(updateActions()));
connect(lineEdit, SIGNAL(returnPressed()),
this, SLOT(on_lineEdit_returnPressed()));
setWindowTitle(tr("Diagram"));
setFixedWidth(600);
setFixedHeight(600);
updateActions();
draw();
}
DiagramWindow::DiagramWindow()
{
readFile(allResources, sortedResources);
int* sizeCount = new int[allResources.size()];
for(int k1 = 0; k1 < allResources.size(); k1++)
sizeCount[k1] = 0;
int xSize = 0, ySize = 0;
calculateSize(allResources, sizeCount, xSize, ySize);
centralWidget = new QWidget(this);
scene = new QGraphicsScene(0, 0, xSize, ySize);
view = new ZoomView(centralWidget);
view->setScene(scene);
view->setRenderHints(QPainter::Antialiasing
| QPainter::TextAntialiasing);
view->setContextMenuPolicy(Qt::ActionsContextMenu);
lineEdit = new QLineEdit(centralWidget);
lineEdit->setObjectName(QString::fromUtf8("lineEdit"));
lineEdit->setGeometry(QRect(15, 515, 530, 20));
view->setGeometry(15, 515, 530, 20);
setCentralWidget(centralWidget);
minZ = 0;
maxZ = 0;
seqNumber = 0;
createActions();
createMenus();
createToolBars();
connect(scene, SIGNAL(selectionChanged()),
this, SLOT(updateActions()));
connect(lineEdit, SIGNAL(returnPressed()),
this, SLOT(on_lineEdit_returnPressed()));
setWindowTitle(tr("Diagram"));
setFixedWidth(600);
setFixedHeight(600);
updateActions();
draw();
}
To copy to clipboard, switch view to plain text mode
Bookmarks