OGS
LineEditDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "ui_LineEdit.h"
18
19#include <QDialog>
20#include "GeoLib/PolylineVec.h"
21
22class QStringListModel;
23
29class LineEditDialog : public QDialog, private Ui_LineEdit
30{
31 Q_OBJECT
32
33public:
34 explicit LineEditDialog(const GeoLib::PolylineVec& ply_vec,
35 QDialog* parent = nullptr);
36 ~LineEditDialog() override;
37
38private:
39 std::vector<std::size_t> getSelectedIndeces(QStringList list);
40
41 QStringListModel* _allPly;
42 QStringListModel* _selPly;
43 std::string _geoName;
44
45private slots:
48
51
53 void accept() override;
54
56 void reject() override;
57
58signals:
59 void connectPolylines(const std::string&,
60 std::vector<std::size_t>,
61 double,
62 std::string,
63 bool,
64 bool);
66};
Definition of the PolylineVec class.
Class Polyline consists mainly of a reference to a point vector and a vector that stores the indices ...
Definition Polyline.h:40
The class TemplateVec takes a unique name and manages a std::vector of pointers to data elements of t...
A dialog window for manipulation of polylines. Currently included functionality is the concatenation ...
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)