1 // Copyright (c) 2011-2013 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef BITCOIN_QT_INTRO_H
6 #define BITCOIN_QT_INTRO_H
12 class FreespaceChecker;
18 /** Introduction screen (pre-GUI startup).
19 Allows the user to choose a data directory,
20 in which the wallet and block chain will be stored.
22 class Intro : public QDialog
27 explicit Intro(QWidget *parent = 0);
30 QString getDataDirectory();
31 void setDataDirectory(const QString &dataDir);
34 * Determine data directory. Let the user choose if the current one doesn't exist.
36 * @note do NOT call global GetDataDir() before calling this function, this
37 * will cause the wrong path to be cached.
39 static void pickDataDirectory();
42 * Determine default data directory for operating system.
44 static QString getDefaultDataDirectory();
51 void setStatus(int status, const QString &message, quint64 bytesAvailable);
54 void on_dataDirectory_textChanged(const QString &arg1);
55 void on_ellipsisButton_clicked();
56 void on_dataDirDefault_clicked();
57 void on_dataDirCustom_clicked();
67 void checkPath(const QString &dataDir);
68 QString getPathToCheck();
70 friend class FreespaceChecker;
73 #endif // BITCOIN_QT_INTRO_H