Commit Graph

133 Commits (f97403803bbfd2ab2ef4ea14c216964a3a95ab96)

Author SHA1 Message Date
peter1138 44dd8955d1 (svn r13291) -Fix (r13266): qsort passed wrong sizeof data 16 years ago
peter1138 0434e83e91 (svn r13270) -Codechange: There is no need to clear lists in the window constructor 16 years ago
peter1138 781b90ac91 (svn r13266) -Codechange: Use SmallVector in GUIList 16 years ago
rubidium dc77647ea4 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
16 years ago
peter1138 6d65ce0c8b (svn r13248) -Codechange: Use VehicleList for depot GUI. 16 years ago
peter1138 cfc45e97ab (svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
16 years ago
rubidium 162e2e074b (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 16 years ago
rubidium df6446c07c (svn r13183) -Codechange: make a window class of the VehicleViewWindow. 16 years ago
rubidium 3ee2556585 (svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData. 16 years ago
rubidium ad6e52080c (svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp. 16 years ago
rubidium a89b5721a8 (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. 16 years ago
peter1138 e03193f9d7 (svn r13128) -Codechange: Make a class of the refit window 16 years ago
rubidium a7c7067c4f (svn r13120) -Codechange: make a class of the VehicleDetailsWindow. 16 years ago
rubidium a7db265bb6 (svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore. 16 years ago
glx dacd2c5de8 (svn r13047) -Codechange: remove vp_d 16 years ago
rubidium ee3c14b344 (svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow. 16 years ago
rubidium 89a60ce249 (svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform. 16 years ago
rubidium 0f7d925121 (svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments. 16 years ago
rubidium 11d36d5e46 (svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used. 16 years ago
rubidium 92aac531c2 (svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window. 16 years ago
rubidium c27f3cfa62 (svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations. 16 years ago
rubidium 9db77e3808 (svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL. 16 years ago
rubidium 8796331d83 (svn r12975) -Codechange: replace DeleteWindow(w) with delete w. 16 years ago
rubidium 1ce0b03bf0 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
bjarni d6c971fd9b (svn r12912) -Codechange: overloaded ChangeVehicleViewWindow() so each argument can be either a Vehicle pointer or a VehicleID 16 years ago
rubidium 51c7ba39a4 (svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth. 16 years ago
rubidium 99733b2b3e (svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth. 16 years ago
rubidium 8857f5057f (svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob. 16 years ago
rubidium ca1f8fbe2e (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 16 years ago
rubidium 6d063c3ad6 (svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h. 16 years ago
rubidium 22353393cd (svn r12687) -Change: show when a vehicle is actually leaving the station instead of loading/unloading. 16 years ago
rubidium cf250390c5 (svn r12615) -Codechange: rename some enums related to depot orders to make it more clear that they are no loading/unloading flags. Also add more type strictness. 16 years ago
rubidium 53d101cc99 (svn r12593) -Codechange: hide Order's flags in most of the code. 16 years ago
rubidium 935b562074 (svn r12588) -Codechange: do not access the destination of an order directly. 16 years ago
rubidium 3b0e3d8d30 (svn r12584) -Codechange: do not access the order type directly. 16 years ago
rubidium df1d9bd880 (svn r12490) -Codechange: rename engine.h to engine_func.h and remove unneeded inclusions of engine.h and/or replace them with engine_type.h. 16 years ago
rubidium c51b81c247 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h. 16 years ago
rubidium b84b16cfcd (svn r12488) -Codechange: split order.h into order_base.h and order_func.h. 16 years ago
rubidium 492d132831 (svn r12470) -Codechange: split order related types from order.h (and openttd.h) to order_type.h. 16 years ago
rubidium 105b95e94c (svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus. 16 years ago
smatz d28cc5be80 (svn r12324) -Fix (r6789): vehicles could be sorted in a wrong order when a vehicle name changed - cached name was not invalidated 17 years ago
smatz 4a395562f2 (svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used) 17 years ago
glx 6f55c7e0e8 (svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window 17 years ago
smatz 9bdb194b2a (svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
17 years ago
smatz fe48d0be21 (svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost
-Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
17 years ago
peter1138 833a00def9 (svn r12133) -Fix: Vehicle sorting by max speed did not work properly for trains. Instead of trying to work it out again, just use the cached values... 17 years ago
maedhros f95fb570ad (svn r11994) -Codechange: Remove numbers from string names where the strings aren't present in TTD, since they don't correspond to either TTD's TextIDs or OpenTTD's StringIDs. 17 years ago
smatz dfb91c26ec (svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
-Fix: refit button widget was not correctly updated
17 years ago
peter1138 04da1e1d45 (svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel. 17 years ago
peter1138 1182a940cf (svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows 17 years ago