QtiPlot  0.9.8.2
Public Types | Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MultiLayer Class Reference

An MDI window (MdiSubWindow) managing one or more Graph objects. More...

#include <MultiLayer.h>

Inheritance diagram for MultiLayer:
MdiSubWindow

Public Types

enum  AlignPolicy { AlignLayers = 0, AlignCanvases }
 
enum  HorAlignement { HCenter, Left, Right }
 
enum  SizePolicy { Expanding = 0, UserSize }
 
enum  VertAlignement { VCenter, Top, Bottom }
 
- Public Types inherited from MdiSubWindow
enum  CaptionPolicy { Name = 0, Label = 1, Both = 2 }
 Possible window captions. More...
 
enum  Status { Hidden = -1, Normal = 0, Minimized = 1, Maximized = 2 }
 

Public Slots

void activateGraph (LayerButton *button)
 
GraphactiveLayer ()
 
GraphaddLayer (int x=0, int y=0, int width=0, int height=0, bool=false)
 
QSize arrangeLayers (bool userSize)
 
bool arrangeLayers (bool fit, bool userSize)
 
int bottomMargin ()
 
int colsSpacing ()
 
void confirmRemoveLayer ()
 
void connectLayer (Graph *g)
 
void findBestLayout (int &rows, int &cols)
 
int getCols ()
 
int getRows ()
 
int horizontalAlignement ()
 
bool isEmpty ()
 
GraphlayerAt (const QPoint &pos)
 Returns the layer at the given position; returns 0 if there is no such layer. More...
 
QSize layerCanvasSize ()
 
int leftMargin ()
 
bool removeActiveLayer ()
 
bool removeLayer (Graph *g)
 
int rightMargin ()
 
int rowsSpacing ()
 
void save (const QString &fn, const QString &geometry, bool=false)
 
void selectLayerCanvas (Graph *g)
 
void setActiveLayer (Graph *g)
 
void setAlignement (int ha, int va)
 
void setCols (int c)
 
void setFonts (const QFont &titleFnt, const QFont &scaleFnt, const QFont &numbersFnt, const QFont &legendFnt)
 
void setGraphGeometry (int x, int y, int w, int h)
 
void setLayerCanvasSize (int w, int h)
 
void setMargins (int lm, int rm, int tm, int bm)
 
void setRows (int r)
 
void setSpacing (int rgap, int cgap)
 
bool swapLayers (int src, int dest)
 
int topMargin ()
 
void updateLayerAxes (Graph *g, int axis)
 
void updateLayersLayout (Graph *)
 
int verticalAlignement ()
 
Print and Export
QPixmap canvasPixmap (const QSize &size=QSize(), double scaleFontsFactor=1.0, bool transparent=false)
 
void exportToFile (const QString &fileName)
 
void exportImage (const QString &fileName, int quality=100, bool transparent=false, int dpi=0, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0, int compression=0)
 
