src/platform/qt/LibraryView.h (view raw)
1/* Copyright (c) 2013-2017 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef QGBA_LIBRARY_VIEW
7#define QGBA_LIBRARY_VIEW
8
9#include "LibraryModel.h"
10
11#include "ui_LibraryView.h"
12
13struct VFile;
14
15namespace QGBA {
16
17class LibraryView : public QWidget {
18Q_OBJECT
19
20public:
21 LibraryView(QWidget* parent = nullptr);
22
23 VFile* selectedVFile() const;
24 QPair<QString, QString> selectedPath() const;
25
26signals:
27 void doneLoading();
28 void accepted();
29
30public slots:
31 void setDirectory(const QString&);
32 void addDirectory(const QString&);
33
34private slots:
35 void resizeColumns();
36
37private:
38 Ui::LibraryView m_ui;
39
40 LibraryModel m_model;
41};
42
43}
44
45#endif