mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2024-11-22 00:31:04 +00:00
47 lines
918 B
C++
47 lines
918 B
C++
#ifndef CATALOGWIDGET_H
|
|
#define CATALOGWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QListWidgetItem>
|
|
|
|
#include "diskfile.h"
|
|
|
|
namespace Ui {
|
|
class CatalogWidget;
|
|
}
|
|
|
|
class CatalogWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
|
|
public:
|
|
explicit CatalogWidget(QWidget *parent = 0);
|
|
~CatalogWidget();
|
|
|
|
public slots:
|
|
void prepForNewDisk(QString filename, DiskFile *disk);
|
|
void processNewlyLoadedDisk(QString filename, DiskFile *disk);
|
|
void unloadDisk(DiskFile *disk);
|
|
|
|
signals:
|
|
void newFileSelected(DiskFile *disk, FileDescriptiveEntry entry);
|
|
void openWithDefaultViewer(DiskFile *disk, FileDescriptiveEntry fde);
|
|
|
|
protected:
|
|
QString createToolTip(FileDescriptiveEntry &fde);
|
|
|
|
private slots:
|
|
void itemClicked(QListWidgetItem *item);
|
|
void itemDoubleClicked(QListWidgetItem *item);
|
|
|
|
private:
|
|
|
|
Ui::CatalogWidget *ui;
|
|
|
|
DiskFile *m_disk;
|
|
QString m_diskname;
|
|
};
|
|
|
|
#endif // CATALOGWIDGET_H
|