diff options
author | Vikas Pachdha <vikas.pachdha@qt.io> | 2017-01-27 11:00:20 +0100 |
---|---|---|
committer | Vikas Pachdha <vikas.pachdha@qt.io> | 2017-07-05 12:29:13 +0000 |
commit | 18638d5560d138182df53fd6ee51215093aa67bd (patch) | |
tree | f5da8014774c2d6d917c9d688cdc882b914601d2 /src/plugins/ios/iossettingswidget.h | |
parent | 4ab18cde0e881eb1949ffd36ec2e52a951cec628 (diff) |
iOS: Add UI for simulator device management
UI under devices tab to enable iOS simulator device management
Task-number: QTCREATORBUG-17602
Change-Id: I66dbf57f07dac107c253518ded5ffd78b8ce4555
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/ios/iossettingswidget.h')
-rw-r--r-- | src/plugins/ios/iossettingswidget.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/plugins/ios/iossettingswidget.h b/src/plugins/ios/iossettingswidget.h index 2fa828489be..65baa384398 100644 --- a/src/plugins/ios/iossettingswidget.h +++ b/src/plugins/ios/iossettingswidget.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. @@ -26,32 +26,40 @@ #pragma once #include "iosconfigurations.h" - -#include <QList> -#include <QString> +#include "simulatorcontrol.h" #include <QWidget> -#include <QAbstractTableModel> namespace Ios { namespace Internal { namespace Ui { class IosSettingsWidget; } +class SimulatorInfoModel; +using SimulatorInfoList = QList<SimulatorInfo>; class IosSettingsWidget : public QWidget { Q_OBJECT + public: - // Todo: This would be so much simpler if it just used Utils::PathChooser!!! IosSettingsWidget(QWidget *parent = 0); ~IosSettingsWidget(); void saveSettings(); private: - void initGui(); + void onStart(); + void onCreate(); + void onReset(); + void onRename(); + void onDelete(); + void onScreenshot(); + void onSelectionChanged(); - Ui::IosSettingsWidget *m_ui; - bool m_saveSettingsRequested; +private: + Ui::IosSettingsWidget *m_ui = nullptr; + bool m_saveSettingsRequested = false; + SimulatorControl *m_simControl = nullptr; + SimulatorInfoModel *m_simInfoModel = nullptr; }; } // namespace Internal |