2013-03-15 13:11:33 +00:00
|
|
|
namespace phoenix {
|
|
|
|
|
2013-11-28 10:29:01 +00:00
|
|
|
GtkWidget* pWidget::container(Widget& widget) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
Update to higan v091r14 and ananke v00r03 releases.
byuu says:
higan changelog:
- generates title displayed in emulator window by asking the core
- core builds title solely from "information/title" ... if it's not
there, you don't get a title at all
- sub-system load menu is gone ... since there are multiple revisions of
the SGB, this never really worked well anyway
- to load an SGB, BS-X or ST cartridge, load the base cartridge first
- "File->Load Game" moved to "Load->Import Game" ... may cause a bit of
confusion to new users, but I don't like having a single-item menu,
we'll just have to explain it to new users
- browser window redone to look like ananke
- home button here goes to ~/Emulation rather than just ~ like ananke,
since this is the home of game folders
- game folder icon is now the executable icon for the Tango theme
(orange diamond), meant to represent a complete game rather than
a game file or archive
ananke changelog:
- outputs GBC games to "Game Boy Color/" instead of "Game Boy/"
- adds the file basename to "information/title"
Known issues:
- using ananke to load a GB game trips the Super Famicom SGB mode and
fails (need to make the full-path auto-detection ignore non-bootable
systems)
- need to dump and test some BS-X media before releasing
- ananke lacks BS-X Satellaview cartridge support
- v092 isn't going to let you retarget the ananke/higan game folder path
of ~/Emulation, you will have to wait for a future version if that
bothers you so greatly
[Later, after the v092 release, byuu posted this additional changelog:
- kill laevateinn
- add title()
- add bootable, remove load
- combine file, library
- combine [][][] paths
- fix SFC subtype handling XML->BML
- update file browser to use buttons
- update file browser keyboard handling
- update system XML->BML
- fix sufami turbo hashing
- remove Cartridge::manifest
]
2012-12-25 05:31:55 +00:00
|
|
|
bool pWidget::focused() {
|
|
|
|
return GTK_WIDGET_HAS_FOCUS(gtkWidget);
|
|
|
|
}
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
Size pWidget::minimumSize() {
|
|
|
|
return {0, 0};
|
Update to higan v091r14 and ananke v00r03 releases.
byuu says:
higan changelog:
- generates title displayed in emulator window by asking the core
- core builds title solely from "information/title" ... if it's not
there, you don't get a title at all
- sub-system load menu is gone ... since there are multiple revisions of
the SGB, this never really worked well anyway
- to load an SGB, BS-X or ST cartridge, load the base cartridge first
- "File->Load Game" moved to "Load->Import Game" ... may cause a bit of
confusion to new users, but I don't like having a single-item menu,
we'll just have to explain it to new users
- browser window redone to look like ananke
- home button here goes to ~/Emulation rather than just ~ like ananke,
since this is the home of game folders
- game folder icon is now the executable icon for the Tango theme
(orange diamond), meant to represent a complete game rather than
a game file or archive
ananke changelog:
- outputs GBC games to "Game Boy Color/" instead of "Game Boy/"
- adds the file basename to "information/title"
Known issues:
- using ananke to load a GB game trips the Super Famicom SGB mode and
fails (need to make the full-path auto-detection ignore non-bootable
systems)
- need to dump and test some BS-X media before releasing
- ananke lacks BS-X Satellaview cartridge support
- v092 isn't going to let you retarget the ananke/higan game folder path
of ~/Emulation, you will have to wait for a future version if that
bothers you so greatly
[Later, after the v092 release, byuu posted this additional changelog:
- kill laevateinn
- add title()
- add bootable, remove load
- combine file, library
- combine [][][] paths
- fix SFC subtype handling XML->BML
- update file browser to use buttons
- update file browser keyboard handling
- update system XML->BML
- fix sufami turbo hashing
- remove Cartridge::manifest
]
2012-12-25 05:31:55 +00:00
|
|
|
}
|
|
|
|
|
2011-02-24 09:27:21 +00:00
|
|
|
void pWidget::setEnabled(bool enabled) {
|
2013-11-28 10:29:01 +00:00
|
|
|
if(!widget.parent()) enabled = false;
|
2011-09-05 03:48:23 +00:00
|
|
|
if(widget.state.abstract) enabled = false;
|
2013-11-28 10:29:01 +00:00
|
|
|
if(!widget.enabledToAll()) enabled = false;
|
2011-02-24 09:27:21 +00:00
|
|
|
gtk_widget_set_sensitive(gtkWidget, enabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
void pWidget::setFocused() {
|
|
|
|
gtk_widget_grab_focus(gtkWidget);
|
|
|
|
}
|
|
|
|
|
2013-05-05 09:21:30 +00:00
|
|
|
void pWidget::setFont(string font) {
|
2011-09-05 03:48:23 +00:00
|
|
|
pFont::setFont(gtkWidget, font);
|
2011-02-24 09:27:21 +00:00
|
|
|
}
|
|
|
|
|
2013-07-29 09:42:45 +00:00
|
|
|
void pWidget::setGeometry(Geometry geometry) {
|
2013-11-28 10:29:01 +00:00
|
|
|
Position displacement = GetDisplacement(&widget);
|
|
|
|
geometry.x -= displacement.x;
|
|
|
|
geometry.y -= displacement.y;
|
|
|
|
|
|
|
|
if(gtkParent) gtk_fixed_move(GTK_FIXED(gtkParent), gtkWidget, geometry.x, geometry.y);
|
|
|
|
unsigned width = (signed)geometry.width <= 0 ? 1u : geometry.width;
|
|
|
|
unsigned height = (signed)geometry.height <= 0 ? 1u : geometry.height;
|
2011-02-24 09:27:21 +00:00
|
|
|
gtk_widget_set_size_request(gtkWidget, width, height);
|
2013-11-28 10:29:01 +00:00
|
|
|
if(widget.onSize) widget.onSize();
|
2011-02-24 09:27:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void pWidget::setVisible(bool visible) {
|
2013-11-28 10:29:01 +00:00
|
|
|
if(!widget.parent()) visible = false;
|
2011-02-24 09:27:21 +00:00
|
|
|
if(widget.state.abstract) visible = false;
|
2013-11-28 10:29:01 +00:00
|
|
|
if(!widget.visibleToAll()) visible = false;
|
2011-02-24 09:27:21 +00:00
|
|
|
gtk_widget_set_visible(gtkWidget, visible);
|
|
|
|
}
|
|
|
|
|
|
|
|
void pWidget::constructor() {
|
2013-11-28 10:29:01 +00:00
|
|
|
if(widget.state.abstract) gtkWidget = gtk_fixed_new();
|
2011-02-24 09:27:21 +00:00
|
|
|
}
|
2011-09-05 03:48:23 +00:00
|
|
|
|
|
|
|
void pWidget::destructor() {
|
|
|
|
if(widget.state.abstract) gtk_widget_destroy(gtkWidget);
|
|
|
|
}
|
|
|
|
|
|
|
|
void pWidget::orphan() {
|
|
|
|
destructor();
|
|
|
|
constructor();
|
|
|
|
}
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
}
|