-
Notifications
You must be signed in to change notification settings - Fork 1
/
targetfilesystem.h
executable file
·47 lines (35 loc) · 1.02 KB
/
targetfilesystem.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
#ifndef TARGETFILESYSTEM_H
#define TARGETFILESYSTEM_H
#include <QWidget>
#include <QListWidgetItem>
namespace Ui {
class TargetFileSystem;
}
class TargetFileSystem : public QWidget
{
Q_OBJECT
public:
explicit TargetFileSystem(QWidget *parent = 0);
~TargetFileSystem();
signals:
void currentDirChanged(QString newPath);
void openFile(QString file);
void createNewTargetFile(QString name, QByteArray content);
void createNewTargetDir(QString name);
void deleteTargetFile(QString name);
void deleteTargetDir(QString name);
public slots:
void addFiles(QStringList items, QStringList icons);
void on_current_dir_changed(QString dir);
private slots:
void on_listWidget_itemDoubleClicked(QListWidgetItem *item);
void on_comboBox_activated(const QString &arg1);
void on_pushButton_clicked();
void on_pushButton_2_clicked();
private:
Ui::TargetFileSystem *ui;
QString currentPath;
protected:
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
};
#endif // TARGETFILESYSTEM_H