Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Inheritance graph
[legend]

Public Slots

void on_actionAbout_triggered ()
 
void on_actionCheatsheet_triggered ()
 
void on_actionClearBuffer_triggered ()
 
void on_actionClearRecentData_triggered ()
 
void on_actionClearRecentLayout_triggered ()
 
void on_actionDeleteAllData_triggered ()
 
void on_actionExit_triggered ()
 
void on_actionFullscreen_triggered ()
 
void on_actionFunctionEditor_triggered ()
 
void on_actionLoadData_triggered ()
 
void on_actionLoadDummyData_triggered ()
 
void on_actionLoadLayout_triggered ()
 
void on_actionReportBug_triggered ()
 
void on_actionSaveAllPlotTabs_triggered ()
 
void on_actionSaveLayout_triggered ()
 
void on_actionStartStreaming (QString streamer_name)
 
void on_actionStopStreaming_triggered ()
 
void on_actionSupportPlotJuggler_triggered ()
 
void on_addMathPlot (const std::string &linked_name)
 
void on_editMathPlot (const std::string &plot_name)
 
void on_pushButtonActivateGrid_toggled (bool checked)
 
void on_pushButtonOptions_toggled (bool checked)
 
void on_pushButtonPlay_toggled (bool checked)
 
void on_pushButtonRatio_toggled (bool checked)
 
void on_pushButtonRemoveTimeOffset_toggled (bool checked)
 
void on_pushButtonStreaming_toggled (bool streaming)
 
void on_pushButtonTimeTracker_pressed ()
 
void on_pushButtonUseDateTime_toggled (bool checked)
 
void on_refreshMathPlot (const std::string &plot_name)
 
void on_splitterMoved (int, int)
 
void on_streamingSpinBox_valueChanged (int value)
 
void on_streamingToggled ()
 
void on_tabbedAreaDestroyed (QObject *object)
 
void onCreateFloatingWindow (PlotMatrix *first_tab=nullptr)
 
void onDeleteMultipleCurves (const std::vector< std::string > &curve_names)
 
void onFloatingWindowDestroyed (QObject *object)
 
void onPlaybackLoop ()
 
void onPlotAdded (PlotWidget *plot)
 
void onPlotMatrixAdded (PlotMatrix *matrix)
 
void onRedoInvoked ()
 
void onSwapPlots (PlotWidget *source, PlotWidget *destination)
 
void onTimeSlider_valueChanged (double abs_time)
 
void onTrackerMovedFromWidget (QPointF pos)
 
void onTrackerTimeUpdated (double absolute_time, bool do_replot)
 
void onUndoableChange ()
 
void onUndoInvoked ()
 
void onUpdateLeftTableValues ()
 
void resizeEvent (QResizeEvent *)
 
void updateDataAndReplot (bool replot_hidden_tabs)
 

Signals

void activateStreamingMode (bool active)
 
void activateTracker (bool active)
 
void requestRemoveCurveByName (const std::string &name)
 

Public Member Functions

bool loadDataFromFile (const FileLoadInfo &info)
 
bool loadDataFromFiles (QStringList filenames)
 
bool loadLayoutFromFile (QString filename)
 
 MainWindow (const QCommandLineParser &commandline_parser, QWidget *parent=nullptr)
 
 ~MainWindow ()
 

Private Member Functions

void addOrEditMathPlot (const std::string &name, bool edit)
 
void buildDummyData ()
 
std::tuple< double, double, int > calculateVisibleRangeX ()
 
void checkAllCurvesFromLayout (const QDomElement &root)
 
void closeEvent (QCloseEvent *event)
 
void createTabbedDialog (QString suggest_win_name, PlotMatrix *first_tab)
 
void deleteAllData ()
 
void forEachWidget (std::function< void(PlotWidget *, PlotMatrix *, int, int)> op)
 
void forEachWidget (std::function< void(PlotWidget *)> op)
 
