OGS
MeshTabWidget.cpp
Go to the documentation of this file.
1 
15 // ** INCLUDES **
16 #include "MeshTabWidget.h"
17 
18 MeshTabWidget::MeshTabWidget(QWidget* parent /*= 0*/) : QWidget(parent)
19 {
20  setupUi(this);
21 
22  connect(this->addMeshPushButton, SIGNAL(clicked()), this->treeView,
23  SLOT(addMesh()));
24  connect(this->saveMeshPushButton, SIGNAL(clicked()), this->treeView,
25  SLOT(writeToFile()));
26  connect(this->removeMeshPushButton, SIGNAL(clicked()), this->treeView,
27  SLOT(removeMesh()));
28  connect(this->treeView, SIGNAL(enableSaveButton(bool)), this,
29  SLOT(enableSaveButton(bool)));
30  connect(this->treeView, SIGNAL(enableRemoveButton(bool)), this,
31  SLOT(enableRemoveButton(bool)));
32 }
Definition of the MeshTabWidget class.
void enableSaveButton(bool enable)
Definition: MeshTabWidget.h:31
MeshTabWidget(QWidget *parent=nullptr)
void enableRemoveButton(bool enable)
Definition: MeshTabWidget.h:32
void writeToFile(std::string const &id_area_fname, std::string const &csv_fname, std::vector< std::pair< std::size_t, double >> const &ids_and_areas, std::vector< MeshLib::Node * > const &mesh_nodes)