Loading [MathJax]/extensions/tex2jax.js
OGS
SelectMeshDialog.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include <QDialog>
18 
19 namespace GeoLib {
20 struct GeoObject;
21 }
22 
23 class QDialogButtonBox;
24 class QLabel;
25 class QComboBox;
26 class QVBoxLayout;
27 
31 class SelectMeshDialog : public QDialog
32 {
33  Q_OBJECT
34 
35 public:
37  SelectMeshDialog(const GeoLib::GeoObject* geo_object,
38  const std::list<std::string>& msh_names,
39  QDialog* parent = nullptr);
40  ~SelectMeshDialog() override;
41 
42  QDialogButtonBox* _buttonBox;
43 
44 private:
46  void setupDialog(const std::list<std::string> &msh_names);
47 
48  QLabel* _txt_label;
49  QComboBox* _msh_names;
50  QVBoxLayout* _layout;
52 
53 
54 private slots:
56  void accept() override;
57 
59  void reject() override;
60 
61 signals:
62  //void requestNameChange(const std::string&, const GeoLib::GEOTYPE, std::size_t, std::string);
63 };
Small dialog for setting a name for an object.
void setupDialog(const std::list< std::string > &msh_names)
The buttons used in this dialog.
SelectMeshDialog(const GeoLib::GeoObject *geo_object, const std::list< std::string > &msh_names, QDialog *parent=nullptr)
Constructor.
QDialogButtonBox * _buttonBox
QComboBox * _msh_names
~SelectMeshDialog() override
QVBoxLayout * _layout
void accept() override
Instructions if the OK-Button has been pressed.
void reject() override
Instructions if the Cancel-Button has been pressed.
const GeoLib::GeoObject * _geo_object