OGS
StationTabWidget.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4// ** INCLUDES **
5#include "StationTabWidget.h"
6
7StationTabWidget::StationTabWidget(QWidget* parent /*= 0*/) : QWidget(parent)
8{
9 setupUi(this);
10
11 connect(this->openStnPushButton, SIGNAL(clicked()), this->treeView,
12 SLOT(addStationList()));
13 connect(this->saveStnPushButton, SIGNAL(clicked()), this->treeView,
14 SLOT(writeToFile()));
15 connect(this->removeStnPushButton, SIGNAL(clicked()), this->treeView,
16 SLOT(removeStationList()));
17 connect(this->treeView, SIGNAL(enableSaveButton(bool)), this,
18 SLOT(enableSaveButton(bool)));
19 connect(this->treeView, SIGNAL(enableRemoveButton(bool)), this,
20 SLOT(enableRemoveButton(bool)));
21}
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)