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

#include <function_editor.h>

Inheritance diagram for FunctionEditorWidget:
Inheritance graph
[legend]

Public Types

enum  EditorMode { CREATE, MODIFY }
 

Public Slots

void on_stylesheetChanged (QString theme)
 

Signals

void accept (std::vector< CustomPlotPtr > plot)
 
void closed ()
 

Public Member Functions

void clear ()
 
void createNewPlot ()
 
void editExistingPlot (CustomPlotPtr data)
 
bool eventFilter (QObject *obj, QEvent *event) override
 
 FunctionEditorWidget (PlotDataMapRef &plotMapData, const TransformsMap &mapped_custom_plots, QWidget *parent)
 
QString getLinkedData () const
 
const PlotDatagetPlotData () const
 
void saveSettings ()
 
void setLinkedPlotName (const QString &linkedPlotName)
 
virtual ~FunctionEditorWidget () override
 

Private Slots

void on_buttonLoadFunctions_clicked ()
 
void on_buttonSaveCurrent_clicked ()
 
void on_buttonSaveFunctions_clicked ()
 
void on_functionText_textChanged ()
 
void on_functionTextBatch_textChanged ()
 
void on_globalVarsText_textChanged ()
 
void on_globalVarsTextBatch_textChanged ()
 
void on_lineEditSource_textChanged (const QString &text)
 
void on_lineEditTab2Filter_textChanged (const QString &arg1)
 
void on_listAdditionalSources_itemSelectionChanged ()
 
void on_listSourcesChanged ()
 
void on_nameLineEdit_textChanged (const QString &arg1)
 
void on_pushButtonCancel_pressed ()
 
void on_pushButtonCreate_clicked ()
 
void on_pushButtonDeleteCurves_clicked ()
 
void on_pushButtonHelp_clicked ()
 
void on_pushButtonHelpTab2_clicked ()
 
void on_snippetsListSaved_currentRowChanged (int currentRow)
 
void on_snippetsListSaved_doubleClicked (const QModelIndex &index)
 
void on_suffixLineEdit_textChanged (const QString &arg1)
 
void on_tabWidget_currentChanged (int index)
 
void onLineEditTab2FilterChanged ()
 
void onRenameSaved ()
 
void onUpdatePreview ()
 
void onUpdatePreviewBatch ()
 
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)
 
void setSemaphore (QLabel *semaphore, QString errors)
 
void updatePreview ()
 

Private Attributes

QStringList _dragging_curves
 
EditorMode _editor_mode
 
PlotDataMapRef _local_plot_data
 
PlotDataMapRef_plot_map_data
 
PlotWidget_preview_widget
 
SnippetsMap _snipped_saved
 
DelayedCallback _tab2_filter
 
const TransformsMap_transform_maps
 
DelayedCallback _update_preview_tab1
 
DelayedCallback _update_preview_tab2
 
int _v_count
 
QLuaCompleterlua_completer_
 
QLuaCompleterlua_completer_batch_
 
Ui::FunctionEditor * ui
 

Detailed Description

Definition at line 18 of file function_editor.h.

Member Enumeration Documentation

◆ EditorMode

Enumerator
CREATE 
MODIFY 

Definition at line 31 of file function_editor.h.

Constructor & Destructor Documentation

◆ FunctionEditorWidget()

FunctionEditorWidget::FunctionEditorWidget ( PlotDataMapRef plotMapData,
const TransformsMap mapped_custom_plots,
QWidget *  parent 
)
explicit

Definition at line 53 of file function_editor.cpp.

◆ ~FunctionEditorWidget()

FunctionEditorWidget::~FunctionEditorWidget ( )
overridevirtual

Definition at line 212 of file function_editor.cpp.

Member Function Documentation

◆ accept

void FunctionEditorWidget::accept ( std::vector< CustomPlotPtr plot)
signal

◆ addToSaved()

bool FunctionEditorWidget::addToSaved ( const QString &  name,
const SnippetData snippet 
)
private

Definition at line 563 of file function_editor.cpp.

◆ clear()

void FunctionEditorWidget::clear ( )

Definition at line 226 of file function_editor.cpp.

◆ closed

void FunctionEditorWidget::closed ( )
signal

◆ createNewPlot()

