all repos — mgba @ 480415c51e8a3f1af0535042a2dbaf35058e82c8

mGBA Game Boy Advance Emulator

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
25signals:
26	void doneLoading();
27	void accepted();
28
29public slots:
30	void setDirectory(const QString&);
31
32private slots:
33	void resizeColumns();
34
35private:
36	Ui::LibraryView m_ui;
37
38	LibraryModel m_model;
39};
40
41}
42
43#endif