2016-10-27 22:46:08 +00:00
|
|
|
#ifndef DISKEXPLORER_H
|
|
|
|
#define DISKEXPLORER_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
2016-10-28 05:48:18 +00:00
|
|
|
#include "catalogwidget.h"
|
|
|
|
#include "DiskExplorerMapWidget.h"
|
|
|
|
#include "diskfile.h"
|
|
|
|
#include "hrcgcontrolsinfo.h"
|
|
|
|
#include "hexconverter.h"
|
|
|
|
|
|
|
|
#include <QFrame>
|
|
|
|
|
|
|
|
|
2016-10-27 22:46:08 +00:00
|
|
|
class DiskExplorer : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit DiskExplorer(QWidget *parent = 0);
|
|
|
|
|
|
|
|
signals:
|
2016-10-28 05:48:18 +00:00
|
|
|
void diskFileLoading(QString filename, DiskFile *file);
|
|
|
|
void diskFileLoaded(QString filename, DiskFile *file);
|
|
|
|
void diskFileLoadFailed(QString filename, DiskFile *file);
|
|
|
|
void diskFileUnloading(DiskFile *file);
|
|
|
|
void diskFileUnloaded();
|
2016-10-27 22:46:08 +00:00
|
|
|
|
|
|
|
public slots:
|
2016-10-28 05:48:18 +00:00
|
|
|
void unloadDiskFile();
|
|
|
|
void loadDiskFile(QString filename);
|
|
|
|
void showLoadDialog();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void handleDiskItemSelectedDefaultOpen(DiskFile *disk, FileDescriptiveEntry fde);
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void initUi();
|
|
|
|
|
|
|
|
private:
|
|
|
|
CatalogWidget *m_cw;
|
|
|
|
DiskExplorerMapWidget *m_demw;
|
|
|
|
|
|
|
|
DiskFile *m_disk;
|
|
|
|
|
|
|
|
HRCGControlsInfo *m_hrcgDialog;
|
|
|
|
HexConverter *m_hexConverter;
|
|
|
|
|
|
|
|
QAction *m_action_Unload_Disk_Image;
|
|
|
|
|
2016-10-27 22:46:08 +00:00
|
|
|
};
|
|
|
|
|
2016-10-28 05:48:18 +00:00
|
|
|
#endif // DISKEXPLORER_H
|