OGS
StationTabWidget Class Reference

Detailed Description

Widget containing StationTreeView-objects.

Definition at line 23 of file StationTabWidget.h.

#include <StationTabWidget.h>

Inheritance diagram for StationTabWidget:
[legend]
Collaboration diagram for StationTabWidget:
[legend]

Public Member Functions

 StationTabWidget (QWidget *parent=nullptr)
 

Private Slots

void enableSaveButton (bool enable)
 

Private Member Functions

void enableRemoveButton (bool enable)
 

Constructor & Destructor Documentation

◆ StationTabWidget()

StationTabWidget::StationTabWidget ( QWidget * parent = nullptr)
explicit

Definition at line 18 of file StationTabWidget.cpp.

18 : 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}
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)

References enableRemoveButton(), enableSaveButton(), and writeToFile().

Member Function Documentation

◆ enableRemoveButton()

void StationTabWidget::enableRemoveButton ( bool enable)
inlineprivate

Definition at line 34 of file StationTabWidget.h.

34{ this->removeStnPushButton->setEnabled(enable); };

Referenced by StationTabWidget().

◆ enableSaveButton

void StationTabWidget::enableSaveButton ( bool enable)
inlineprivateslot

Definition at line 33 of file StationTabWidget.h.

33{ this->saveStnPushButton->setEnabled(enable); };

Referenced by StationTabWidget().


The documentation for this class was generated from the following files: