Public Types | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
AddCustomPlotDialog Class Reference

#include <function_editor.h>

List of all members.

Public Types

enum  EditorMode { FUNCTION_OR_TIMESERIES, TIMESERIES_ONLY, FUNCTION_ONLY }

Public Member Functions

 AddCustomPlotDialog (PlotDataMapRef &plotMapData, const CustomPlotMap &mapped_custom_plots, QWidget *parent)
void editExistingPlot (CustomPlotPtr data)
CustomPlotPtr getCustomPlotData () const
QString getEquation () const
QString getGlobalVars () const
QString getLinkedData () const
QString getName () const
const PlotDatagetPlotData () const
void setEditorMode (EditorMode mode)
void setLinkedPlotName (const QString &linkedPlotName)
virtual ~AddCustomPlotDialog () override

Private Slots

void on_buttonLoadFunctions_clicked ()
void on_buttonSaveFunctions_clicked ()
void on_curvesListWidget_doubleClicked (const QModelIndex &index)
void on_lineEditFilter_textChanged (const QString &arg1)
void on_nameLineEdit_textChanged (const QString &arg1)
void on_pushButtonCreate_clicked ()
void on_pushButtonSave_clicked ()
void on_snippetsListRecent_currentRowChanged (int currentRow)
void on_snippetsListRecent_doubleClicked (const QModelIndex &index)
void on_snippetsListSaved_currentRowChanged (int currentRow)
void on_snippetsListSaved_doubleClicked (const QModelIndex &index)
void onRenameSaved ()
void recentContextMenu (const QPoint &pos)
void savedContextMenu (const QPoint &pos)

Private Member Functions

bool addToSaved (const QString &name, const SnippetData &snippet)
QByteArray exportSnippets () const
void importSnippets (const QByteArray &xml_text)

Private Attributes

const CustomPlotMap_custom_plots
bool _is_new
CustomPlotPtr _plot
PlotDataMapRef_plot_map_data
SnippetsMap _snipped_recent
SnippetsMap _snipped_saved
int _v_count
Ui::FunctionEditor * ui

Detailed Description

Definition at line 13 of file function_editor.h.


Member Enumeration Documentation

Enumerator:
FUNCTION_OR_TIMESERIES 
TIMESERIES_ONLY 
FUNCTION_ONLY 

Definition at line 25 of file function_editor.h.


Constructor & Destructor Documentation

AddCustomPlotDialog::AddCustomPlotDialog ( PlotDataMapRef plotMapData,
const CustomPlotMap mapped_custom_plots,
QWidget *  parent 
) [explicit]

Definition at line 20 of file function_editor.cpp.

Definition at line 82 of file function_editor.cpp.


Member Function Documentation

bool AddCustomPlotDialog::addToSaved ( const QString &  name,
const SnippetData snippet 
) [private]

Definition at line 400 of file function_editor.cpp.

Definition at line 130 of file function_editor.cpp.

QByteArray AddCustomPlotDialog::exportSnippets ( ) const [private]

Definition at line 198 of file function_editor.cpp.

Definition at line 142 of file function_editor.cpp.

Definition at line 120 of file function_editor.cpp.

Definition at line 115 of file function_editor.cpp.

Definition at line 110 of file function_editor.cpp.

QString AddCustomPlotDialog::getName ( ) const

Definition at line 125 of file function_editor.cpp.

void AddCustomPlotDialog::importSnippets ( const QByteArray &  xml_text) [private]

Definition at line 167 of file function_editor.cpp.

Definition at line 331 of file function_editor.cpp.

Definition at line 357 of file function_editor.cpp.

void AddCustomPlotDialog::on_curvesListWidget_doubleClicked ( const QModelIndex &  index) [private, slot]

Definition at line 147 of file function_editor.cpp.

void AddCustomPlotDialog::on_lineEditFilter_textChanged ( const QString &  arg1) [private, slot]

Definition at line 477 of file function_editor.cpp.

void AddCustomPlotDialog::on_nameLineEdit_textChanged ( const QString &  arg1) [private, slot]

Definition at line 317 of file function_editor.cpp.

Definition at line 451 of file function_editor.cpp.

Definition at line 386 of file function_editor.cpp.

void AddCustomPlotDialog::on_snippetsListRecent_currentRowChanged ( int  currentRow) [private, slot]

Definition at line 229 of file function_editor.cpp.

void AddCustomPlotDialog::on_snippetsListRecent_doubleClicked ( const QModelIndex &  index) [private, slot]

Definition at line 245 of file function_editor.cpp.

void AddCustomPlotDialog::on_snippetsListSaved_currentRowChanged ( int  currentRow) [private, slot]

Definition at line 207 of file function_editor.cpp.

void AddCustomPlotDialog::on_snippetsListSaved_doubleClicked ( const QModelIndex &  index) [private, slot]

Definition at line 220 of file function_editor.cpp.

void AddCustomPlotDialog::onRenameSaved ( ) [private, slot]

Definition at line 425 of file function_editor.cpp.

void AddCustomPlotDialog::recentContextMenu ( const QPoint &  pos) [private, slot]

Definition at line 254 of file function_editor.cpp.

void AddCustomPlotDialog::savedContextMenu ( const QPoint &  pos) [private, slot]

Definition at line 287 of file function_editor.cpp.

Definition at line 102 of file function_editor.cpp.

void AddCustomPlotDialog::setLinkedPlotName ( const QString &  linkedPlotName)

Definition at line 90 of file function_editor.cpp.


Member Data Documentation

Definition at line 79 of file function_editor.h.

Definition at line 83 of file function_editor.h.

Definition at line 82 of file function_editor.h.

Definition at line 78 of file function_editor.h.

Definition at line 87 of file function_editor.h.

Definition at line 86 of file function_editor.h.

Definition at line 84 of file function_editor.h.

Ui::FunctionEditor* AddCustomPlotDialog::ui [private]

Definition at line 80 of file function_editor.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Wed Jul 3 2019 19:28:05