OGS
GeoTabWidget Class Reference

Detailed Description

Widget containing GeoTreeView-objects.

Definition at line 23 of file GeoTabWidget.h.

#include <GeoTabWidget.h>

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

Public Member Functions

 GeoTabWidget (QWidget *parent=nullptr)
 

Private Slots

void enableSaveButton (bool enable)
 

Private Member Functions

void enableRemoveButton (bool enable)
 

Constructor & Destructor Documentation

◆ GeoTabWidget()

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

Definition at line 18 of file GeoTabWidget.cpp.

18 : 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}
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 GeoTabWidget::enableRemoveButton ( bool enable)
inlineprivate

Definition at line 34 of file GeoTabWidget.h.

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

Referenced by GeoTabWidget().

◆ enableSaveButton

void GeoTabWidget::enableSaveButton ( bool enable)
inlineprivateslot

Definition at line 33 of file GeoTabWidget.h.

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

Referenced by GeoTabWidget().


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