6f0e5c1231fe81f8364ce9744e8d53ead790a301
[emufront] / src / dialogs / browsefilepathdialog.h
1 /*
2 ** EmuFront
3 ** Copyright 2010 Mikko Keinänen
4 **
5 ** This file is part of EmuFront.
6 **
7 **
8 ** EmuFront is free software: you can redistribute it and/or modify
9 ** it under the terms of the GNU General Public License version 2 as published by
10 ** the Free Software Foundation and appearing in the file gpl.txt included in the
11 ** packaging of this file.
12 **
13 ** EmuFront is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 ** GNU General Public License for more details.
17 **
18 ** You should have received a copy of the GNU General Public License
19 ** along with EmuFront.  If not, see <http://www.gnu.org/licenses/>.
20 */#ifndef BROWSEFILEPATHDIALOG_H
21 #define BROWSEFILEPATHDIALOG_H
22
23 #include "dataobjecteditdialog.h"
24
25 class QLabel;
26 class QPushButton;
27
28 class BrowseFilePathDialog : public DataObjectEditDialog
29 {
30     Q_OBJECT
31 public:
32     BrowseFilePathDialog(QWidget *parent, EmuFrontObject*,
33         Qt::Orientation orientation = Qt::Horizontal);
34
35 signals:
36     void filePathUpdated();
37
38 protected slots:
39     void browseFilePath();
40
41 protected:
42     void connectSignals();
43     void initWidgets();
44     virtual void clear();
45     QLabel *filePathLabel;
46     QPushButton *filePathButton;
47 };
48
49 #endif // BROWSEFILEPATHDIALOG_H