forked from qt-creator/qt-creator
debugger: remove unused member
This commit is contained in:
@@ -48,12 +48,12 @@
|
|||||||
#include <coreplugin/outputpane.h>
|
#include <coreplugin/outputpane.h>
|
||||||
#include <coreplugin/rightpane.h>
|
#include <coreplugin/rightpane.h>
|
||||||
|
|
||||||
#include <projectexplorer/projectexplorerconstants.h>
|
|
||||||
#include <projectexplorer/projectexplorer.h>
|
|
||||||
#include <projectexplorer/session.h>
|
|
||||||
#include <projectexplorer/project.h>
|
#include <projectexplorer/project.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/projectexplorer.h>
|
||||||
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
#include <projectexplorer/runconfiguration.h>
|
#include <projectexplorer/runconfiguration.h>
|
||||||
|
#include <projectexplorer/session.h>
|
||||||
|
#include <projectexplorer/target.h>
|
||||||
|
|
||||||
#include <QtCore/QDebug>
|
#include <QtCore/QDebug>
|
||||||
#include <QtCore/QList>
|
#include <QtCore/QList>
|
||||||
@@ -158,7 +158,6 @@ public:
|
|||||||
QWeakPointer<RunConfiguration> m_previousRunConfiguration;
|
QWeakPointer<RunConfiguration> m_previousRunConfiguration;
|
||||||
|
|
||||||
bool m_initialized;
|
bool m_initialized;
|
||||||
QSettings *m_settings;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *mw)
|
DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *mw)
|
||||||
@@ -173,9 +172,7 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *mw)
|
|||||||
, m_activeDebugLanguages(AnyLanguage)
|
, m_activeDebugLanguages(AnyLanguage)
|
||||||
, m_viewsMenu(0)
|
, m_viewsMenu(0)
|
||||||
, m_initialized(false)
|
, m_initialized(false)
|
||||||
, m_settings(0)
|
{}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebuggerMainWindowPrivate::updateUiOnFileListChange()
|
void DebuggerMainWindowPrivate::updateUiOnFileListChange()
|
||||||
{
|
{
|
||||||
@@ -270,11 +267,6 @@ void DebuggerMainWindow::updateActiveLanguages()
|
|||||||
d->updateUi();
|
d->updateUi();
|
||||||
}
|
}
|
||||||
|
|
||||||
DebuggerLanguages DebuggerMainWindow::supportedLanguages() const
|
|
||||||
{
|
|
||||||
return d->m_supportedLanguages;
|
|
||||||
}
|
|
||||||
|
|
||||||
DebuggerLanguages DebuggerMainWindow::activeDebugLanguages() const
|
DebuggerLanguages DebuggerMainWindow::activeDebugLanguages() const
|
||||||
{
|
{
|
||||||
return d->m_activeDebugLanguages;
|
return d->m_activeDebugLanguages;
|
||||||
@@ -585,37 +577,47 @@ QWidget *DebuggerMainWindow::createContents(IMode *mode)
|
|||||||
|
|
||||||
void DebuggerMainWindow::writeSettings() const
|
void DebuggerMainWindow::writeSettings() const
|
||||||
{
|
{
|
||||||
d->m_settings->beginGroup(QLatin1String("DebugMode.CppMode"));
|
ICore *core = ICore::instance();
|
||||||
|
QTC_ASSERT(core, return);
|
||||||
|
QSettings *settings = core->settings();
|
||||||
|
QTC_ASSERT(settings, return);
|
||||||
|
|
||||||
|
settings->beginGroup(QLatin1String("DebugMode.CppMode"));
|
||||||
QHashIterator<QString, QVariant> it(d->m_dockWidgetActiveStateCpp);
|
QHashIterator<QString, QVariant> it(d->m_dockWidgetActiveStateCpp);
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
d->m_settings->setValue(it.key(), it.value());
|
settings->setValue(it.key(), it.value());
|
||||||
}
|
}
|
||||||
d->m_settings->endGroup();
|
settings->endGroup();
|
||||||
|
|
||||||
d->m_settings->beginGroup(QLatin1String("DebugMode.CppQmlMode"));
|
settings->beginGroup(QLatin1String("DebugMode.CppQmlMode"));
|
||||||
it = QHashIterator<QString, QVariant>(d->m_dockWidgetActiveStateQmlCpp);
|
it = QHashIterator<QString, QVariant>(d->m_dockWidgetActiveStateQmlCpp);
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
d->m_settings->setValue(it.key(), it.value());
|
settings->setValue(it.key(), it.value());
|
||||||
}
|
}
|
||||||
d->m_settings->endGroup();
|
settings->endGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebuggerMainWindow::readSettings()
|
void DebuggerMainWindow::readSettings()
|
||||||
{
|
{
|
||||||
|
ICore *core = ICore::instance();
|
||||||
|
QTC_ASSERT(core, return);
|
||||||
|
QSettings *settings = core->settings();
|
||||||
|
QTC_ASSERT(settings, return);
|
||||||
|
|
||||||
d->m_dockWidgetActiveStateCpp.clear();
|
d->m_dockWidgetActiveStateCpp.clear();
|
||||||
d->m_dockWidgetActiveStateQmlCpp.clear();
|
d->m_dockWidgetActiveStateQmlCpp.clear();
|
||||||
|
|
||||||
d->m_settings->beginGroup(QLatin1String("DebugMode.CppMode"));
|
settings->beginGroup(QLatin1String("DebugMode.CppMode"));
|
||||||
foreach (const QString &key, d->m_settings->childKeys())
|
foreach (const QString &key, settings->childKeys())
|
||||||
d->m_dockWidgetActiveStateCpp.insert(key, d->m_settings->value(key));
|
d->m_dockWidgetActiveStateCpp.insert(key, settings->value(key));
|
||||||
d->m_settings->endGroup();
|
settings->endGroup();
|
||||||
|
|
||||||
d->m_settings->beginGroup(QLatin1String("DebugMode.CppQmlMode"));
|
settings->beginGroup(QLatin1String("DebugMode.CppQmlMode"));
|
||||||
foreach (const QString &key, d->m_settings->childKeys())
|
foreach (const QString &key, settings->childKeys())
|
||||||
d->m_dockWidgetActiveStateQmlCpp.insert(key, d->m_settings->value(key));
|
d->m_dockWidgetActiveStateQmlCpp.insert(key, settings->value(key));
|
||||||
d->m_settings->endGroup();
|
settings->endGroup();
|
||||||
|
|
||||||
// reset initial settings when there are none yet
|
// reset initial settings when there are none yet
|
||||||
DebuggerLanguages langs = d->m_activeDebugLanguages;
|
DebuggerLanguages langs = d->m_activeDebugLanguages;
|
||||||
@@ -630,9 +632,8 @@ void DebuggerMainWindow::readSettings()
|
|||||||
d->m_activeDebugLanguages = langs;
|
d->m_activeDebugLanguages = langs;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebuggerMainWindow::initialize(QSettings *settings)
|
void DebuggerMainWindow::initialize()
|
||||||
{
|
{
|
||||||
d->m_settings = settings;
|
|
||||||
d->createViewsMenuItems();
|
d->createViewsMenuItems();
|
||||||
|
|
||||||
emit dockResetRequested(AnyLanguage);
|
emit dockResetRequested(AnyLanguage);
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
class QDockWidget;
|
class QDockWidget;
|
||||||
class QSettings;
|
|
||||||
class QMenu;
|
class QMenu;
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
@@ -65,17 +64,14 @@ public:
|
|||||||
// Debuggable languages are registered with this function.
|
// Debuggable languages are registered with this function.
|
||||||
void addLanguage(const DebuggerLanguage &language, const Core::Context &context);
|
void addLanguage(const DebuggerLanguage &language, const Core::Context &context);
|
||||||
|
|
||||||
// Debugger toolbars are registered with this function
|
// Debugger toolbars are registered with this function.
|
||||||
void setToolbar(const DebuggerLanguage &language, QWidget *widget);
|
void setToolbar(const DebuggerLanguage &language, QWidget *widget);
|
||||||
|
|
||||||
// All supported languages
|
|
||||||
DebuggerLanguages supportedLanguages() const;
|
|
||||||
|
|
||||||
// Active languages to be debugged.
|
// Active languages to be debugged.
|
||||||
DebuggerLanguages activeDebugLanguages() const;
|
DebuggerLanguages activeDebugLanguages() const;
|
||||||
|
|
||||||
// Called when all dependent plugins have loaded
|
// Called when all dependent plugins have loaded.
|
||||||
void initialize(QSettings *settings);
|
void initialize();
|
||||||
|
|
||||||
void onModeChanged(Core::IMode *mode);
|
void onModeChanged(Core::IMode *mode);
|
||||||
|
|
||||||
|
|||||||
@@ -737,7 +737,7 @@ QWidget *DebuggingHelperOptionPage::createPage(QWidget *parent)
|
|||||||
|
|
||||||
#ifndef QT_DEBUG
|
#ifndef QT_DEBUG
|
||||||
#if 0
|
#if 0
|
||||||
cmd = am->registerAction(m_manager->m_dumpLogAction,
|
cmd = am->registerAction(m_dumpLogAction,
|
||||||
DUMP_LOG, globalcontext);
|
DUMP_LOG, globalcontext);
|
||||||
//cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+D,Ctrl+L")));
|
//cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+D,Ctrl+L")));
|
||||||
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Shift+F11")));
|
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Shift+F11")));
|
||||||
@@ -1324,7 +1324,6 @@ public slots:
|
|||||||
public:
|
public:
|
||||||
DebuggerState m_state;
|
DebuggerState m_state;
|
||||||
DebuggerMainWindow *m_mainWindow;
|
DebuggerMainWindow *m_mainWindow;
|
||||||
DebuggerPlugin *m_manager;
|
|
||||||
DebugMode *m_debugMode;
|
DebugMode *m_debugMode;
|
||||||
DebuggerRunControlFactory *m_debuggerRunControlFactory;
|
DebuggerRunControlFactory *m_debuggerRunControlFactory;
|
||||||
|
|
||||||
@@ -2949,7 +2948,7 @@ void DebuggerPluginPrivate::extensionsInitialized()
|
|||||||
ExtensionSystem::PluginManager::instance()->addObject(m_mainWindow);
|
ExtensionSystem::PluginManager::instance()->addObject(m_mainWindow);
|
||||||
m_mainWindow->addLanguage(CppLanguage, cppDebuggercontext);
|
m_mainWindow->addLanguage(CppLanguage, cppDebuggercontext);
|
||||||
m_mainWindow->addLanguage(QmlLanguage, qmlDebuggerContext);
|
m_mainWindow->addLanguage(QmlLanguage, qmlDebuggerContext);
|
||||||
m_mainWindow->initialize(m_coreSettings);
|
m_mainWindow->initialize();
|
||||||
|
|
||||||
readSettings();
|
readSettings();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user