summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggeractions.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-03-04 16:21:57 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-03-04 16:24:54 +0100
commit2d9de933612a63f0b863afc19e124752b62bb559 (patch)
tree007a7837aa4c6f5edfa47389adaa657c5ac3e9ac /src/plugins/debugger/debuggeractions.h
parentb97165329a371054cf50c068fd3766f03f6611d0 (diff)
downloadqt-creator-2d9de933612a63f0b863afc19e124752b62bb559.tar.gz
Debugger: Add a flexible widget for source path substitutions.
Add a new widget to edit the mappings. Rework common options page to use the standard pattern to allow for complex data types, introduce GlobalOptions class.
Diffstat (limited to 'src/plugins/debugger/debuggeractions.h')
-rw-r--r--src/plugins/debugger/debuggeractions.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggeractions.h b/src/plugins/debugger/debuggeractions.h
index c6c176f296..50ca51a648 100644
--- a/src/plugins/debugger/debuggeractions.h
+++ b/src/plugins/debugger/debuggeractions.h
@@ -35,6 +35,7 @@
#define DEBUGGER_ACTIONS_H
#include <QtCore/QHash>
+#include <QtCore/QMap>
QT_BEGIN_NAMESPACE
class QSettings;
@@ -47,6 +48,22 @@ class SavedAction;
namespace Debugger {
namespace Internal {
+// Global debugger options that are not stored as saved action.
+class GlobalDebuggerOptions
+{
+public:
+ typedef QMap<QString, QString> SourcePathMap;
+
+ void toSettings(QSettings *) const;
+ void fromSettings(QSettings *);
+ bool equals(const GlobalDebuggerOptions &rhs) const { return sourcePathMap == rhs.sourcePathMap; }
+
+ SourcePathMap sourcePathMap;
+};
+
+inline bool operator==(const GlobalDebuggerOptions &o1, const GlobalDebuggerOptions &o2) { return o1.equals(o2); }
+inline bool operator!=(const GlobalDebuggerOptions &o1, const GlobalDebuggerOptions &o2) { return !o1.equals(o2); }
+
class DebuggerSettings : public QObject
{
Q_OBJECT // For tr().
@@ -88,7 +105,6 @@ enum DebuggerActionCode
UseDebuggingHelpers,
UseCustomDebuggingHelperLocation,
CustomDebuggingHelperLocation,
- QtSourcesLocation,
UseCodeModel,
ShowThreadNames,