diff options
Diffstat (limited to 'src/plugins/projectexplorer/sessiondialog.h')
-rw-r--r-- | src/plugins/projectexplorer/sessiondialog.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/sessiondialog.h b/src/plugins/projectexplorer/sessiondialog.h index fc181856e4..9891fd9aea 100644 --- a/src/plugins/projectexplorer/sessiondialog.h +++ b/src/plugins/projectexplorer/sessiondialog.h @@ -38,6 +38,11 @@ #include "ui_sessiondialog.h" +QT_BEGIN_NAMESPACE +class QLineEdit; +class QPushButton; +QT_END_NAMESPACE + namespace ProjectExplorer { class SessionManager; @@ -69,6 +74,25 @@ private: SessionManager *m_sessionManager; }; +class SessionNameInputDialog : public QDialog +{ + Q_OBJECT +public: + SessionNameInputDialog(const QStringList &sessions, QWidget *parent = 0); + + void setValue(const QString &value); + QString value() const; + bool isSwitchToRequested() const; + +private slots: + void clicked(QAbstractButton *button); + +private: + QLineEdit *m_newSessionLineEdit; + QPushButton *m_switchToButton; + bool m_usedSwitchTo; +}; + } // namespace Internal } // namespace ProjectExplorer |