plot_docker.h
Go to the documentation of this file.
1 /*
2  * This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5  */
6 
7 #ifndef PLOT_DOCKER_H
8 #define PLOT_DOCKER_H
9 
10 #include <QDomElement>
11 #include <QXmlStreamReader>
12 #include "PlotJuggler/plotdata.h"
13 #include "plotwidget.h"
14 #include "plot_docker_toolbar.h"
15 
17 {
18  Q_OBJECT
19 
20 public:
21  DockWidget(PlotDataMapRef& datamap, QWidget* parent = nullptr);
22 
23  ~DockWidget() override;
24 
26 
28 
29 public slots:
31 
33 
34 private:
36 
38 
40 
41 signals:
42  void undoableChange();
43 };
44 
46 {
47  Q_OBJECT
48 
49 public:
50  PlotDocker(QString name, PlotDataMapRef& datamap, QWidget* parent = nullptr);
51 
52  ~PlotDocker();
53 
54  QString name() const;
55 
56  void setName(QString name);
57 
58  QDomElement xmlSaveState(QDomDocument& doc) const;
59 
60  bool xmlLoadState(QDomElement& tab_element);
61 
62  int plotCount() const;
63 
64  PlotWidget* plotAt(int index);
65 
66  void setHorizontalLink(bool enabled);
67 
68  void zoomOut();
69 
70  void replot();
71 
72 public slots:
73 
74  void on_stylesheetChanged(QString theme);
75 
76 private:
77  void restoreSplitter(QDomElement elem, DockWidget* widget);
78 
79  QString _name;
80 
82 
83 signals:
84 
86 
87  void undoableChange();
88 };
89 
90 #endif // PLOT_DOCKER_H
DockWidget::splitHorizontal
DockWidget * splitHorizontal()
Definition: plot_docker.cpp:347
PlotDocker::restoreSplitter
void restoreSplitter(QDomElement elem, DockWidget *widget)
Definition: plot_docker.cpp:140
plotwidget.h
DockWidget::plotWidget
PlotWidget * plotWidget()
Definition: plot_docker.cpp:386
DockWidget::~DockWidget
~DockWidget() override
Definition: plot_docker.cpp:343
DockWidget::_toolbar
DockToolbar * _toolbar
Definition: plot_docker.h:37
PlotDocker::replot
void replot()
Definition: plot_docker.cpp:264
PlotDocker::on_stylesheetChanged
void on_stylesheetChanged(QString theme)
Definition: plot_docker.cpp:272
PlotDocker::xmlSaveState
QDomElement xmlSaveState(QDomDocument &doc) const
Definition: plot_docker.cpp:124
PlotWidget
Definition: plotwidget.h:38
ads::CDockManager
Definition: DockManager.h:69
PlotDocker::undoableChange
void undoableChange()
PlotDocker::setHorizontalLink
void setHorizontalLink(bool enabled)
Definition: plot_docker.cpp:251
DockWidget::_plot_widget
PlotWidget * _plot_widget
Definition: plot_docker.h:35
DockWidget
Definition: plot_docker.h:16
ads::CDockWidget
Definition: DockWidget.h:54
DockWidget::DockWidget
DockWidget(PlotDataMapRef &datamap, QWidget *parent=nullptr)
Definition: plot_docker.cpp:281
PlotDocker::plotAt
PlotWidget * plotAt(int index)
Definition: plot_docker.cpp:244
PlotDocker::plotCount
int plotCount() const
Definition: plot_docker.cpp:239
plot_docker_toolbar.h
plotdata.h
PlotDocker
Definition: plot_docker.h:45
DockWidget::toolBar
DockToolbar * toolBar()
Definition: plot_docker.cpp:391
PlotDocker::plotWidgetAdded
void plotWidgetAdded(PlotWidget *)
PlotDocker::zoomOut
void zoomOut()
Definition: plot_docker.cpp:256
DockWidget::undoableChange
void undoableChange()
PlotDocker::~PlotDocker
~PlotDocker()
Definition: plot_docker.cpp:57
PlotDocker::PlotDocker
PlotDocker(QString name, PlotDataMapRef &datamap, QWidget *parent=nullptr)
Definition: plot_docker.cpp:31
DockWidget::splitVertical
DockWidget * splitVertical()
Definition: plot_docker.cpp:367
PJ::PlotDataMapRef
Definition: plotdata.h:34
PlotDocker::_name
QString _name
Definition: plot_docker.h:79
PlotDocker::_datamap
PlotDataMapRef & _datamap
Definition: plot_docker.h:81
PlotDocker::name
QString name() const
Definition: plot_docker.cpp:61
PlotDocker::setName
void setName(QString name)
Definition: plot_docker.cpp:66
DockToolbar
Definition: plot_docker_toolbar.h:19
DockWidget::_datamap
PlotDataMapRef & _datamap
Definition: plot_docker.h:39
PlotDocker::xmlLoadState
bool xmlLoadState(QDomElement &tab_element)
Definition: plot_docker.cpp:212


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45