5 #include <QListWidgetItem> 12 #include "QCodeEditor" 13 #include "QLuaHighlighter" 14 #include "QLuaCompleter" 24 Q_PLUGIN_METADATA(IID
"facontidavide.PlotJuggler3.Toolbox")
32 const char*
name()
const override;
37 std::pair<QWidget*, WidgetType> providedWidget()
const override;
39 bool xmlSaveState(QDomDocument& doc, QDomElement& parent_element)
const override;
41 bool xmlLoadState(
const QDomElement& parent_element)
override;
45 bool onShowWidget()
override;
51 void restoreRecent(
const QModelIndex &index);
53 void restoreFunction(
const QModelIndex &index);
55 void onLibraryUpdated();
57 void onReloadLibrary();
67 bool eventFilter(QObject *obj, QEvent *event)
override;
84 SavedData getItemData(
const QListWidgetItem* item)
const;
86 void setItemData(QListWidgetItem* item, QString name, QString global_code, QString function_code);
89 #endif // LUA_EDITOR_H
void init(const M_string &remappings)
std::unordered_map< std::string, std::shared_ptr< TransformFunction > > TransformsMap
Class, that describes completer with glsl specific types and functions.