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/landmark.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();
73 __pqVBoxLayout->addLayout( __pqFormLayout );
76 QDialogButtonBox* __pqDialogButtonBox =
new QDialogButtonBox( QDialogButtonBox::Cancel|QDialogButtonBox::Save, Qt::Horizontal );
77 QDialog::connect( __pqDialogButtonBox, SIGNAL(accepted()),
this, SLOT(
accept()) );
78 QDialog::connect( __pqDialogButtonBox, SIGNAL(rejected()),
this, SLOT(reject()) );
79 __pqVBoxLayout->addWidget( __pqDialogButtonBox );
82 COverlayObjectEditView::setLayout( __pqVBoxLayout );
QLineEdit * pqLineEditName
[UI:LineEdit] Name
void constructLayout()
Constructs the layout of the user-interface.
CLandmarkContainerEditView(CLandmarkContainer *_poLandmarkContainer)
[UI] Landmark overlay container
[UI] Generic overlay object's edit view
const COverlayObject * poOverlayObject
Overlay object being edited.
QString getName() const
Returns this object's name.