peter1138
|
f9fc53f98a
|
(svn r13307) -Codechange: Separate VehicleList and its two functions so only the 3 users include it, reducing dependencies on misc/smallvec.h
|
2008-05-28 11:56:21 +00:00 |
|
peter1138
|
0ce9343fb6
|
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
|
2008-05-27 15:30:51 +00:00 |
|
peter1138
|
4c69d11f5e
|
(svn r13270) -Codechange: There is no need to clear lists in the window constructor
|
2008-05-26 18:25:27 +00:00 |
|
peter1138
|
02b5ffa13f
|
(svn r13266) -Codechange: Use SmallVector in GUIList
|
2008-05-26 16:23:23 +00:00 |
|
rubidium
|
4625695653
|
(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.
|
2008-05-25 19:17:03 +00:00 |
|
peter1138
|
56f78e6412
|
(svn r13248) -Codechange: Use VehicleList for depot GUI.
|
2008-05-25 17:22:49 +00:00 |
|
peter1138
|
6f233b1f8f
|
(svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
|
2008-05-23 23:02:13 +00:00 |
|
rubidium
|
27c38052b7
|
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
|
2008-05-19 09:48:47 +00:00 |
|
rubidium
|
eb35fce734
|
(svn r13183) -Codechange: make a window class of the VehicleViewWindow.
|
2008-05-19 09:39:05 +00:00 |
|
rubidium
|
9defec7876
|
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
|
2008-05-18 16:51:44 +00:00 |
|
rubidium
|
87015f5b63
|
(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.
|
2008-05-17 13:01:30 +00:00 |
|
rubidium
|
8b54212900
|
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
|
2008-05-17 12:48:06 +00:00 |
|
peter1138
|
7ae25c25b6
|
(svn r13128) -Codechange: Make a class of the refit window
|
2008-05-16 23:23:38 +00:00 |
|
rubidium
|
2da844b146
|
(svn r13120) -Codechange: make a class of the VehicleDetailsWindow.
|
2008-05-16 17:33:09 +00:00 |
|
rubidium
|
dddfaaac7d
|
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
|
2008-05-13 14:43:33 +00:00 |
|
glx
|
c708ab3b48
|
(svn r13047) -Codechange: remove vp_d
|
2008-05-11 15:08:44 +00:00 |
|
rubidium
|
c47926311b
|
(svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow.
|
2008-05-11 15:00:11 +00:00 |
|
rubidium
|
75e3792aa3
|
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
|
2008-05-11 14:23:45 +00:00 |
|
rubidium
|
f438700402
|
(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.
|
2008-05-09 09:29:27 +00:00 |
|
rubidium
|
4a11ebe76f
|
(svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used.
|
2008-05-08 14:14:16 +00:00 |
|
rubidium
|
23fc96c3e8
|
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
|
2008-05-08 11:50:34 +00:00 |
|
rubidium
|
402a1e24ba
|
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
|
2008-05-06 22:17:12 +00:00 |
|
rubidium
|
9bf519f26b
|
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
|
2008-05-06 22:08:18 +00:00 |
|
rubidium
|
e6c944a6c4
|
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
|
2008-05-06 21:28:30 +00:00 |
|
rubidium
|
d03994098b
|
(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.
|
2008-05-06 15:11:33 +00:00 |
|
bjarni
|
9f5f4e59cd
|
(svn r12912) -Codechange: overloaded ChangeVehicleViewWindow() so each argument can be either a Vehicle pointer or a VehicleID
|
2008-04-27 18:05:48 +00:00 |
|
rubidium
|
24b5c91039
|
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
|
2008-04-19 13:17:19 +00:00 |
|
rubidium
|
1dcf912f06
|
(svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth.
|
2008-04-19 13:07:37 +00:00 |
|
rubidium
|
31411d4755
|
(svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob.
|
2008-04-18 10:58:11 +00:00 |
|
rubidium
|
9d8fa486af
|
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
|
2008-04-18 04:37:06 +00:00 |
|
rubidium
|
02cdf01507
|
(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.
|
2008-04-17 19:10:30 +00:00 |
|
rubidium
|
af3723e217
|
(svn r12687) -Change: show when a vehicle is actually leaving the station instead of loading/unloading.
|
2008-04-13 16:48:28 +00:00 |
|
rubidium
|
f1cd7ef5ee
|
(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.
|
2008-04-07 19:18:56 +00:00 |
|
rubidium
|
fb1c4eccd8
|
(svn r12593) -Codechange: hide Order's flags in most of the code.
|
2008-04-06 15:09:45 +00:00 |
|
rubidium
|
d6623cf654
|
(svn r12588) -Codechange: do not access the destination of an order directly.
|
2008-04-06 07:48:51 +00:00 |
|
rubidium
|
5b47f81b0f
|
(svn r12584) -Codechange: do not access the order type directly.
|
2008-04-05 23:36:54 +00:00 |
|
rubidium
|
ef2be7d0fc
|
(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.
|
2008-03-31 00:17:39 +00:00 |
|
rubidium
|
2edd403656
|
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
|
2008-03-31 00:06:17 +00:00 |
|
rubidium
|
4a1035ab95
|
(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.
|
2008-03-30 23:24:18 +00:00 |
|
rubidium
|
4c63dd074e
|
(svn r12470) -Codechange: split order related types from order.h (and openttd.h) to order_type.h.
|
2008-03-28 16:36:32 +00:00 |
|
rubidium
|
e9dad7637e
|
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
|
2008-03-27 14:34:29 +00:00 |
|
smatz
|
620695587d
|
(svn r12324) -Fix (r6789): vehicles could be sorted in a wrong order when a vehicle name changed - cached name was not invalidated
|
2008-03-02 00:25:54 +00:00 |
|
smatz
|
8dacca9a71
|
(svn r12323) -Fix [FS#1821](r6789): vehicle sorting by name was broken, it was comparing two the same strings (when caching was not used)
|
2008-03-01 23:53:58 +00:00 |
|
glx
|
62d9bf8d0f
|
(svn r12261) -Fix [FS#1805]: autoreplace did not update vehicle index for timetable window
|
2008-02-25 23:12:55 +00:00 |
|
smatz
|
a190606f2e
|
(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
|
2008-02-20 17:06:58 +00:00 |
|
smatz
|
a0ddc43e92
|
(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
|
2008-02-13 19:24:40 +00:00 |
|
peter1138
|
b7cd791988
|
(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...
|
2008-02-13 18:11:19 +00:00 |
|
maedhros
|
21eef65e77
|
(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.
|
2008-01-27 17:32:12 +00:00 |
|
smatz
|
1d59439166
|
(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
-Fix: refit button widget was not correctly updated
|
2008-01-18 13:02:47 +00:00 |
|
peter1138
|
68707808c0
|
(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.
|
2008-01-18 10:36:55 +00:00 |
|
peter1138
|
307b0e8e7a
|
(svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows
|
2008-01-17 21:57:20 +00:00 |
|
frosch
|
35f3421842
|
(svn r11899) -Cleanup: Remove ShowReplaceVehicleWindow() as it is basically a duplicate of ShowReplaceGroupVehicleWindow().
|
2008-01-17 17:35:59 +00:00 |
|
rubidium
|
576f8ad93e
|
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
|
2008-01-15 18:44:22 +00:00 |
|
peter1138
|
e4c05f8d78
|
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
|
2008-01-14 16:10:58 +00:00 |
|
rubidium
|
dc87b05e8c
|
(svn r11834) -Codechange: only include settings_type.h if needed.
|
2008-01-13 14:37:30 +00:00 |
|
rubidium
|
d4e6a6bf57
|
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
|
2008-01-13 01:21:35 +00:00 |
|
peter1138
|
ab8382c0db
|
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
|
2008-01-12 19:58:06 +00:00 |
|
rubidium
|
ac528411df
|
(svn r11818) -Codechange: split player.h into smaller pieces.
|
2008-01-12 14:10:35 +00:00 |
|
rubidium
|
0e517fe023
|
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
|
2008-01-09 09:45:45 +00:00 |
|
rubidium
|
a3ccdcea36
|
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
|
2008-01-07 14:23:25 +00:00 |
|
rubidium
|
38115acf5a
|
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
|
2008-01-07 14:02:26 +00:00 |
|
rubidium
|
a8a3a7e3f2
|
(svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location.
|
2008-01-07 09:19:53 +00:00 |
|
peter1138
|
fa83291a76
|
(svn r11742) -Codechange [FS#1319]: Run window tick events when paused, so that news pop-ups and the about window still progress. For other windows the events are ignored when paused.
|
2008-01-01 22:34:00 +00:00 |
|
rubidium
|
384503e7d3
|
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
|
2007-12-27 13:35:39 +00:00 |
|
rubidium
|
b9046c97fb
|
(svn r11702) -Codechange: move all date related stuff to date*.
|
2007-12-26 13:50:40 +00:00 |
|
rubidium
|
429521a7d1
|
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
|
2007-12-25 11:26:07 +00:00 |
|
rubidium
|
bf98e25e43
|
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
|
2007-12-25 09:48:53 +00:00 |
|
rubidium
|
8f0e68285b
|
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
|
2007-12-22 23:30:28 +00:00 |
|
rubidium
|
9e9cfe6e59
|
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
|
2007-12-21 21:50:46 +00:00 |
|
rubidium
|
433a9f3c09
|
(svn r11675) -Codechange: split the string types from the string functions.
|
2007-12-21 19:49:27 +00:00 |
|
rubidium
|
a6b1526c13
|
(svn r11672) -Codechange: refactor some stuff out of gui.h.
|
2007-12-21 07:38:36 +00:00 |
|
rubidium
|
d582aea639
|
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
|
2007-12-19 20:45:46 +00:00 |
|
rubidium
|
8896bea306
|
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
|
2007-12-19 19:44:29 +00:00 |
|
smatz
|
2a62aa1ccd
|
(svn r11601) -Codechange: more strict break conditions for _userstring, assert when it overflows anyway (eg. code change without proper check change)
|
2007-12-08 18:50:39 +00:00 |
|
rubidium
|
527b72749d
|
(svn r11555) -Codechange: use the new members introduced in r11551.
|
2007-12-02 14:29:48 +00:00 |
|
skidd13
|
71c4325c50
|
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
|
2007-11-19 21:02:30 +00:00 |
|
truelight
|
2493626f21
|
(svn r11396) -Fix: GCC 3.3 doesn't like 'static bool inline', should of course be 'static inline bool' (SmatZ)
|
2007-11-09 11:22:17 +00:00 |
|
truelight
|
69b1d97c03
|
(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13)
|
2007-11-04 22:47:34 +00:00 |
|
belugas
|
56e6282f2f
|
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
|
2007-11-04 00:08:57 +00:00 |
|
bjarni
|
27bf599ae2
|
(svn r11348) -Fix (r11049): [OSX] killed a warning (don't ask why only OSX showed this one)
|
2007-10-26 21:32:24 +00:00 |
|
belugas
|
705f0ae90c
|
(svn r11304) -Feature: Control-Clicking the Center Main View button on the vehicle window allows the main viewport to follow the chosen vehicle.(stevenh)
|
2007-10-20 00:09:39 +00:00 |
|
rubidium
|
127c7c9b0f
|
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
|
2007-09-26 17:33:32 +00:00 |
|
glx
|
7b7c66fb6b
|
(svn r11088) -Fix (r11063, r11067): MSVC warning C4804: '>' : unsafe use of type 'bool' in operation
|
2007-09-11 17:42:46 +00:00 |
|
rubidium
|
efea7622ac
|
(svn r11067) -Codechange: also make it possible to use the advanced vehicle list for other players. Patch by SmatZ.
|
2007-09-09 10:34:32 +00:00 |
|
rubidium
|
82f6a90a56
|
(svn r11060) -Codechange: replace some magic numbers with the right enumified constants.
|
2007-09-08 10:10:31 +00:00 |
|
rubidium
|
8a161d1488
|
(svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom.
|
2007-09-05 23:26:45 +00:00 |
|
rubidium
|
56ab253307
|
(svn r11031) -Codechange: reduce the amount of duplication of bit counting functions. Based on patches by skidd13, SmatZ and Belugas.
|
2007-09-01 08:31:36 +00:00 |
|
rubidium
|
cb7eaff353
|
(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
|
2007-08-30 13:03:56 +00:00 |
|
rubidium
|
a407d53d1b
|
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
|
2007-08-29 21:49:08 +00:00 |
|
rubidium
|
5d628e6135
|
(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.
|
2007-08-29 20:50:58 +00:00 |
|
rubidium
|
c03cb2c8db
|
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
|
2007-07-27 12:49:04 +00:00 |
|
peter1138
|
8b314ffd1f
|
(svn r10337) -Fix [FS#880]: Autoreplace is only valid for the standard vehicle list, not station or shared order lists.
|
2007-06-26 08:11:11 +00:00 |
|
peter1138
|
eb6594caa8
|
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
|
2007-06-25 13:30:38 +00:00 |
|
peter1138
|
fc7418d19d
|
(svn r10314) -Codechange: Refer to vehicle names by index
|
2007-06-24 22:42:11 +00:00 |
|
rubidium
|
9c0944aa09
|
(svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s.
-Fix: some displays of money were wrong.
|
2007-06-21 17:25:17 +00:00 |
|
rubidium
|
eb1472a82d
|
(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string.
|
2007-06-21 14:54:51 +00:00 |
|
rubidium
|
f806b46cc9
|
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
|
2007-06-21 14:32:27 +00:00 |
|
rubidium
|
49220cc6f1
|
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
|
2007-06-18 19:53:50 +00:00 |
|
rubidium
|
b09431478d
|
(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
|
2007-06-18 16:42:40 +00:00 |
|
rubidium
|
966e2738b9
|
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
|
2007-06-18 10:48:15 +00:00 |
|