Replace the file selection dialog for the mountpoint with a pure folder tree view...
[Rockbox.git] / rbutil / rbutilqt / configure.h
blob43bc117567fb28d74554135e8852261720c3cab7
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 CONFIGURE_H
21 #define CONFIGURE_H
23 #include "ui_configurefrm.h"
24 #include "browsedirtree.h"
25 #include <QtGui>
27 class Config : public QDialog
29 Q_OBJECT
30 public:
31 Config(QWidget *parent = 0);
32 void setUserSettings(QSettings*);
33 void setDevices(QSettings*);
35 signals:
36 void settingsUpdated(void);
38 public slots:
39 void accept(void);
40 void abort(void);
42 private:
43 Ui::ConfigForm ui;
44 QSettings *userSettings;
45 QSettings *devices;
46 QStringList findLanguageFiles(void);
47 QString languageName(const QString&);
48 QMap<QString, QString> lang;
49 QString language;
50 QString programPath;
51 QUrl proxy;
53 BrowseDirtree *browser;
55 private slots:
56 void setNoProxy(bool);
57 void setSystemProxy(bool);
58 void updateLanguage(void);
59 void browseFolder(void);
60 void autodetect(void);
61 void setMountpoint(QString);
64 #endif