20 #include <QDialogButtonBox>
21 #include <QFormLayout>
22 #include <QHBoxLayout>
25 #include <QVBoxLayout>
46 QVBoxLayout* __pqVBoxLayout =
new QVBoxLayout();
50 __qFontHeader.setPixelSize( 16 );
51 __qFontHeader.setBold(
true );
52 QHBoxLayout* __pqHBoxLayoutHeader =
new QHBoxLayout();
53 QLabel* __pqLabelIcon =
new QLabel();
54 __pqLabelIcon->setPixmap( QPixmap(
":icons/32x32/route.png" ) );
55 __pqHBoxLayoutHeader->addWidget( __pqLabelIcon, 0, Qt::AlignTop );
56 QLabel* __pqLabelEdit =
new QLabel( tr(
"Edit")+
"..." );
57 __pqLabelEdit->setFont( __qFontHeader );
58 __pqHBoxLayoutHeader->addWidget( __pqLabelEdit, 1 );
60 __pqVBoxLayout->addLayout( __pqHBoxLayoutHeader );
64 QFormLayout* __pqFormLayout =
new QFormLayout();
99 __pqVBoxLayout->addLayout( __pqFormLayout );
102 QDialogButtonBox* __pqDialogButtonBox =
new QDialogButtonBox( QDialogButtonBox::Cancel|QDialogButtonBox::Save, Qt::Horizontal );
103 QDialog::connect( __pqDialogButtonBox, SIGNAL(accepted()),
this, SLOT(
accept()) );
104 QDialog::connect( __pqDialogButtonBox, SIGNAL(rejected()),
this, SLOT(reject()) );
105 __pqVBoxLayout->addWidget( __pqDialogButtonBox );
108 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
QLineEdit * pqLineEditName
[UI:LineEdit] Name
QTextEdit * pqTextEditDescription
[UI:TextEdit] Description
QLineEdit * pqLineEditType
[UI:LineEdit] Type
QTextEdit * pqTextEditComment
[UI:TextEdit] Comment
void constructLayout()
Constructs the layout of the user-interface.
CRouteContainerEditView(CRouteContainer *_poRouteContainer)
[UI] Route overlay container
void setType(const QString &_rqsType)
Sets this route's type.
void setComment(const QString &_rqsComment)
Sets this route's comment.
void setDescription(const QString &_rqsDescription)
Sets this route's description.
QString getUrl() const
Returns this route's URL.
QString getType() const
Returns this route's type.
QString getDescription() const
Returns this route's description.
QString getComment() const
Returns this route's comment.
void setUrl(const QString &_rqsUrl)
Sets this route's URL.