20 #include <QDialogButtonBox>
21 #include <QFormLayout>
22 #include <QHBoxLayout>
26 #include <QVBoxLayout>
47 QVBoxLayout* __pqVBoxLayout =
new QVBoxLayout();
51 __qFontHeader.setPixelSize( 16 );
52 __qFontHeader.setBold(
true );
53 QHBoxLayout* __pqHBoxLayoutHeader =
new QHBoxLayout();
54 QLabel* __pqLabelIcon =
new QLabel();
55 __pqLabelIcon->setPixmap( QPixmap(
":icons/32x32/vessel.png" ) );
56 __pqHBoxLayoutHeader->addWidget( __pqLabelIcon, 0, Qt::AlignTop );
57 QLabel* __pqLabelEdit =
new QLabel( tr(
"Edit")+
"..." );
58 __pqLabelEdit->setFont( __qFontHeader );
59 __pqHBoxLayoutHeader->addWidget( __pqLabelEdit, 1 );
61 __pqVBoxLayout->addLayout( __pqHBoxLayoutHeader );
65 QFormLayout* __pqFormLayout =
new QFormLayout();
100 __pqVBoxLayout->addLayout( __pqFormLayout );
103 QDialogButtonBox* __pqDialogButtonBox =
new QDialogButtonBox( QDialogButtonBox::Cancel|QDialogButtonBox::Save, Qt::Horizontal );
104 QDialog::connect( __pqDialogButtonBox, SIGNAL(accepted()),
this, SLOT(
accept()) );
105 QDialog::connect( __pqDialogButtonBox, SIGNAL(rejected()),
this, SLOT(reject()) );
106 __pqVBoxLayout->addWidget( __pqDialogButtonBox );
109 COverlayObjectEditView::setLayout( __pqVBoxLayout );
[UI] Generic overlay object's edit view
const COverlayObject * poOverlayObject
Overlay object being edited.
QString getName() const
Returns this object's name.
QLineEdit * pqLineEditUrl
[UI:LineEdit] URL
QTextEdit * pqTextEditComment
[UI:TextEdit] Comment
void constructLayout()
Constructs the layout of the user-interface.
CVesselContainerEditView(CVesselContainer *_poVesselContainer)
QTextEdit * pqTextEditDescription
[UI:TextEdit] Description
QLineEdit * pqLineEditType
[UI:LineEdit] Type
QLineEdit * pqLineEditName
[UI:LineEdit] Name
[UI] Vessel overlay container / flotilla
QString getUrl() const
Returns this flotilla's URL.
QString getComment() const
Returns this flotilla's comment.
void setType(const QString &_rqsType)
Sets this flotilla's type.
QString getType() const
Returns this flotilla's type.
void setComment(const QString &_rqsComment)
Sets this flotilla's comment.
void setDescription(const QString &_rqsDescription)
Sets this flotilla's description.
void setUrl(const QString &_rqsUrl)
Sets this flotilla's URL.
QString getDescription() const
Returns this flotilla's description.