20 #include <QDialogButtonBox>
21 #include <QFormLayout>
22 #include <QHBoxLayout>
26 #include <QVBoxLayout>
39 , ppoVesselContainerDevice( _ppoVesselContainerDevice )
41 QDialog::setWindowTitle( tr(
"Create Device")+
"..." );
49 QVBoxLayout* __pqVBoxLayout =
new QVBoxLayout();
52 QHBoxLayout* __pqHBoxLayout =
new QHBoxLayout();
54 QLabel* __pqLabelIcon =
new QLabel();
55 __pqLabelIcon->setPixmap( QPixmap(
":icons/32x32/vessel_device.png" ) );
56 __pqHBoxLayout->addWidget( __pqLabelIcon, 0 );
58 QFormLayout* __pqFormLayout =
new QFormLayout();
61 pqLineEditName->setToolTip( tr(
"Device name (matching one of the defined devices)") );
64 __pqHBoxLayout->addLayout( __pqFormLayout, 1 );
65 __pqVBoxLayout->addLayout( __pqHBoxLayout );
68 QDialogButtonBox* __pqDialogButtonBox =
new QDialogButtonBox( QDialogButtonBox::Cancel|QDialogButtonBox::Ok, Qt::Horizontal );
69 QDialog::connect( __pqDialogButtonBox, SIGNAL(accepted()),
this, SLOT(
accept()) );
70 QDialog::connect( __pqDialogButtonBox, SIGNAL(rejected()),
this, SLOT(reject()) );
71 __pqVBoxLayout->addWidget( __pqDialogButtonBox );
74 QDialog::setLayout( __pqVBoxLayout );
CVesselContainerDeviceCreateView(CVesselContainerDevice **_ppoVesselContainerDevice)
virtual void accept()
[override] QDialog::accept()
QLineEdit * pqLineEditName
[UI:LineEdit] Device name
CVesselContainerDevice ** ppoVesselContainerDevice
[out] Created VesselContainerDevice
void constructLayout()
Constructs the layout of the user-interface.