labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

WorksheetPrivate.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : WorksheetPrivate.h
3  Project : LabPlot
4  Description : Private members of Worksheet.
5  --------------------------------------------------------------------
6  Copyright : (C) 2012 by Alexander Semke (alexander.semke@web.de)
7 
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  * This program is distributed in the hope that it will be useful, *
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
20  * GNU General Public License for more details. *
21  * *
22  * You should have received a copy of the GNU General Public License *
23  * along with this program; if not, write to the Free Software *
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
25  * Boston, MA 02110-1301 USA *
26  * *
27  ***************************************************************************/
28 
29 #ifndef WORKSHEETPRIVATE_H
30 #define WORKSHEETPRIVATE_H
31 
33 
34 #include <QColor>
35 
36 class QBrush;
37 class Worksheet;
39 class QGraphicsScene;
40 class TreeModel;
41 
43 public:
44  explicit WorksheetPrivate(Worksheet*);
45  virtual ~WorksheetPrivate();
46 
47  Worksheet* const q;
48  QRectF pageRect;
49  QGraphicsScene* m_scene;
50  bool useViewSize{false};
51  bool scaleContent{false};
52 
53  QString name() const;
54  void update();
55  void updateLayout(bool undoable = true);
56  void setContainerRect(WorksheetElementContainer*, float x, float y, float h, float w, bool undoable);
57  void updatePageRect();
58 
62  Qt::BrushStyle backgroundBrushStyle;
66  float backgroundOpacity{1.0};
67 
69  bool suppressLayoutUpdate{false};
71  float layoutTopMargin{0.0};
72  float layoutBottomMargin{0.0};
73  float layoutLeftMargin{0.0};
74  float layoutRightMargin{0.0};
79  QString theme;
80  bool plotsLocked{false};
84 
85  enum class TreeModelColumn {
86  PLOTNAME = 0,
87  SIGNALNAME = 0,
88  CURSOR0,
89  CURSOR1,
91  };
92 
93  TreeModel* cursorData{nullptr};
94 };
95 
96 #endif
BackgroundColorStyle
Definition: PlotArea.h:46
BackgroundImageStyle
Definition: PlotArea.h:48
BackgroundType
Definition: PlotArea.h:45
The TreeModel class This is an abstract treemodel which can be used by a treeview.
Definition: TreeModel.h:68
Worksheet element container - parent of multiple elements This class provides the functionality for a...
PlotArea::BackgroundImageStyle backgroundImageStyle
void updateLayout(bool undoable=true)
Definition: Worksheet.cpp:1257
QColor backgroundSecondColor
Worksheet::Layout layout
Qt::BrushStyle backgroundBrushStyle
PlotArea::BackgroundType backgroundType
WorksheetPrivate(Worksheet *)
Definition: Worksheet.cpp:1206
QString backgroundFileName
QString name() const
Definition: Worksheet.cpp:1211
QGraphicsScene * m_scene
TreeModel * cursorData
Worksheet *const q
Worksheet::CartesianPlotActionMode cartesianPlotActionMode
Worksheet::CartesianPlotActionMode cartesianPlotCursorMode
PlotArea::BackgroundColorStyle backgroundColorStyle
void setContainerRect(WorksheetElementContainer *, float x, float y, float h, float w, bool undoable)
Definition: Worksheet.cpp:1313
virtual ~WorksheetPrivate()
Definition: Worksheet.cpp:1253
Top-level container for worksheet elements like plot, labels, etc.
Definition: Worksheet.h:46
CartesianPlotActionMode
Definition: Worksheet.h:55