OGS
LineEditDialog.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_LineEdit.h"
7
8#include <QDialog>
10
11class QStringListModel;
12
18class LineEditDialog : public QDialog, private Ui_LineEdit
19{
20 Q_OBJECT
21
22public:
23 explicit LineEditDialog(const GeoLib::PolylineVec& ply_vec,
24 QDialog* parent = nullptr);
25 ~LineEditDialog() override;
26
27private:
28 std::vector<std::size_t> getSelectedIndeces(QStringList list);
29
30 QStringListModel* _allPly;
31 QStringListModel* _selPly;
32 std::string _geoName;
33
34private slots:
37
40
42 void accept() override;
43
45 void reject() override;
46
47signals:
48 void connectPolylines(const std::string&,
49 std::vector<std::size_t>,
50 double,
51 std::string,
52 bool,
53 bool);
55};
Class Polyline consists mainly of a reference to a point vector and a vector that stores the indices ...
Definition Polyline.h:29
void on_deselectPlyButton_pressed()
Instructions when polylines are deselected.
QStringListModel * _selPly
void on_selectPlyButton_pressed()
Instructions when polylines are selected.
std::string _geoName
LineEditDialog(const GeoLib::PolylineVec &ply_vec, QDialog *parent=nullptr)
~LineEditDialog() override
void accept() override
Instructions if the OK-Button has been pressed.
void reject() override
Instructions if the Cancel-Button has been pressed.
QStringListModel * _allPly
void connectPolylines(const std::string &, std::vector< std::size_t >, double, std::string, bool, bool)
void triangulateSurface(const GeoLib::Polyline)
std::vector< std::size_t > getSelectedIndeces(QStringList list)
TemplateVec< GeoLib::Polyline > PolylineVec
class PolylineVec encapsulate a std::vector of Polylines additional one can give the vector of polyli...
Definition PolylineVec.h:16