27 #include "../../dataaccess/dataset/DataSetType.h" 
   29 #include "ui_FeatureAttributesDialogForm.h" 
   32 #include <QTreeWidgetItem> 
   39     m_ui(new Ui::FeatureAttributesDialogForm),
 
   46   m_ui->m_attributesTreeWidget->setAlternatingRowColors(
true);
 
   47   m_ui->m_attributesTreeWidget->setColumnCount(2);
 
   50   labels << tr(
"Property") << tr(
"Value");
 
   51   m_ui->m_attributesTreeWidget->setHeaderLabels(labels);
 
   72   const std::vector<te::dt::Property*>& properties = m_type->getProperties();
 
   74   for(std::size_t i = 0; i < properties.size(); ++i) 
 
   78     QTreeWidgetItem* propertyItem = 
new QTreeWidgetItem;
 
   79     propertyItem->setText(0, p->
getName().c_str());
 
   80     propertyItem->setText(1, tr(
"Value"));
 
   82     m_ui->m_attributesTreeWidget->addTopLevelItem(propertyItem);
 
   94   Qt::ItemFlags tmp = item->flags();
 
   96     item->setFlags(tmp | Qt::ItemIsEditable);
 
   97   else if(tmp & Qt::ItemIsEditable)
 
   98     item->setFlags(tmp ^ Qt::ItemIsEditable);
 
void onAttributesTreeWidgetItemDoubleClicked(QTreeWidgetItem *item, int column)
 
A class that models the description of a dataset. 
 
void initialize()
Internal method to initialize the dialog. 
 
FeatureAttributesDialog(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs the feature attributes dialog which is a child of parent, with widget flags set to f...
 
void onOkPushButtonPressed()
 
A widget used to show and setup feature attributes. 
 
It models a property definition. 
 
~FeatureAttributesDialog()
Destructor. 
 
void set(te::da::DataSetType *type, Feature *f)
 
std::auto_ptr< Ui::FeatureAttributesDialogForm > m_ui
Dialog form. 
 
const std::string & getName() const 
It returns the property name.