OGS
LinearEditDialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include "ui_LinearEdit.h"
7#include <QDialog>
8
9#include "GeoLib/Polyline.h"
10
14class LinearEditDialog : public QDialog, private Ui_LinearEdit
15{
16 Q_OBJECT
17
18public:
20 const std::vector<std::size_t>& dis_nodes,
21 const std::vector<double>& dis_values,
22 QDialog* parent = nullptr);
24
25private:
26 void setupDialog(const std::vector<std::size_t> &dis_nodes, const std::vector<double> &dis_values);
27
29
30private slots:
31 void on_comboBox_currentIndexChanged(int index);
32
34 void accept() override;
35
37 void reject() override;
38
39signals:
40 void transmitDisValues(std::vector< std::pair<std::size_t,double> >);
41};
Class Polyline consists mainly of a reference to a point vector and a vector that stores the indices ...
Definition Polyline.h:29
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 > >)