27 #include "../../../dataaccess/query/Field.h"
28 #include "../../../dataaccess/query/PropertyName.h"
29 #include "ui_DoubleListWidgetForm.h"
34 #include <QtGui/QGridLayout>
42 QGridLayout* layout =
new QGridLayout(
this);
47 this->setTitle(tr(
"Attribute Selection"));
48 this->setSubTitle(tr(
"Select the attributes to be listed."));
50 m_widget->getForm()->m_leftItemsLabel->setText(tr(
"Available Properties"));
51 m_widget->getForm()->m_rightItemsLabel->setText(tr(
"Used Properties"));
63 if(m_widget->getOutputValues().empty())
71 return m_widget.get();
78 std::vector<std::string> values = m_widget->getOutputValues();
80 for(
size_t t = 0; t < values.size(); ++t)
92 std::vector<std::string> values;
94 for(std::size_t i = 0; i < fields->size(); ++i)
100 values.push_back(p->
getName());
103 m_widget->setOutputValues(values);
108 emit completeChanged();
Expression * getExpression() const
It returns the expression set for an output select query.
const std::string & getName() const
It returns the property name.
The Field class can be used to model an expression that takes part of the output items of a SELECT...
This file has the FieldsWizardPage class.
A class that models the name of any property of an object.
boost::ptr_vector< Field > Fields
Fields is just a boost::ptr_vector of Field pointers.
virtual ~FieldsWizardPage()
te::da::Fields * getFields()
std::auto_ptr< DoubleListWidget > m_widget
DoubleListWidget * getWidget() const
void setFields(const te::da::Fields *fields)
FieldsWizardPage(QWidget *parent=0)