summaryrefslogtreecommitdiff
path: root/src/group_cmd.cpp
AgeCommit message (Collapse)Author
2021-12-16Codechange: Un-bitstuff group and autoreplace commands.Michael Lutz
2021-12-16Codechange: Template DoCommand to automagically reflect the parameters of ↵Michael Lutz
the command proc. When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing.
2021-12-16Codechange: Move flags in CommandProc in front of the command arguments.Michael Lutz
2021-12-16Codechange: Let the compile generate the master command table out of ↵Michael Lutz
templated command traits. This is using a non-intrusive type-traits like templated system, which allows compile-time validation that the command table and the command enum match up.
2021-12-16Codechange: Move command arguments to the back of the DoCommand function call.Michael Lutz
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Codechange: move from C-string to std::string for DoCommandrubidium42
2021-04-22Feature: Per-group wagon removal flag.peter1138
2021-04-22Codechange: Replace CMD_SET_GROUP_REPLACE_PROTECTION with generic ↵peter1138
CMD_SET_GROUP_FLAG.
2021-04-22Codechange: Replace Group::replace_protection with Group::flagspeter1138
2020-12-15Feature: Show group name as part of the default vehicle name.stormcone
Only if the vehicle is member of a group and does not have a user defined name.
2020-05-21Codechange: Use std::string for most of the user-settable custom names.Michael Lutz
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_GROUPS with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_ENGINE_RENEWS with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_COMPANIES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-05-10Fix #7224: Drag and drop vehicle group creation does not work correctly.stormcone
When drag and drop a vehicle into an empty slot in the vehicle group window it tries to create the new group as the subgroup of the first group (GroupID = 0). This is failing if the dragged vehicle's type is different than the first group's vehicle type.
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-27Feature #6053: Collapsible vehicle groups (3298)Charles Pigott
2019-03-27Add #6189: Groups now count the total number of vehicles in subgroups (3298)Charles Pigott
2019-03-27Change #5977: Use specific error message when attempting to create a ↵Charles Pigott
circular group hierarchy (3298)
2019-03-03Change: Allow vehicle group names to be non-unique.Peter Nelson
Group names are visual identifiers, and do not need to be unique. Group sorting already falls back to group ID if names are the same, so that sorted list position is stable.
2019-02-15Change: Use selected group as parent when creating a new group. (#7224)PeterN
2019-02-03Fix #7108: Group livery command did not check its parameters properly.Peter Nelson
2019-01-31Feature: Group liveries, and livery window usability enhancements. (#7108)PeterN
* Change: Replace checkbox in livery selection window with Default option in drop down selection. This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired. * Feature: Add vehicle group liveries.
2019-01-13Fix #5978: Ensure group GUI stats and lists are invalidated properly (3298, ↵Joan Josep
Juanjo) (#7046)
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2014-12-24(svn r27090) -Codechange [FS#5976]: Simplify some hierarchical groups code. ↵frosch
(Juanjo)
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-08(svn r26451) -Change: Document GroupIsInGroup() function.peter1138
2014-04-08(svn r26450) -Feature: Hierarchical vehicle subgroups.peter1138
2013-01-22(svn r24933) -Fix [FS#3473]: Make group names unique per company and vehicle ↵peter1138
type.
2012-10-01(svn r24568) -Codechange: No need to resort the group GUI when toggling the ↵frosch
autoreplace protection. (Juanjo)
2012-04-17(svn r24140) -Add [FS#1117]: Group name in the replace vehicle window ↵michi_cc
caption. (Juanjo)
2012-04-17(svn r24139) -Add: Creating a new vehicle group by drag and drop. (Based on ↵michi_cc
patch by Juanjo)
2012-04-17(svn r24138) -Feature(ette): Ctrl+drag to add all vehicles with a shared ↵michi_cc
order list to a group. (Juanjo)
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-11-20(svn r23282) -Fix [FS#4844] (r23212): CmdRemoveAllVehiclesGroup() was not ↵frosch
passed the vehicle type in all cases, but the type is actually not needed.
2011-11-14(svn r23212) -Fix [FS#4834] (r22980): Deleting groups did not update ↵frosch
statistics of DEFAULT group.
2011-10-03(svn r22985) -Feature: Display autoreplace status in group GUI.frosch
2011-10-03(svn r22984) -Feature: Display profit icons for groups in the group GUI.frosch
2011-10-03(svn r22981) -Add: GroupStatistics for the ALL_GROUP.frosch
2011-10-03(svn r22980) -Add: GroupStatistics for DEFAULT_GROUP.frosch
2011-10-03(svn r22979) -Codechange: Add GroupStatistics::CountEngine().frosch
2011-10-03(svn r22978) -Codechange: Replace IncreaseGroupNumVehicle() and ↵frosch
DecreaseGroupNumVehicle() with GroupStatistics::CountVehicle().
2011-10-03(svn r22977) -Codechange: Rename SetCachedEngineCounts() to ↵frosch
GroupStatistics::UpdateAfterLoad().
2011-10-03(svn r22976) -Codechange: Split group statistics into separate struct.frosch
2011-02-19(svn r22116) -Codechange: use PoolBase::Clean() at more placessmatz