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 Class Reference

#include <WorksheetPrivate.h>

Collaboration diagram for WorksheetPrivate:
[legend]

Public Types

enum class  TreeModelColumn {
  PLOTNAME = 0 , SIGNALNAME = 0 , CURSOR0 , CURSOR1 ,
  CURSORDIFF
}
 

Public Member Functions

 WorksheetPrivate (Worksheet *)
 
virtual ~WorksheetPrivate ()
 
QString name () const
 
void update ()
 
void updateLayout (bool undoable=true)
 
void setContainerRect (WorksheetElementContainer *, float x, float y, float h, float w, bool undoable)
 
void updatePageRect ()
 

Public Attributes

Worksheet *const q
 
QRectF pageRect
 
QGraphicsScene * m_scene
 
bool useViewSize {false}
 
bool scaleContent {false}
 
PlotArea::BackgroundType backgroundType
 
PlotArea::BackgroundColorStyle backgroundColorStyle
 
PlotArea::BackgroundImageStyle backgroundImageStyle
 
Qt::BrushStyle backgroundBrushStyle
 
QColor backgroundFirstColor
 
QColor backgroundSecondColor
 
QString backgroundFileName
 
float backgroundOpacity {1.0}
 
Worksheet::Layout layout {Worksheet::Layout::VerticalLayout}
 
bool suppressLayoutUpdate {false}
 
bool suppressCursorPosChanged {false}
 
float layoutTopMargin {0.0}
 
float layoutBottomMargin {0.0}
 
float layoutLeftMargin {0.0}
 
float layoutRightMargin {0.0}
 
float layoutVerticalSpacing {0.0}
 
float layoutHorizontalSpacing {0.0}
 
int layoutColumnCount {2}
 
int layoutRowCount {2}
 
QString theme
 
bool plotsLocked {false}
 
bool updateCompleteCursorModel {true}
 
Worksheet::CartesianPlotActionMode cartesianPlotActionMode {Worksheet::CartesianPlotActionMode::ApplyActionToSelection}
 
Worksheet::CartesianPlotActionMode cartesianPlotCursorMode {Worksheet::CartesianPlotActionMode::ApplyActionToAll}
 
TreeModelcursorData {nullptr}
 

Detailed Description

Definition at line 42 of file WorksheetPrivate.h.

Member Enumeration Documentation

◆ TreeModelColumn

Enumerator
PLOTNAME 
SIGNALNAME 
CURSOR0 
CURSOR1 
CURSORDIFF 

Definition at line 85 of file WorksheetPrivate.h.

Constructor & Destructor Documentation

◆ WorksheetPrivate()

WorksheetPrivate::WorksheetPrivate ( Worksheet owner)
explicit

Definition at line 1206 of file Worksheet.cpp.

References cursorData, and i18n.

◆ ~WorksheetPrivate()

WorksheetPrivate::~WorksheetPrivate ( )
virtual

Definition at line 1253 of file Worksheet.cpp.

References m_scene.

Member Function Documentation

◆ name()

QString WorksheetPrivate::name ( ) const

Definition at line 1211 of file Worksheet.cpp.

References AbstractAspect::name(), and q.

◆ setContainerRect()

void WorksheetPrivate::setContainerRect ( WorksheetElementContainer elem,
float  x,
float  y,
float  h,
float  w,
bool  undoable 
)

◆ update()

void WorksheetPrivate::update ( )

Definition at line 1249 of file Worksheet.cpp.

References q, and Worksheet::update().

◆ updateLayout()

◆ updatePageRect()

void WorksheetPrivate::updatePageRect ( )

