Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Stella
Commits
6b812c05
Commit
6b812c05
authored
Apr 17, 2021
by
thrust26
Browse files
added help anchor to DebuggerDialog
parent
55aa1686
Pipeline
#20523
passed with stages
in 7 minutes and 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/debugger/gui/DebuggerDialog.cxx
View file @
6b812c05
...
...
@@ -67,6 +67,8 @@ DebuggerDialog::DebuggerDialog(OSystem& osystem, DialogContainer& parent,
// Inform the TIA output widget about its associated zoom widget
myTiaOutput
->
setZoomWidget
(
myTiaZoom
);
setHelpAnchor
(
" "
,
true
);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
...
...
src/gui/Dialog.cxx
View file @
6b812c05
...
...
@@ -152,19 +152,22 @@ void Dialog::setHelpAnchor(const string& helpAnchor, bool debugger)
_helpAnchor
=
helpAnchor
;
_debuggerHelp
=
debugger
;
if
(
_helpWidget
==
nullptr
)
if
(
hasTitle
()
)
{
_helpWidget
=
new
ButtonWidget
(
this
,
_font
,
_w
-
_font
.
getMaxCharWidth
()
*
3.5
,
0
,
_font
.
getMaxCharWidth
()
*
3.5
+
0.5
,
buttonHeight
(),
"?"
,
kHelpCmd
);
_helpWidget
->
setBGColor
(
kColorTitleBar
);
_helpWidget
->
setTextColor
(
kColorTitleText
);
}
if
(
_helpWidget
==
nullptr
)
{
_helpWidget
=
new
ButtonWidget
(
this
,
_font
,
_w
-
_font
.
getMaxCharWidth
()
*
3.5
,
0
,
_font
.
getMaxCharWidth
()
*
3.5
+
0.5
,
buttonHeight
(),
"?"
,
kHelpCmd
);
_helpWidget
->
setBGColor
(
kColorTitleBar
);
_helpWidget
->
setTextColor
(
kColorTitleText
);
}
if
(
hasTitle
()
&&
hasHelp
())
_helpWidget
->
clearFlags
(
Widget
::
FLAG_INVISIBLE
);
else
_helpWidget
->
setFlags
(
Widget
::
FLAG_INVISIBLE
);
if
(
hasHelp
())
_helpWidget
->
clearFlags
(
Widget
::
FLAG_INVISIBLE
);
else
_helpWidget
->
setFlags
(
Widget
::
FLAG_INVISIBLE
);
}
#endif
}
...
...
Write
Preview
Markdown
is supported
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