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 () |
bool | 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 (const QSize &size=QSize(), double scaleFontsFactor=1.0) |
void | copyAllLayers () |
void | draw (QPaintDevice *, const QSizeF &customSize, int unit, int res, double fontsFactor=1.0) |
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) |
void | exportImage (QTextDocument *document, int quality=100, bool transparent=false, int dpi=0, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0) |
void | exportPDF (const QString &fname) |
void | exportSVG (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 | exportToFile (const QString &fileName) |
void | exportVector (const QString &fileName, int res=0, bool color=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0) |
void | print (QPrinter *) |
void | print () |
void | printActiveLayer () |
void | printAllLayers (QPainter *painter) |
Waterfall Plots | |
void | changeWaterfallXOffset (int) |
void | changeWaterfallYOffset (int) |
void | reverseWaterfallOrder () |
void | setWaterfallFillColor (const QColor &) |
void | setWaterfallSideLines (bool on=true) |
void | showWaterfallFillDialog () |
void | showWaterfallOffsetDialog () |
void | updateWaterfallFill (bool on) |
void | updateWaterfallLayout () |
void | updateWaterfallScales (Graph *g, int axis) |
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 (QwtPlotItem *) |
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) |
void | createWaterfallBox () |
bool | isWaterfallPlot () |
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 | setEqualSizedLayers () |
void | setNumLayers (int n) |
void | setScaleLayersOnPrint (bool on) |
void | setScaleLayersOnResize (bool ok) |
void | setWaterfallLayout (bool on=true) |
void | setWaterfallOffset (int x, int y, bool update=false) |
bool | sideLinesEnabled () |
virtual QString | sizeToString () |
Size of the widget as a string. | |
int | waterfallXOffset () |
int | waterfallYOffset () |
~MultiLayer () | |
Private Member Functions | |
LayerButton * | addLayerButton () |
Event Handlers | |
void | dragEnterEvent (QDragEnterEvent *) |
void | dropEvent (QDropEvent *) |
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 |
QPushButton * | d_add_layer_btn |
QWidget * | d_canvas |
int | d_cols |
Used for resizing of layers. | |
bool | d_is_waterfall_plot |
QPointer< SelectionMoveResizer > | d_layers_selector |
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. | |
bool | d_scale_on_print |
bool | d_side_lines |
Flag telling if we need to draw side lines for curves in a waterfall plot. | |
QColor | d_waterfall_fill_color |
int | d_waterfall_offset_x |
int | d_waterfall_offset_y |
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 |
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 | |||
) |
MultiLayer::~MultiLayer | ( | ) |
References d_layers_selector, and graphsList.
void MultiLayer::activateGraph | ( | LayerButton * | button | ) | [slot] |
References active_graph, buttonsList, d_layers_selector, graphsList, modifiedPlot(), and Graph::raiseEnrichements().
Referenced by addLayerButton().
Graph* MultiLayer::activeLayer | ( | ) | [inline, slot] |
References active_graph.
Referenced by FunctionDialog::acceptFunction(), FunctionDialog::acceptParametric(), FunctionDialog::acceptPolar(), ApplicationWindow::addEllipse(), ApplicationWindow::addErrorBars(), ApplicationWindow::addFunctionCurve(), ApplicationWindow::addImage(), ApplicationWindow::addInsetLayer(), ApplicationWindow::addRectangle(), 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(), 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::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(), 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::showMatrixValuesDialog(), ApplicationWindow::showPlotDialog(), ApplicationWindow::showRangeSelectors(), 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(), dropEvent(), Graph::dropEvent(), 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.
bool MultiLayer::arrangeLayers | ( | bool | fit, | |
bool | userSize | |||
) | [slot] |
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] |
References d_canvas.
Referenced by FrameWidget::calculateBottomValue(), FrameWidget::calculateRightValue(), FrameWidget::calculateXValue(), FrameWidget::calculateYValue(), copy(), Graph::dropEvent(), AddWidgetTool::eventFilter(), ImageExportDialog::initAdvancedOptions(), FrameWidget::setOriginCoord(), Graph::stackingOrderEnrichmentsList(), and TextEditor::TextEditor().
QRect MultiLayer::canvasChildrenRect | ( | ) |
References bottom_margin, Graph::boundingRect(), graphsList, and right_margin.
Referenced by exportSVG(), exportTeX(), exportVector(), and resizeLayers().
QPixmap MultiLayer::canvasPixmap | ( | const QSize & | size = QSize() , |
|
double | scaleFontsFactor = 1.0 | |||
) | [slot] |
this list is sorted according to the stack order
References canvasRect(), d_canvas, Graph::print(), and Graph::scaleFonts().
Referenced by copyAllLayers(), and exportImage().
QRect MultiLayer::canvasRect | ( | ) | [inline] |
References d_canvas.
Referenced by ApplicationWindow::addLayer(), canvasPixmap(), print(), and printAllLayers().
void MultiLayer::changeWaterfallXOffset | ( | int | offset | ) | [slot] |
References d_waterfall_offset_x, MdiSubWindow::modifiedWindow(), and updateWaterfallLayout().
Referenced by showWaterfallOffsetDialog().
void MultiLayer::changeWaterfallYOffset | ( | int | offset | ) | [slot] |
References d_waterfall_offset_y, MdiSubWindow::modifiedWindow(), and updateWaterfallLayout().
Referenced by showWaterfallOffsetDialog().
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(), and MultiLayer().
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(), canvas(), colsSpacing(), Graph::copy(), createWaterfallBox(), d_waterfall_offset_x, d_waterfall_offset_y, horizontalAlignement(), isWaterfallPlot(), leftMargin(), rightMargin(), rowsSpacing(), setAlignement(), Graph::setAutoscaleFonts(), setMargins(), setSpacing(), setWaterfallSideLines(), sideLinesEnabled(), topMargin(), verticalAlignement(), waterfallXOffset(), and waterfallYOffset().
Referenced by ApplicationWindow::clone().
void MultiLayer::copyAllLayers | ( | ) | [slot] |
References canvasPixmap(), d_layers_selector, Graph::deselectMarker(), graphsList, and MdiSubWindow::name().
void MultiLayer::createTable | ( | const QString & | , | |
int | , | |||
int | , | |||
const QString & | ||||
) | [signal] |
Referenced by connectLayer().
void MultiLayer::createWaterfallBox | ( | ) |
References buttonsList, d_add_layer_btn, d_is_waterfall_plot, d_remove_layer_btn, graphsList, reverseWaterfallOrder(), showWaterfallFillDialog(), showWaterfallOffsetDialog(), updateWaterfallScales(), and waterfallBox.
Referenced by ApplicationWindow::appendProject(), copy(), ApplicationWindow::openProject(), ApplicationWindow::openTemplate(), and setWaterfallLayout().
void MultiLayer::currentFontChanged | ( | const QFont & | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::cursorInfo | ( | const QString & | ) | [signal] |
Referenced by connectLayer().
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] |
References Graph::customPrintSize(), d_canvas, Graph::print(), and Graph::scaleFonts().
Referenced by exportSVG(), and exportTeX().
void MultiLayer::drawLineEnded | ( | bool | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::dropEvent | ( | QDropEvent * | event | ) | [private] |
References addLayer(), Graph::copy(), d_canvas, and Graph::multiLayer().
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_is_waterfall_plot, d_layers_selector, graphsList, Graph::hasSeletedItems(), modifiedPlot(), resizeLayers(), and setActiveLayer().
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 | |||
) | [slot] |
References canvasPixmap(), and Graph::customPrintSize().
void MultiLayer::exportImage | ( | QTextDocument * | document, | |
int | quality = 100 , |
|||
bool | transparent = false , |
|||
int | dpi = 0 , |
|||
const QSizeF & | customSize = QSizeF () , |
|||
int | unit = FrameWidget::Pixel , |
|||
double | fontsFactor = 1.0 | |||
) | [slot] |
References canvasPixmap(), and Graph::customPrintSize().
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), ApplicationWindow::exportPresentationODF(), and exportToFile().
void MultiLayer::exportPDF | ( | const QString & | fname | ) | [virtual, slot] |
Reimplemented from MdiSubWindow.
References exportVector().
Referenced by ApplicationWindow::exportPDF().
void MultiLayer::exportSVG | ( | const QString & | fname, | |
const QSizeF & | customSize = QSizeF() , |
|||
int | unit = FrameWidget::Pixel , |
|||
double | fontsFactor = 1.0 | |||
) | [slot] |
References canvasChildrenRect(), Graph::customPrintSize(), and draw().
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and exportToFile().
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] |
References exportImage(), exportSVG(), exportTeX(), and exportVector().
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] |
References canvasChildrenRect(), Graph::customPrintSize(), d_canvas, Graph::print(), and Graph::scaleFonts().
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::exportPresentationODF(), ApplicationWindow::fitMultiPeak(), ApplicationWindow::magnify(), ApplicationWindow::movePoints(), ApplicationWindow::newLegend(), ApplicationWindow::removePoints(), ApplicationWindow::setAutoScale(), ApplicationWindow::showCursor(), ApplicationWindow::showLayerDialog(), ApplicationWindow::showRangeSelectors(), ApplicationWindow::showScreenReader(), ApplicationWindow::translateCurve(), ApplicationWindow::zoomIn(), and ApplicationWindow::zoomOut().
bool MultiLayer::isWaterfallPlot | ( | ) | [inline] |
References d_is_waterfall_plot.
Referenced by ApplicationWindow::autoArrangeLayers(), and copy().
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 Graph::exportImage(), Graph::legendText(), and PlotDialog::removeSelectedCurve().
QList<Graph *> MultiLayer::layersList | ( | ) | [inline] |
References graphsList.
Referenced by TextDialog::apply(), AxesDialog::applyAxisFormat(), AxesDialog::applyCanvasFormat(), PlotDialog::applyErrorBarFormat(), PlotDialog::applyLayerFormat(), PlotDialog::applyLineFormat(), PlotDialog::applySymbolsFormat(), ApplicationWindow::custom2DPlotTools(), ApplicationWindow::drawPoints(), ApplicationWindow::extractGraphs(), EnrichmentDialog::frameApplyTo(), ApplicationWindow::magnify(), ApplicationWindow::multilayerDependencies(), ApplicationWindow::multilayerPlot(), EnrichmentDialog::patternApplyTo(), ApplicationWindow::pickDataTool(), Graph::raiseEnrichements(), PlotDialog::setMultiLayer(), ApplicationWindow::showCursor(), ApplicationWindow::showScreenReader(), EnrichmentDialog::textFormatApplyTo(), AxesDialog::updateGrid(), ApplicationWindow::waterfallPlot(), and ApplicationWindow::zoomIn().
int MultiLayer::leftMargin | ( | ) | [inline, slot] |
References left_margin.
Referenced by copy(), and LayerDialog::setMultiLayer().
void MultiLayer::modifiedPlot | ( | ) | [signal] |
Referenced by activateGraph(), arrangeLayers(), connectLayer(), eventFilter(), resizeLayers(), setFonts(), setGraphGeometry(), swapLayers(), and wheelEvent().
int MultiLayer::numLayers | ( | ) | [inline] |
References graphsList.
Referenced by ApplicationWindow::addLayer(), ApplicationWindow::copySelection(), ApplicationWindow::cutSelection(), ApplicationWindow::extractGraphs(), ImportOPJ::importGraphs(), ApplicationWindow::pasteSelection(), LayerDialog::setMultiLayer(), ApplicationWindow::showWindowContextMenu(), and LayerDialog::update().
void MultiLayer::pasteMarker | ( | ) | [signal] |
void MultiLayer::print | ( | QPrinter * | printer | ) | [virtual, slot] |
Reimplemented from MdiSubWindow.
References printAllLayers().
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(), ConfigDialog::apply(), 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().
void MultiLayer::reverseWaterfallOrder | ( | ) | [slot] |
References Graph::curve(), graphsList, Graph::insertCurve(), MdiSubWindow::modifiedWindow(), and Graph::removeCurve().
Referenced by createWaterfallBox().
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_is_waterfall_plot, d_rows, d_side_lines, d_waterfall_offset_x, d_waterfall_offset_y, 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_is_waterfall_plot, 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(), ApplicationWindow::openTemplate(), and LayerDialog::update().
void MultiLayer::setCols | ( | int | c | ) | [slot] |
References d_cols.
Referenced by LayerDialog::update(), and ApplicationWindow::zoomRectanglePlot().
void MultiLayer::setEqualSizedLayers | ( | ) |
References Graph::autoscaleFonts(), bottom_margin, colsSpace, d_canvas, d_cols, d_rows, graphsList, left_margin, right_margin, rowsSpace, Graph::setAutoscaleFonts(), and top_margin.
Referenced by arrangeLayers().
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(), ApplicationWindow::openTemplate(), and LayerDialog::update().
void MultiLayer::setMargins | ( | int | lm, | |
int | rm, | |||
int | tm, | |||
int | bm | |||
) | [slot] |
void MultiLayer::setNumLayers | ( | int | n | ) |
References active_graph, Graph::activeTool(), addLayer(), buttonsList, graphsList, MdiSubWindow::modifiedWindow(), setPointerCursor(), TRUE, 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(), ConfigDialog::apply(), and ApplicationWindow::initMultilayerPlot().
void MultiLayer::setScaleLayersOnResize | ( | bool | ok | ) | [inline] |
References d_scale_layers.
Referenced by ImportOPJ::importGraphs().
void MultiLayer::setSpacing | ( | int | rgap, | |
int | cgap | |||
) | [slot] |
References colsSpace, and rowsSpace.
Referenced by ApplicationWindow::appendProject(), ApplicationWindow::autoArrangeLayers(), copy(), ApplicationWindow::openProject(), ApplicationWindow::openTemplate(), and LayerDialog::update().
void MultiLayer::setWaterfallFillColor | ( | const QColor & | c | ) | [slot] |
References Graph::curve(), d_canvas, d_waterfall_fill_color, and MdiSubWindow::modifiedWindow().
Referenced by showWaterfallFillDialog().
void MultiLayer::setWaterfallLayout | ( | bool | on = true |
) |
References createWaterfallBox(), d_is_waterfall_plot, graphsList, updateWaterfallLayout(), and waterfallBox.
Referenced by ApplicationWindow::waterfallPlot().
void MultiLayer::setWaterfallOffset | ( | int | x, | |
int | y, | |||
bool | update = false | |||
) |
void MultiLayer::setWaterfallSideLines | ( | bool | on = true |
) | [slot] |
void MultiLayer::showAxisDialog | ( | int | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::showAxisTitleDialog | ( | ) | [signal] |
Referenced by connectLayer().
void MultiLayer::showCurveContextMenu | ( | QwtPlotItem * | ) | [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().
void MultiLayer::showWaterfallFillDialog | ( | ) | [slot] |
References active_graph, Graph::curve(), d_side_lines, d_waterfall_fill_color, ColorButton::setColor(), setWaterfallFillColor(), setWaterfallSideLines(), and updateWaterfallFill().
Referenced by createWaterfallBox().
void MultiLayer::showWaterfallOffsetDialog | ( | ) | [slot] |
References changeWaterfallXOffset(), changeWaterfallYOffset(), d_waterfall_offset_x, d_waterfall_offset_y, and updateWaterfallLayout().
Referenced by createWaterfallBox().
bool MultiLayer::sideLinesEnabled | ( | ) | [inline] |
References d_side_lines.
Referenced by copy().
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().
void MultiLayer::updateWaterfallFill | ( | bool | on | ) | [slot] |
References Graph::curve(), d_canvas, d_side_lines, d_waterfall_fill_color, PlotCurve::enableSideLines(), and MdiSubWindow::modifiedWindow().
Referenced by showWaterfallFillDialog().
void MultiLayer::updateWaterfallLayout | ( | ) | [slot] |
References Graph::autoscaleFonts(), bottom_margin, d_canvas, d_is_waterfall_plot, d_waterfall_offset_x, d_waterfall_offset_y, Graph::enableAxis(), graphsList, left_margin, right_margin, Graph::setAutoscaleFonts(), Graph::setBackgroundColor(), top_margin, and Graph::updateMarkersBoundingRect().
Referenced by ApplicationWindow::autoArrangeLayers(), changeWaterfallXOffset(), changeWaterfallYOffset(), setWaterfallLayout(), setWaterfallOffset(), and showWaterfallOffsetDialog().
void MultiLayer::updateWaterfallScales | ( | Graph * | g, | |
int | axis | |||
) | [slot] |
References graphsList.
Referenced by createWaterfallBox().
int MultiLayer::verticalAlignement | ( | ) | [inline, slot] |
References vert_align.
Referenced by copy(), and LayerDialog::setMultiLayer().
void MultiLayer::viewTitleDialog | ( | ) | [signal] |
Referenced by connectLayer().
int MultiLayer::waterfallXOffset | ( | ) | [inline] |
References d_waterfall_offset_x.
Referenced by copy().
int MultiLayer::waterfallYOffset | ( | ) | [inline] |
References d_waterfall_offset_y.
Referenced by copy().
void MultiLayer::wheelEvent | ( | QWheelEvent * | e | ) | [private] |
References graphsList, and modifiedPlot().
Graph* MultiLayer::active_graph [private] |
int MultiLayer::bottom_margin [private] |
Referenced by arrangeLayers(), bottomMargin(), canvasChildrenRect(), MultiLayer(), resizeLayers(), save(), setEqualSizedLayers(), setMargins(), and updateWaterfallLayout().
QList<LayerButton *> MultiLayer::buttonsList [private] |
Referenced by activateGraph(), addLayerButton(), createWaterfallBox(), removeLayer(), setActiveLayer(), and setNumLayers().
int MultiLayer::colsSpace [private] |
Referenced by addLayer(), arrangeLayers(), colsSpacing(), save(), setEqualSizedLayers(), and setSpacing().
QPushButton* MultiLayer::d_add_layer_btn [private] |
Referenced by createWaterfallBox(), and MultiLayer().
QWidget* MultiLayer::d_canvas [private] |
Referenced by addLayer(), adjustSize(), arrangeLayers(), canvas(), canvasPixmap(), canvasRect(), draw(), dropEvent(), eventFilter(), exportVector(), MultiLayer(), print(), printAllLayers(), setEqualSizedLayers(), setWaterfallFillColor(), setWaterfallSideLines(), updateWaterfallFill(), and updateWaterfallLayout().
int MultiLayer::d_cols [private] |
Used for resizing of layers.
Referenced by addLayer(), arrangeLayers(), getCols(), save(), setCols(), and setEqualSizedLayers().
bool MultiLayer::d_is_waterfall_plot [private] |
Referenced by createWaterfallBox(), eventFilter(), isWaterfallPlot(), save(), setActiveLayer(), setWaterfallLayout(), and updateWaterfallLayout().
QPointer<SelectionMoveResizer> MultiLayer::d_layers_selector [private] |
Referenced by activateGraph(), arrangeLayers(), copyAllLayers(), eventFilter(), hasSelectedLayers(), keyPressEvent(), setActiveLayer(), and ~MultiLayer().
bool MultiLayer::d_print_cropmarks [private] |
Referenced by printActiveLayer(), printAllLayers(), printCropmarks(), and printCropmarksEnabled().
QPushButton * MultiLayer::d_remove_layer_btn [private] |
Referenced by createWaterfallBox(), and MultiLayer().
int MultiLayer::d_rows [private] |
Referenced by addLayer(), arrangeLayers(), getRows(), save(), setEqualSizedLayers(), 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().
bool MultiLayer::d_side_lines [private] |
Flag telling if we need to draw side lines for curves in a waterfall plot.
Referenced by save(), setWaterfallSideLines(), showWaterfallFillDialog(), sideLinesEnabled(), and updateWaterfallFill().
QColor MultiLayer::d_waterfall_fill_color [private] |
Referenced by setWaterfallFillColor(), showWaterfallFillDialog(), and updateWaterfallFill().
int MultiLayer::d_waterfall_offset_x [private] |
Referenced by changeWaterfallXOffset(), copy(), save(), setWaterfallOffset(), showWaterfallOffsetDialog(), updateWaterfallLayout(), and waterfallXOffset().
int MultiLayer::d_waterfall_offset_y [private] |
Referenced by changeWaterfallYOffset(), copy(), save(), setWaterfallOffset(), showWaterfallOffsetDialog(), updateWaterfallLayout(), and waterfallYOffset().
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(), confirmRemoveLayer(), copyAllLayers(), createWaterfallBox(), eventFilter(), exportTeX(), findBestLayout(), isEmpty(), keyPressEvent(), layer(), layerAt(), layerIndex(), layersList(), numLayers(), printAllLayers(), removeLayer(), resizeLayers(), reverseWaterfallOrder(), save(), setActiveLayer(), setEqualSizedLayers(), setFonts(), setNumLayers(), setWaterfallLayout(), sizeToString(), swapLayers(), updateWaterfallLayout(), updateWaterfallScales(), 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(), setEqualSizedLayers(), setMargins(), and updateWaterfallLayout().
int MultiLayer::right_margin [private] |
Referenced by addLayer(), arrangeLayers(), canvasChildrenRect(), MultiLayer(), resizeLayers(), rightMargin(), save(), setEqualSizedLayers(), setMargins(), and updateWaterfallLayout().
int MultiLayer::rowsSpace [private] |
Referenced by addLayer(), arrangeLayers(), rowsSpacing(), save(), setEqualSizedLayers(), and setSpacing().
QHBoxLayout * MultiLayer::toolbuttonsBox [private] |
Referenced by MultiLayer().
int MultiLayer::top_margin [private] |
Referenced by addLayer(), arrangeLayers(), MultiLayer(), resizeLayers(), save(), setEqualSizedLayers(), setMargins(), topMargin(), and updateWaterfallLayout().
int MultiLayer::vert_align [private] |
Referenced by arrangeLayers(), save(), setAlignement(), and verticalAlignement().
QHBoxLayout * MultiLayer::waterfallBox [private] |
Referenced by createWaterfallBox(), MultiLayer(), and setWaterfallLayout().