-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
49 lines (40 loc) · 959 Bytes
/
mainwindow.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
43
44
45
46
47
48
49
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtWidgets>
class MainWindow : public QWidget
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
private:
QComboBox *catList;
QToolButton *addCat;
QToolButton *delCat;
QComboBox *saveList;
QToolButton *del;
QPlainTextEdit *text;
QPushButton *testbtn;
QHBoxLayout *hblayout1;
QHBoxLayout *hblayout2;
QString HomePath;
QString LastText;
bool fWrite(QString path, QString tofile);
QString fRead(QString path);
void msg(QString text, QString title);
const QString title = "Saver";
public:
QVBoxLayout *vblayout;
public slots:
void categoryAdd();
void categoryRemove();
void categoryChanche();
void textSave();
void textRemove();
void textListChanged();
void listDirs(QString path);
void listFiles(QString path);
void editText();
};
#endif // MAINWINDOW_H