OGS
GeoTabWidget.cpp
Go to the documentation of this file.
1
15// ** INCLUDES **
16#include "GeoTabWidget.h"
17
18GeoTabWidget::GeoTabWidget(QWidget* parent /*= 0*/) : QWidget(parent)
19{
20 setupUi(this);
21
22 connect(this->openGeoPushButton, SIGNAL(clicked()), this->treeView,
23 SLOT(addGeometry()));
24 connect(this->saveGeoPushButton, SIGNAL(clicked()), this->treeView,
25 SLOT(writeToFile()));
26 connect(this->removeGeoPushButton, SIGNAL(clicked()), this->treeView,
27 SLOT(removeGeometry()));
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}
Implementation of the GeoTabWidget class.
void enableSaveButton(bool enable)
void enableRemoveButton(bool enable)
GeoTabWidget(QWidget *parent=nullptr)
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)