OGS
StationTreeView.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <QContextMenuEvent>
18#include <QTreeView>
19#include "GeoLib/Station.h"
20
21class vtkPolyDataAlgorithm;
22
27class StationTreeView : public QTreeView
28{
29 Q_OBJECT
30
31public:
33 explicit StationTreeView(QWidget* parent = nullptr);
34
36 void updateView();
37
38public slots:
39 //void filterStations(std::vector<PropertyBounds> bounds);
40
41protected slots:
43 void selectionChanged(const QItemSelection& selected,
44 const QItemSelection& deselected) override;
45
47 void selectionChangedFromOutside(const QItemSelection &selected,
48 const QItemSelection &deselected);
49
50private:
52 void contextMenuEvent(QContextMenuEvent* e) override;
53
55 void writeStratigraphiesAsImages(QString listName);
56
57private slots:
58 void addStationList();
60 void exportList();
61 void exportStation();
62 void mapStations();
63 void removeStationList();
65 void setNameForElement();
66 void writeToFile();
68
69signals:
70 void enableSaveButton(bool);
72 void geoItemSelected(const vtkPolyDataAlgorithm*, int);
73 void geometryMappingRequested(const std::string&);
75 void itemSelectionChanged(const QItemSelection & selected,
76 const QItemSelection & deselected);
78 void propertiesDialogRequested(std::string name);
79 void requestNameChangeDialog(const std::string&, std::size_t);
80 void stationListExportRequested(std::string listName, std::string fileName);
81 void stationListRemoved(std::string name);
82 void stationListSaved(QString listName, QString fileName);
83 void diagramRequested(QModelIndex&);
84};
Definition of the Station class.
A view for the StationTreeModel.
void updateView()
Update the view to visualise changes made to the underlying data.
void selectionChangedFromOutside(const QItemSelection &selected, const QItemSelection &deselected)
Instructions if the selection of items in the view has changed by events outside the view (i....
void requestNameChangeDialog(const std::string &, std::size_t)
void propertiesDialogRequested(std::string name)
void openStationListFile(int)
void stationListExportRequested(std::string listName, std::string fileName)
void geometryMappingRequested(const std::string &)
void geoItemSelected(const vtkPolyDataAlgorithm *, int)
void diagramRequested(QModelIndex &)
void enableRemoveButton(bool)
void contextMenuEvent(QContextMenuEvent *e) override
Actions to be taken after a right mouse click is performed in the station view.
void setNameForElement()
Calls a SetNameDialog.
void stationListSaved(QString listName, QString fileName)
void removeGeoItemSelection()
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) override
Instructions if the selection of items in the view has changed.
StationTreeView(QWidget *parent=nullptr)
Constructor.
void enableSaveButton(bool)
void writeStratigraphiesAsImages(QString listName)
Create image files from all stratigraphies in a borehole vector.
void itemSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
void stationListRemoved(std::string name)