summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
AgeCommit message (Collapse)Author
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-27Change: by default, make "unload all" leave stations empty (#9301)Patric Stout
2021-05-27Codechange: remove unneeded comparison and castsrubidium42
Division by resize_y is already yielding an unsigned number, so when clicking in the WD_FRAMERECT_TOP you would already get a huge value, so sel would never be negative. So, leave sel an unsigned number and remove the <= check.
2021-02-13Change: Make order window hotkeys toggle for load & unload variantsCharles Pigott
2021-01-08Fix #7972: show invalid orders to stations that don't accept your vehicle ↵Patric Stout
(#8516) Before it was shown as a normal order, but the vehicle was skipping it. This was rather unclear to the user. Now it is red and contains text with some hints what is going on. The text is prefixed rather than post-fixed, as we have many post-fixes already.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace FOR_VEHICLE_ORDERS with range-based for loopsglx22
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix fbbbc6e1931: Crash when creating orders to stations with relocated ↵frosch
station sign. (#7755) Station::xy is the position of the station sign, and not necessarily a tile of the station.
2019-09-04Fix #7692: Added industry tile to GetOrderCmdFromTile() (#7709)JMcKiern
Sending order command to an industry tile now checks if a neutral_station is available and sends the order to that station
2019-04-13Change: Always report error when ordering a road vehicle to wrong type of ↵PeterN
road stop. (#7316) This was inconsistent before, depending on road/tram and articulated/single vehicle status.
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-09Codechange: Switch DropDownList to directly use std::vector, thus making ↵Michael Lutz
AutoDeleteSmallVector obsolete. DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate copy-free code for most situations.
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-03-13Cleanup: Remove questionable syntax in GetOrderCmdFromTileJohannes E. Krause
2019-01-05Add: Conditional order for max. reliability (patch by Cirdan, #6360) (#7017)Eddi-z
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2015-10-30(svn r27425) -Fix [FS#5842]: Crash when switching to or taking over ↵frosch
companies, when an order window of a vehicle of the new company was opened. Now close those windows.
2014-07-16(svn r26693) -Codechange: Simplify GetOrderCmdFromTile (Juanjo)frosch
2014-07-16(svn r26692) -Fix [FS#6059]: Ordering a vehicle to a competitor's rail ↵frosch
waypoint displayed an error message. Ignore the click as is done for the other order types to competitor's stuff. (Juanjo)
2014-05-01(svn r26550) -Change: Show measured order times in timetable GUIfonsinchen
2014-05-01(svn r26547) -Codechange: Collect order travel and wait times independent of ↵fonsinchen
timetables
2014-05-01(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed ↵fonsinchen
private
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
2013-11-24(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for ↵rubidium
dropdowns
2013-11-23(svn r26057) -Fix: a number of possibly uninitialised variablesrubidium
2013-11-22(svn r26049) -Codechange: remove some dead code as order can't be NULL thererubidium
2013-10-20(svn r25894) -Change: Unify behaviour when clicking on different items in ↵planetmaker
the goto dropdown list when giving orders (adf88)
2013-10-13(svn r25859) -Add [FS#5784]: Hightlight active goto item in order list ↵planetmaker
dropdown (adf88)
2013-10-13(svn r25858) -Fix [FS#5783]: Goto button in order window was not always ↵planetmaker
lowered when it should (adf88)
2013-10-13(svn r25857) -Codechange [FS#5783]: Add void goto type to indicate ↵planetmaker
inactivity in order window (adf88)
2013-06-24(svn r25459) -Fix: Disable the depot-refit button in the order GUI, if the ↵frosch
consist is not refittable.
2013-06-24(svn r25458) -Fix-ish: Enable the autorefit-button in the order GUI in case ↵frosch
the vehicle is not auto-refittable but already has a autorefit-order set to allow clearing the refit.
2013-06-24(svn r25457) -Fix: Do not test EF_AUTO_REFIT for the mail apartment or rotor ↵frosch
of aircraft.
2013-06-15(svn r25412) -Codechange: Make use of Window::OnHotkeyfrosch
2013-06-15(svn r25410) -Codechange: Put all hotkeys of a window into a static ↵frosch
HotkeyList member.
2013-06-15(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.frosch
2013-06-15(svn r25407) -Codechange: Use order hotkey enum instead of function pointers.frosch
2013-06-15(svn r25406) -Cleanup: There were two hotkeys to toggle between 'unload' and ↵frosch
'unload if possible'.
2013-05-26(svn r25294) -Feature: Add another button to window title bars to resize the ↵frosch
window to its default size.
2013-05-26(svn r25290) -Add: Assign string names to notable windows.frosch
2013-05-26(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window ↵frosch
after construction.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-20(svn r24834) -Fix [FS#5396]: The autorefit dropdown in the order GUI wasn't ↵michi_cc
always updated when modifying vehicle consists.
2012-12-20(svn r24833) -Codechange: Replace magic numbers for invalidating ↵michi_cc
vehicle-related windows with an enum.
2012-12-08(svn r24801) -Codechange: Add functions to set integral DParams to suitable ↵frosch
values for size computations.
2012-11-11(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.frosch
2012-11-11(svn r24697) -Codechange: Use WDF_UNCLICK_BUTTONS instead of duplicating the ↵frosch
same functionality.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium