Changeset View
Changeset View
Standalone View
Standalone View
plugins/externalscript/externalscriptview.h
Show All 39 Lines | 39 | public: | |||
---|---|---|---|---|---|
40 | explicit ExternalScriptView( ExternalScriptPlugin* plugin, QWidget* parent = nullptr ); | 40 | explicit ExternalScriptView( ExternalScriptPlugin* plugin, QWidget* parent = nullptr ); | ||
41 | ~ExternalScriptView() override; | 41 | ~ExternalScriptView() override; | ||
42 | 42 | | |||
43 | /// @return Currently selected script item. | 43 | /// @return Currently selected script item. | ||
44 | ExternalScriptItem* currentItem() const; | 44 | ExternalScriptItem* currentItem() const; | ||
45 | /// @return Item for @p index. | 45 | /// @return Item for @p index. | ||
46 | ExternalScriptItem* itemForIndex(const QModelIndex& index) const; | 46 | ExternalScriptItem* itemForIndex(const QModelIndex& index) const; | ||
47 | 47 | | |||
48 | private slots: | 48 | private Q_SLOTS: | ||
49 | void contextMenu ( const QPoint& pos ); | 49 | void contextMenu ( const QPoint& pos ); | ||
50 | 50 | | |||
51 | void addScript(); | 51 | void addScript(); | ||
52 | void removeScript(); | 52 | void removeScript(); | ||
53 | void editScript(); | 53 | void editScript(); | ||
54 | 54 | | |||
55 | /// disables or enables available actions based on the currently selected item | 55 | /// disables or enables available actions based on the currently selected item | ||
56 | void validateActions(); | 56 | void validateActions(); | ||
Show All 16 Lines |