OGS
MeshTabWidget Class Reference

Detailed Description

Widget for data views of meshes.

Definition at line 23 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 18 of file MeshTabWidget.cpp.

18 : QWidget(parent)
19{
20 setupUi(this);
21
22 connect(this->addMeshPushButton, SIGNAL(clicked()), this->treeView,
23 SLOT(addMesh()));
24 connect(this->saveMeshPushButton, SIGNAL(clicked()), this->treeView,
25 SLOT(writeToFile()));
26 connect(this->removeMeshPushButton, SIGNAL(clicked()), this->treeView,
27 SLOT(removeMesh()));
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 MeshTabWidget::enableRemoveButton ( bool enable)
inlineprivate

Definition at line 32 of file MeshTabWidget.h.

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

Referenced by MeshTabWidget().

◆ enableSaveButton

void MeshTabWidget::enableSaveButton ( bool enable)
inlineprivateslot

Definition at line 31 of file MeshTabWidget.h.

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

Referenced by MeshTabWidget().


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