Permalink
Browse files

Rename replays/playback Version column to Engine

  • Loading branch information...
specing committed Aug 23, 2018
1 parent 2a87fe7 commit c2c5905ff3a1807b72dce945f38c426d0139c73e
@@ -48,7 +48,7 @@ int PlaybackDataModel::Compare(const wxDataViewItem& itemA, const wxDataViewItem
case DURATION:
sortingResult = GenericCompare(storedGameA->duration, storedGameB->duration);
break;
case VERSION:
case ENGINE:
sortingResult = storedGameA->battle.GetEngineVersion().compare(storedGameB->battle.GetEngineVersion());
break;
case FILESIZE:
@@ -86,7 +86,7 @@ void PlaybackDataModel::GetValue(wxVariant& variant, const wxDataViewItem& item,
case MAP:
case PLAYERS:
case DURATION:
case VERSION:
case ENGINE:
case FILESIZE:
case FILENAME:
case DEFAULT_COLUMN:
@@ -130,7 +130,7 @@ void PlaybackDataModel::GetValue(wxVariant& variant, const wxDataViewItem& item,
seconds = seconds % 60;
variant = wxString::Format(_T("%02d:%02d:%02d"), hours, minutes, seconds);
} break;
case VERSION:
case ENGINE:
variant = TowxString(storedGame->battle.GetEngineVersion());
break;

@@ -165,7 +165,7 @@ wxString PlaybackDataModel::GetColumnType(unsigned int columnt) const
case MAP:
case PLAYERS:
case DURATION:
case VERSION:
case ENGINE:
case FILESIZE:
case FILENAME:
case DEFAULT_COLUMN:
@@ -25,7 +25,7 @@ class PlaybackDataModel : public BaseDataViewModel<StoredGame>
MAP,
PLAYERS,
DURATION,
VERSION,
ENGINE,
FILESIZE,
FILENAME,
COLUMN_COUNT
@@ -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(_("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(_("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(_("File"), FILENAME, wxDATAVIEW_CELL_INERT, DEFAULT_SIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE | wxDATAVIEW_COL_RESIZABLE);

@@ -48,7 +48,7 @@ class PlaybackDataView : public BaseDataViewCtrl<StoredGame>
MAP,
PLAYERS,
DURATION,
VERSION,
ENGINE,
FILESIZE,
FILENAME
};

0 comments on commit c2c5905

Please sign in to comment.