#ifndef EDITORSNIPPETWIDGET_H #define EDITORSNIPPETWIDGET_H #include #include "settingswidget.h" #include "../codesnippetsmanager.h" namespace Ui { class EditorSnippetWidget; } class EditorSnippetWidget : public SettingsWidget { Q_OBJECT public: explicit EditorSnippetWidget(const QString& name, const QString& group, QWidget *parent = nullptr); ~EditorSnippetWidget(); private: Ui::EditorSnippetWidget *ui; CodeSnippetsModel mModel; private: bool mUpdatingCode; // SettingsWidget interface protected: void doLoad() override; void doSave() override; private slots: void on_btnRemove_clicked(); void on_btnAdd_clicked(); }; #endif // EDITORSNIPPETWIDGET_H