void FunctionEditorWidget::createNewPlot ( )

Definition at line 242 of file function_editor.cpp.

◆ editExistingPlot()

void FunctionEditorWidget::editExistingPlot ( CustomPlotPtr  data)

Definition at line 249 of file function_editor.cpp.

◆ eventFilter()

bool FunctionEditorWidget::eventFilter ( QObject *  obj,
QEvent *  event 
)
override

Definition at line 281 of file function_editor.cpp.

◆ exportSnippets()

QByteArray FunctionEditorWidget::exportSnippets ( ) const
private

Definition at line 382 of file function_editor.cpp.

◆ getLinkedData()

QString FunctionEditorWidget::getLinkedData ( ) const

Definition at line 237 of file function_editor.cpp.

◆ getPlotData()

const PlotData& FunctionEditorWidget::getPlotData ( ) const

◆ importSnippets()

void FunctionEditorWidget::importSnippets ( const QByteArray &  xml_text)
private

Definition at line 350 of file function_editor.cpp.

◆ on_buttonLoadFunctions_clicked

void FunctionEditorWidget::on_buttonLoadFunctions_clicked ( )
privateslot

Definition at line 473 of file function_editor.cpp.

◆ on_buttonSaveCurrent_clicked

void FunctionEditorWidget::on_buttonSaveCurrent_clicked ( )
privateslot

Definition at line 535 of file function_editor.cpp.

◆ on_buttonSaveFunctions_clicked

void FunctionEditorWidget::on_buttonSaveFunctions_clicked ( )
privateslot

Definition at line 501 of file function_editor.cpp.

◆ on_functionText_textChanged

void FunctionEditorWidget::on_functionText_textChanged ( )
privateslot

Definition at line 986 of file function_editor.cpp.

◆ on_functionTextBatch_textChanged

void FunctionEditorWidget::on_functionTextBatch_textChanged ( )
privateslot

Definition at line 954 of file function_editor.cpp.

◆ on_globalVarsText_textChanged

void FunctionEditorWidget::on_globalVarsText_textChanged ( )
privateslot

Definition at line 981 of file function_editor.cpp.

◆ on_globalVarsTextBatch_textChanged

void FunctionEditorWidget::on_globalVarsTextBatch_textChanged ( )
privateslot

Definition at line 976 of file function_editor.cpp.

◆ on_lineEditSource_textChanged

void FunctionEditorWidget::on_lineEditSource_textChanged ( const QString &  text)
privateslot

Definition at line 734 of file function_editor.cpp.

◆ on_lineEditTab2Filter_textChanged

void FunctionEditorWidget::on_lineEditTab2Filter_textChanged ( const QString &  arg1)
privateslot

Definition at line 949 of file function_editor.cpp.

◆ on_listAdditionalSources_itemSelectionChanged

void FunctionEditorWidget::on_listAdditionalSources_itemSelectionChanged ( )
privateslot

Definition at line 710 of file function_editor.cpp.

◆ on_listSourcesChanged

void FunctionEditorWidget::on_listSourcesChanged ( )
privateslot

Definition at line 696 of file function_editor.cpp.

◆ on_nameLineEdit_textChanged

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

Definition at line 460 of file function_editor.cpp.

◆ on_pushButtonCancel_pressed

void FunctionEditorWidget::on_pushButtonCancel_pressed ( )
privateslot

Definition at line 686 of file function_editor.cpp.

◆ on_pushButtonCreate_clicked

void FunctionEditorWidget::on_pushButtonCreate_clicked ( )
privateslot

Definition at line 615 of file function_editor.cpp.

◆ on_pushButtonDeleteCurves_clicked

void FunctionEditorWidget::on_pushButtonDeleteCurves_clicked ( )
privateslot

Definition at line 716 of file function_editor.cpp.

◆ on_pushButtonHelp_clicked

void FunctionEditorWidget::on_pushButtonHelp_clicked ( )
privateslot

Definition at line 887 of file function_editor.cpp.

◆ on_pushButtonHelpTab2_clicked

void FunctionEditorWidget::on_pushButtonHelpTab2_clicked ( )
privateslot

Definition at line 944 of file function_editor.cpp.

◆ on_snippetsListSaved_currentRowChanged

