2011-02-24 09:27:21 +00:00
|
|
|
void pAction::setEnabled(bool enabled) {
|
|
|
|
gtk_widget_set_sensitive(widget, enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
void pAction::setVisible(bool visible) {
|
|
|
|
gtk_widget_set_visible(widget, visible);
|
|
|
|
}
|
|
|
|
|
|
|
|
void pAction::constructor() {
|
|
|
|
}
|
2011-09-05 03:48:23 +00:00
|
|
|
|
|
|
|
void pAction::orphan() {
|
|
|
|
}
|
Update to v085r03 release.
byuu says:
Changelog:
- fixed cursor being visible under Metacity window manager (hopefully
doesn't cause regression with other WMs)
- show normal cursor when using SDL video driver
- added menu accelerators (meh, why not?)
- removed debugvirtual, ChipDebugger and chip/debugger functionality
entirely
- alt/smp disassembler moved up
- fixed alt/smp incw/decw instructions (unsigned->uint16 for internal
variables)
My plan going forward for a debugger is not to hardcode functionality
that causes the 10-15% slowdown right into the emulator itself.
Instead, I'm going to make a callback class, which will be a specialized
version of nall::function:
- can call function even if not assigned (results in no-op, return type
must have a trivial default constructor)
- if compiled without #define DEBUGGER, the entire thing turns into
a huge no-op; and will be eliminated entirely when compiled
- strategically place the functions: cb_step, cb_read, cb_write, etc.
From here, the ui-debugger GUI will bind the callbacks, implement
breakpoint checking, usage table generation, etc itself.
I'll probably have to add some breakout commands to exit the emulation
core prior to a frame event in some cases as well.
I didn't initially want any debugger-related stuff in the base cores,
but the #if debugger sCPUDebugger #else sCPU #endif stuff was already
more of a burden than this will be.
2012-02-04 09:23:53 +00:00
|
|
|
|
|
|
|
//GTK+ uses _ for mnemonics, __ for _
|
|
|
|
//transform so that & is used for mnemonics, && for &
|
|
|
|
string pAction::mnemonic(string text) {
|
|
|
|
text.transform("&_", "\x01\x02");
|
|
|
|
text.replace("\x01\x01", "&");
|
|
|
|
text.transform("\x01", "_");
|
|
|
|
text.replace("\x02", "__");
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
|
|
|
|
void pAction::setFont(const string &font) {
|
|
|
|
pFont::setFont(widget, font);
|
|
|
|
}
|