Files
glocalize/ui_mainw.cpp
2026-01-07 01:46:55 +01:00

430 lines
15 KiB
C++

#include "ui_mainw.h"
#include <QtCore/QSize>
#include <QtCore/QString>
#include <QtGui/QAction>
#include <QtGui/QActionGroup>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QDoubleSpinBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QFrame>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSizePolicy>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QToolBar>
#include <QtWidgets/QTreeView>
#include <QtWidgets/QTreeWidgetItem>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include <QtWidgets/QHeaderView>
#include <QVTKOpenGLNativeWidget.h>
void Ui_MainWindow::setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
MainWindow->resize(872, 737);
actionLoad = new QAction(MainWindow);
actionLoad->setObjectName(QString::fromUtf8("actionLoad"));
actionQuit = new QAction(MainWindow);
actionQuit->setObjectName(QString::fromUtf8("actionQuit"));
actionVolRen = new QAction(MainWindow);
actionVolRen->setObjectName(QString::fromUtf8("actionVolRen"));
actionVolRen->setCheckable(true);
actionOrthoslice = new QAction(MainWindow);
actionOrthoslice->setObjectName(QString::fromUtf8("actionOrthoslice"));
actionOrthoslice->setCheckable(true);
viewGroup = new QActionGroup(MainWindow);
viewGroup->addAction(actionVolRen);
viewGroup->addAction(actionOrthoslice);
actionOrthoslice->setChecked(true);
auto centralwidget = new QWidget(MainWindow);
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
auto horizontalLayout_8 = new QHBoxLayout(centralwidget);
horizontalLayout_8->setObjectName(QString::fromUtf8("horizontalLayout_8"));
auto widget = new QWidget(centralwidget);
widget->setObjectName(QString::fromUtf8("widget"));
widget->setMaximumSize(QSize(300, 16777215));
widget->setMinimumSize(QSize(300, 0));
auto verticalLayout_5 = new QVBoxLayout(widget);
verticalLayout_5->setObjectName(QString::fromUtf8("verticalLayout_5"));
auto frame_2 = new QFrame(widget);
frame_2->setObjectName(QString::fromUtf8("frame_2"));
frame_2->setFrameShape(QFrame::StyledPanel);
frame_2->setFrameShadow(QFrame::Raised);
// Top-level layout for frame_2 (the only layout installed on the widget)
auto verticalLayout_2 = new QVBoxLayout(frame_2);
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
// Sub-layouts must NOT be constructed with a QWidget parent, otherwise Qt tries to
// install them as the widget's layout and warns if the widget already has one.
auto formLayout_2 = new QFormLayout();
formLayout_2->setObjectName(QString::fromUtf8("formLayout_2"));
verticalLayout_2->addLayout(formLayout_2);
label_6 = new QLabel(frame_2);
label_6->setObjectName(QString::fromUtf8("label_6"));
formLayout_2->setWidget(0, QFormLayout::LabelRole, label_6);
l_patientID = new QLabel(frame_2);
l_patientID->setObjectName(QString::fromUtf8("l_patientID"));
l_patientID->setMinimumSize(QSize(91, 0));
formLayout_2->setWidget(0, QFormLayout::FieldRole, l_patientID);
label_8 = new QLabel(frame_2);
label_8->setObjectName(QString::fromUtf8("label_8"));
formLayout_2->setWidget(1, QFormLayout::LabelRole, label_8);
l_patientID_2 = new QLabel(frame_2);
l_patientID_2->setObjectName(QString::fromUtf8("l_patientID_2"));
l_patientID_2->setMinimumSize(QSize(91, 0));
formLayout_2->setWidget(1, QFormLayout::FieldRole, l_patientID_2);
label_12 = new QLabel(frame_2);
label_12->setObjectName(QString::fromUtf8("label_12"));
formLayout_2->setWidget(5, QFormLayout::LabelRole, label_12);
l_patientID_6 = new QLabel(frame_2);
l_patientID_6->setObjectName(QString::fromUtf8("l_patientID_6"));
l_patientID_6->setMinimumSize(QSize(91, 0));
formLayout_2->setWidget(5, QFormLayout::FieldRole, l_patientID_6);
auto label_isoV = new QLabel(frame_2);
label_isoV->setObjectName(QString::fromUtf8("label_isoV"));
label_isoV->setText("Virtual Iso:");
label_isoV->setMinimumSize(QSize(91, 0));
formLayout_2->setWidget(6, QFormLayout::LabelRole, label_isoV);
l_isoV = new QLabel(frame_2);
l_isoV->setObjectName(QString::fromUtf8("l_isoV"));
l_isoV->setText("N.a.");
l_isoV->setMinimumSize(QSize(91, 0));
formLayout_2->setWidget(6, QFormLayout::FieldRole, l_isoV);
verticalLayout_5->addWidget(frame_2);
auto frame_5 = new QFrame(widget);
frame_5->setObjectName(QString::fromUtf8("frame_5"));
frame_5->setFrameShape(QFrame::StyledPanel);
frame_5->setFrameShadow(QFrame::Raised);
auto verticalLayout_4 = new QVBoxLayout(frame_5);
verticalLayout_4->setObjectName(QString::fromUtf8("verticalLayout_4"));
auto horizontalLayout_7 = new QHBoxLayout();
horizontalLayout_7->setObjectName(QString::fromUtf8("horizontalLayout_7"));
label_7 = new QLabel(frame_5);
label_7->setObjectName(QString::fromUtf8("label_7"));
horizontalLayout_7->addWidget(label_7);
pushButton_5 = new QPushButton(frame_5);
pushButton_5->setObjectName(QString::fromUtf8("pushButton_5"));
pushButton_5->setEnabled(true);
horizontalLayout_7->addWidget(pushButton_5);
verticalLayout_4->addLayout(horizontalLayout_7);
auto manualMask_lay = new QHBoxLayout();
manualMask_lay->setObjectName(QString::fromUtf8("manualMask_lay"));
QLabel* l_manualMask = new QLabel(frame_5);
l_manualMask->setObjectName(QString::fromUtf8("l_manualMask"));
l_manualMask->setText("Manual volume clip");
manualMask_lay->addWidget(l_manualMask);
pb_manualMask = new QPushButton(frame_5);
pb_manualMask->setObjectName(QString::fromUtf8("pb_manualMask"));
pb_manualMask->setEnabled(true);
pb_manualMask->setText("View");
pb_manualMask->setCheckable(true);
manualMask_lay->addWidget(pb_manualMask);
verticalLayout_4->addLayout(manualMask_lay);
verticalLayout_5->addWidget(frame_5);
frame_3 = new QFrame(widget);
frame_3->setObjectName(QString::fromUtf8("frame_3"));
frame_3->setEnabled(true);
frame_3->setFrameShape(QFrame::StyledPanel);
frame_3->setFrameShadow(QFrame::Raised);
auto verticalLayout = new QVBoxLayout(frame_3);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
auto horizontalLayout = new QHBoxLayout();
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
label = new QLabel(frame_3);
label->setObjectName(QString::fromUtf8("label"));
horizontalLayout->addWidget(label);
auto horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer);
spinBox = new QSpinBox(frame_3);
spinBox->setObjectName(QString::fromUtf8("spinBox"));
spinBox->setMinimumSize(QSize(71, 0));
spinBox->setMaximumSize(QSize(71, 16777215));
spinBox->setMinimum(-1024);
spinBox->setMaximum(3000);
spinBox->setValue(1800);
horizontalLayout->addWidget(spinBox);
verticalLayout->addLayout(horizontalLayout);
auto horizontalLayout_2 = new QHBoxLayout();
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
checkBox_2 = new QCheckBox(frame_3);
checkBox_2->setObjectName(QString::fromUtf8("checkBox_2"));
checkBox_2->setChecked(true);
horizontalLayout_2->addWidget(checkBox_2);
label_2 = new QLabel(frame_3);
label_2->setObjectName(QString::fromUtf8("label_2"));
horizontalLayout_2->addWidget(label_2);
auto horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_2->addItem(horizontalSpacer_2);
doubleSpinBox_2 = new QDoubleSpinBox(frame_3);
doubleSpinBox_2->setObjectName(QString::fromUtf8("doubleSpinBox_2"));
doubleSpinBox_2->setMinimumSize(QSize(71, 0));
doubleSpinBox_2->setMaximumSize(QSize(71, 16777215));
horizontalLayout_2->addWidget(doubleSpinBox_2);
doubleSpinBox_2bis = new QDoubleSpinBox(frame_3);
doubleSpinBox_2bis->setObjectName(QString::fromUtf8("doubleSpinBox_2bis"));
doubleSpinBox_2bis->setMinimumSize(QSize(71, 0));
doubleSpinBox_2bis->setMaximumSize(QSize(71, 16777215));
horizontalLayout_2->addWidget(doubleSpinBox_2bis);
verticalLayout->addLayout(horizontalLayout_2);
auto horizontalLayout_3 = new QHBoxLayout();
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
checkBox_3 = new QCheckBox(frame_3);
checkBox_3->setObjectName(QString::fromUtf8("checkBox_3"));
checkBox_3->setChecked(true);
horizontalLayout_3->addWidget(checkBox_3);
label_3 = new QLabel(frame_3);
label_3->setObjectName(QString::fromUtf8("label_3"));
horizontalLayout_3->addWidget(label_3);
auto horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_3->addItem(horizontalSpacer_3);
doubleSpinBox_3 = new QDoubleSpinBox(frame_3);
doubleSpinBox_3->setObjectName(QString::fromUtf8("doubleSpinBox_3"));
doubleSpinBox_3->setMinimumSize(QSize(71, 0));
doubleSpinBox_3->setMaximumSize(QSize(71, 16777215));
doubleSpinBox_3->setMaximum(999999);
doubleSpinBox_3->setValue(22);
horizontalLayout_3->addWidget(doubleSpinBox_3);
verticalLayout->addLayout(horizontalLayout_3);
auto horizontalLayout_5 = new QHBoxLayout();
horizontalLayout_5->setObjectName(QString::fromUtf8("horizontalLayout_5"));
checkBox_5 = new QCheckBox(frame_3);
checkBox_5->setObjectName(QString::fromUtf8("checkBox_5"));
checkBox_5->setChecked(true);
horizontalLayout_5->addWidget(checkBox_5);
label_5 = new QLabel(frame_3);
label_5->setObjectName(QString::fromUtf8("label_5"));
horizontalLayout_5->addWidget(label_5);
auto horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_5->addItem(horizontalSpacer_5);
doubleSpinBox_5 = new QDoubleSpinBox(frame_3);
doubleSpinBox_5->setObjectName(QString::fromUtf8("doubleSpinBox_5"));
doubleSpinBox_5->setMinimumSize(QSize(71, 0));
doubleSpinBox_5->setMaximumSize(QSize(71, 16777215));
horizontalLayout_5->addWidget(doubleSpinBox_5);
verticalLayout->addLayout(horizontalLayout_5);
auto horizontalLayout_6 = new QHBoxLayout();
horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6"));
pushButton_3 = new QPushButton(frame_3);
pushButton_3->setObjectName(QString::fromUtf8("pushButton_3"));
pushButton_3->setEnabled(true);
horizontalLayout_6->addWidget(pushButton_3);
pushButton_4 = new QPushButton(frame_3);
pushButton_4->setObjectName(QString::fromUtf8("pushButton_4"));
pushButton_4->setEnabled(false);
horizontalLayout_6->addWidget(pushButton_4);
verticalLayout->addLayout(horizontalLayout_6);
verticalLayout_5->addWidget(frame_3);
frame_4 = new QFrame(widget);
frame_4->setObjectName(QString::fromUtf8("frame_4"));
frame_4->setEnabled(true);
frame_4->setMaximumSize(QSize(16777215, 171));
frame_4->setFrameShape(QFrame::StyledPanel);
frame_4->setFrameShadow(QFrame::Raised);
auto verticalLayout_3 = new QVBoxLayout(frame_4);
verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
treeView = new QTreeView(frame_4);
//new QTreeWidgetItem(treeWidget);
treeView->setObjectName(QString::fromUtf8("treeView"));
treeView->setEnabled(true);
treeView->setFrameShape(QFrame::StyledPanel);
// treeView->setAlternatingRowColors(true);
treeView->setUniformRowHeights(true);
treeView->setSortingEnabled(false);
treeView->setAnimated(true);
treeView->setAllColumnsShowFocus(false);
//treeView->setColumnCount(5);
treeView->header()->setVisible(true);
treeView->header()->setCascadingSectionResizes(false);
treeView->header()->setHighlightSections(true);
treeView->header()->setStretchLastSection(true);
verticalLayout_3->addWidget(treeView);
auto formLayout = new QHBoxLayout();
formLayout->setObjectName(QString::fromUtf8("formLayout"));
pushButton = new QPushButton(frame_4);
pushButton->setObjectName(QString::fromUtf8("pushButton"));
pushButton->setEnabled(false);
formLayout->addWidget(pushButton);
pushButton_2 = new QPushButton(frame_4);
pushButton_2->setObjectName(QString::fromUtf8("pushButton_2"));
pushButton_2->setEnabled(false);
formLayout->addWidget(pushButton_2);
pb_save= new QPushButton(frame_4);
pb_save->setObjectName(QString::fromUtf8("pb_save"));
pb_save->setText("Save .tac");
formLayout->addWidget(pb_save);
pb_save->setEnabled(false);
verticalLayout_3->addLayout(formLayout);
verticalLayout_5->addWidget(frame_4);
horizontalLayout_8->addWidget(widget);
auto frame = new QFrame(centralwidget);
frame->setObjectName(QString::fromUtf8("frame"));
frame->setMinimumSize(QSize(561, 0));
frame->setFrameShape(QFrame::StyledPanel);
frame->setFrameShadow(QFrame::Raised);
QHBoxLayout* renLay= new QHBoxLayout(frame);
qvtk= new QVTKOpenGLNativeWidget(frame);
renLay->addWidget(qvtk);
horizontalLayout_8->addWidget(frame);
MainWindow->setCentralWidget(centralwidget);
statusbar = new QStatusBar(MainWindow);
statusbar->setObjectName(QString::fromUtf8("statusbar"));
MainWindow->setStatusBar(statusbar);
toolBar = new QToolBar(MainWindow);
toolBar->setObjectName(QString::fromUtf8("toolBar"));
MainWindow->addToolBar(Qt::TopToolBarArea, toolBar);
toolBar->addAction(actionLoad);
toolBar->addSeparator();
toolBar->addAction(actionVolRen);
toolBar->addAction(actionOrthoslice);
toolBar->addSeparator();
#if MULTIPLE_REF
QWidget* qw_refs = new QWidget(toolBar);
a_DCMref=new QRadioButton(qw_refs);
a_DCMref->setCheckable(true);
a_DCMref->setText("DCM");
a_RTref=new QRadioButton(qw_refs);
a_RTref->setCheckable(true);
a_RTref->setText("RT");
a_OTSref=new QRadioButton(qw_refs);
a_OTSref->setText("OTS");
a_OTSref->setCheckable(true);
a_DCMref->setChecked(true);
refGroup = new QButtonGroup(qw_refs);
refGroup->addButton (a_DCMref);
refGroup->addButton(a_RTref);
refGroup->addButton(a_OTSref);
QHBoxLayout* reflay=new QHBoxLayout(qw_refs);
reflay->addWidget(a_DCMref);
reflay->addWidget(a_RTref);
reflay->addWidget(a_OTSref);
a_RTref->setDisabled(true);
toolBar->addWidget(qw_refs);
#endif
QWidget *widget_spacer = new QWidget;
QHBoxLayout *spacerLayout = new QHBoxLayout;
QSpacerItem *spacer =
new QSpacerItem(1,1,QSizePolicy::Expanding,QSizePolicy::Minimum);
spacerLayout->addSpacerItem(spacer);
widget_spacer->setLayout(spacerLayout);
toolBar->addWidget(widget_spacer);
toolBar->addAction(actionQuit);
progBar = new QProgressBar(MainWindow);
progBar->setMinimum(0);
progBar->setMaximum(100);
progBar->setMaximumHeight(15);
statusbar->addPermanentWidget(progBar);
return;
}