aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/config-ui/mainwindow.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-01-30 13:02:08 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-02-01 16:54:17 +0100
commit1405b669609f35470964a6315cead4a750a9ecd8 (patch)
tree763370f20d99dd041ed2be0c44b18ee4aecac3de /src/app/config-ui/mainwindow.h
parentc3eac3c0c0f706bff4f29a52315c3174ce3bdedd (diff)
Introduce new command "config-ui".
Displaying settings information on the command line can get unwieldy when there's more than a couple of profiles, so let's add a GUI for that. It's currently read-only, but will probably get editing capabilities on the future. Change-Id: I5b9db6426efa907fdc6401900659ef637094c08b Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/app/config-ui/mainwindow.h')
-rw-r--r--src/app/config-ui/mainwindow.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/app/config-ui/mainwindow.h b/src/app/config-ui/mainwindow.h
new file mode 100644
index 000000000..e793f69dd
--- /dev/null
+++ b/src/app/config-ui/mainwindow.h
@@ -0,0 +1,59 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Build Suite.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+****************************************************************************/
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+
+QT_BEGIN_NAMESPACE
+namespace Ui { class MainWindow; }
+QT_END_NAMESPACE
+
+class SettingsModel;
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ explicit MainWindow(QWidget *parent = 0);
+ ~MainWindow();
+
+private slots:
+ void adjustColumns();
+ void expandAll();
+ void collapseAll();
+ void reloadSettings();
+
+private:
+ Ui::MainWindow *ui;
+ SettingsModel *m_model;
+};
+
+#endif // MAINWINDOW_H