OGS
MeshTabWidget Class Reference

Detailed Description

Widget for data views of meshes.

Definition at line 12 of file MeshTabWidget.h.

#include <MeshTabWidget.h>

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

Public Member Functions

 MeshTabWidget (QWidget *parent=nullptr)

Private Slots

void enableSaveButton (bool enable)

Private Member Functions

void enableRemoveButton (bool enable)

Constructor & Destructor Documentation

◆ MeshTabWidget()

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

Definition at line 7 of file MeshTabWidget.cpp.

7 : QWidget(parent)
8{
9 setupUi(this);
10
11 connect(this->addMeshPushButton, SIGNAL(clicked()), this->treeView,
12 SLOT(addMesh()));
13 connect(this->saveMeshPushButton, SIGNAL(clicked()), this->treeView,
14 SLOT(writeToFile()));
15 connect(this->removeMeshPushButton, SIGNAL(clicked()), this->treeView,
16 SLOT(removeMesh()));
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}
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 MeshTabWidget::enableRemoveButton ( bool enable)
inlineprivate

Definition at line 21 of file MeshTabWidget.h.

21{ this->removeMeshPushButton->setEnabled(enable); };

Referenced by MeshTabWidget().

◆ enableSaveButton

void MeshTabWidget::enableSaveButton ( bool enable)
inlineprivateslot

Definition at line 20 of file MeshTabWidget.h.

20{ this->saveMeshPushButton->setEnabled(enable); };

Referenced by MeshTabWidget().


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