void importPlotDataMap (PlotDataMapRef &new_data, bool remove_old)
 
void initializeActions ()
 
void initializePlugins (QString subdir_name)
 
bool isStreamingActive () const
 
void loadPluginState (const QDomElement &root)
 
void rearrangeGridLayout ()
 
QDomElement savePluginState (QDomDocument &doc)
 
void updatedDisplayTime ()
 
void updateRecentDataMenu (QStringList new_filenames)
 
void updateRecentLayoutMenu (QStringList new_filenames)
 
void updateTimeOffset ()
 
void updateTimeSlider ()
 
bool xmlLoadState (QDomDocument state_document)
 
QDomDocument xmlSaveState () const
 

Private Attributes

bool _autostart_publishers
 
DataStreamer_current_streamer
 
CurveListPanel_curvelist_widget
 
CustomPlotMap _custom_plots
 
std::map< QString, DataLoader * > _data_loader
 
std::map< QString, DataStreamer * > _data_streamer
 
bool _disable_undo_logging
 
QShortcut _fullscreen_shortcut
 
std::vector< FileLoadInfo_loaded_datafiles
 
TabbedPlotWidget_main_tabbed_widget
 
PlotDataMapRef _mapped_plot_data
 
bool _minimized
 
QShortcut _playback_shotcut
 
QDateTime _prev_publish_time
 
QTimer * _publish_timer
 
QShortcut _redo_shortcut
 
std::deque< QDomDocument > _redo_states
 
QTimer * _replot_timer
 
std::map< QString, StatePublisher * > _state_publisher
 
QShortcut _streaming_shortcut
 
bool _test_option
 
MonitoredValue _time_offset
 
std::map< CurveTracker::Parameter, QIcon > _tracker_button_icons
 
CurveTracker::Parameter _tracker_param
 
double _tracker_time
 
QShortcut _undo_shortcut
 
std::deque< QDomDocument > _undo_states
 
QElapsedTimer _undo_timer
 
Ui::MainWindow * ui
 

Detailed Description

Definition at line 28 of file mainwindow.h.

Constructor & Destructor Documentation

MainWindow::MainWindow ( const QCommandLineParser &  commandline_parser,
QWidget *  parent = nullptr 
)
explicit

Definition at line 45 of file mainwindow.cpp.

MainWindow::~MainWindow ( )

Definition at line 209 of file mainwindow.cpp.

Member Function Documentation

void MainWindow::activateStreamingMode ( bool  active)
signal
void MainWindow::activateTracker ( bool  active)
signal
void MainWindow::addOrEditMathPlot ( const std::string &  name,
bool  edit 
)
private

Definition at line 2110 of file mainwindow.cpp.

void MainWindow::buildDummyData ( )
private

Definition at line 561 of file mainwindow.cpp.

std::tuple< double, double, int > MainWindow::calculateVisibleRangeX ( )
private

Definition at line 1367 of file mainwindow.cpp.

void MainWindow::checkAllCurvesFromLayout ( const QDomElement &  root)
private

Definition at line 699 of file mainwindow.cpp.

void MainWindow::closeEvent ( QCloseEvent *  event)
private

Definition at line 2054 of file mainwindow.cpp.

void MainWindow::createTabbedDialog ( QString  suggest_win_name,
PlotMatrix first_tab 
)
private

Definition at line 366 of file mainwindow.cpp.

void MainWindow::deleteAllData ( )
private

Definition at line 932 of file mainwindow.cpp.

void MainWindow::forEachWidget ( std::function< void(PlotWidget *, PlotMatrix *, int, int)>  op)
private

Definition at line 1639 of file mainwindow.cpp.

void MainWindow::forEachWidget ( std::function< void(PlotWidget *)>  op)
private

Definition at line 1664 of file mainwindow.cpp.

void MainWindow::importPlotDataMap ( PlotDataMapRef new_data,
bool  remove_old 
)
private

