Skip to content

Commit

Permalink
Rename replays/playback Version column to Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
specing committed Sep 5, 2018
1 parent 2a87fe7 commit c2c5905
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/gui/playback/playbackdatamodel.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int PlaybackDataModel::Compare(const wxDataViewItem& itemA, const wxDataViewItem
case DURATION: case DURATION:
sortingResult = GenericCompare(storedGameA->duration, storedGameB->duration); sortingResult = GenericCompare(storedGameA->duration, storedGameB->duration);
break; break;
case VERSION: case ENGINE:
sortingResult = storedGameA->battle.GetEngineVersion().compare(storedGameB->battle.GetEngineVersion()); sortingResult = storedGameA->battle.GetEngineVersion().compare(storedGameB->battle.GetEngineVersion());
break; break;
case FILESIZE: case FILESIZE:
Expand Down Expand Up @@ -86,7 +86,7 @@ void PlaybackDataModel::GetValue(wxVariant& variant, const wxDataViewItem& item,
case MAP: case MAP:
case PLAYERS: case PLAYERS:
case DURATION: case DURATION:
case VERSION: case ENGINE:
case FILESIZE: case FILESIZE:
case FILENAME: case FILENAME:
case DEFAULT_COLUMN: case DEFAULT_COLUMN:
Expand Down Expand Up @@ -130,7 +130,7 @@ void PlaybackDataModel::GetValue(wxVariant& variant, const wxDataViewItem& item,
seconds = seconds % 60; seconds = seconds % 60;
variant = wxString::Format(_T("%02d:%02d:%02d"), hours, minutes, seconds); variant = wxString::Format(_T("%02d:%02d:%02d"), hours, minutes, seconds);
} break; } break;
case VERSION: case ENGINE:
variant = TowxString(storedGame->battle.GetEngineVersion()); variant = TowxString(storedGame->battle.GetEngineVersion());
break; break;


Expand Down Expand Up @@ -165,7 +165,7 @@ wxString PlaybackDataModel::GetColumnType(unsigned int columnt) const
case MAP: case MAP:
case PLAYERS: case PLAYERS:
case DURATION: case DURATION:
case VERSION: case ENGINE:
case FILESIZE: case FILESIZE:
case FILENAME: case FILENAME:
case DEFAULT_COLUMN: case DEFAULT_COLUMN:
Expand Down
2 changes: 1 addition & 1 deletion src/gui/playback/playbackdatamodel.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PlaybackDataModel : public BaseDataViewModel<StoredGame>
MAP, MAP,
PLAYERS, PLAYERS,
DURATION, DURATION,
VERSION, ENGINE,
FILESIZE, FILESIZE,
FILENAME, FILENAME,
COLUMN_COUNT COLUMN_COUNT
Expand Down
2 changes: 1 addition & 1 deletion src/gui/playback/playbackdataview.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PlaybackDataView::PlaybackDataView(const wxString& dataViewName, wxWindow* paren
AppendTextColumn(_("Map"), MAP, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE); AppendTextColumn(_("Map"), MAP, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE);
AppendTextColumn(_("Players"), PLAYERS, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE); AppendTextColumn(_("Players"), PLAYERS, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE);
AppendTextColumn(_("Duration"), DURATION, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE); AppendTextColumn(_("Duration"), DURATION, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE);
AppendTextColumn(_("Version"), VERSION, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE); AppendTextColumn(_("Engine"), ENGINE, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE);
AppendTextColumn(_("Filesize"), FILESIZE, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE); AppendTextColumn(_("Filesize"), FILESIZE, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE);
AppendTextColumn(_("File"), FILENAME, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE); AppendTextColumn(_("File"), FILENAME, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE);


Expand Down
2 changes: 1 addition & 1 deletion src/gui/playback/playbackdataview.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PlaybackDataView : public BaseDataViewCtrl<StoredGame>
MAP, MAP,
PLAYERS, PLAYERS,
DURATION, DURATION,
VERSION, ENGINE,
FILESIZE, FILESIZE,
FILENAME FILENAME
}; };
Expand Down

0 comments on commit c2c5905

Please sign in to comment.