void FunctionEditorWidget::on_snippetsListSaved_currentRowChanged ( int  currentRow)
privateslot

Definition at line 390 of file function_editor.cpp.

◆ on_snippetsListSaved_doubleClicked

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

Definition at line 423 of file function_editor.cpp.

◆ on_stylesheetChanged

void FunctionEditorWidget::on_stylesheetChanged ( QString  theme)
slot

Definition at line 37 of file function_editor.cpp.

◆ on_suffixLineEdit_textChanged

void FunctionEditorWidget::on_suffixLineEdit_textChanged ( const QString &  arg1)
privateslot

Definition at line 959 of file function_editor.cpp.

◆ on_tabWidget_currentChanged

void FunctionEditorWidget::on_tabWidget_currentChanged ( int  index)
privateslot

Definition at line 964 of file function_editor.cpp.

◆ onLineEditTab2FilterChanged

void FunctionEditorWidget::onLineEditTab2FilterChanged ( )
privateslot

Definition at line 897 of file function_editor.cpp.

◆ onRenameSaved

void FunctionEditorWidget::onRenameSaved ( )
privateslot

Definition at line 591 of file function_editor.cpp.

◆ onUpdatePreview

void FunctionEditorWidget::onUpdatePreview ( )
privateslot

Definition at line 775 of file function_editor.cpp.

◆ onUpdatePreviewBatch

void FunctionEditorWidget::onUpdatePreviewBatch ( )
privateslot

Definition at line 857 of file function_editor.cpp.

◆ savedContextMenu

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

Definition at line 432 of file function_editor.cpp.

◆ saveSettings()

void FunctionEditorWidget::saveSettings ( )

Definition at line 178 of file function_editor.cpp.

◆ setLinkedPlotName()

void FunctionEditorWidget::setLinkedPlotName ( const QString &  linkedPlotName)

Definition at line 221 of file function_editor.cpp.

◆ setSemaphore()

void FunctionEditorWidget::setSemaphore ( QLabel *  semaphore,
QString  errors 
)
private

Definition at line 744 of file function_editor.cpp.

◆ updatePreview()

void FunctionEditorWidget::updatePreview ( )
private

Definition at line 739 of file function_editor.cpp.

Member Data Documentation

◆ _dragging_curves

QStringList FunctionEditorWidget::_dragging_curves
private

Definition at line 127 of file function_editor.h.

◆ _editor_mode

EditorMode FunctionEditorWidget::_editor_mode
private

Definition at line 132 of file function_editor.h.

◆ _local_plot_data

PlotDataMapRef FunctionEditorWidget::_local_plot_data
private

Definition at line 129 of file function_editor.h.

◆ _plot_map_data

PlotDataMapRef& FunctionEditorWidget::_plot_map_data
private

Definition at line 119 of file function_editor.h.

◆ _preview_widget

PlotWidget* FunctionEditorWidget::_preview_widget
private

Definition at line 130 of file function_editor.h.

◆ _snipped_saved

SnippetsMap FunctionEditorWidget::_snipped_saved
private

Definition at line 125 of file function_editor.h.

◆ _tab2_filter

DelayedCallback FunctionEditorWidget::_tab2_filter
private

Definition at line 137 of file function_editor.h.

◆ _transform_maps

const TransformsMap& FunctionEditorWidget::_transform_maps
private

Definition at line 120 of file function_editor.h.

◆ _update_preview_tab1

DelayedCallback FunctionEditorWidget::_update_preview_tab1
private

Definition at line 139 of file function_editor.h.

◆ _update_preview_tab2

DelayedCallback FunctionEditorWidget::_update_preview_tab2
private

Definition at line 140 of file function_editor.h.

◆ _v_count

int FunctionEditorWidget::_v_count
private

Definition at line 123 of file function_editor.h.

◆ lua_completer_

QLuaCompleter* FunctionEditorWidget::lua_completer_
private

Definition at line 134 of file function_editor.h.

◆ lua_completer_batch_

QLuaCompleter* FunctionEditorWidget::lua_completer_batch_
private

Definition at line 135 of file function_editor.h.

◆ ui

Ui::FunctionEditor* FunctionEditorWidget::ui
private

Definition at line 121 of file function_editor.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50