MultiLayer.h
Go to the documentation of this file.
/***************************************************************************
File : MultiLayer.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 - 2009 by Ion Vasilief, Knut Franke
Email (use @ for *) : ion_vasilief*yahoo.fr, knut.franke*gmx.de
Description : Multi layer widget
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef MULTILAYER_H
#define MULTILAYER_H
#include <MdiSubWindow.h>
#include <FrameWidget.h>
#include <QPushButton>
#include <QLayout>
#include <QPointer>
class QTextDocument;
class QLabel;
class LayerButton;
class SelectionMoveResizer;
class LegendWidget;
class Graph;
class QwtPlotCurve;
class Matrix;
class MultiLayer: public MdiSubWindow
{
Q_OBJECT
public:
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();
QList<Graph *> layersList(){return graphsList;};
QList<Graph*> stackOrderedLayersList();
Graph *layer(int num);
int layerIndex(Graph *g){return graphsList.indexOf(g);};
int numLayers(){return graphsList.size();};
void setNumLayers(int n);
void copy(MultiLayer* ml);
enum HorAlignement{HCenter, Left, Right};
enum VertAlignement{VCenter, Top, Bottom};
enum AlignPolicy{AlignLayers = 0, AlignCanvases};
enum SizePolicy{Expanding = 0, UserSize};
bool scaleLayersOnPrint(){return d_scale_on_print;};
void setScaleLayersOnPrint(bool on){d_scale_on_print = on;};
bool printCropmarksEnabled(){return d_print_cropmarks;};
void printCropmarks(bool on){d_print_cropmarks = on;};
bool scaleLayersOnResize(){return d_scale_layers;};
void setScaleLayersOnResize(bool ok){d_scale_layers = ok;};
QWidget *canvas(){return d_canvas;};
QRect canvasRect(){return d_canvas->rect();};
QRect canvasChildrenRect();
virtual QString sizeToString();
void setWaterfallLayout(bool on = true);
void setEqualSizedLayers();
void plotProfiles(Matrix* m);
QHBoxLayout *toolBox(){return toolbuttonsBox;};
AlignPolicy alignPolicy(){return d_align_policy;};
void setAlignPolicy(const AlignPolicy& policy){d_align_policy = policy;};
SizePolicy sizePolicy(){return d_size_policy;};
void setSizePolicy(const SizePolicy& policy){d_size_policy = policy;};
void setCommonLayerAxes(bool verticalAxis = true, bool horizontalAxis = true);
void linkXLayerAxes(bool link = true);
bool hasLinkedXLayerAxes(){return d_link_x_axes;};
bool hasCommonAxes(){return d_common_axes_layout;};
void setCommonAxesLayout(bool on = true){d_common_axes_layout = on;};
void deselect();
bool hasSelectedLayers();
bool isLayerSelected(Graph*);
void adjustLayersToCanvasSize();
public slots:
Graph* addLayer(int x = 0, int y = 0, int width = 0, int height = 0, bool = false);
bool isEmpty();
bool removeLayer(Graph *g);
bool removeActiveLayer();
void confirmRemoveLayer();
Graph* activeLayer(){return active_graph;};
void setActiveLayer(Graph* g);
void activateGraph(LayerButton* button);
void selectLayerCanvas(Graph* g);
Graph* layerAt(const QPoint& pos);
void setGraphGeometry(int x, int y, int w, int h);
void findBestLayout(int &rows, int &cols);
QSize arrangeLayers(bool userSize);
bool arrangeLayers(bool fit, bool userSize);
bool swapLayers(int src, int dest);
void updateLayersLayout(Graph *);
int getRows(){return d_rows;};
void setRows(int r);
int getCols(){return d_cols;};
void setCols(int c);
int colsSpacing(){return colsSpace;};
int rowsSpacing(){return rowsSpace;};
void setSpacing (int rgap, int cgap);
int leftMargin(){return left_margin;};
int rightMargin(){return right_margin;};
int topMargin(){return top_margin;};
int bottomMargin(){return bottom_margin;};
void setMargins (int lm, int rm, int tm, int bm);
QSize layerCanvasSize(){return QSize(l_canvas_width, l_canvas_height);};
void setLayerCanvasSize (int w, int h);
int horizontalAlignement(){return hor_align;};
int verticalAlignement(){return vert_align;};
void setAlignement (int ha, int va);
QPixmap canvasPixmap(const QSize& size = QSize(), double scaleFontsFactor = 1.0, bool transparent = false);
void exportToFile(const QString& fileName);
#if QT_VERSION >= 0x040500
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);
#endif
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();
void setFonts(const QFont& titleFnt, const QFont& scaleFnt,
const QFont& numbersFnt, const QFont& legendFnt);
void connectLayer(Graph *g);
void save(const QString& fn, const QString& geometry, bool = false);
void showWaterfallOffsetDialog();
void reverseWaterfallOrder();
void showWaterfallFillDialog();
void updateWaterfalls();
bool isWaterfallPlot(){return d_is_waterfall_plot;}
QColor waterfallFillColor(){return d_waterfall_fill_color;}
void setWaterfallFillColor(const QColor& c);
void updateLayerAxes(Graph *g, int axis);
signals:
void showEnrichementDialog();
void showCurvesDialog();
void drawLineEnded(bool);
void showMarkerPopupMenu();
void modifiedPlot();
void cursorInfo(const QString&);
void showLineDialog();
void pasteMarker();
void setPointerCursor();
void currentFontChanged(const QFont&);
void currentColorChanged(const QColor&);
private:
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 *);
Graph* clickedLayer(Graph*);
LayerButton* addLayerButton();
void createWaterfallBox();
Graph* active_graph;
int d_cols, d_rows, graph_width, graph_height, colsSpace, rowsSpace;
int left_margin, right_margin, top_margin, bottom_margin;
int l_canvas_width, l_canvas_height, hor_align, vert_align;
bool d_scale_on_print, d_print_cropmarks;
bool d_scale_layers;
QList<LayerButton *> buttonsList;
QList<Graph *> graphsList;
QHBoxLayout *layerButtonsBox, *waterfallBox, *toolbuttonsBox;
QWidget *d_canvas;
QPointer<SelectionMoveResizer> d_layers_selector;
bool d_is_waterfall_plot;
QColor d_waterfall_fill_color;
QPushButton *d_add_layer_btn, *d_remove_layer_btn;
QSize d_canvas_size;
AlignPolicy d_align_policy;
SizePolicy d_size_policy;
bool d_link_x_axes;
bool d_common_axes_layout;
QVector<QRectF> d_layer_coordinates;
};
class LayerButton: public QPushButton
{
Q_OBJECT
public:
LayerButton (const QString& text = QString::null, QWidget* parent = 0);
static int btnSize(){return 20;};
protected:
void mousePressEvent( QMouseEvent * );
void mouseDoubleClickEvent ( QMouseEvent * );
signals:
void showCurvesDialog();
void clicked(LayerButton*);
void showLayerContextMenu();
};
#endif
MultiLayer::d_layer_coordinates
QVector< QRectF > d_layer_coordinates
Definition: MultiLayer.h:284
MultiLayer::removeLayer
bool removeLayer(Graph *g)
Definition: MultiLayer.cpp:504
MultiLayer::d_size_policy
SizePolicy d_size_policy
Definition: MultiLayer.h:280
MultiLayer::exportToFile
void exportToFile(const QString &fileName)
Definition: MultiLayer.cpp:1020
MultiLayer::Right
Definition: MultiLayer.h:82
MultiLayer::exportVector
void exportVector(const QString &fileName, int res=0, bool color=true, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
Definition: MultiLayer.cpp:1211
MultiLayer::left_margin
int left_margin
Definition: MultiLayer.h:259
MultiLayer::canvasPixmap
QPixmap canvasPixmap(const QSize &size=QSize(), double scaleFontsFactor=1.0, bool transparent=false)
Definition: MultiLayer.cpp:976
MultiLayer::d_cols
int d_cols
Used for resizing of layers.
Definition: MultiLayer.h:258
LayerButton::showLayerContextMenu
void showLayerContextMenu()
MultiLayer::canvasChildrenRect
QRect canvasChildrenRect()
Definition: MultiLayer.cpp:350
MultiLayer::setScaleLayersOnResize
void setScaleLayersOnResize(bool ok)
Definition: MultiLayer.h:94
MultiLayer::dropEvent
void dropEvent(QDropEvent *)
Definition: MultiLayer.cpp:2062
MultiLayer
An MDI window (MdiSubWindow) managing one or more Graph objects.
Definition: MultiLayer.h:64
MultiLayer::~MultiLayer
~MultiLayer()
Definition: MultiLayer.cpp:2235
MultiLayer::deselect
void deselect()
Definition: MultiLayer.cpp:2229
MultiLayer::setMargins
void setMargins(int lm, int rm, int tm, int bm)
Definition: MultiLayer.cpp:1717
MultiLayer::setSizePolicy
void setSizePolicy(const SizePolicy &policy)
Definition: MultiLayer.h:113
MultiLayer::eventFilter
bool eventFilter(QObject *object, QEvent *)
Definition: MultiLayer.cpp:1512
MultiLayer::rowsSpace
int rowsSpace
Definition: MultiLayer.h:258
MultiLayer::layersList
QList< Graph * > layersList()
Definition: MultiLayer.h:72
MultiLayer::exportPDF
void exportPDF(const QString &fname)
Definition: MultiLayer.cpp:1143
LayerButton::btnSize
static int btnSize()
Definition: MultiLayer.h:294
MultiLayer::SizePolicy
SizePolicy
Definition: MultiLayer.h:85
MultiLayer::drawLineEnded
void drawLineEnded(bool)
MultiLayer::bottom_margin
int bottom_margin
Definition: MultiLayer.h:259
MultiLayer::save
void save(const QString &fn, const QString &geometry, bool=false)
Definition: MultiLayer.cpp:1677
MultiLayer::d_common_axes_layout
bool d_common_axes_layout
Definition: MultiLayer.h:282
MultiLayer::setLayerCanvasSize
void setLayerCanvasSize(int w, int h)
Definition: MultiLayer.cpp:1737
MultiLayer::showWaterfallOffsetDialog
void showWaterfallOffsetDialog()
Definition: MultiLayer.cpp:1945
MultiLayer::releaseLayer
void releaseLayer()
MultiLayer::exportImage
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)
Definition: MultiLayer.cpp:1055
Graph
A 2D-plotting widget.
Definition: Graph.h:123
MultiLayer::setAlignement
void setAlignement(int ha, int va)
Definition: MultiLayer.cpp:1745
MultiLayer::isWaterfallPlot
bool isWaterfallPlot()
Definition: MultiLayer.h:217
MultiLayer::currentFontChanged
void currentFontChanged(const QFont &)
MultiLayer::hasSelectedLayers
bool hasSelectedLayers()
Definition: MultiLayer.cpp:1888
MultiLayer::layer
Graph * layer(int num)
Definition: MultiLayer.cpp:202
LayerButton::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *)
Definition: MultiLayer.cpp:104
MultiLayer::layerIndex
int layerIndex(Graph *g)
Definition: MultiLayer.h:75
MultiLayer::sizeToString
virtual QString sizeToString()
Size of the widget as a string.
Definition: MultiLayer.cpp:1861
MultiLayer::showEnrichementDialog
void showEnrichementDialog()
MultiLayer::setFonts
void setFonts(const QFont &titleFnt, const QFont &scaleFnt, const QFont &numbersFnt, const QFont &legendFnt)
Definition: MultiLayer.cpp:1460
MultiLayer::hasCommonAxes
bool hasCommonAxes()
Definition: MultiLayer.h:118
MultiLayer::setAlignPolicy
void setAlignPolicy(const AlignPolicy &policy)
Definition: MultiLayer.h:110
MultiLayer::currentColorChanged
void currentColorChanged(const QColor &)
MultiLayer::d_align_policy
AlignPolicy d_align_policy
Definition: MultiLayer.h:279
MultiLayer::d_rows
int d_rows
Definition: MultiLayer.h:258
MultiLayer::getRows
int getRows()
Definition: MultiLayer.h:151
MultiLayer::arrangeLayers
QSize arrangeLayers(bool userSize)
Definition: MultiLayer.cpp:590
LayerButton::showCurvesDialog
void showCurvesDialog()
MultiLayer::d_layers_selector
QPointer< SelectionMoveResizer > d_layers_selector
Definition: MultiLayer.h:270
MultiLayer::setNumLayers
void setNumLayers(int n)
Definition: MultiLayer.cpp:1754
MultiLayer::plotProfiles
void plotProfiles(Matrix *m)
Definition: MultiLayer.cpp:2080
MultiLayer::copyAllLayers
void copyAllLayers()
Definition: MultiLayer.cpp:1316
MultiLayer::graph_width
int graph_width
Definition: MultiLayer.h:258
MultiLayer::activeLayer
Graph * activeLayer()
Definition: MultiLayer.h:135
MultiLayer::removeActiveLayer
bool removeActiveLayer()
Definition: MultiLayer.cpp:499
MultiLayer::layerAt
Graph * layerAt(const QPoint &pos)
Returns the layer at the given position; returns 0 if there is no such layer.
Definition: MultiLayer.cpp:1879
MultiLayer::resizeLayers
void resizeLayers(QResizeEvent *)
Definition: MultiLayer.cpp:374
MultiLayer::d_canvas
QWidget * d_canvas
Definition: MultiLayer.h:268
MultiLayer::copy
void copy(MultiLayer *ml)
Definition: MultiLayer.cpp:1801
MultiLayer::vert_align
int vert_align
Definition: MultiLayer.h:260
MultiLayer::updateLayersLayout
void updateLayersLayout(Graph *)
Definition: MultiLayer.cpp:2216
MultiLayer::alignPolicy
AlignPolicy alignPolicy()
Definition: MultiLayer.h:109
MultiLayer::HCenter
Definition: MultiLayer.h:82
LayerButton::clicked
void clicked(LayerButton *)
MultiLayer::UserSize
Definition: MultiLayer.h:85
MultiLayer::scaleLayersOnResize
bool scaleLayersOnResize()
Definition: MultiLayer.h:93
MultiLayer::HorAlignement
HorAlignement
Definition: MultiLayer.h:82
MultiLayer::rowsSpacing
int rowsSpacing()
Definition: MultiLayer.h:158
MultiLayer::d_waterfall_fill_color
QColor d_waterfall_fill_color
Definition: MultiLayer.h:273
MultiLayer::printActiveLayer
void printActiveLayer()
Definition: MultiLayer.cpp:1350
MultiLayer::canvas
QWidget * canvas()
Definition: MultiLayer.h:96
SelectionMoveResizer
Handler for modifying one or more QWidget and/or QwtPlotMarker with mouse or keyboard.
Definition: SelectionMoveResizer.h:89
MultiLayer::layerCanvasSize
QSize layerCanvasSize()
Definition: MultiLayer.h:167
MultiLayer::updateWaterfalls
void updateWaterfalls()
Definition: MultiLayer.cpp:1934
MultiLayer::setCols
void setCols(int c)
Definition: MultiLayer.cpp:952
MultiLayer::AlignLayers
Definition: MultiLayer.h:84
MultiLayer::cursorInfo
void cursorInfo(const QString &)
MultiLayer::graph_height
int graph_height
Definition: MultiLayer.h:258
MultiLayer::Expanding
Definition: MultiLayer.h:85
MultiLayer::VertAlignement
VertAlignement
Definition: MultiLayer.h:83
MultiLayer::addLayerButton
LayerButton * addLayerButton()
Definition: MultiLayer.cpp:211
MultiLayer::setPointerCursor
void setPointerCursor()
MultiLayer::setSpacing
void setSpacing(int rgap, int cgap)
Definition: MultiLayer.cpp:1729
MultiLayer::bottomMargin
int bottomMargin()
Definition: MultiLayer.h:164
LayerButton::mousePressEvent
void mousePressEvent(QMouseEvent *)
Definition: MultiLayer.cpp:95
MultiLayer::getCols
int getCols()
Definition: MultiLayer.h:154
MultiLayer::hor_align
int hor_align
Definition: MultiLayer.h:260
MultiLayer::AlignCanvases
Definition: MultiLayer.h:84
MultiLayer::colsSpacing
int colsSpacing()
Definition: MultiLayer.h:157
MultiLayer::Bottom
Definition: MultiLayer.h:83
MultiLayer::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)
Definition: MultiLayer.cpp:109
MultiLayer::adjustLayersToCanvasSize
void adjustLayersToCanvasSize()
Definition: MultiLayer.cpp:359
MultiLayer::scaleLayersOnPrint
bool scaleLayersOnPrint()
Definition: MultiLayer.h:87
ApplicationWindow
QtiPlot&#39;s main window.
Definition: ApplicationWindow.h:133
MultiLayer::showLineDialog
void showLineDialog()
FrameWidget.h
MultiLayer::showCurvesDialog
void showCurvesDialog()
MultiLayer::sizePolicy
SizePolicy sizePolicy()
Definition: MultiLayer.h:112
MultiLayer::setCommonLayerAxes
void setCommonLayerAxes(bool verticalAxis=true, bool horizontalAxis=true)
Definition: MultiLayer.cpp:774
MultiLayer::setRows
void setRows(int r)
Definition: MultiLayer.cpp:958
MultiLayer::l_canvas_width
int l_canvas_width
Definition: MultiLayer.h:260
MultiLayer::right_margin
int right_margin
Definition: MultiLayer.h:259
LegendWidget
Definition: LegendWidget.h:42
MultiLayer::d_remove_layer_btn
QPushButton * d_remove_layer_btn
Definition: MultiLayer.h:275
MultiLayer::keyPressEvent
void keyPressEvent(QKeyEvent *)
Definition: MultiLayer.cpp:1579
MultiLayer::graphsList
QList< Graph * > graphsList
Definition: MultiLayer.h:266
MultiLayer::stackOrderedLayersList
QList< Graph * > stackOrderedLayersList()
Definition: MultiLayer.cpp:964
MultiLayer::isLayerSelected
bool isLayerSelected(Graph *)
Definition: MultiLayer.cpp:279
Matrix
Matrix worksheet class.
Definition: Matrix.h:57
MultiLayer::confirmRemoveLayer
void confirmRemoveLayer()
Definition: MultiLayer.cpp:474
MultiLayer::d_link_x_axes
bool d_link_x_axes
Definition: MultiLayer.h:281
MultiLayer::isEmpty
bool isEmpty()
Definition: MultiLayer.cpp:1669
MultiLayer::verticalAlignement
int verticalAlignement()
Definition: MultiLayer.h:171
MultiLayer::print
void print()
Definition: MultiLayer.cpp:1356
MultiLayer::Left
Definition: MultiLayer.h:82
MultiLayer::draw
void draw(QPaintDevice *, const QSizeF &customSize, int unit, int res, double fontsFactor=1.0)
Definition: MultiLayer.cpp:1227
MultiLayer::colsSpace
int colsSpace
Definition: MultiLayer.h:258
FrameWidget::Pixel
Definition: FrameWidget.h:44
MultiLayer::AlignPolicy
AlignPolicy
Definition: MultiLayer.h:84
MultiLayer::clickedLayer
Graph * clickedLayer(Graph *)
Try to guess on which layer the user clicked if the layers are superposed.
Definition: MultiLayer.cpp:288
MultiLayer::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *)
Definition: MultiLayer.cpp:2052
MultiLayer::exportSVG
void exportSVG(const QString &fname, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
Definition: MultiLayer.cpp:1257
MultiLayer::canvasRect
QRect canvasRect()
Definition: MultiLayer.h:97
MultiLayer::selectLayerCanvas
void selectLayerCanvas(Graph *g)
Definition: MultiLayer.cpp:305
MultiLayer::createWaterfallBox
void createWaterfallBox()
Definition: MultiLayer.cpp:1916
MultiLayer::printAllLayers
void printAllLayers(QPainter *painter)
Definition: MultiLayer.cpp:1398
MultiLayer::exportEMF
void exportEMF(const QString &fname, const QSizeF &customSize=QSizeF(), int unit=FrameWidget::Pixel, double fontsFactor=1.0)
Definition: MultiLayer.cpp:1277
MultiLayer::showWaterfallFillDialog
void showWaterfallFillDialog()
Definition: MultiLayer.cpp:2001
MultiLayer::topMargin
int topMargin()
Definition: MultiLayer.h:163
MultiLayer::waterfallBox
QHBoxLayout * waterfallBox
Definition: MultiLayer.h:267
MultiLayer::setWaterfallFillColor
void setWaterfallFillColor(const QColor &c)
Definition: MultiLayer.cpp:2045
MultiLayer::printCropmarksEnabled
bool printCropmarksEnabled()
Definition: MultiLayer.h:90
MultiLayer::Top
Definition: MultiLayer.h:83
MultiLayer::leftMargin
int leftMargin()
Definition: MultiLayer.h:161
MultiLayer::swapLayers
bool swapLayers(int src, int dest)
Definition: MultiLayer.cpp:1841
MultiLayer::linkXLayerAxes
void linkXLayerAxes(bool link=true)
Definition: MultiLayer.cpp:2147
MultiLayer::setEqualSizedLayers
void setEqualSizedLayers()
Definition: MultiLayer.cpp:563
MultiLayer::wheelEvent
void wheelEvent(QWheelEvent *)
Definition: MultiLayer.cpp:1620
MultiLayer::showEvent
void showEvent(QShowEvent *)
Definition: MultiLayer.cpp:1573
MdiSubWindow
Base class of all MDI client windows.
Definition: MdiSubWindow.h:51
MultiLayer::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *)
Definition: MultiLayer.cpp:1567
MultiLayer::hasLinkedXLayerAxes
bool hasLinkedXLayerAxes()
Definition: MultiLayer.h:117
MultiLayer::setWaterfallLayout
void setWaterfallLayout(bool on=true)
Definition: MultiLayer.cpp:1895
MultiLayer::connectLayer
void connectLayer(Graph *g)
Definition: MultiLayer.cpp:1484
LayerButton
Button with layer number.
Definition: MultiLayer.h:288
MultiLayer::setActiveLayer
void setActiveLayer(Graph *g)
Definition: MultiLayer.cpp:321
MultiLayer::d_scale_on_print
bool d_scale_on_print
Definition: MultiLayer.h:261
MultiLayer::VCenter
Definition: MultiLayer.h:83
MultiLayer::showMarkerPopupMenu
void showMarkerPopupMenu()
MultiLayer::setScaleLayersOnPrint
void setScaleLayersOnPrint(bool on)
Definition: MultiLayer.h:88
MultiLayer::rightMargin
int rightMargin()
Definition: MultiLayer.h:162
MultiLayer::active_graph
Graph * active_graph
Definition: MultiLayer.h:256
MdiSubWindow.h
MultiLayer::toolbuttonsBox
QHBoxLayout * toolbuttonsBox
Definition: MultiLayer.h:267
MultiLayer::l_canvas_height
int l_canvas_height
Definition: MultiLayer.h:260
MultiLayer::exportTeX
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)
Definition: MultiLayer.cpp:1287
MultiLayer::reverseWaterfallOrder
void reverseWaterfallOrder()
Definition: MultiLayer.cpp:1991
MultiLayer::d_scale_layers
bool d_scale_layers
Flag telling if layers should be rescaled on the plot window is resized by the user.
Definition: MultiLayer.h:263
MultiLayer::setCommonAxesLayout
void setCommonAxesLayout(bool on=true)
Definition: MultiLayer.h:119
MultiLayer::d_add_layer_btn
QPushButton * d_add_layer_btn
Definition: MultiLayer.h:275
MultiLayer::d_canvas_size
QSize d_canvas_size
Definition: MultiLayer.h:277
MultiLayer::addLayer
Graph * addLayer(int x=0, int y=0, int width=0, int height=0, bool=false)
Definition: MultiLayer.cpp:228
LayerButton::LayerButton
LayerButton(const QString &text=QString::null, QWidget *parent=0)
Definition: MultiLayer.cpp:83
MultiLayer::printCropmarks
void printCropmarks(bool on)
Definition: MultiLayer.h:91
MultiLayer::toolBox
QHBoxLayout * toolBox()
Definition: MultiLayer.h:107
MultiLayer::setGraphGeometry
void setGraphGeometry(int x, int y, int w, int h)
Definition: MultiLayer.cpp:553
MultiLayer::horizontalAlignement
int horizontalAlignement()
Definition: MultiLayer.h:170
MultiLayer::pasteMarker
void pasteMarker()
MultiLayer::buttonsList
QList< LayerButton * > buttonsList
Definition: MultiLayer.h:265
MdiSubWindow::name
QString name()
Return the window name.
Definition: MdiSubWindow.h:84
MultiLayer::d_is_waterfall_plot
bool d_is_waterfall_plot
Definition: MultiLayer.h:272
MultiLayer::waterfallFillColor
QColor waterfallFillColor()
Definition: MultiLayer.h:218
MultiLayer::d_print_cropmarks
bool d_print_cropmarks
Definition: MultiLayer.h:261
MultiLayer::layerButtonsBox
QHBoxLayout * layerButtonsBox
Definition: MultiLayer.h:267
MultiLayer::modifiedPlot
void modifiedPlot()
MultiLayer::activateGraph
void activateGraph(LayerButton *button)
Definition: MultiLayer.cpp:256
MultiLayer::numLayers
int numLayers()
Definition: MultiLayer.h:77
MultiLayer::updateLayerAxes
void updateLayerAxes(Graph *g, int axis)
Definition: MultiLayer.cpp:2160
MultiLayer::top_margin
int top_margin
Definition: MultiLayer.h:259
MultiLayer::findBestLayout
void findBestLayout(int &rows, int &cols)
Definition: MultiLayer.cpp:879