Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
f70ce8dc
Commit
f70ce8dc
authored
May 07, 2009
by
hjk
Browse files
debugger: add a menu entry for the (defunct) TCF attaching
parent
2fce747a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerplugin.cpp
View file @
f70ce8dc
...
...
@@ -99,6 +99,7 @@ namespace Constants {
const
char
*
const
STARTEXTERNAL
=
"Debugger.StartExternal"
;
const
char
*
const
ATTACHEXTERNAL
=
"Debugger.AttachExternal"
;
const
char
*
const
ATTACHCORE
=
"Debugger.AttachCore"
;
const
char
*
const
ATTACHTCF
=
"Debugger.AttachTcf"
;
const
char
*
const
ATTACHREMOTE
=
"Debugger.AttachRemote"
;
const
char
*
const
DETACH
=
"Debugger.Detach"
;
...
...
@@ -481,6 +482,14 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
m_attachCoreAction
->
setText
(
tr
(
"Attach to Core..."
));
connect
(
m_attachCoreAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
attachCore
()));
m_attachTcfAction
=
new
QAction
(
this
);
m_attachTcfAction
->
setText
(
tr
(
"Attach to Running TCF Agent..."
));
m_attachTcfAction
->
setToolTip
(
tr
(
"This attaches to a running "
"'Target Communication Framework' agent."
));
connect
(
m_attachTcfAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
attachRemoteTcf
()));
m_startRemoteAction
=
new
QAction
(
this
);
m_startRemoteAction
->
setText
(
tr
(
"Start and Attach to Remote Application..."
));
connect
(
m_startRemoteAction
,
SIGNAL
(
triggered
()),
...
...
@@ -508,6 +517,10 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
Constants
::
ATTACHCORE
,
globalcontext
);
mdebug
->
addAction
(
cmd
,
Core
::
Constants
::
G_DEFAULT_ONE
);
cmd
=
am
->
registerAction
(
m_attachTcfAction
,
Constants
::
ATTACHTCF
,
globalcontext
);
mdebug
->
addAction
(
cmd
,
Core
::
Constants
::
G_DEFAULT_ONE
);
cmd
=
am
->
registerAction
(
m_startRemoteAction
,
Constants
::
ATTACHREMOTE
,
globalcontext
);
mdebug
->
addAction
(
cmd
,
Core
::
Constants
::
G_DEFAULT_ONE
);
...
...
src/plugins/debugger/debuggerplugin.h
View file @
f70ce8dc
...
...
@@ -128,6 +128,7 @@ private:
QAction
*
m_startRemoteAction
;
QAction
*
m_attachExternalAction
;
QAction
*
m_attachCoreAction
;
QAction
*
m_attachTcfAction
;
QAction
*
m_detachAction
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment