Classes | Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ToolboxLuaEditor Class Reference

#include <lua_editor.h>

Inheritance diagram for ToolboxLuaEditor:
Inheritance graph
[legend]

Classes

struct  SavedData
 

Public Slots

void onDelete ()
 
void onLibraryUpdated ()
 
void onReloadLibrary ()
 
void onSave ()
 
bool onShowWidget () override
 
void restoreFunction (const QModelIndex &index)
 
void restoreRecent (const QModelIndex &index)
 
- Public Slots inherited from PJ::ToolboxPlugin
virtual bool onShowWidget ()=0
 

Public Member Functions

void init (PJ::PlotDataMapRef &src_data, PJ::TransformsMap &transform_map) override
 
const char * name () const override
 Name of the plugin type, NOT the particular instance. More...
 
std::pair< QWidget *, WidgetTypeprovidedWidget () const override
 
 ToolboxLuaEditor ()
 
bool xmlLoadState (const QDomElement &parent_element) override
 Override this method to load the status of the plugin from XML. More...
 
bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const override
 Override this method to save the status of the plugin to XML. More...
 
 ~ToolboxLuaEditor () override
 
- Public Member Functions inherited from PJ::ToolboxPlugin
const ParserFactoriesparserFactories () const
 
void setParserFactories (ParserFactories *parsers)
 
 ToolboxPlugin ()=default
 
virtual ~ToolboxPlugin ()=default
 
- Public Member Functions inherited from PJ::PlotJugglerPlugin
virtual const std::vector< QAction * > & availableActions ()
 
virtual bool isDebugPlugin ()
 
virtual QWidget * optionsWidget ()
 optionsWidget pointer to a persistent widget used to set the plugin options . More...
 
 PlotJugglerPlugin ()=default
 
QDomElement xmlSaveState (QDomDocument &doc) const
 

Private Member Functions

bool eventFilter (QObject *obj, QEvent *event) override
 
SavedData getItemData (const QListWidgetItem *item) const
 
void setItemData (QListWidgetItem *item, QString name, QString global_code, QString function_code)
 

Private Attributes

QLuaCompleter_completer
 
DelayedCallback _delay_library_check
 
QStringList _dragging_curves
 
int _font_size
 
PJ::PlotDataMapRef_plot_data = nullptr
 
QString _previous_library
 
PJ::TransformsMap_transforms = nullptr
 
QWidget * _widget
 
Ui::LuaEditor * ui
 

Additional Inherited Members

- Public Types inherited from PJ::ToolboxPlugin
enum  WidgetType { FLOATING, FIXED }
 
- Signals inherited from PJ::ToolboxPlugin
void closed ()
 
void importData (PlotDataMapRef &new_data, bool remove_old)
 
void plotCreated (std::string plot_name, bool is_custom=true)
 

Detailed Description

Definition at line 21 of file lua_editor.h.

Constructor & Destructor Documentation

◆ ToolboxLuaEditor()

ToolboxLuaEditor::ToolboxLuaEditor ( )

Definition at line 16 of file lua_editor.cpp.

◆ ~ToolboxLuaEditor()

ToolboxLuaEditor::~ToolboxLuaEditor ( )
override

Definition at line 107 of file lua_editor.cpp.

Member Function Documentation

◆ eventFilter()

bool ToolboxLuaEditor::eventFilter ( QObject *  obj,
QEvent *  event 
)
overrideprivate

Definition at line 435 of file lua_editor.cpp.

◆ getItemData()

ToolboxLuaEditor::SavedData ToolboxLuaEditor::getItemData ( const QListWidgetItem *  item) const
private

Definition at line 519 of file lua_editor.cpp.

◆ init()

void ToolboxLuaEditor::init ( PJ::PlotDataMapRef src_data,
PJ::TransformsMap transform_map 
)
overridevirtual

Implements PJ::ToolboxPlugin.

Definition at line 117 of file lua_editor.cpp.

◆ name()

const char * ToolboxLuaEditor::name ( ) const
overridevirtual

Name of the plugin type, NOT the particular instance.

Implements PJ::PlotJugglerPlugin.

Definition at line 112 of file lua_editor.cpp.

◆ onDelete

void ToolboxLuaEditor::onDelete ( )
slot

Definition at line 342 of file lua_editor.cpp.

◆ onLibraryUpdated

void ToolboxLuaEditor::onLibraryUpdated ( )
slot

Definition at line 371 of file lua_editor.cpp.

◆ onReloadLibrary

void ToolboxLuaEditor::onReloadLibrary ( )
slot

Definition at line 411 of file lua_editor.cpp.

◆ onSave

void ToolboxLuaEditor::onSave ( )
slot

Definition at line 251 of file lua_editor.cpp.

◆ onShowWidget

bool ToolboxLuaEditor::onShowWidget ( )
overrideslot

Definition at line 201 of file lua_editor.cpp.

◆ providedWidget()

std::pair< QWidget *, ToolboxPlugin::WidgetType > ToolboxLuaEditor::providedWidget ( ) const
overridevirtual

Implements PJ::ToolboxPlugin.

Definition at line 123 of file lua_editor.cpp.

◆ restoreFunction

void ToolboxLuaEditor::restoreFunction ( const QModelIndex &  index)
slot

Definition at line 362 of file lua_editor.cpp.

◆ restoreRecent

void ToolboxLuaEditor::restoreRecent ( const QModelIndex &  index)
slot

Definition at line 353 of file lua_editor.cpp.

◆ setItemData()

void ToolboxLuaEditor::setItemData ( QListWidgetItem *  item,
QString  name,
QString  global_code,
QString  function_code 
)
private

Definition at line 529 of file lua_editor.cpp.

◆ xmlLoadState()

bool ToolboxLuaEditor::xmlLoadState ( const QDomElement &  parent_element)
overridevirtual

Override this method to load the status of the plugin from XML.

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 168 of file lua_editor.cpp.

◆ xmlSaveState()

bool ToolboxLuaEditor::xmlSaveState ( QDomDocument &  doc,
QDomElement &  parent_element 
) const
overridevirtual

Override this method to save the status of the plugin to XML.

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 128 of file lua_editor.cpp.

Member Data Documentation

◆ _completer

QLuaCompleter* ToolboxLuaEditor::_completer
private

Definition at line 68 of file lua_editor.h.

◆ _delay_library_check

DelayedCallback ToolboxLuaEditor::_delay_library_check
private

Definition at line 71 of file lua_editor.h.

◆ _dragging_curves

QStringList ToolboxLuaEditor::_dragging_curves
private

Definition at line 66 of file lua_editor.h.

◆ _font_size

int ToolboxLuaEditor::_font_size
private

Definition at line 70 of file lua_editor.h.

◆ _plot_data

PJ::PlotDataMapRef* ToolboxLuaEditor::_plot_data = nullptr
private

Definition at line 62 of file lua_editor.h.

◆ _previous_library

QString ToolboxLuaEditor::_previous_library
private

Definition at line 73 of file lua_editor.h.

◆ _transforms

PJ::TransformsMap* ToolboxLuaEditor::_transforms = nullptr
private

Definition at line 63 of file lua_editor.h.

◆ _widget

QWidget* ToolboxLuaEditor::_widget
private

Definition at line 59 of file lua_editor.h.

◆ ui

Ui::LuaEditor* ToolboxLuaEditor::ui
private

Definition at line 60 of file lua_editor.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:30