Definition at line 1001 of file mainwindow.cpp.

void MainWindow::initializeActions ( )
private

Definition at line 397 of file mainwindow.cpp.

void MainWindow::initializePlugins ( QString  subdir_name)
private

Definition at line 436 of file mainwindow.cpp.

bool MainWindow::isStreamingActive ( ) const
private

Definition at line 1055 of file mainwindow.cpp.

bool MainWindow::loadDataFromFile ( const FileLoadInfo info)

Definition at line 1103 of file mainwindow.cpp.

bool MainWindow::loadDataFromFiles ( QStringList  filenames)

Definition at line 1060 of file mainwindow.cpp.

bool MainWindow::loadLayoutFromFile ( QString  filename)

Definition at line 1421 of file mainwindow.cpp.

void MainWindow::loadPluginState ( const QDomElement &  root)
private

Definition at line 1278 of file mainwindow.cpp.

void MainWindow::on_actionAbout_triggered ( )
slot

Definition at line 2222 of file mainwindow.cpp.

void MainWindow::on_actionCheatsheet_triggered ( )
slot

Definition at line 2234 of file mainwindow.cpp.

void MainWindow::on_actionClearBuffer_triggered ( )
slot

Definition at line 2009 of file mainwindow.cpp.

void MainWindow::on_actionClearRecentData_triggered ( )
slot

Definition at line 2582 of file mainwindow.cpp.

void MainWindow::on_actionClearRecentLayout_triggered ( )
slot

Definition at line 2597 of file mainwindow.cpp.

void MainWindow::on_actionDeleteAllData_triggered ( )
slot

Definition at line 2612 of file mainwindow.cpp.

void MainWindow::on_actionExit_triggered ( )
slot

Definition at line 1931 of file mainwindow.cpp.

void MainWindow::on_actionFullscreen_triggered ( )
slot

Definition at line 2548 of file mainwindow.cpp.

void MainWindow::on_actionFunctionEditor_triggered ( )
slot

Definition at line 2575 of file mainwindow.cpp.

void MainWindow::on_actionLoadData_triggered ( )
slot

Definition at line 2338 of file mainwindow.cpp.

void MainWindow::on_actionLoadDummyData_triggered ( )
slot

Definition at line 2570 of file mainwindow.cpp.

void MainWindow::on_actionLoadLayout_triggered ( )
slot

Definition at line 2394 of file mainwindow.cpp.

void MainWindow::on_actionReportBug_triggered ( )
slot

Definition at line 2217 of file mainwindow.cpp.

void MainWindow::on_actionSaveAllPlotTabs_triggered ( )
slot

Definition at line 2261 of file mainwindow.cpp.

void MainWindow::on_actionSaveLayout_triggered ( )
slot

Definition at line 2414 of file mainwindow.cpp.

void MainWindow::on_actionStartStreaming ( QString  streamer_name)
slot

Definition at line 1208 of file mainwindow.cpp.

void MainWindow::on_actionStopStreaming_triggered ( )
slot

Definition at line 1902 of file mainwindow.cpp.

void MainWindow::on_actionSupportPlotJuggler_triggered ( )
slot

Definition at line 2250 of file mainwindow.cpp.

void MainWindow::on_addMathPlot ( const std::string &  linked_name)
slot

Definition at line 2078 of file mainwindow.cpp.

void MainWindow::on_editMathPlot ( const std::string &  plot_name)
slot

Definition at line 2083 of file mainwindow.cpp.

void MainWindow::on_pushButtonActivateGrid_toggled ( bool  checked)
slot

Definition at line 1981 of file mainwindow.cpp.

void MainWindow::on_pushButtonOptions_toggled ( bool  checked)
slot

Definition at line 1950 of file mainwindow.cpp.

void MainWindow::on_pushButtonPlay_toggled ( bool  checked)
slot

Definition at line 1997 of file mainwindow.cpp.

