All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ProjectInfoWidget.cpp
Go to the documentation of this file.
1 #include "ui_ProjectInfoWidgetForm.h"
2 #include "ProjectInfoWidget.h"
3 #include "Project.h"
4 
6  QWidget(parent),
7  m_proj(0),
8  m_ui(new Ui::ProjectInfoWidgetForm)
9 {
10  m_ui->setupUi(this);
11 }
12 
14 {
15 }
16 
18 {
19  m_proj = project;
20 
21  if(m_proj != 0)
22  {
23  m_ui->m_author->setText(project->getAuthor().c_str());
24  m_ui->m_title->setText(project->getTitle().c_str());
25  m_ui->m_location->setText(project->getFileName().c_str());
26  }
27 }
28 
30 {
31  if(m_proj != 0)
32  {
33  m_proj->setTitle(m_ui->m_title->text().toStdString());
34  m_proj->setAuthor(m_ui->m_author->text().toStdString());
35  }
36 }
std::string m_author
The author of the project.
Definition: Project.h:205
void setProject(Project *proj)
Updates the te::qt::af::Project being visualized.
Contains a widget for define Project informations.
const std::string & getTitle() const
It gets the title of the project.
Definition: Project.cpp:51
void updateProjectInfo()
Updates the te::qt::af::Project informations.
This class models the concept of a project for the TerraLib Application Framework.
const std::string & getAuthor() const
It gets the author of the project.
Definition: Project.cpp:62
This class models the concept of a project for the TerraLib Application Framework.
Definition: Project.h:50
Ui::ProjectInfoWidgetForm * m_ui
Pointer to the form.
ProjectInfoWidget(QWidget *parent=0)
Constructor.
const std::string & getFileName() const
It gets the filename where the project is saved.
Definition: Project.cpp:221