Add some accelerator keys to the Actions menu.
[Rockbox.git] / rbutil / rbutilqt / browsedirtree.h
blob3c771c41f1274d73fc97e670470b154860a59756
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Riebeling
10 * $Id$
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef BROWSEDIRTREE_H
21 #define BROWSEDIRTREE_H
23 #include <QtGui>
24 #include "ui_browsedirtreefrm.h"
26 class BrowseDirtree : public QDialog
28 Q_OBJECT
30 public:
31 BrowseDirtree(QWidget *parent = 0, const QString &caption="");
32 void setFilter(const QDir::Filters&);
33 void setDir(const QDir&);
34 void setDir(const QString&);
35 QString getSelected();
36 void setRoot(const QString&);
38 signals:
39 void itemChanged(QString);
41 private:
42 Ui::BrowseDirtreeFrm ui;
43 QDirModel model;
45 private slots:
46 void accept(void);
49 #endif