void MainWindow::on_pushButtonRatio_toggled ( bool  checked)
slot

Definition at line 1989 of file mainwindow.cpp.

void MainWindow::on_pushButtonRemoveTimeOffset_toggled ( bool  checked)
slot

Definition at line 1936 of file mainwindow.cpp.

void MainWindow::on_pushButtonStreaming_toggled ( bool  streaming)
slot

Definition at line 1738 of file mainwindow.cpp.

void MainWindow::on_pushButtonTimeTracker_pressed ( )
slot

Definition at line 2032 of file mainwindow.cpp.

void MainWindow::on_pushButtonUseDateTime_toggled ( bool  checked)
slot

Definition at line 2027 of file mainwindow.cpp.

void MainWindow::on_refreshMathPlot ( const std::string &  plot_name)
slot

Definition at line 2088 of file mainwindow.cpp.

void MainWindow::on_splitterMoved ( int  ,
int   
)
slot

Definition at line 611 of file mainwindow.cpp.

void MainWindow::on_streamingSpinBox_valueChanged ( int  value)
slot

Definition at line 1867 of file mainwindow.cpp.

void MainWindow::on_streamingToggled ( )
slot

Definition at line 1785 of file mainwindow.cpp.

void MainWindow::on_tabbedAreaDestroyed ( QObject *  object)
slot

Definition at line 1617 of file mainwindow.cpp.

void MainWindow::onCreateFloatingWindow ( PlotMatrix first_tab = nullptr)
slot

Definition at line 1634 of file mainwindow.cpp.

void MainWindow::onDeleteMultipleCurves ( const std::vector< std::string > &  curve_names)
slot

Definition at line 815 of file mainwindow.cpp.

void MainWindow::onFloatingWindowDestroyed ( QObject *  object)
slot

Definition at line 1622 of file mainwindow.cpp.

void MainWindow::onPlaybackLoop ( )
slot

Definition at line 2181 of file mainwindow.cpp.

void MainWindow::onPlotAdded ( PlotWidget plot)
slot

Definition at line 631 of file mainwindow.cpp.

void MainWindow::onPlotMatrixAdded ( PlotMatrix matrix)
slot

Definition at line 668 of file mainwindow.cpp.

void MainWindow::onRedoInvoked ( )
slot

Definition at line 234 of file mainwindow.cpp.

void MainWindow::onSwapPlots ( PlotWidget source,
PlotWidget destination 
)
slot

Definition at line 1696 of file mainwindow.cpp.

void MainWindow::onTimeSlider_valueChanged ( double  abs_time)
slot

Definition at line 340 of file mainwindow.cpp.

void MainWindow::onTrackerMovedFromWidget ( QPointF  pos)
slot

Definition at line 329 of file mainwindow.cpp.

void MainWindow::onTrackerTimeUpdated ( double  absolute_time,
bool  do_replot 
)
slot

Definition at line 346 of file mainwindow.cpp.

void MainWindow::onUndoableChange ( )
slot

Definition at line 214 of file mainwindow.cpp.

void MainWindow::onUndoInvoked ( )
slot

Definition at line 250 of file mainwindow.cpp.

void MainWindow::onUpdateLeftTableValues ( )
slot

Definition at line 267 of file mainwindow.cpp.

void MainWindow::rearrangeGridLayout ( )
private
void MainWindow::requestRemoveCurveByName ( const std::string &  name)
signal
void MainWindow::resizeEvent ( QResizeEvent *  )
slot

Definition at line 625 of file mainwindow.cpp.

QDomElement MainWindow::savePluginState ( QDomDocument &  doc)
private

Definition at line 1315 of file mainwindow.cpp.

void MainWindow::updateDataAndReplot ( bool  replot_hidden_tabs)
slot

Definition at line 1801 of file mainwindow.cpp.

void MainWindow::updatedDisplayTime ( )
private

Definition at line 1956 of file mainwindow.cpp.

