21 #include <QDialogButtonBox>
22 #include <QFormLayout>
23 #include <QHBoxLayout>
25 #include <QVBoxLayout>
45 QVBoxLayout* __pqVBoxLayout =
new QVBoxLayout();
48 QHBoxLayout* __pqHBoxLayoutHeader =
new QHBoxLayout();
50 QLabel* __pqLabelIcon =
new QLabel();
51 __pqLabelIcon->setPixmap( QPixmap(
":icons/32x32/landmark.png" ) );
52 __pqHBoxLayoutHeader->addWidget( __pqLabelIcon, 0 );
57 __pqHBoxLayoutHeader->addWidget(
pqComboBox, 1 );
59 __pqVBoxLayout->addLayout( __pqHBoxLayoutHeader );
62 QDialogButtonBox* __pqDialogButtonBox =
new QDialogButtonBox( QDialogButtonBox::Cancel|QDialogButtonBox::Ok, Qt::Horizontal );
63 QDialog::connect( __pqDialogButtonBox, SIGNAL(accepted()),
this, SLOT(
accept()) );
64 QDialog::connect( __pqDialogButtonBox, SIGNAL(rejected()),
this, SLOT(reject()) );
65 __pqVBoxLayout->addWidget( __pqDialogButtonBox );
68 COverlayObjectPickView::setLayout( __pqVBoxLayout );
CLandmarkContainerPickView(const CLandmarkOverlay *_poLandmarkOverlay, COverlayObject **_ppoOverlayObject)
void constructLayout()
Constructs the layout of the user-interface.
[UI] Landmark overlay container
[UI] Generic overlay object's pick (select) view
const QTreeWidgetItem * pqTreeWidgetItem
Base overlay.
virtual void accept()
[override] QDialog::accept()
QComboBox * pqComboBox
[UI:ComboBox] Objects combo-box