-
Notifications
You must be signed in to change notification settings - Fork 57
/
ext2explore.h
82 lines (70 loc) · 2.16 KB
/
ext2explore.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/**
* Ext2read
* File: ext2explore.h
**/
/**
* Copyright (C) 2005, 2010 by Manish Regmi (regmi dot manish at gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**/
#ifndef EXT2EXPLORE_H
#define EXT2EXPLORE_H
#include <QMainWindow>
#include <QStandardItemModel>
#include <QListView>
#include <QTreeView>
#include <QSplitter>
#include <QTextCodec>
#include "ext2read.h"
#include "ext2properties.h"
#include "ext2about.h"
#include "ext2copyfile.h"
namespace Ui {
class Ext2Explore;
}
class Ext2Explore : public QMainWindow {
Q_OBJECT
public:
Ext2Explore(QWidget *parent = 0);
~Ext2Explore();
protected:
void changeEvent(QEvent *e);
private:
Ui::Ext2Explore *ui;
Ext2Properties property;
Ext2About about;
Ext2CopyFile copyfile;
QItemSelectionModel *selectionModel;
QStandardItemModel *filemodel;
QStandardItem *root;
Ext2Read *app;
QTextCodec *codec;
void init_root_fs();
QString handle_mime(string file, uint16_t mode);
void delete_children(QStandardItem *parent);
void delete_file_tree();
private slots:
void on_action_Save_triggered();
void on_actionOpen_Image_triggered();
void on_action_Rescan_System_triggered();
void on_action_About_triggered();
void on_actionP_roperties_triggered();
void on_action_Exit_triggered();
void on_action_item_clicked(const QModelIndex &index);
void on_action_item_dbclicked(const QModelIndex &index);
void ext2_context_menu(const QPoint &);
};
#endif // EXT2EXPLORE_H