2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
2013-01-28 17:12:19 +01:00
|
|
|
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
2012-10-02 09:12:39 +02:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
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
|
|
|
|
|
** 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.
|
2011-02-22 12:58:32 +01:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
2012-10-02 09:12:39 +02:00
|
|
|
** 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
|
2011-02-22 12:58:32 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2011-02-22 12:58:32 +01:00
|
|
|
|
|
|
|
|
#ifndef DEBUGGER_COMMONOPTIONSPAGE_H
|
|
|
|
|
#define DEBUGGER_COMMONOPTIONSPAGE_H
|
|
|
|
|
|
2012-11-10 23:29:43 +01:00
|
|
|
#include "debuggersourcepathmappingwidget.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-11-10 23:29:43 +01:00
|
|
|
#include <QCheckBox>
|
|
|
|
|
#include <QLabel>
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QPointer>
|
2012-11-10 23:29:43 +01:00
|
|
|
#include <QSharedPointer>
|
|
|
|
|
#include <QSpinBox>
|
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;
|
2011-02-22 12:58:32 +01:00
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// CommonOptionsPage
|
|
|
|
|
//
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2011-03-04 16:21:57 +01:00
|
|
|
class CommonOptionsPageWidget : public QWidget
|
|
|
|
|
{
|
2013-01-22 15:49:20 +01:00
|
|
|
Q_OBJECT
|
2011-03-04 16:21:57 +01:00
|
|
|
public:
|
|
|
|
|
explicit CommonOptionsPageWidget(const QSharedPointer<Utils::SavedActionSet> &group, QWidget *parent = 0);
|
|
|
|
|
|
|
|
|
|
QString searchKeyWords() const;
|
|
|
|
|
GlobalDebuggerOptions globalOptions() const;
|
|
|
|
|
void setGlobalOptions(const GlobalDebuggerOptions &go);
|
|
|
|
|
|
|
|
|
|
private:
|
2012-11-10 23:29:43 +01:00
|
|
|
QCheckBox *checkBoxUseAlternatingRowColors;
|
|
|
|
|
QCheckBox *checkBoxFontSizeFollowsEditor;
|
|
|
|
|
QCheckBox *checkBoxUseToolTipsInMainEditor;
|
|
|
|
|
QCheckBox *checkBoxListSourceFiles;
|
|
|
|
|
QCheckBox *checkBoxCloseBuffersOnExit;
|
|
|
|
|
QCheckBox *checkBoxSwitchModeOnExit;
|
|
|
|
|
QCheckBox *checkBoxBringToForegroundOnInterrrupt;
|
|
|
|
|
QCheckBox *checkBoxShowQmlObjectTree;
|
|
|
|
|
QCheckBox *checkBoxBreakpointsFullPath;
|
|
|
|
|
QCheckBox *checkBoxRegisterForPostMortem;
|
2013-03-04 00:42:36 -08:00
|
|
|
QCheckBox *checkBoxWarnOnReleaseBuilds;
|
2012-11-10 23:29:43 +01:00
|
|
|
QLabel *labelMaximalStackDepth;
|
2012-11-11 00:32:33 +01:00
|
|
|
QLabel *labelMaximalStringLength;
|
2012-11-10 23:29:43 +01:00
|
|
|
QSpinBox *spinBoxMaximalStackDepth;
|
2012-11-11 00:32:33 +01:00
|
|
|
QSpinBox *spinBoxMaximalStringLength;
|
2012-11-10 23:29:43 +01:00
|
|
|
|
|
|
|
|
DebuggerSourcePathMappingWidget *sourcesMappingWidget;
|
2011-03-04 16:21:57 +01:00
|
|
|
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
|