#include <lua_editor.h>
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 *, WidgetType > | providedWidget () 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 ParserFactories * | parserFactories () 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) |
Definition at line 21 of file lua_editor.h.
ToolboxLuaEditor::ToolboxLuaEditor | ( | ) |
Definition at line 16 of file lua_editor.cpp.
|
override |
Definition at line 107 of file lua_editor.cpp.
|
overrideprivate |
Definition at line 435 of file lua_editor.cpp.
|
private |
Definition at line 519 of file lua_editor.cpp.
|
overridevirtual |
Implements PJ::ToolboxPlugin.
Definition at line 117 of file lua_editor.cpp.
|
overridevirtual |
Name of the plugin type, NOT the particular instance.
Implements PJ::PlotJugglerPlugin.
Definition at line 112 of file lua_editor.cpp.
|
slot |
Definition at line 342 of file lua_editor.cpp.
|
slot |
Definition at line 371 of file lua_editor.cpp.
|
slot |
Definition at line 411 of file lua_editor.cpp.
|
slot |
Definition at line 251 of file lua_editor.cpp.
|
overrideslot |
Definition at line 201 of file lua_editor.cpp.
|
overridevirtual |
Implements PJ::ToolboxPlugin.
Definition at line 123 of file lua_editor.cpp.
|
slot |
Definition at line 362 of file lua_editor.cpp.
|
slot |
Definition at line 353 of file lua_editor.cpp.
|
private |
Definition at line 529 of file lua_editor.cpp.
|
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.
|
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.
|
private |
Definition at line 68 of file lua_editor.h.
|
private |
Definition at line 71 of file lua_editor.h.
|
private |
Definition at line 66 of file lua_editor.h.
|
private |
Definition at line 70 of file lua_editor.h.
|
private |
Definition at line 62 of file lua_editor.h.
|
private |
Definition at line 73 of file lua_editor.h.
|
private |
Definition at line 63 of file lua_editor.h.
|
private |
Definition at line 59 of file lua_editor.h.
|
private |
Definition at line 60 of file lua_editor.h.