-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
64 lines (51 loc) · 1.13 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "players/picturerender.h"
#include "players/flicplayer.h"
#include "players/xmiplayer.h"
#include "players/waveplayer.h"
#include <QMainWindow>
#include <QString>
class QDir;
class QModelIndex;
class QSettings;
namespace model {
class Image;
class Video;
class Music;
class Voice;
class Text;
class Palette;
}
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void openDir();
void indicatePixelPosition(int x, int y);
void indicateColorIndex(int index);
signals:
void directoryOpened(const QString& dir);
private:
Ui::MainWindow *ui;
QSettings *m_Settings;
QString m_LastDir;
PictureRender m_PicRender;
FlicPlayer m_FlicPlayer;
XmiPlayer m_XmiPlayer;
WavePlayer m_WavePlayer;
model::Image* m_ImageModel;
model::Video* m_VideoModel;
model::Music* m_MusicModel;
model::Voice* m_VoiceModel;
model::Text* m_TextModel;
model::Palette* m_PaletteModel;
QPoint m_PixelPosition;
};
#endif // MAINWINDOW_H