Public Types | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
AddCustomPlotDialog Class Reference

#include <function_editor.h>

Inheritance diagram for AddCustomPlotDialog:
Inheritance graph
[legend]

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.

AddCustomPlotDialog::~AddCustomPlotDialog ( )
overridevirtual

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.

void AddCustomPlotDialog::editExistingPlot ( CustomPlotPtr  data)

Definition at line 130 of file function_editor.cpp.

QByteArray AddCustomPlotDialog::exportSnippets ( ) const
private

Definition at line 198 of file function_editor.cpp.

CustomPlotPtr AddCustomPlotDialog::getCustomPlotData ( ) const

Definition at line 142 of file function_editor.cpp.

QString AddCustomPlotDialog::getEquation ( ) const

Definition at line 120 of file function_editor.cpp.

QString AddCustomPlotDialog::getGlobalVars ( ) const

Definition at line 115 of file function_editor.cpp.

QString AddCustomPlotDialog::getLinkedData ( ) const

Definition at line 110 of file function_editor.cpp.

QString AddCustomPlotDialog::getName ( ) const

Definition at line 125 of file function_editor.cpp.

const PlotData& AddCustomPlotDialog::getPlotData ( ) const
void AddCustomPlotDialog::importSnippets ( const QByteArray &  xml_text)
private

Definition at line 167 of file function_editor.cpp.

void AddCustomPlotDialog::on_buttonLoadFunctions_clicked ( )
privateslot

Definition at line 331 of file function_editor.cpp.

void AddCustomPlotDialog::on_buttonSaveFunctions_clicked ( )
privateslot

Definition at line 357 of file function_editor.cpp.

void AddCustomPlotDialog::on_curvesListWidget_doubleClicked ( const QModelIndex &  index)
privateslot

Definition at line 147 of file function_editor.cpp.

void AddCustomPlotDialog::on_lineEditFilter_textChanged ( const QString &  arg1)
privateslot

Definition at line 477 of file function_editor.cpp.

void AddCustomPlotDialog::on_nameLineEdit_textChanged ( const QString &  arg1)
privateslot

Definition at line 317 of file function_editor.cpp.

void AddCustomPlotDialog::on_pushButtonCreate_clicked ( )
privateslot

Definition at line 451 of file function_editor.cpp.

void AddCustomPlotDialog::on_pushButtonSave_clicked ( )
privateslot

Definition at line 386 of file function_editor.cpp.

void AddCustomPlotDialog::on_snippetsListRecent_currentRowChanged ( int  currentRow)
privateslot

Definition at line 229 of file function_editor.cpp.

void AddCustomPlotDialog::on_snippetsListRecent_doubleClicked ( const QModelIndex &  index)
privateslot

Definition at line 245 of file function_editor.cpp.

void AddCustomPlotDialog::on_snippetsListSaved_currentRowChanged ( int  currentRow)
privateslot

Definition at line 207 of file function_editor.cpp.

void AddCustomPlotDialog::on_snippetsListSaved_doubleClicked ( const QModelIndex &  index)
privateslot

Definition at line 220 of file function_editor.cpp.

void AddCustomPlotDialog::onRenameSaved ( )
privateslot

Definition at line 425 of file function_editor.cpp.

void AddCustomPlotDialog::recentContextMenu ( const QPoint &  pos)
privateslot

Definition at line 254 of file function_editor.cpp.

void AddCustomPlotDialog::savedContextMenu ( const QPoint &  pos)
privateslot

Definition at line 287 of file function_editor.cpp.

void AddCustomPlotDialog::setEditorMode ( EditorMode  mode)

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

const CustomPlotMap& AddCustomPlotDialog::_custom_plots
private

Definition at line 79 of file function_editor.h.

bool AddCustomPlotDialog::_is_new
private

Definition at line 83 of file function_editor.h.

CustomPlotPtr AddCustomPlotDialog::_plot
private

Definition at line 82 of file function_editor.h.

PlotDataMapRef& AddCustomPlotDialog::_plot_map_data
private

Definition at line 78 of file function_editor.h.

SnippetsMap AddCustomPlotDialog::_snipped_recent
private

Definition at line 87 of file function_editor.h.

SnippetsMap AddCustomPlotDialog::_snipped_saved
private

Definition at line 86 of file function_editor.h.

int AddCustomPlotDialog::_v_count
private

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 Sat Jul 6 2019 03:44:18