-
Notifications
You must be signed in to change notification settings - Fork 0
/
Widget.h
42 lines (32 loc) · 927 Bytes
/
Widget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
QT_BEGIN_NAMESPACE
namespace Ui
{
class Widget;
}
QT_END_NAMESPACE
class QDir;
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = nullptr);
~Widget();
private slots:
void on_btn_browse_clicked();
void on_btn_create_clicked();
void on_btn_copy_clicked();
void onTimeout();
private:
bool copyPath(const QString &sourceDir, const QString &destinationDir);
void createFile(const QString &filePath, const QString &fileName, const QString &suffix, const QString &contents);
void baseClassWriter(const QString &path, const QString &className, const QString &baseClassName,
const bool hasForm, bool hasModel);
void provideClassWriter(const QString &path, const QString &className);
void resourceWriter(const QString &path, const QString &className);
private:
Ui::Widget *ui;
};
#endif