Update to v094r15 release.

byuu says:

Implemented the cheat database dialog, and most of the cheat editor
dialog. I still have to handle loading and saving the cheats.bml file
for each game. I wanted to finish it today, but I burned out. It's a ton
of really annoying work to support cheat codes. There's also some issue
with the width calculation for the "code(s)" column in hiro/GTK.

Short-term:
- add input port changing support
- add other input types (mouse-based, etc)
- finish cheat codes

Long-term:
- add slotted cart loader (SGB, BSX, ST)
- add DIP switch selection window (NSS)
- add overscan masking
- add timing configuration (video/audio sync)

Not planned:
- video color adjustments (will allow emulated color vs raw color; but
  no more sliders)
- pixel shaders
- ananke integration (will need to make a command-line version to get my
  games in)
- fancy audio adjustment controls (resampler, latency, volume)
- input focus settings
- localization support (not enough users)
- window geometry memory
- anything else not in higan v094
This commit is contained in:
Tim Allen
2015-04-21 21:51:57 +10:00
parent 89d578bc7f
commit 2eb50fd70b
29 changed files with 568 additions and 74 deletions

View File

@@ -49,7 +49,12 @@ auto pListView::destruct() -> void {
auto pListView::append(sListViewColumn column) -> void {
gtk_tree_view_append_column(gtkTreeView, column->self()->gtkColumn);
gtk_widget_show_all(column->self()->gtkHeader);
column->setBackgroundColor(column->backgroundColor());
column->setEditable(column->editable());
column->setFont(column->font());
column->setForegroundColor(column->foregroundColor());
column->setHorizontalAlignment(column->horizontalAlignment());
column->setVerticalAlignment(column->verticalAlignment());
setCheckable(state().checkable);
_createModel();
gtk_tree_view_set_rules_hint(gtkTreeView, self().columns() >= 2); //two or more columns + checkbutton column
@@ -118,7 +123,7 @@ auto pListView::resizeColumns() -> void {
}
for(auto row : range(self().items())) {
maximumWidth = max(maximumWidth, 8 //margin
+ (row == 0 && state().checkable ? 24 : 0) //check box
+ (row == 0 && state().checkable ? 32 : 0) //check box
+ state().items[row]->state.icon(column, {}).width
+ Font::size(state().columns[column]->font(true), state().items[row]->state.text(column, "")).width()
);