aboutsummaryrefslogtreecommitdiff
path: root/VMProtect/templates_window.h
diff options
context:
space:
mode:
authorjmpoep <OriginalEntryPoint@qq.com>2023-12-07 16:51:07 +0800
committerjmpoep <OriginalEntryPoint@qq.com>2023-12-07 16:51:07 +0800
commit28008a746a31abb7909dd86cb0cd413ac8943b0b (patch)
treea30b74b8cad548048c3c1551d652828ab76fa9bd /VMProtect/templates_window.h
downloadvmprotect-3.5.1-master.tar
vmprotect-3.5.1-master.tar.gz
vmprotect-3.5.1-master.tar.bz2
vmprotect-3.5.1-master.zip
first commitHEADmaster
Diffstat (limited to 'VMProtect/templates_window.h')
-rw-r--r--VMProtect/templates_window.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/VMProtect/templates_window.h b/VMProtect/templates_window.h
new file mode 100644
index 0000000..4634ace
--- /dev/null
+++ b/VMProtect/templates_window.h
@@ -0,0 +1,26 @@
+#ifndef TEMPLATES_WINDOW_H
+#define TEMPLATES_WINDOW_H
+
+class TemplatesWindow : public QDialog
+{
+ Q_OBJECT
+public:
+ TemplatesWindow(QWidget *parent = NULL);
+ static void setModel(TemplatesModel *model) { templates_model_ = model; }
+private slots:
+ void helpClicked();
+ void contextMenuRequested(const QPoint &p);
+ void delClicked();
+ void renameClicked();
+ void templateIndexChanged();
+private:
+ ProjectTemplate *selectedTemplate() const;
+ static TemplatesModel *templates_model_;
+ QPushButton *closeButton_;
+ QAction *renameAct_;
+ QAction *delAct_;
+ QMenu *contextMenu_;
+ QTreeView *templateTree_;
+};
+
+#endif \ No newline at end of file