1 #include "ui_ProjectInfoWidgetForm.h"
8 m_ui(new Ui::ProjectInfoWidgetForm)
24 m_ui->m_title->setText(project->
getTitle().c_str());
25 m_ui->m_location->setText(project->
getFileName().c_str());
27 QString desc(
"This project contains %1 layers");
28 desc = desc.arg(QString::number((
int)m_proj->getTopLayers().size()));
30 m_ui->m_description->setText(desc);
38 m_proj->setTitle(m_ui->m_title->text().toStdString());
39 m_proj->setAuthor(m_ui->m_author->text().toStdString());
std::string m_author
The author of the project.
const std::string & getFileName() const
It gets the filename where the project is saved.
const std::string & getAuthor() const
It gets the author of the project.
Contains a widget for define Project informations.
Ui::ProjectInfoWidgetForm * m_ui
Pointer to the form.
void updateProjectInfo()
Updates the te::qt::af::Project informations.
ProjectInfoWidget(QWidget *parent=0)
Constructor.
This class models the concept of a project for the TerraLib Application Framework.
const std::string & getTitle() const
It gets the title of the project.
void setProject(Project *proj)
Updates the te::qt::af::Project being visualized.
This class models the concept of a project for the TerraLib Application Framework.
~ProjectInfoWidget()
Destructor.