Classes | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
TabbedPlotWidget Class Reference

#include <tabbedplotwidget.h>

Inheritance diagram for TabbedPlotWidget:
Inheritance graph
[legend]

Classes

struct  MainWindowArea
 

Public Slots

static void saveTabImage (QString fileName, PlotMatrix *matrix)
 
void setStreamingMode (bool streaming_mode)
 

Signals

void created ()
 
void matrixAdded (PlotMatrix *)
 
void sendTabToNewWindow (PlotMatrix *)
 
void undoableChangeHappened ()
 

Public Member Functions

void addTab (PlotMatrix *tab=nullptr)
 
PlotMatrixcurrentTab ()
 
QString name () const
 
void setControlsVisible (bool visible)
 
 TabbedPlotWidget (QString name, QMainWindow *main_window, PlotMatrix *first_tab, PlotDataMapRef &mapped_data, QMainWindow *parent)
 
QTabWidget * tabWidget ()
 
const QTabWidget * tabWidget () const
 
bool xmlLoadState (QDomElement &tabbed_area)
 
QDomElement xmlSaveState (QDomDocument &doc) const
 
 ~TabbedPlotWidget () override
 

Static Public Member Functions

static TabbedPlotWidgetinstance (const QString &key)
 
static const std::map< QString, TabbedPlotWidget * > & instances ()
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *event) override
 

Static Protected Attributes

static std::map< QString, TabbedPlotWidget * > _instances
 

Private Types

enum  LabelStatus { LEFT, RIGHT, HIDDEN }
 

Private Slots

void on_addTabButton_pressed ()
 
void on_buttonLinkHorizontalScale_toggled (bool checked)
 
void on_moveTabIntoNewWindow ()
 
void on_pushAddColumn_pressed ()
 
void on_pushAddRow_pressed ()
 
void on_pushButtonShowLabel_pressed ()
 
void on_pushButtonZoomMax_pressed ()
 
void on_pushHorizontalResize_pressed ()
 
void on_pushRemoveEmpty_pressed ()
 
void on_pushVerticalResize_pressed ()
 
void on_renameCurrentTab ()
 
void on_requestTabMovement (const QString &destination_name)
 
void on_savePlotsToFile ()
 
void on_tabWidget_currentChanged (int index)
 
void on_tabWidget_tabCloseRequested (int index)
 
void onLabelStatusChanged ()
 
void onMoveWidgetIntoNewTab (QString plot_name)
 

Private Member Functions

virtual void closeEvent (QCloseEvent *event) override
 

Private Attributes

QAction * _action_renameTab
 
QAction * _action_savePlots
 
bool _horizontal_link
 
LabelStatus _labels_status
 
PlotDataMapRef_mapped_data
 
const QString _name
 
QString _parent_type
 
QMenu * _tab_menu
 
Ui::TabbedPlotWidget * ui
 

Detailed Description

Definition at line 14 of file tabbedplotwidget.h.

Member Enumeration Documentation

Enumerator
LEFT 
RIGHT 
HIDDEN 

Definition at line 93 of file tabbedplotwidget.h.

Constructor & Destructor Documentation

TabbedPlotWidget::TabbedPlotWidget ( QString  name,
QMainWindow *  main_window,
PlotMatrix first_tab,
PlotDataMapRef mapped_data,
QMainWindow *  parent 
)
explicit

Definition at line 16 of file tabbedplotwidget.cpp.

TabbedPlotWidget::~TabbedPlotWidget ( )
override

Definition at line 198 of file tabbedplotwidget.cpp.

Member Function Documentation

void TabbedPlotWidget::addTab ( PlotMatrix tab = nullptr)

Definition at line 96 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::closeEvent ( QCloseEvent *  event)
overrideprivatevirtual

Definition at line 559 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::created ( )
signal
PlotMatrix * TabbedPlotWidget::currentTab ( )

Definition at line 80 of file tabbedplotwidget.cpp.

bool TabbedPlotWidget::eventFilter ( QObject *  obj,
QEvent *  event 
)
overrideprotectedvirtual

Definition at line 475 of file tabbedplotwidget.cpp.

