-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmmextractormainwindow.h
More file actions
48 lines (44 loc) · 1.05 KB
/
mmextractormainwindow.h
File metadata and controls
48 lines (44 loc) · 1.05 KB
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
#ifndef MMEXTRACTORMAINWINDOW_H
#define MMEXTRACTORMAINWINDOW_H
#include <QMainWindow>
#include <QTreeWidget>
#include <QAudioOutput>
#include <QAudioFormat>
#include <QHBoxLayout>
#include <QTextEdit>
#include <QMediaPlayer>
#include <QBuffer>
#include <QAudioDecoder>
#include <QDir>
#include <QMenu>
#include "mmarchiveparser.h"
#include "audioplayer.h"
class MMExtractorMainWindow : public QMainWindow
{
Q_OBJECT
//gui
QTreeWidget* _tree;
//menu bar
QMenu* fileMenu;
QAction* selectFileAction;
QAction* exitFileAction;
//audio
AudioPlayer* _audioPlayer;
//parser
MMArchiveParser _parser;
//other
QString currentSnd;
QMenu treeWidgetContextMenu;
QDir saveDir;
void fillTree();
public:
MMExtractorMainWindow(QWidget *parent = 0);
~MMExtractorMainWindow();
public slots:
void itemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
void selectFile();
void showTreeContextMenu(const QPoint& pos);
void exportSounds(const QList<QTreeWidgetItem*>& items);
void exportSelectedSounds();
};
#endif // MMEXTRACTORMAINWINDOW_H