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