20 #include <QDialogButtonBox>
21 #include <QFormLayout>
22 #include <QHBoxLayout>
25 #include <QVBoxLayout>
38 , ppoVesselPointDevice( _ppoVesselPointDevice )
40 , pqLineEditSourceName( 0 )
42 QDialog::setWindowTitle( tr(
"Create Device")+
"..." );
50 QVBoxLayout* __pqVBoxLayout =
new QVBoxLayout();
53 QHBoxLayout* __pqHBoxLayout =
new QHBoxLayout();
55 QLabel* __pqLabelIcon =
new QLabel();
56 __pqLabelIcon->setPixmap( QPixmap(
":icons/32x32/vessel_device.png" ) );
57 __pqHBoxLayout->addWidget( __pqLabelIcon, 0 );
59 QFormLayout* __pqFormLayout =
new QFormLayout();
62 pqLineEditName->setToolTip( tr(
"Device name (matching one of the defined devices)") );
66 pqLineEditSourceName->setToolTip( tr(
"Source name/filter (exactly matching the device provided source name)") );
69 __pqHBoxLayout->addLayout( __pqFormLayout, 1 );
70 __pqVBoxLayout->addLayout( __pqHBoxLayout );
73 QDialogButtonBox* __pqDialogButtonBox =
new QDialogButtonBox( QDialogButtonBox::Cancel|QDialogButtonBox::Ok, Qt::Horizontal );
74 QDialog::connect( __pqDialogButtonBox, SIGNAL(accepted()),
this, SLOT(
accept()) );
75 QDialog::connect( __pqDialogButtonBox, SIGNAL(rejected()),
this, SLOT(reject()) );
76 __pqVBoxLayout->addWidget( __pqDialogButtonBox );
79 QDialog::setLayout( __pqVBoxLayout );
CVesselPointDeviceCreateView(CVesselPointDevice **_ppoVesselPointDevice)
QLineEdit * pqLineEditName
[UI:LineEdit] Device name
void constructLayout()
Constructs the layout of the user-interface.
CVesselPointDevice ** ppoVesselPointDevice
[out] Created VesselPointDevice
virtual void accept()
[override] QDialog::accept()
QLineEdit * pqLineEditSourceName
[UI:LineEdit] Device source name