An MDI window (MdiSubWindow) managing one or more Graph objects. More...
#include <MultiLayer.h>
Public Types | |
enum | HorAlignement { HCenter, Left, Right } |
enum | VertAlignement { VCenter, Top, Bottom } |
Public Slots | |
void | activateGraph (LayerButton *button) |
Graph * | activeLayer () |
Graph * | addLayer (int x=0, int y=0, int width=0, int height=0) |
void | adjustSize () |
void | arrangeLayers (bool fit, bool userSize) |
QSize | arrangeLayers (bool userSize) |
int | bottomMargin () |
int | colsSpacing () |
void | confirmRemoveLayer () |
void | connectLayer (Graph *g) |
void | findBestLayout (int &rows, int &cols) |
int | getCols () |
int | getRows () |
bool | hasSelectedLayers () |
int | horizontalAlignement () |
bool | isEmpty () |
Graph * | layerAt (const QPoint &pos) |
Returns the layer at the given position; returns 0 if there is no such layer. | |
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 | 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 () |
int | verticalAlignement () |
Print and Export | |
QPixmap | canvasPixmap () |
void | copyAllLayers () |
void | exportImage (const QString &fileName, int quality=100, bool transparent=false) |
void | exportPDF (const QString &fname) |
void | exportSVG (const QString &fname) |
void | exportToFile (const QString &fileName) |
void | exportVector (const QString &fileName, int res=0, bool color=true) |
void | print () |
void | printActiveLayer () |
void | printAllLayers (QPainter *painter) |
Signals | |
void | createTable (const QString &, int, int, const QString &) |
void | currentFontChanged (const QFont &) |
void | cursorInfo (const QString &) |
void | drawLineEnded (bool) |
void | enableTextEditor (Graph *) |
void | modifiedPlot () |
void | pasteMarker () |
void | setPointerCursor () |
void | showAxisDialog (int) |
void | showAxisTitleDialog () |
void | showCurveContextMenu (QwtPlotCurve *) |
void | showCurvesDialog () |
void | showEnrichementDialog () |
void | showGraphContextMenu () |
void | showLineDialog () |
void | showMarkerPopupMenu () |
void | showPlotDialog (int) |
void | showScaleDialog (int) |
void | viewTitleDialog () |
Public Member Functions | |
QWidget * | canvas () |
QRect | canvasChildrenRect () |
QRect | canvasRect () |
void | copy (MultiLayer *ml) |
Graph * | layer (int num) |
int | layerIndex (Graph *g) |
QList< Graph * > | layersList () |
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 | printCropmarks (bool on) |
bool | printCropmarksEnabled () |
bool | scaleLayersOnPrint () |
bool | scaleLayersOnResize () |
void | setNumLayers (int n) |
void | setScaleLayersOnPrint (bool on) |
void | setScaleLayersOnResize (bool ok) |
virtual QString | sizeToString () |
Size of the widget as a string. | |
~MultiLayer () | |
Private Member Functions | |
LayerButton * | addLayerButton () |
Event Handlers | |
bool | eventFilter (QObject *object, QEvent *) |
Filters other object's events (customizes title bar's context menu). | |
void | keyPressEvent (QKeyEvent *) |
void | releaseLayer () |
void | resizeLayers (QResizeEvent *) |
void | wheelEvent (QWheelEvent *) |
Private Attributes | |
Graph * | active_graph |
int | bottom_margin |
QList< LayerButton * > | buttonsList |
int | colsSpace |
QWidget * | d_canvas |
int | d_cols |
Used for resizing of layers. | |
QPointer< SelectionMoveResizer > | d_layers_selector |
bool | d_print_cropmarks |
int | d_rows |
bool | d_scale_layers |
Flag telling if layers should be rescaled on the plot window is resized by the user. | |
bool | d_scale_on_print |
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 |
int | top_margin |
int | vert_align |
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.
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.
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 | |||
) |
References addLayer(), bottom_margin, LayerButton::btnSize(), d_canvas, graph_height, graph_width, layerButtonsBox, left_margin, right_margin, and top_margin.
MultiLayer::~MultiLayer | ( | ) |
References d_layers_selector, and graphsList.
void MultiLayer::activateGraph | ( | LayerButton * | button | ) | [slot] |
References active_graph, buttonsList, graphsList, and Graph::raiseEnrichements().
Referenced by addLayerButton().
Graph* MultiLayer::activeLayer | ( | ) | [inline, slot] |
References active_graph.
Referenced by FunctionDialog::acceptFunction(), FunctionDialog::acceptParametric(), FunctionDialog::acceptPolar(), ApplicationWindow::addErrorBars(), ApplicationWindow::addFunctionCurve(), ApplicationWindow::addImage(), ApplicationWindow::addInsetLayer(), ApplicationWindow::addRectangle(), Filter::addResultCurve(), Correlation::addResultCurve(), Convolution::addResultCurve(), ApplicationWindow::addTexFormula(), ApplicationWindow::addText(), ApplicationWindow::addTimeStamp(), ApplicationWindow::analysis(), LineProfileTool::calculateLineProfile(), ApplicationWindow::copyActiveLayer(), ApplicationWindow::copyMarker(), ApplicationWindow::copySelection(), Filter::createOutputGraph(), ApplicationWindow::cutSelection(), ApplicationWindow::defineErrorBars(), ApplicationWindow::drawArrow(), ApplicationWindow::drawLine(), ApplicationWindow::dropEvent(), Filter::enableGraphicsDisplay(), ApplicationWindow::extractLayers(), ApplicationWindow::fitLinear(), ApplicationWindow::fitMultiPeak(), MultiPeakFit::generateFitCurve(), Fit::generateFitCurve(), ApplicationWindow::hideCurve(), ApplicationWindow::hideOtherCurves(), ApplicationWindow::intensityTable(), ApplicationWindow::loadImage(), ApplicationWindow::movePoints(), ApplicationWindow::multilayerPlot(), ApplicationWindow::newFunctionPlot(), ApplicationWindow::newGraph(), ApplicationWindow::newLegend(), FFT::output(), Differentiation::output(), ApplicationWindow::pasteSelection(), ApplicationWindow::pixelLineProfile(), ApplicationWindow::plotDoubleYAxis(), ApplicationWindow::plotHistogram(), ApplicationWindow::plotImage(), ApplicationWindow::plotSpectrogram(), ApplicationWindow::removeCurve(), ApplicationWindow::removePoints(), ApplicationWindow::removeWindowFromLists(), ApplicationWindow::setAutoScale(), ApplicationWindow::setBoldFont(), ApplicationWindow::setCurveFullRange(), ApplicationWindow::setFontFamily(), ApplicationWindow::setFontSize(), ApplicationWindow::setItalicFont(), PlotDialog::setMultiLayer(), ApplicationWindow::showAllCurves(), Fit::showConfidenceLimits(), ApplicationWindow::showCursor(), ApplicationWindow::showCurveContextMenu(), ApplicationWindow::showCurveRangeDialog(), ApplicationWindow::showCurveWorksheet(), ApplicationWindow::showDataSetDialog(), ApplicationWindow::showEnrichementDialog(), ApplicationWindow::showExpDecayDialog(), ApplicationWindow::showFilterDialog(), ApplicationWindow::showFitDialog(), ApplicationWindow::showFitPolynomDialog(), ApplicationWindow::showFunctionDialog(), ApplicationWindow::showGraphContextMenu(), ApplicationWindow::showIntegrationDialog(), ApplicationWindow::showInterpolationDialog(), ApplicationWindow::showLineDialog(), ApplicationWindow::showMarkerPopupMenu(), ApplicationWindow::showPlotDialog(), Fit::showPredictionLimits(), ApplicationWindow::showRangeSelectors(), Fit::showResiduals(), ApplicationWindow::showSmoothDialog(), ApplicationWindow::translateCurve(), ApplicationWindow::zoomIn(), ApplicationWindow::zoomOut(), and ApplicationWindow::zoomRectanglePlot().
Graph * MultiLayer::addLayer | ( | int | x = 0 , |
|
int | y = 0 , |
|||
int | width = 0 , |
|||
int | height = 0 | |||
) | [slot] |
References active_graph, addLayerButton(), colsSpace, connectLayer(), d_canvas, d_cols, d_rows, graphsList, left_margin, Graph::raiseEnrichements(), right_margin, rowsSpace, and top_margin.
Referenced by ApplicationWindow::addInsetLayer(), ApplicationWindow::addLayer(), copy(), ApplicationWindow::dropEvent(), ApplicationWindow::extractGraphs(), ApplicationWindow::extractLayers(), ImportOPJ::importGraphs(), MultiLayer(), ApplicationWindow::openGraph(), ApplicationWindow::pasteSelection(), setNumLayers(), and ApplicationWindow::zoomRectanglePlot().
LayerButton * MultiLayer::addLayerButton | ( | ) | [private] |
References activateGraph(), buttonsList, graphsList, layerButtonsBox, and showCurvesDialog().
Referenced by addLayer().
void MultiLayer::adjustSize | ( | ) | [slot] |
References LayerButton::btnSize(), and d_canvas.
void MultiLayer::arrangeLayers | ( | bool | fit, | |
bool | userSize | |||
) | [slot] |
References arrangeLayers(), bottom_margin, LayerButton::btnSize(), d_canvas, d_cols, d_layers_selector, d_rows, findBestLayout(), graphsList, left_margin, modifiedPlot(), and right_margin.
QSize MultiLayer::arrangeLayers | ( | bool | userSize | ) | [slot] |
References Graph::autoscaleFonts(), Bottom, bottom_margin, colsSpace, d_canvas, d_cols, d_rows, graphsList, HCenter, hor_align, l_canvas_height, l_canvas_width, Left, left_margin, Right, right_margin, rowsSpace, Graph::setAutoscaleFonts(), Top, top_margin, VCenter, and vert_align.
Referenced by ApplicationWindow::addLayer(), arrangeLayers(), ApplicationWindow::autoArrangeLayers(), confirmRemoveLayer(), ApplicationWindow::extractLayers(), ApplicationWindow::multilayerPlot(), LayerDialog::update(), and ApplicationWindow::zoomRectanglePlot().
int MultiLayer::bottomMargin | ( | ) | [inline, slot] |
References bottom_margin.
Referenced by copy(), and LayerDialog::setMultiLayer().
QWidget* MultiLayer::canvas | ( | ) | [inline] |
QRect MultiLayer::canvasChildrenRect | ( | ) |
References Graph::boundingRect(), and graphsList.
Referenced by resizeLayers().
QPixmap MultiLayer::canvasPixmap | ( | ) | [slot] |
References d_canvas, graphsList, and Graph::print().
Referenced by copyAllLayers(), and exportImage().
QRect MultiLayer::canvasRect | ( | ) | [inline] |
References d_canvas.
Referenced by ApplicationWindow::addLayer(), print(), and printAllLayers().
int MultiLayer::colsSpacing | ( | ) | [inline, slot] |
References colsSpace.
Referenced by copy(), and LayerDialog::setMultiLayer().
void MultiLayer::confirmRemoveLayer | ( | ) | [slot] |
References active_graph, arrangeLayers(), graphsList, and removeLayer().
Referenced by ApplicationWindow::deleteLayer().
void MultiLayer::connectLayer | ( | Graph * | g | ) | [slot] |
References createTable(), currentFontChanged(), cursorInfo(), drawLineEnded(), enableTextEditor(), modifiedPlot(), MdiSubWindow::notifyChanges(), setActiveLayer(), showAxisDialog(), showAxisTitleDialog(), MdiSubWindow::showContextMenu(), showCurveContextMenu(), showGraphContextMenu(), showLineDialog(), showMarkerPopupMenu(), showPlotDialog(), showScaleDialog(), and viewTitleDialog().
Referenced by addLayer().
void MultiLayer::copy | ( | MultiLayer * | ml | ) |
References addLayer(), Graph::autoscaleFonts(), bottomMargin(), colsSpacing(), Graph::copy(), horizontalAlignement(), layersList(), leftMargin(), rightMargin(), rowsSpacing(), setAlignement(), Graph::setAutoscaleFonts(), setMargins(), setSpacing(), topMargin(), and verticalAlignement().
Referenced by ApplicationWindow::clone().
void MultiLayer::copyAllLayers | ( | ) | [slot] |
References canvasPixmap(), d_layers_selector, and graphsList.
Referenced by ApplicationWindow::copySelection().
void MultiLayer::createTable | ( | const QString & | , | |
int | , | |||
int | , | |||
const QString & | ||||
) | [signal] |
Referenced by connectLayer().
void MultiLayer::currentFontChanged | ( | const QFont & | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::cursorInfo | ( | const QString & | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::drawLineEnded | ( | bool | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::enableTextEditor | ( | Graph * | ) | [signal] |
Referenced by connectLayer().
bool MultiLayer::eventFilter | ( | QObject * | object, | |
QEvent * | e | |||
) | [private] |
Filters other object's events (customizes title bar's context menu).
Reimplemented from MdiSubWindow.
References active_graph, d_canvas, d_layers_selector, graphsList, Graph::hasSeletedItems(), modifiedPlot(), resizeLayers(), and setActiveLayer().
void MultiLayer::exportImage | ( | const QString & | fileName, | |
int | quality = 100 , |
|||
bool | transparent = false | |||
) | [slot] |
References canvasPixmap().
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and exportToFile().
void MultiLayer::exportPDF | ( | const QString & | fname | ) | [virtual, slot] |
Reimplemented from MdiSubWindow.
References exportVector().
void MultiLayer::exportSVG | ( | const QString & | fname | ) | [slot] |
References d_canvas, graphsList, and Graph::print().
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and exportToFile().
void MultiLayer::exportToFile | ( | const QString & | fileName | ) | [slot] |
References exportImage(), exportSVG(), and exportVector().
void MultiLayer::exportVector | ( | const QString & | fileName, | |
int | res = 0 , |
|||
bool | color = true | |||
) | [slot] |
References d_canvas, graphsList, and Graph::print().
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), exportPDF(), and exportToFile().
void MultiLayer::findBestLayout | ( | int & | rows, | |
int & | cols | |||
) | [slot] |
References graphsList.
Referenced by arrangeLayers().
int MultiLayer::getCols | ( | ) | [inline, slot] |
References d_cols.
Referenced by ApplicationWindow::clone(), ApplicationWindow::extractGraphs(), LayerDialog::setMultiLayer(), and LayerDialog::update().
int MultiLayer::getRows | ( | ) | [inline, slot] |
References d_rows.
Referenced by ApplicationWindow::clone(), ApplicationWindow::extractGraphs(), LayerDialog::setMultiLayer(), and LayerDialog::update().
bool MultiLayer::hasSelectedLayers | ( | ) | [slot] |
References d_layers_selector.
Referenced by ApplicationWindow::~ApplicationWindow().
int MultiLayer::horizontalAlignement | ( | ) | [inline, slot] |
References hor_align.
Referenced by copy(), and LayerDialog::setMultiLayer().
bool MultiLayer::isEmpty | ( | ) | [slot] |
References graphsList.
Referenced by ApplicationWindow::addErrorBars(), ApplicationWindow::addFunctionCurve(), ApplicationWindow::addImage(), ApplicationWindow::addTimeStamp(), ApplicationWindow::drawArrow(), ApplicationWindow::drawLine(), ApplicationWindow::drawPoints(), ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), ApplicationWindow::fitMultiPeak(), ApplicationWindow::movePoints(), ApplicationWindow::newLegend(), ApplicationWindow::removePoints(), ApplicationWindow::setAutoScale(), ApplicationWindow::showCursor(), ApplicationWindow::showLayerDialog(), ApplicationWindow::showRangeSelectors(), ApplicationWindow::showScreenReader(), ApplicationWindow::translateCurve(), ApplicationWindow::zoomIn(), and ApplicationWindow::zoomOut().
void MultiLayer::keyPressEvent | ( | QKeyEvent * | e | ) | [private] |
References active_graph, d_layers_selector, graphsList, setActiveLayer(), and MdiSubWindow::showContextMenu().
Graph * MultiLayer::layer | ( | int | num | ) |
References graphsList.
Referenced by LegendWidget::getCurve(), RectangleWidget::setLinkedLayer(), swapLayers(), and LayerDialog::update().
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 | ( | ) | [inline, slot] |
References l_canvas_height, and l_canvas_width.
Referenced by LayerDialog::setMultiLayer(), and LayerDialog::update().
int MultiLayer::layerIndex | ( | Graph * | g | ) | [inline] |
References graphsList.
Referenced by PlotDialog::removeSelectedCurve().
QList<Graph *> MultiLayer::layersList | ( | ) | [inline] |
References graphsList.
Referenced by TextDialog::apply(), AxesDialog::applyCanvasFormat(), PlotDialog::applyLayerFormat(), copy(), ApplicationWindow::drawPoints(), ApplicationWindow::extractGraphs(), EnrichmentDialog::frameApplyTo(), ApplicationWindow::multilayerDependencies(), ApplicationWindow::multilayerPlot(), EnrichmentDialog::patternApplyTo(), Graph::raiseEnrichements(), PlotDialog::setMultiLayer(), ApplicationWindow::showCursor(), ApplicationWindow::showScreenReader(), EnrichmentDialog::textFormatApplyTo(), AxesDialog::updateGrid(), and ApplicationWindow::zoomIn().
int MultiLayer::leftMargin | ( | ) | [inline, slot] |
References left_margin.
Referenced by copy(), and LayerDialog::setMultiLayer().
void MultiLayer::modifiedPlot | ( | ) | [signal] |
Referenced by arrangeLayers(), connectLayer(), eventFilter(), resizeLayers(), setFonts(), setGraphGeometry(), swapLayers(), and wheelEvent().
int MultiLayer::numLayers | ( | ) | [inline] |
void MultiLayer::pasteMarker | ( | ) | [signal] |
void MultiLayer::print | ( | ) | [virtual, slot] |
Reimplemented from MdiSubWindow.
References MdiSubWindow::applicationWindow(), MdiSubWindow::aspect(), canvasRect(), d_canvas, and printAllLayers().
void MultiLayer::printActiveLayer | ( | ) | [slot] |
void MultiLayer::printAllLayers | ( | QPainter * | painter | ) | [slot] |
References canvasRect(), d_canvas, d_print_cropmarks, d_scale_on_print, graphsList, and Graph::print().
Referenced by print().
void MultiLayer::printCropmarks | ( | bool | on | ) | [inline] |
References d_print_cropmarks.
Referenced by PlotDialog::acceptParams(), and ApplicationWindow::initMultilayerPlot().
bool MultiLayer::printCropmarksEnabled | ( | ) | [inline] |
References d_print_cropmarks.
Referenced by PlotDialog::setMultiLayer().
void MultiLayer::releaseLayer | ( | ) | [private] |
bool MultiLayer::removeActiveLayer | ( | ) | [slot] |
References active_graph, and removeLayer().
bool MultiLayer::removeLayer | ( | Graph * | g | ) | [slot] |
References active_graph, Graph::activeTool(), buttonsList, graphsList, MdiSubWindow::modifiedWindow(), setPointerCursor(), and Graph::zoomOn().
Referenced by confirmRemoveLayer(), ApplicationWindow::extractLayers(), and removeActiveLayer().
void MultiLayer::resizeLayers | ( | QResizeEvent * | re | ) | [private] |
References MdiSubWindow::applicationWindow(), Graph::autoscaleFonts(), bottom_margin, canvasChildrenRect(), d_scale_layers, graphsList, left_margin, modifiedPlot(), right_margin, Graph::scaleFonts(), and top_margin.
Referenced by eventFilter().
int MultiLayer::rightMargin | ( | ) | [inline, slot] |
References right_margin.
Referenced by copy(), and LayerDialog::setMultiLayer().
int MultiLayer::rowsSpacing | ( | ) | [inline, slot] |
References rowsSpace.
Referenced by copy(), and LayerDialog::setMultiLayer().
void MultiLayer::save | ( | const QString & | fn, | |
const QString & | geometry, | |||
bool | saveAsTemplate = false | |||
) | [virtual, slot] |
Reimplemented from MdiSubWindow.
References MdiSubWindow::birthDate(), bottom_margin, MdiSubWindow::captionPolicy(), colsSpace, d_cols, d_rows, graphsList, hor_align, l_canvas_height, l_canvas_width, left_margin, right_margin, rowsSpace, Graph::saveToString(), top_margin, vert_align, and MdiSubWindow::windowLabel().
bool MultiLayer::scaleLayersOnPrint | ( | ) | [inline] |
References d_scale_on_print.
Referenced by PlotDialog::setMultiLayer().
bool MultiLayer::scaleLayersOnResize | ( | ) | [inline] |
References d_scale_layers.
void MultiLayer::setActiveLayer | ( | Graph * | g | ) | [slot] |
References active_graph, buttonsList, d_layers_selector, Graph::deselect(), graphsList, and Graph::raiseEnrichements().
Referenced by connectLayer(), eventFilter(), and keyPressEvent().
void MultiLayer::setAlignement | ( | int | ha, | |
int | va | |||
) | [slot] |
References hor_align, and vert_align.
Referenced by ApplicationWindow::appendProject(), copy(), ApplicationWindow::openProject(), and LayerDialog::update().
void MultiLayer::setCols | ( | int | c | ) | [slot] |
References d_cols.
Referenced by LayerDialog::update(), and ApplicationWindow::zoomRectanglePlot().
void MultiLayer::setFonts | ( | const QFont & | titleFnt, | |
const QFont & | scaleFnt, | |||
const QFont & | numbersFnt, | |||
const QFont & | legendFnt | |||
) | [slot] |
References graphsList, modifiedPlot(), Graph::setAxisFont(), Graph::setAxisTitle(), LegendWidget::setFont(), and Graph::textsList().
Referenced by PlotDialog::acceptParams().
void MultiLayer::setGraphGeometry | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) | [slot] |
References active_graph, and modifiedPlot().
Referenced by ApplicationWindow::pasteSelection().
void MultiLayer::setLayerCanvasSize | ( | int | w, | |
int | h | |||
) | [slot] |
References l_canvas_height, and l_canvas_width.
Referenced by ApplicationWindow::appendProject(), ApplicationWindow::openProject(), and LayerDialog::update().
void MultiLayer::setMargins | ( | int | lm, | |
int | rm, | |||
int | tm, | |||
int | bm | |||
) | [slot] |
References bottom_margin, left_margin, right_margin, and top_margin.
Referenced by ApplicationWindow::appendProject(), ApplicationWindow::autoArrangeLayers(), copy(), ApplicationWindow::openProject(), and LayerDialog::update().
void MultiLayer::setNumLayers | ( | int | n | ) |
References active_graph, Graph::activeTool(), addLayer(), buttonsList, graphsList, MdiSubWindow::modifiedWindow(), setPointerCursor(), and Graph::zoomOn().
Referenced by LayerDialog::update().
void MultiLayer::setPointerCursor | ( | ) | [signal] |
Referenced by removeLayer(), and setNumLayers().
void MultiLayer::setRows | ( | int | r | ) | [slot] |
References d_rows.
Referenced by LayerDialog::update(), and ApplicationWindow::zoomRectanglePlot().
void MultiLayer::setScaleLayersOnPrint | ( | bool | on | ) | [inline] |
References d_scale_on_print.
Referenced by PlotDialog::acceptParams(), and ApplicationWindow::initMultilayerPlot().
void MultiLayer::setScaleLayersOnResize | ( | bool | ok | ) | [inline] |
References d_scale_layers.
void MultiLayer::setSpacing | ( | int | rgap, | |
int | cgap | |||
) | [slot] |
References colsSpace, and rowsSpace.
Referenced by ApplicationWindow::appendProject(), ApplicationWindow::autoArrangeLayers(), copy(), ApplicationWindow::openProject(), and LayerDialog::update().
void MultiLayer::showAxisDialog | ( | int | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::showAxisTitleDialog | ( | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::showCurveContextMenu | ( | QwtPlotCurve * | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::showCurvesDialog | ( | ) | [signal] |
Referenced by addLayerButton().
void MultiLayer::showEnrichementDialog | ( | ) | [signal] |
void MultiLayer::showGraphContextMenu | ( | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::showLineDialog | ( | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::showMarkerPopupMenu | ( | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::showPlotDialog | ( | int | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::showScaleDialog | ( | int | ) | [signal] |
Referenced by connectLayer().
QString MultiLayer::sizeToString | ( | ) | [virtual] |
Size of the widget as a string.
Reimplemented from MdiSubWindow.
References Graph::curvesList(), graphsList, Spectrogram::matrix(), Matrix::numCols(), and Matrix::numRows().
bool MultiLayer::swapLayers | ( | int | src, | |
int | dest | |||
) | [slot] |
References graphsList, layer(), and modifiedPlot().
Referenced by LayerDialog::swapLayers().
int MultiLayer::topMargin | ( | ) | [inline, slot] |
References top_margin.
Referenced by copy(), and LayerDialog::setMultiLayer().
int MultiLayer::verticalAlignement | ( | ) | [inline, slot] |
References vert_align.
Referenced by copy(), and LayerDialog::setMultiLayer().
void MultiLayer::viewTitleDialog | ( | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::wheelEvent | ( | QWheelEvent * | e | ) | [private] |
References graphsList, and modifiedPlot().
Graph* MultiLayer::active_graph [private] |
int MultiLayer::bottom_margin [private] |
Referenced by arrangeLayers(), bottomMargin(), MultiLayer(), resizeLayers(), save(), and setMargins().
QList<LayerButton *> MultiLayer::buttonsList [private] |
Referenced by activateGraph(), addLayerButton(), removeLayer(), setActiveLayer(), and setNumLayers().
int MultiLayer::colsSpace [private] |
Referenced by addLayer(), arrangeLayers(), colsSpacing(), save(), and setSpacing().
QWidget* MultiLayer::d_canvas [private] |
Referenced by addLayer(), adjustSize(), arrangeLayers(), canvas(), canvasPixmap(), canvasRect(), eventFilter(), exportSVG(), exportVector(), MultiLayer(), print(), and printAllLayers().
int MultiLayer::d_cols [private] |
Used for resizing of layers.
Referenced by addLayer(), arrangeLayers(), getCols(), save(), and setCols().
QPointer<SelectionMoveResizer> MultiLayer::d_layers_selector [private] |
Referenced by arrangeLayers(), copyAllLayers(), eventFilter(), hasSelectedLayers(), keyPressEvent(), setActiveLayer(), and ~MultiLayer().
bool MultiLayer::d_print_cropmarks [private] |
Referenced by printActiveLayer(), printAllLayers(), printCropmarks(), and printCropmarksEnabled().
int MultiLayer::d_rows [private] |
Referenced by addLayer(), arrangeLayers(), getRows(), save(), and setRows().
bool MultiLayer::d_scale_layers [private] |
Flag telling if layers should be rescaled on the plot window is resized by the user.
Referenced by resizeLayers(), scaleLayersOnResize(), and setScaleLayersOnResize().
bool MultiLayer::d_scale_on_print [private] |
Referenced by printActiveLayer(), printAllLayers(), scaleLayersOnPrint(), and setScaleLayersOnPrint().
int MultiLayer::graph_height [private] |
Referenced by MultiLayer().
int MultiLayer::graph_width [private] |
Referenced by MultiLayer().
QList<Graph *> MultiLayer::graphsList [private] |
Referenced by activateGraph(), addLayer(), addLayerButton(), arrangeLayers(), canvasChildrenRect(), canvasPixmap(), confirmRemoveLayer(), copyAllLayers(), eventFilter(), exportSVG(), exportVector(), findBestLayout(), isEmpty(), keyPressEvent(), layer(), layerAt(), layerIndex(), layersList(), numLayers(), printAllLayers(), removeLayer(), resizeLayers(), save(), setActiveLayer(), setFonts(), setNumLayers(), sizeToString(), swapLayers(), wheelEvent(), and ~MultiLayer().
int MultiLayer::hor_align [private] |
Referenced by arrangeLayers(), horizontalAlignement(), save(), and setAlignement().
int MultiLayer::l_canvas_height [private] |
Referenced by arrangeLayers(), layerCanvasSize(), save(), and setLayerCanvasSize().
int MultiLayer::l_canvas_width [private] |
Referenced by arrangeLayers(), layerCanvasSize(), save(), and setLayerCanvasSize().
QHBoxLayout* MultiLayer::layerButtonsBox [private] |
Referenced by addLayerButton(), and MultiLayer().
int MultiLayer::left_margin [private] |
Referenced by addLayer(), arrangeLayers(), leftMargin(), MultiLayer(), resizeLayers(), save(), and setMargins().
int MultiLayer::right_margin [private] |
Referenced by addLayer(), arrangeLayers(), MultiLayer(), resizeLayers(), rightMargin(), save(), and setMargins().
int MultiLayer::rowsSpace [private] |
Referenced by addLayer(), arrangeLayers(), rowsSpacing(), save(), and setSpacing().
int MultiLayer::top_margin [private] |
Referenced by addLayer(), arrangeLayers(), MultiLayer(), resizeLayers(), save(), setMargins(), and topMargin().
int MultiLayer::vert_align [private] |
Referenced by arrangeLayers(), save(), setAlignement(), and verticalAlignement().