void MainWindow::updateRecentDataMenu ( QStringList  new_filenames)
private

Definition at line 846 of file mainwindow.cpp.

void MainWindow::updateRecentLayoutMenu ( QStringList  new_filenames)
private

Definition at line 887 of file mainwindow.cpp.

void MainWindow::updateTimeOffset ( )
private

Definition at line 1681 of file mainwindow.cpp.

void MainWindow::updateTimeSlider ( )
private

Definition at line 1669 of file mainwindow.cpp.

bool MainWindow::xmlLoadState ( QDomDocument  state_document)
private

Definition at line 753 of file mainwindow.cpp.

QDomDocument MainWindow::xmlSaveState ( ) const
private

Definition at line 674 of file mainwindow.cpp.

Member Data Documentation

bool MainWindow::_autostart_publishers
private

Definition at line 115 of file mainwindow.h.

DataStreamer* MainWindow::_current_streamer
private

Definition at line 106 of file mainwindow.h.

CurveListPanel* MainWindow::_curvelist_widget
private

Definition at line 98 of file mainwindow.h.

CustomPlotMap MainWindow::_custom_plots
private

Definition at line 101 of file mainwindow.h.

std::map<QString,DataLoader*> MainWindow::_data_loader
private

Definition at line 103 of file mainwindow.h.

std::map<QString,DataStreamer*> MainWindow::_data_streamer
private

Definition at line 105 of file mainwindow.h.

bool MainWindow::_disable_undo_logging
private

Definition at line 111 of file mainwindow.h.

QShortcut MainWindow::_fullscreen_shortcut
private

Definition at line 92 of file mainwindow.h.

std::vector<FileLoadInfo> MainWindow::_loaded_datafiles
private

Definition at line 119 of file mainwindow.h.

TabbedPlotWidget* MainWindow::_main_tabbed_widget
private

Definition at line 88 of file mainwindow.h.

PlotDataMapRef MainWindow::_mapped_plot_data
private

Definition at line 100 of file mainwindow.h.

bool MainWindow::_minimized
private

Definition at line 96 of file mainwindow.h.

QShortcut MainWindow::_playback_shotcut
private

Definition at line 94 of file mainwindow.h.

QDateTime MainWindow::_prev_publish_time
private

Definition at line 129 of file mainwindow.h.

QTimer* MainWindow::_publish_timer
private

Definition at line 127 of file mainwindow.h.

QShortcut MainWindow::_redo_shortcut
private

Definition at line 91 of file mainwindow.h.

std::deque<QDomDocument> MainWindow::_redo_states
private

Definition at line 109 of file mainwindow.h.

QTimer* MainWindow::_replot_timer
private

Definition at line 126 of file mainwindow.h.

std::map<QString,StatePublisher*> MainWindow::_state_publisher
private

Definition at line 104 of file mainwindow.h.

QShortcut MainWindow::_streaming_shortcut
private

Definition at line 93 of file mainwindow.h.

bool MainWindow::_test_option
private

Definition at line 113 of file mainwindow.h.

MonitoredValue MainWindow::_time_offset
private

Definition at line 124 of file mainwindow.h.

std::map<CurveTracker::Parameter, QIcon> MainWindow::_tracker_button_icons
private

Definition at line 122 of file mainwindow.h.

CurveTracker::Parameter MainWindow::_tracker_param
private

Definition at line 120 of file mainwindow.h.

double MainWindow::_tracker_time
private

Definition at line 117 of file mainwindow.h.

QShortcut MainWindow::_undo_shortcut
private

Definition at line 90 of file mainwindow.h.

std::deque<QDomDocument> MainWindow::_undo_states
private

Definition at line 108 of file mainwindow.h.

QElapsedTimer MainWindow::_undo_timer
private

Definition at line 110 of file mainwindow.h.

Ui::MainWindow* MainWindow::ui
private

Definition at line 86 of file mainwindow.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:18