void exportSVG (const QString &fname, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void exportPDF (const QString &fname)
 
void exportVector (const QString &fileName, int res=0, bool color=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void exportVector (QPrinter *printer, int res=0, bool color=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void draw (QPaintDevice *, const QSizeF &customSize, int unit, int res, double fontsFactor=1.0)
 
void exportEMF (const QString &fname, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void exportTeX (const QString &fname, bool color=true, bool escapeStrings=true, bool fontSizes=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
 
void copyAllLayers ()
 
void print ()
 
void print (QPrinter *)
 
void printAllLayers (QPainter *painter)
 
void printActiveLayer ()
 
Waterfall Plots
void showWaterfallOffsetDialog ()
 
void reverseWaterfallOrder ()
 
void showWaterfallFillDialog ()
 
void updateWaterfalls ()
 
bool isWaterfallPlot ()
 
QColor waterfallFillColor ()
 
void setWaterfallFillColor (const QColor &c)
 
- Public Slots inherited from MdiSubWindow
void notifyChanges ()
 Notifies the main application that the window has been modified. More...
 
virtual void print ()
 
virtual void print (QPrinter *)
 

Signals

void currentColorChanged (const QColor &)
 
void currentFontChanged (const QFont &)
 
void cursorInfo (const QString &)
 
void drawLineEnded (bool)
 
void modifiedPlot ()
 
void pasteMarker ()
 
void setPointerCursor ()
 
void showCurvesDialog ()
 
void showEnrichementDialog ()
 
void showLineDialog ()
 
void showMarkerPopupMenu ()
 
- Signals inherited from MdiSubWindow
void closedWindow (MdiSubWindow *)
 Emitted when the window was closed. More...
 
void hiddenWindow (MdiSubWindow *)
 Emitted when the window was hidden. More...
 
void modifiedWindow (MdiSubWindow *)
 
void resizedWindow (MdiSubWindow *)
 
void showContextMenu ()
 Show the context menu. More...
 
void statusChanged (MdiSubWindow *)
 Emitted when the window status changed. More...
 

Public Member Functions

void adjustLayersToCanvasSize ()
 
AlignPolicy alignPolicy ()
 
QWidget * canvas ()
 
QRect canvasChildrenRect ()
 
QRect canvasRect ()
 
void copy (MultiLayer *ml)
 
void deselect ()
 
bool hasCommonAxes ()
 
bool hasLinkedXLayerAxes ()
 
bool hasSelectedLayers ()
 
bool isLayerSelected (Graph *)
 
Graphlayer (int num)
 
int layerIndex (Graph *g)
 
QList< Graph * > layersList ()
 
void linkXLayerAxes (bool link=true)
 
 MultiLayer (ApplicationWindow *parent=0, int layers=1, int rows=1, int cols=1, const QString &label="", const char *name=0, Qt::WFlags f=0)
 
int numLayers ()
 
void plotProfiles (Matrix *m)
 
void printCropmarks (bool on)
 
bool printCropmarksEnabled ()
 
bool scaleLayersOnPrint ()
 
bool scaleLayersOnResize ()
 
void setAlignPolicy (const AlignPolicy &policy)
 
void setCommonAxesLayout (bool on=true)
 
void setCommonLayerAxes (bool verticalAxis=true, bool horizontalAxis=true)
 
void setEqualSizedLayers ()
 
void setNumLayers (int n)
 
void setScaleLayersOnPrint (bool on)
 
void setScaleLayersOnResize (bool ok)
 
void setSizePolicy (const SizePolicy &policy)
 
void setWaterfallLayout (bool on=true)
 
SizePolicy sizePolicy ()
 
virtual QString sizeToString ()
 Size of the widget as a string. More...
 
QList< Graph * > stackOrderedLayersList ()
 
QHBoxLayout * toolBox ()
 
 ~MultiLayer ()
 
- Public Member Functions inherited from MdiSubWindow
ApplicationWindowapplicationWindow ()
 Returns a pointer to the parent application. More...
 
void askOnCloseEvent (bool ask)
 Toggle the "ask on close" flag. More...
 
QString aspect ()
 Return the window status as a string. More...
 
QString birthDate ()
 Return the creation date. More...
 
CaptionPolicy captionPolicy ()
 Return the caption policy. More...
 
void closeEvent (QCloseEvent *)
 Close event handler. More...
 
bool eventFilter (QObject *object, QEvent *e)
 Filters other object's events (customizes title bar's context menu) More...
 
virtual void exportPDF (const QString &)
 
Folderfolder ()
 Returns the pointer to the parent folder of the window. More...
 
 MdiSubWindow (const QString &label=QString(), ApplicationWindow *app=0, const QString &name=QString(), Qt::WFlags f=0)
 Constructor. More...
 
QSize minRestoreSize ()
 Returns the size the window had before a change state event to minimized. More...
 
QString name ()
 Return the window name. More...
 
void resizeEvent (QResizeEvent *)
 
virtual void restore (const QStringList &)
 Not implemented yet. More...
 
void restoreWindow ()
 Show window making sure that layers in MultiLayer windows are not resized. More...
 
virtual void save (const QString &, const QString &, bool=false)
 
void setBirthDate (const QString &s)
 Set the creation date. More...
 
void setCaptionPolicy (CaptionPolicy policy)
 Set the caption policy. More...
 
void setFolder (Folder *f)
 Initializes the pointer to the parent folder of the window. More...
 
virtual void setHidden ()
 Notifies that a window was hidden by a direct user action. More...
 
void setMaximized ()
 
void setMinimized ()
 
void setName (const QString &s)
 Set the window name. More...
 
void setNormal ()
 
void setStatus (Status s)
 Set the window status flag (hidden, normal, minimized or maximized) More...
 
void setWindowLabel (const QString &s)
 Set the window label. More...
 
Status status ()
 Return the window status flag (hidden, normal, minimized or maximized) More...
 
QString windowLabel ()
 Return the window label. More...
 

Private Member Functions

LayerButtonaddLayerButton ()
 
void createWaterfallBox ()
 
Event Handlers
void mouseReleaseEvent (QMouseEvent *)
 
void showEvent (QShowEvent *)
 
void dropEvent (QDropEvent *)
 
void dragEnterEvent (QDragEnterEvent *)
 
void wheelEvent (QWheelEvent *)
 
void keyPressEvent (QKeyEvent *)
 
bool eventFilter (QObject *object, QEvent *)
 
void releaseLayer ()
 
void resizeLayers (QResizeEvent *)
 
GraphclickedLayer (Graph *)
 Try to guess on which layer the user clicked if the layers are superposed. More...
 

Private Attributes

Graphactive_graph
 
int bottom_margin
 
QList< LayerButton * > buttonsList
 
int colsSpace
 
QPushButton * d_add_layer_btn
 
AlignPolicy d_align_policy
 
QWidget * d_canvas
 
QSize d_canvas_size
 
int d_cols
 Used for resizing of layers. More...
 
bool d_common_axes_layout
 
bool d_is_waterfall_plot
 
QVector< QRectF > d_layer_coordinates
 
QPointer< SelectionMoveResizerd_layers_selector
 
bool d_link_x_axes
 
bool d_print_cropmarks
 
QPushButton * d_remove_layer_btn
 
int d_rows
 
bool d_scale_layers
 Flag telling if layers should be rescaled on the plot window is resized by the user. More...
 
bool d_scale_on_print
 
SizePolicy d_size_policy
 
QColor d_waterfall_fill_color
 
int graph_height
 
int graph_width
 
QList< Graph * > graphsList
 
int hor_align
 
int l_canvas_height
 
int l_canvas_width
 
QHBoxLayout * layerButtonsBox
 
int left_margin
 
int right_margin
 
int rowsSpace
 
QHBoxLayout * toolbuttonsBox
 
int top_margin
 
int vert_align
 
QHBoxLayout * waterfallBox
 

Additional Inherited Members

- Static Public Member Functions inherited from MdiSubWindow
static QString parseAsciiFile (const QString &fname, const QString &commentString, int endLine, int ignoreFirstLines, int maxRows, int &rows)
 Static function used as a workaround for ASCII files having end line char != '
'. More...
 
- Protected Member Functions inherited from MdiSubWindow
virtual void changeEvent (QEvent *event)
 Catches status changes. More...
 

Detailed Description

An MDI window (MdiSubWindow) managing one or more Graph objects.

Note that several parts of the code, as well as the user interface, refer to MultiLayer as "graph" or "plot", practically guaranteeing confusion with the classes Graph and Plot.

Future Plans

Manage any QWidget instead of only Graph. This would allow 3D graphs to be added as well, so you could produce mixed 2D/3D arrangements. It would also allow text labels to be added directly instead of having to complicate things by wrapping them up in a Graph (see documentation of ImageMarker for details) (see documentation of ImageMarker for details).

The main problem to be figured out for this is how Graph would interface with the rest of the project. A possible solution is outlined in the documentation of ApplicationWindow: If MultiLayer exposes its parent Project to the widgets it manages, they could handle things like creating tables by calling methods of Project instead of sending signals.

Member Enumeration Documentation

Enumerator
AlignLayers 
AlignCanvases 
Enumerator
HCenter 
Left 
Right 
Enumerator
Expanding 
UserSize 
Enumerator
VCenter 
Top 
Bottom 

Constructor & Destructor Documentation

MultiLayer::MultiLayer ( ApplicationWindow parent = 0,
int  layers = 1,
int  rows = 1,
int  cols = 1,
const QString &  label = "",
const char *  name = 0,
Qt::WFlags  f = 0 
)
MultiLayer::~MultiLayer ( )

References deselect(), and graphsList.

Member Function Documentation

void MultiLayer::activateGraph ( LayerButton button)
slot
Graph* MultiLayer::activeLayer ( )
inlineslot

References active_graph.

Referenced by FunctionDialog::acceptFunction(), FunctionDialog::acceptParametric(), FunctionDialog::acceptPolar(), ErrDialog::add(), ApplicationWindow::addEllipse(), ApplicationWindow::addErrorBars(), ApplicationWindow::addFunctionCurve(), ApplicationWindow::addImage(), ApplicationWindow::addInsetLayer(), ApplicationWindow::addRectangle(), ApplicationWindow::addTexFormula(), ApplicationWindow::addText(), ApplicationWindow::addTimeStamp(), ApplicationWindow::alignBottom(), ApplicationWindow::alignLeft(), ApplicationWindow::alignRight(), ApplicationWindow::alignTop(), ApplicationWindow::analysis(), ApplicationWindow::appendProject(), ApplicationWindow::baselineDialog(), LineProfileTool::calculateLineProfile(), ApplicationWindow::copyActiveLayer(), ApplicationWindow::copyMarker(), ApplicationWindow::copySelection(), Filter::createOutputGraph(), ApplicationWindow::custom2DPlotTools(), ApplicationWindow::cutSelection(), ApplicationWindow::drawArrow(), ApplicationWindow::drawLine(), ApplicationWindow::dropEvent(), ApplicationWindow::extractLayers(), ApplicationWindow::fitLinear(), ApplicationWindow::fitMultiPeak(), ApplicationWindow::fitSlope(), ApplicationWindow::hideCurve(), ApplicationWindow::hideOtherCurves(), ApplicationWindow::intensityTable(), ApplicationWindow::loadImage(), ApplicationWindow::movePoints(), ApplicationWindow::multilayerPlot(), ApplicationWindow::newFunctionPlot(), ApplicationWindow::newGraph(), ApplicationWindow::newLegend(), ApplicationWindow::openProject(), ApplicationWindow::openTemplate(), ApplicationWindow::pasteSelection(), ApplicationWindow::pixelLineProfile(), PlotWizard::plot2D(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::plotHistogram(), ApplicationWindow::plotImage(), ApplicationWindow::plotSpectrogram(), ApplicationWindow::raiseActiveEnrichment(), ApplicationWindow::removeCurve(), ApplicationWindow::removePoints(), ApplicationWindow::removeWindowFromLists(), ApplicationWindow::setAutoScale(), ApplicationWindow::setBoldFont(), ApplicationWindow::setCurveFullRange(), ApplicationWindow::setFontFamily(), ApplicationWindow::setFontSize(), ApplicationWindow::setItalicFont(), PlotDialog::setMultiLayer(), ApplicationWindow::setTextColor(), ApplicationWindow::showAllCurves(), ApplicationWindow::showCursor(), ApplicationWindow::showCurveContextMenu(), ApplicationWindow::showCurveRangeDialog(), ApplicationWindow::showCurveWorksheet(), ApplicationWindow::showDataSetDialog(), ApplicationWindow::showEnrichementDialog(), ApplicationWindow::showExpDecayDialog(), ApplicationWindow::showFilterDialog(), ApplicationWindow::showFitDialog(), ApplicationWindow::showFitPolynomDialog(), ApplicationWindow::showFunctionIntegrationDialog(), ApplicationWindow::showGraphContextMenu(), ApplicationWindow::showInterpolationDialog(), ApplicationWindow::showLineDialog(), ApplicationWindow::showMarkerPopupMenu(), ApplicationWindow::showMatrixValuesDialog(), ApplicationWindow::showPlotDialog(), ApplicationWindow::showRangeSelectors(), ApplicationWindow::showSmoothDialog(), ApplicationWindow::subtractReferenceData(), ApplicationWindow::subtractStraightLine(), ApplicationWindow::translateCurve(), ApplicationWindow::waterfallPlot(), ApplicationWindow::zoomIn(), ApplicationWindow::zoomOut(), and ApplicationWindow::zoomRectanglePlot().

Graph * MultiLayer::addLayer ( int  x = 0,
int  y = 0,
int  width = 0,
int  height = 0,
bool  setPreferences = false 
)
slot
LayerButton * MultiLayer::addLayerButton ( )
private
void MultiLayer::adjustLayersToCanvasSize ( )
AlignPolicy MultiLayer::alignPolicy ( )
inline

References d_align_policy.

Referenced by copy(), and LayerDialog::setMultiLayer().

QSize MultiLayer::arrangeLayers ( bool  userSize)
slot
bool MultiLayer::arrangeLayers ( bool  fit,
bool  userSize 
)
slot
int MultiLayer::bottomMargin ( )
inlineslot

References bottom_margin.

Referenced by copy(), and LayerDialog::setMultiLayer().

QWidget* MultiLayer::canvas ( )
inline
QRect MultiLayer::canvasChildrenRect ( )
QPixmap MultiLayer::canvasPixmap ( const QSize &  size = QSize(),
double  scaleFontsFactor = 1.0,
bool  transparent = false 
)
slot
QRect MultiLayer::canvasRect ( )
inline
Graph * MultiLayer::clickedLayer ( Graph g)
private

Try to guess on which layer the user clicked if the layers are superposed.

References graphsList.

int MultiLayer::colsSpacing ( )
inlineslot

References colsSpace.

Referenced by copy(), and LayerDialog::setMultiLayer().

void MultiLayer::confirmRemoveLayer ( )
slot
void MultiLayer::connectLayer ( Graph g)
slot
void MultiLayer::copy ( MultiLayer ml)
void MultiLayer::copyAllLayers ( )
slot
void MultiLayer::createWaterfallBox ( )
private
void MultiLayer::currentColorChanged ( const QColor &  )
signal

Referenced by connectLayer().

void MultiLayer::currentFontChanged ( const QFont &  )
signal

Referenced by connectLayer().

void MultiLayer::cursorInfo ( const QString &  )
signal

Referenced by connectLayer().

void MultiLayer::deselect ( )
void MultiLayer::dragEnterEvent ( QDragEnterEvent *  e)
private

References Graph::multiLayer().

void MultiLayer::draw ( QPaintDevice *  device,
const QSizeF &  customSize,
int  unit,
int  res,
double  fontsFactor = 1.0 
)
slot
void MultiLayer::drawLineEnded ( bool  )
signal

Referenced by connectLayer().

void MultiLayer::dropEvent ( QDropEvent *  event)
private
bool MultiLayer::eventFilter ( QObject *  object,
QEvent *  e 
)
private
void MultiLayer::exportEMF ( const QString &  fname,
const QSizeF &  customSize = QSizeF(),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)
slot
void MultiLayer::exportImage ( const QString &  fileName,
int  quality = 100,
bool  transparent = false,
int  dpi = 0,
const QSizeF &  customSize = QSizeF (),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0,
int  compression = 0 
)
slot
void MultiLayer::exportPDF ( const QString &  fname)
slot

References exportVector().

void MultiLayer::exportSVG ( const QString &  fname,
const QSizeF &  customSize = QSizeF(),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)
slot
void MultiLayer::exportTeX ( const QString &  fname,
bool  color = true,
bool  escapeStrings = true,
bool  fontSizes = true,
const QSizeF &  customSize = QSizeF(),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)
slot
void MultiLayer::exportToFile ( const QString &  fileName)
slot
void MultiLayer::exportVector ( const QString &  fileName,
int  res = 0,
bool  color = true,
const QSizeF &  customSize = QSizeF (),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)
slot
void MultiLayer::exportVector ( QPrinter *  printer,
int  res = 0,
bool  color = true,
const QSizeF &  customSize = QSizeF (),
int  unit = FrameWidget::Pixel,
double  fontsFactor = 1.0 
)
slot
void MultiLayer::findBestLayout ( int &  rows,
int &  cols 
)
slot

References graphsList.

Referenced by arrangeLayers().

int MultiLayer::getCols ( )
inlineslot
int MultiLayer::getRows ( )
inlineslot
bool MultiLayer::hasCommonAxes ( )
inline

References d_common_axes_layout.

Referenced by copy(), and LayerDialog::setMultiLayer().

bool MultiLayer::hasLinkedXLayerAxes ( )
inline
bool MultiLayer::hasSelectedLayers ( )
int MultiLayer::horizontalAlignement ( )
inlineslot

References hor_align.

Referenced by copy(), and LayerDialog::setMultiLayer().

bool MultiLayer::isEmpty ( )
slot
bool MultiLayer::isLayerSelected ( Graph g)
bool MultiLayer::isWaterfallPlot ( )
inlineslot
void MultiLayer::keyPressEvent ( QKeyEvent *  e)
private
Graph * MultiLayer::layer ( int  num)
Graph * MultiLayer::layerAt ( const QPoint &  pos)
slot

Returns the layer at the given position; returns 0 if there is no such layer.

References graphsList.

Referenced by ApplicationWindow::dropEvent().

QSize MultiLayer::layerCanvasSize ( )
inlineslot
int MultiLayer::layerIndex ( Graph g)
inline
QList<Graph *> MultiLayer::layersList ( )
inline
int MultiLayer::leftMargin ( )
inlineslot

References left_margin.

Referenced by copy(), and LayerDialog::setMultiLayer().

void MultiLayer::linkXLayerAxes ( bool  link = true)
void MultiLayer::modifiedPlot ( )
signal
void MultiLayer::mouseReleaseEvent ( QMouseEvent *  e)
private

References d_layer_coordinates.

int MultiLayer::numLayers ( )
inline
void MultiLayer::pasteMarker ( )
signal
void MultiLayer::plotProfiles ( Matrix m)
void MultiLayer::print ( )
slot
void MultiLayer::print ( QPrinter *  printer)
slot

References printAllLayers().

void MultiLayer::printActiveLayer ( )
slot

References active_graph, and Graph::print().

void MultiLayer::printAllLayers ( QPainter *  painter)
slot
void MultiLayer::printCropmarks ( bool  on)
inline
bool MultiLayer::printCropmarksEnabled ( )
inline

References d_print_cropmarks.

Referenced by copy(), and PlotDialog::setMultiLayer().

void MultiLayer::releaseLayer ( )
private
bool MultiLayer::removeActiveLayer ( )
slot

References active_graph, and removeLayer().

bool MultiLayer::removeLayer ( Graph g)
slot
void MultiLayer::resizeLayers ( QResizeEvent *  re)
private
void MultiLayer::reverseWaterfallOrder ( )
slot
int MultiLayer::rightMargin ( )
inlineslot

References right_margin.

Referenced by copy(), and LayerDialog::setMultiLayer().

int MultiLayer::rowsSpacing ( )
inlineslot

References rowsSpace.

Referenced by copy(), and LayerDialog::setMultiLayer().

void MultiLayer::save ( const QString &  fn,
const QString &  geometry,
bool  saveAsTemplate = false 
)
slot
bool MultiLayer::scaleLayersOnPrint ( )
inline

References d_scale_on_print.

Referenced by copy(), and PlotDialog::setMultiLayer().

bool MultiLayer::scaleLayersOnResize ( )
inline
void MultiLayer::selectLayerCanvas ( Graph g)
slot
void MultiLayer::setActiveLayer ( Graph g)
slot
void MultiLayer::setAlignement ( int  ha,
int  va 
)
slot
void MultiLayer::setAlignPolicy ( const AlignPolicy policy)
inline
void MultiLayer::setCols ( int  c)
slot
void MultiLayer::setCommonAxesLayout ( bool  on = true)
inline
void MultiLayer::setCommonLayerAxes ( bool  verticalAxis = true,
bool  horizontalAxis = true 
)
void MultiLayer::setEqualSizedLayers ( )
void MultiLayer::setFonts ( const QFont &  titleFnt,
const QFont &  scaleFnt,
const QFont &  numbersFnt,
const QFont &  legendFnt 
)
slot
void MultiLayer::setGraphGeometry ( int  x,
int  y,
int  w,
int  h 
)
slot

References active_graph, and modifiedPlot().

void MultiLayer::setLayerCanvasSize ( int  w,
int  h 
)
slot
void MultiLayer::setMargins ( int  lm,
int  rm,
int  tm,
int  bm 
)
slot
void MultiLayer::setNumLayers ( int  n)
void MultiLayer::setPointerCursor ( )
signal

Referenced by removeLayer(), and setNumLayers().

void MultiLayer::setRows ( int  r)
slot
void MultiLayer::setScaleLayersOnPrint ( bool  on)
inline
void MultiLayer::setScaleLayersOnResize ( bool  ok)
inline
void MultiLayer::setSizePolicy ( const SizePolicy policy)
inline

References d_size_policy.

void MultiLayer::setSpacing ( int  rgap,
int  cgap 
)
slot
void MultiLayer::setWaterfallFillColor ( const QColor &  c)
slot
void MultiLayer::setWaterfallLayout ( bool  on = true)
void MultiLayer::showCurvesDialog ( )
signal

Referenced by addLayerButton().

void MultiLayer::showEnrichementDialog ( )
signal
void MultiLayer::showEvent ( QShowEvent *  e)
private

References d_layer_coordinates.

void MultiLayer::showLineDialog ( )
signal

Referenced by connectLayer().

void MultiLayer::showMarkerPopupMenu ( )
signal

Referenced by connectLayer().

void MultiLayer::showWaterfallFillDialog ( )
slot
void MultiLayer::showWaterfallOffsetDialog ( )
slot
SizePolicy MultiLayer::sizePolicy ( )
inline

References d_size_policy.

Referenced by copy(), and LayerDialog::setMultiLayer().

QString MultiLayer::sizeToString ( )
virtual

Size of the widget as a string.

Reimplemented from MdiSubWindow.

References Graph::curvesList(), graphsList, Spectrogram::matrix(), MultiLayer(), Matrix::numCols(), and Matrix::numRows().

QList< Graph * > MultiLayer::stackOrderedLayersList ( )

this list is sorted according to the stack order

References d_canvas.

Referenced by canvasPixmap(), draw(), and exportVector().

bool MultiLayer::swapLayers ( int  src,
int  dest 
)
slot

References graphsList, layer(), and modifiedPlot().

Referenced by LayerDialog::swapLayers().

QHBoxLayout* MultiLayer::toolBox ( )
inline
int MultiLayer::topMargin ( )
inlineslot

References top_margin.

Referenced by copy(), and LayerDialog::setMultiLayer().

void MultiLayer::updateLayerAxes ( Graph g,
int  axis 
)
slot
void MultiLayer::updateLayersLayout ( Graph g)
slot
void MultiLayer::updateWaterfalls ( )
slot
int MultiLayer::verticalAlignement ( )
inlineslot

References vert_align.

Referenced by copy(), and LayerDialog::setMultiLayer().

QColor MultiLayer::waterfallFillColor ( )
inlineslot
void MultiLayer::wheelEvent ( QWheelEvent *  e)
private

References graphsList, and modifiedPlot().

Member Data Documentation

Graph* MultiLayer::active_graph
private
int MultiLayer::bottom_margin
private
QList<LayerButton *> MultiLayer::buttonsList
private
int MultiLayer::colsSpace
private
QPushButton* MultiLayer::d_add_layer_btn
private

Referenced by MultiLayer().

AlignPolicy MultiLayer::d_align_policy
private
QWidget* MultiLayer::d_canvas
private
QSize MultiLayer::d_canvas_size
private

Referenced by eventFilter(), and resizeLayers().

int MultiLayer::d_cols
private

Used for resizing of layers.

Referenced by addLayer(), arrangeLayers(), getCols(), save(), setCols(), setCommonLayerAxes(), and setEqualSizedLayers().

bool MultiLayer::d_common_axes_layout
private
bool MultiLayer::d_is_waterfall_plot
private
QVector<QRectF> MultiLayer::d_layer_coordinates
private
QPointer<SelectionMoveResizer> MultiLayer::d_layers_selector
private
bool MultiLayer::d_link_x_axes
private
bool MultiLayer::d_print_cropmarks
private
QPushButton * MultiLayer::d_remove_layer_btn
private

Referenced by MultiLayer().

int MultiLayer::d_rows
private
bool MultiLayer::d_scale_layers
private

Flag telling if layers should be rescaled on the plot window is resized by the user.

Referenced by arrangeLayers(), copy(), resizeLayers(), save(), scaleLayersOnResize(), and setScaleLayersOnResize().

bool MultiLayer::d_scale_on_print
private
SizePolicy MultiLayer::d_size_policy
private
QColor MultiLayer::d_waterfall_fill_color
private
int MultiLayer::graph_height
private

Referenced by MultiLayer().

int MultiLayer::graph_width
private

Referenced by MultiLayer().

QList<Graph *> MultiLayer::graphsList
private
int MultiLayer::hor_align
private
int MultiLayer::l_canvas_height
private
int MultiLayer::l_canvas_width
private
QHBoxLayout* MultiLayer::layerButtonsBox
private

Referenced by addLayerButton(), and MultiLayer().

int MultiLayer::left_margin
private
int MultiLayer::right_margin
private
int MultiLayer::rowsSpace
private
QHBoxLayout * MultiLayer::toolbuttonsBox
private

Referenced by MultiLayer(), and toolBox().

int MultiLayer::top_margin
private
int MultiLayer::vert_align
private
QHBoxLayout * MultiLayer::waterfallBox
private

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