2011-02-22 12:58:32 +01:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2012-01-26 18:33:46 +01:00
|
|
|
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
2012-07-19 12:26:56 +02:00
|
|
|
** Contact: http://www.qt-project.org/
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** 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.
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
|
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2011-02-22 12:58:32 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef DEBUGGER_COMMONOPTIONSPAGE_H
|
|
|
|
|
#define DEBUGGER_COMMONOPTIONSPAGE_H
|
|
|
|
|
|
|
|
|
|
#include "ui_commonoptionspage.h"
|
2012-05-14 15:11:11 +02:00
|
|
|
#include "ui_localsandexpressionsoptionspage.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 <QSharedPointer>
|
|
|
|
|
#include <QPointer>
|
|
|
|
|
#include <QWidget>
|
2011-03-04 16:21:57 +01:00
|
|
|
|
2011-02-22 12:58:32 +01:00
|
|
|
namespace Debugger {
|
|
|
|
|
namespace Internal {
|
2011-03-04 16:21:57 +01:00
|
|
|
class GlobalDebuggerOptions;
|
2011-02-22 12:58:32 +01:00
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// CommonOptionsPage
|
|
|
|
|
//
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2011-03-04 16:21:57 +01:00
|
|
|
class CommonOptionsPageWidget : public QWidget
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit CommonOptionsPageWidget(const QSharedPointer<Utils::SavedActionSet> &group, QWidget *parent = 0);
|
|
|
|
|
|
|
|
|
|
QString searchKeyWords() const;
|
|
|
|
|
GlobalDebuggerOptions globalOptions() const;
|
|
|
|
|
void setGlobalOptions(const GlobalDebuggerOptions &go);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::CommonOptionsPage m_ui;
|
|
|
|
|
const QSharedPointer<Utils::SavedActionSet> m_group;
|
|
|
|
|
};
|
|
|
|
|
|
2011-02-22 12:58:32 +01:00
|
|
|
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
|
|
|
|
|
QWidget *createPage(QWidget *parent);
|
|
|
|
|
void apply();
|
|
|
|
|
void finish();
|
|
|
|
|
bool matches(const QString &s) const;
|
|
|
|
|
|
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;
|
2011-02-22 12:58:32 +01:00
|
|
|
QString m_searchKeywords;
|
2011-03-04 16:21:57 +01:00
|
|
|
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
|
|
|
{
|
|
|
|
|
public:
|
2012-05-22 11:17:13 +02:00
|
|
|
LocalsAndExpressionsOptionsPage();
|
2011-02-22 12:58:32 +01:00
|
|
|
|
|
|
|
|
// IOptionsPage
|
|
|
|
|
QWidget *createPage(QWidget *parent);
|
|
|
|
|
void apply();
|
|
|
|
|
void finish();
|
|
|
|
|
bool matches(const QString &s) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::DebuggingHelperOptionPage m_ui;
|
|
|
|
|
Utils::SavedActionSet m_group;
|
|
|
|
|
QString m_searchKeywords;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Debugger
|
|
|
|
|
|
|
|
|
|
#endif // DEBUGGER_COMMONOPTIONSPAGE_H
|