2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** 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
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2011-02-22 12:58:32 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-02-22 12:58:32 +01:00
|
|
|
|
2012-11-10 23:29:43 +01:00
|
|
|
#include "debuggersourcepathmappingwidget.h"
|
2011-02-22 12:58:32 +01:00
|
|
|
|
|
|
|
|
#include <coreplugin/dialogs/ioptionspage.h>
|
|
|
|
|
#include <utils/savedaction.h>
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QPointer>
|
2012-11-10 23:29:43 +01:00
|
|
|
#include <QSharedPointer>
|
2013-03-21 17:10:19 +01:00
|
|
|
|
2013-03-25 14:21:53 +01:00
|
|
|
QT_BEGIN_NAMESPACE
|
2013-03-21 17:10:19 +01:00
|
|
|
class QSpinBox;
|
2013-03-25 14:21:53 +01:00
|
|
|
QT_END_NAMESPACE
|
2011-03-04 16:21:57 +01:00
|
|
|
|
2011-02-22 12:58:32 +01:00
|
|
|
namespace Debugger {
|
|
|
|
|
namespace Internal {
|
2012-11-10 23:29:43 +01:00
|
|
|
|
2011-03-04 16:21:57 +01:00
|
|
|
class GlobalDebuggerOptions;
|
2014-05-16 17:32:07 +02:00
|
|
|
class CommonOptionsPageWidget;
|
2011-02-22 12:58:32 +01:00
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// CommonOptionsPage
|
|
|
|
|
//
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
class CommonOptionsPage : public Core::IOptionsPage
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2011-03-04 16:21:57 +01:00
|
|
|
explicit CommonOptionsPage(const QSharedPointer<GlobalDebuggerOptions> &go);
|
2012-05-22 11:17:13 +02:00
|
|
|
~CommonOptionsPage();
|
2011-02-22 12:58:32 +01:00
|
|
|
|
|
|
|
|
// IOptionsPage
|
2013-12-03 14:17:03 +01:00
|
|
|
QWidget *widget();
|
2011-02-22 12:58:32 +01:00
|
|
|
void apply();
|
|
|
|
|
void finish();
|
|
|
|
|
|
2012-08-28 14:37:18 +02:00
|
|
|
static QString msgSetBreakpointAtFunction(const char *function);
|
|
|
|
|
static QString msgSetBreakpointAtFunctionToolTip(const char *function,
|
|
|
|
|
const QString &hint = QString());
|
|
|
|
|
|
2011-02-22 12:58:32 +01:00
|
|
|
private:
|
2011-03-04 16:21:57 +01:00
|
|
|
const QSharedPointer<GlobalDebuggerOptions> m_options;
|
|
|
|
|
QSharedPointer<Utils::SavedActionSet> m_group;
|
|
|
|
|
QPointer<CommonOptionsPageWidget> m_widget;
|
2011-02-22 12:58:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2012-05-14 15:11:11 +02:00
|
|
|
// LocalsAndExpressionsOptionsPage
|
2011-02-22 12:58:32 +01:00
|
|
|
//
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2012-05-14 15:11:11 +02:00
|
|
|
class LocalsAndExpressionsOptionsPage : public Core::IOptionsPage
|
2011-02-22 12:58:32 +01:00
|
|
|
{
|
2014-07-31 13:59:09 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
2011-02-22 12:58:32 +01:00
|
|
|
public:
|
2012-05-22 11:17:13 +02:00
|
|
|
LocalsAndExpressionsOptionsPage();
|
2011-02-22 12:58:32 +01:00
|
|
|
|
|
|
|
|
// IOptionsPage
|
2013-12-03 14:17:03 +01:00
|
|
|
QWidget *widget();
|
2011-02-22 12:58:32 +01:00
|
|
|
void apply();
|
|
|
|
|
void finish();
|
|
|
|
|
|
|
|
|
|
private:
|
2013-12-03 14:17:03 +01:00
|
|
|
QPointer<QWidget> m_widget;
|
2011-02-22 12:58:32 +01:00
|
|
|
Utils::SavedActionSet m_group;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Debugger
|