TabbedPlotWidget * TabbedPlotWidget::instance ( const QString &  key)
static

Definition at line 569 of file tabbedplotwidget.cpp.

const std::map< QString, TabbedPlotWidget * > & TabbedPlotWidget::instances ( )
static

Definition at line 564 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::matrixAdded ( PlotMatrix )
signal
QString TabbedPlotWidget::name ( ) const
inline

Definition at line 41 of file tabbedplotwidget.h.

void TabbedPlotWidget::on_addTabButton_pressed ( )
privateslot

Definition at line 354 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_buttonLinkHorizontalScale_toggled ( bool  checked)
privateslot

Definition at line 432 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_moveTabIntoNewWindow ( )
privateslot

Definition at line 458 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_pushAddColumn_pressed ( )
privateslot

Definition at line 275 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_pushAddRow_pressed ( )
privateslot

Definition at line 268 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_pushButtonShowLabel_pressed ( )
privateslot

Definition at line 463 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_pushButtonZoomMax_pressed ( )
privateslot

Definition at line 294 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_pushHorizontalResize_pressed ( )
privateslot

Definition at line 288 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_pushRemoveEmpty_pressed ( )
privateslot

Definition at line 360 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_pushVerticalResize_pressed ( )
privateslot

Definition at line 282 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_renameCurrentTab ( )
privateslot

Definition at line 203 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_requestTabMovement ( const QString &  destination_name)
privateslot

Definition at line 443 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_savePlotsToFile ( )
privateslot

Definition at line 221 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_tabWidget_currentChanged ( int  index)
privateslot

Definition at line 366 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::on_tabWidget_tabCloseRequested ( int  index)
privateslot

Definition at line 386 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::onLabelStatusChanged ( )
privateslot

Definition at line 535 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::onMoveWidgetIntoNewTab ( QString  plot_name)
privateslot

Definition at line 300 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::saveTabImage ( QString  fileName,
PlotMatrix matrix 
)
staticslot

Definition at line 243 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::sendTabToNewWindow ( PlotMatrix )
signal
void TabbedPlotWidget::setControlsVisible ( bool  visible)

Definition at line 581 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::setStreamingMode ( bool  streaming_mode)
slot

Definition at line 190 of file tabbedplotwidget.cpp.

QTabWidget * TabbedPlotWidget::tabWidget ( )

Definition at line 85 of file tabbedplotwidget.cpp.

const QTabWidget * TabbedPlotWidget::tabWidget ( ) const

Definition at line 90 of file tabbedplotwidget.cpp.

void TabbedPlotWidget::undoableChangeHappened ( )
signal
bool TabbedPlotWidget::xmlLoadState ( QDomElement &  tabbed_area)

Definition at line 138 of file tabbedplotwidget.cpp.

QDomElement TabbedPlotWidget::xmlSaveState ( QDomDocument &  doc) const

Definition at line 115 of file tabbedplotwidget.cpp.

Member Data Documentation

QAction* TabbedPlotWidget::_action_renameTab
private

Definition at line 97 of file tabbedplotwidget.h.

QAction* TabbedPlotWidget::_action_savePlots
private

Definition at line 98 of file tabbedplotwidget.h.

bool TabbedPlotWidget::_horizontal_link
private

Definition at line 106 of file tabbedplotwidget.h.

std::map< QString, TabbedPlotWidget * > TabbedPlotWidget::_instances
staticprotected

Definition at line 118 of file tabbedplotwidget.h.

LabelStatus TabbedPlotWidget::_labels_status
private

Definition at line 110 of file tabbedplotwidget.h.

PlotDataMapRef& TabbedPlotWidget::_mapped_data
private

Definition at line 104 of file tabbedplotwidget.h.

const QString TabbedPlotWidget::_name
private

Definition at line 102 of file tabbedplotwidget.h.

QString TabbedPlotWidget::_parent_type
private

Definition at line 108 of file tabbedplotwidget.h.

QMenu* TabbedPlotWidget::_tab_menu
private

Definition at line 100 of file tabbedplotwidget.h.

Ui::TabbedPlotWidget* TabbedPlotWidget::ui
private

Definition at line 95 of file tabbedplotwidget.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19