OGS
LinearEditDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "ui_LinearEdit.h"
18#include <QDialog>
19
20#include "GeoLib/Polyline.h"
21
25class LinearEditDialog : public QDialog, private Ui_LinearEdit
26{
27 Q_OBJECT
28
29public:
31 const std::vector<std::size_t>& dis_nodes,
32 const std::vector<double>& dis_values,
33 QDialog* parent = nullptr);
35
36private:
37 void setupDialog(const std::vector<std::size_t> &dis_nodes, const std::vector<double> &dis_values);
38
40
41private slots:
42 void on_comboBox_currentIndexChanged(int index);
43
45 void accept() override;
46
48 void reject() override;
49
50signals:
51 void transmitDisValues(std::vector< std::pair<std::size_t,double> >);
52};
Definition of the PolyLine class.
Class Polyline consists mainly of a reference to a point vector and a vector that stores the indices ...
Definition Polyline.h:40
A dialog window for creating linear boundary conditions on polylines.
void reject() override
Instructions if the Cancel-Button has been pressed.
const GeoLib::Polyline _line
~LinearEditDialog() override
void on_comboBox_currentIndexChanged(int index)
void setupDialog(const std::vector< std::size_t > &dis_nodes, const std::vector< double > &dis_values)
void accept() override
Instructions if the OK-Button has been pressed.
LinearEditDialog(const GeoLib::Polyline &line, const std::vector< std::size_t > &dis_nodes, const std::vector< double > &dis_values, QDialog *parent=nullptr)
void transmitDisValues(std::vector< std::pair< std::size_t, double > >)