called if the worksheet page (the actual size of worksheet's rectangular) was changed. if a layout is active, it is is updated - this adjusts the sizes of the elements in the layout to the new page size. if no layout is active and the option "scale content" is active, handleResize() is called to adjust zhe properties.

Definition at line 1220 of file Worksheet.cpp.

References AbstractAspect::children(), AbstractAspect::IncludeHidden, AbstractAspect::isLoading(), layout, m_scene, Worksheet::NoLayout, pageRect, q, scaleContent, AbstractAspect::setUndoAware(), updateLayout(), and useViewSize.

Referenced by WorksheetSetPageRectCmd::finalize(), and Worksheet::setPageRect().

Member Data Documentation

◆ backgroundBrushStyle

Qt::BrushStyle WorksheetPrivate::backgroundBrushStyle

Definition at line 62 of file WorksheetPrivate.h.

Referenced by Worksheet::save().

◆ backgroundColorStyle

PlotArea::BackgroundColorStyle WorksheetPrivate::backgroundColorStyle

Definition at line 60 of file WorksheetPrivate.h.

Referenced by Worksheet::save().

◆ backgroundFileName

QString WorksheetPrivate::backgroundFileName

Definition at line 65 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::load(), and Worksheet::save().

◆ backgroundFirstColor

QColor WorksheetPrivate::backgroundFirstColor

Definition at line 63 of file WorksheetPrivate.h.

Referenced by Worksheet::load(), and Worksheet::save().

◆ backgroundImageStyle

PlotArea::BackgroundImageStyle WorksheetPrivate::backgroundImageStyle

Definition at line 61 of file WorksheetPrivate.h.

Referenced by Worksheet::save().

◆ backgroundOpacity

float WorksheetPrivate::backgroundOpacity {1.0}

Definition at line 66 of file WorksheetPrivate.h.

Referenced by Worksheet::save().

◆ backgroundSecondColor

QColor WorksheetPrivate::backgroundSecondColor

Definition at line 64 of file WorksheetPrivate.h.

Referenced by Worksheet::load(), and Worksheet::save().

◆ backgroundType

PlotArea::BackgroundType WorksheetPrivate::backgroundType

Definition at line 59 of file WorksheetPrivate.h.

Referenced by Worksheet::save().

◆ cartesianPlotActionMode

◆ cartesianPlotCursorMode

◆ cursorData

TreeModel* WorksheetPrivate::cursorData {nullptr}

Definition at line 93 of file WorksheetPrivate.h.

Referenced by Worksheet::cursorModel(), and WorksheetPrivate().

◆ layout

◆ layoutBottomMargin

float WorksheetPrivate::layoutBottomMargin {0.0}

Definition at line 72 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::save(), and updateLayout().

◆ layoutColumnCount

int WorksheetPrivate::layoutColumnCount {2}

Definition at line 77 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::save(), and updateLayout().

◆ layoutHorizontalSpacing

float WorksheetPrivate::layoutHorizontalSpacing {0.0}

Definition at line 76 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::save(), and updateLayout().

◆ layoutLeftMargin

float WorksheetPrivate::layoutLeftMargin {0.0}

Definition at line 73 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::save(), and updateLayout().

◆ layoutRightMargin

float WorksheetPrivate::layoutRightMargin {0.0}

Definition at line 74 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::save(), and updateLayout().

◆ layoutRowCount

int WorksheetPrivate::layoutRowCount {2}

Definition at line 78 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::save(), and updateLayout().

◆ layoutTopMargin

float WorksheetPrivate::layoutTopMargin {0.0}

Definition at line 71 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::save(), and updateLayout().

◆ layoutVerticalSpacing

float WorksheetPrivate::layoutVerticalSpacing {0.0}

Definition at line 75 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::save(), and updateLayout().

◆ m_scene

◆ pageRect

QRectF WorksheetPrivate::pageRect

Definition at line 48 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), Worksheet::setPageRect(), and updatePageRect().

◆ plotsLocked

bool WorksheetPrivate::plotsLocked {false}

◆ q

◆ scaleContent

bool WorksheetPrivate::scaleContent {false}

Definition at line 51 of file WorksheetPrivate.h.

Referenced by Worksheet::init(), and updatePageRect().

◆ suppressCursorPosChanged

bool WorksheetPrivate::suppressCursorPosChanged {false}

◆ suppressLayoutUpdate

bool WorksheetPrivate::suppressLayoutUpdate {false}

Definition at line 69 of file WorksheetPrivate.h.

Referenced by Worksheet::setSuppressLayoutUpdate(), and updateLayout().

◆ theme

QString WorksheetPrivate::theme

◆ updateCompleteCursorModel

bool WorksheetPrivate::updateCompleteCursorModel {true}

Definition at line 81 of file WorksheetPrivate.h.

Referenced by Worksheet::cartesianPlotMouseModeChangedSlot().

◆ useViewSize

bool WorksheetPrivate::useViewSize {false}

The documentation for this class was generated from the following files: