+ //Units
+ QLabel* unitsLbl = new QLabel(tr("PRP_UNITS"),this);
+ myUnits = new QComboBox(this);
+
+ //Comment
+ QLabel* commentLabel = new QLabel(tr("PRP_COMMENT"),this);
+ myComment = new QTextEdit(this);
+ myComment->setMaximumHeight(80);
+
+ //Modifications
+ QLabel* modificationsLabel = new QLabel(tr("PRP_MODIFICATIONS"),this);
+ myModifications = new QTreeWidget(this);
+ myModifications->setRootIsDecorated(false);
+ myModifications->setUniformRowHeights(true);
+ myModifications->setAllColumnsShowFocus(true);
+ myModifications->setColumnCount(2);
+ myModifications->setMaximumHeight(80);
+ QStringList columnNames;
+ columnNames.append(tr("PRP_AUTHOR"));
+ columnNames.append(tr("PRP_DATE_MODIF"));
+ myModifications->setHeaderLabels( columnNames );
+
+ //Component versions
+ QLabel* versionsLabel = new QLabel(tr("PRP_VERSIONS"),this);
+ myVersions = new QTreeWidget(this);
+ myVersions->setRootIsDecorated(false);
+ myVersions->setUniformRowHeights(true);
+ myVersions->setAllColumnsShowFocus(true);
+ myVersions->setColumnCount(2);
+ myVersions->setMaximumHeight(80);
+ columnNames.clear();
+ columnNames.append(tr("PRP_COMPONENT"));
+ columnNames.append(tr("PRP_VERSION"));
+ myVersions->setHeaderLabels( columnNames );
+
+ QFrame* buttonFrame = new QFrame(this);
+
+ QHBoxLayout* horizontalLayout = new QHBoxLayout(buttonFrame);
+
+ myOkButton = new QPushButton(tr("BUT_OK"), buttonFrame);
+ myCancelButton = new QPushButton(tr("BUT_CANCEL"), buttonFrame);
+
+ horizontalLayout->addWidget(myOkButton);
+ horizontalLayout->addItem( new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum) );
+ horizontalLayout->addWidget(myCancelButton);
+
+ QGridLayout* gridLayout = new QGridLayout(this);
+ gridLayout->setMargin(DEFAULT_MARGIN);
+ gridLayout->setSpacing(DEFAULT_SPACING);
+ gridLayout->addWidget(authorLbl, 0, 0, 1, 1);
+ gridLayout->addWidget(myAuthor, 0, 1, 1, 1);
+ gridLayout->addWidget(dateLbl, 1, 0, 1, 1);
+ gridLayout->addWidget(myDate, 1, 1, 1, 1);
+ gridLayout->addWidget(myLocked, 2, 0, 1, 1);
+ gridLayout->addWidget(myModification, 2, 1, 1, 1);
+ gridLayout->addWidget(unitsLbl, 3, 0, 1, 1);
+ gridLayout->addWidget(myUnits, 3, 1, 1, 1);
+ gridLayout->addItem(new QSpacerItem(/*72*/0, 0/*20*/, QSizePolicy::Expanding, QSizePolicy::Minimum), 3, 2, 1, 1);
+ gridLayout->addWidget(commentLabel, 4, 0, 1, 1);
+ gridLayout->addWidget(myComment, 4, 1, 1, 2);
+ gridLayout->addWidget(modificationsLabel, 5, 0, 1, 1);
+ gridLayout->addWidget(myModifications, 5, 1, 1, 2);
+ gridLayout->addWidget(versionsLabel, 6, 0, 1, 1);
+ gridLayout->addWidget(myVersions, 6, 1, 1, 2);
+ gridLayout->addWidget(buttonFrame, 7, 0, 1, 3);