20 #include <QButtonGroup>
25 #include <QPushButton>
26 #include <QToolButton>
32 auto selectionPointerButton =
new QToolButton;
33 selectionPointerButton->setCheckable(
true);
34 selectionPointerButton->setChecked(
true);
35 selectionPointerButton->setIcon(QIcon(
":/SampleDesigner/images/arrow-top-left.svg"));
36 selectionPointerButton->setToolTip(
"Edit mode.");
38 auto handPointerButton =
new QToolButton;
39 handPointerButton->setCheckable(
true);
40 handPointerButton->setIcon(QIcon(
":/SampleDesigner/images/hand-right.svg"));
41 handPointerButton->setToolTip(
"Pan mode (space).");
46 #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
50 static_cast<void (QButtonGroup::*)(
int)
>(&QButtonGroup::buttonClicked),
this,
53 addWidget(selectionPointerButton);
54 addWidget(handPointerButton);
61 m_removeButton->setIcon(QIcon(
":/SampleDesigner/images/delete.svg"));
63 m_removeButton->setToolTip(
"Remove selected items and they child items (del).");
73 m_centerViewButton->setIcon(QIcon(
":/SampleDesigner/images/camera-metering-center.svg"));
79 addWidget(
new QLabel(
" "));
81 QStringList scales = QStringList() <<
"25%"
89 #if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
91 static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentTextChanged),
this,
95 static_cast<void (QComboBox::*)(
const QString&)
>(&QComboBox::currentIndexChanged),
this,
100 addWidget(
new QLabel(
" Zoom "));
103 addWidget(
new QLabel(
" "));
117 addWidget(
new QLabel(
" "));
118 addWidget(
new QLabel(
" "));
137 double scale = scale_string.left(scale_string.indexOf(
"%")).toDouble() / 100.0;
Defines class DesignerView.
Defines class MaterialItemUtils.
Defines class SampleView.
The ExternalProperty class defines custom QVariant property to carry the text, color and an identifie...
void toggleRealSpaceView()
ExternalProperty selectMaterialProperty(const ExternalProperty &previous=ExternalProperty())
Calls material selector dialog.