summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/browsedirtree.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-07 16:48:45 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-07 16:48:45 +0000
commit3a4e540c3db4309990965455b0686230345be002 (patch)
tree76dcb5cff51e91065cc0fba97b61a30db4e29da9 /rbutil/rbutilqt/browsedirtree.h
parent611c699fd7c2c65d3d7f0d1a1d007cf2cdc42e05 (diff)
downloadrockbox-3a4e540c3db4309990965455b0686230345be002.tar.gz
rockbox-3a4e540c3db4309990965455b0686230345be002.zip
Replace the file selection dialog for the mountpoint with a pure folder tree view. This fixes an issue with the selection dialog which could try opening a nonexisting folder. Only allow to select drive letters on windows. Additionally, remove an old file I forgot earlier.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14233 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/browsedirtree.h')
-rw-r--r--rbutil/rbutilqt/browsedirtree.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/browsedirtree.h b/rbutil/rbutilqt/browsedirtree.h
new file mode 100644
index 0000000000..3b6846c211
--- /dev/null
+++ b/rbutil/rbutilqt/browsedirtree.h
@@ -0,0 +1,46 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 by Dominik Riebeling
10 * $Id: installrb.cpp 13990 2007-07-25 22:26:10Z Dominik Wenger $
11 *
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.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef BROWSEDIRTREE_H
21#define BROWSEDIRTREE_H
22
23#include <QtGui>
24#include "ui_browsedirtreefrm.h"
25
26class BrowseDirtree : public QDialog
27{
28 Q_OBJECT
29
30 public:
31 BrowseDirtree(QWidget *parent = 0);
32 void setFilter(QDir::Filters);
33 void setDir(QDir&);
34
35 signals:
36 void itemChanged(QString);
37
38 private:
39 Ui::BrowseDirtreeFrm ui;
40 QDirModel model;
41
42 private slots:
43 void accept(void);
44};
45
46#endif