belugas
5c3a18fa90
(svn r13994) -Codechange: replace a few rogue magic numbers with Colours enum values
2008-08-04 17:27:06 +00:00
belugas
faaa637987
(svn r13883) -Codechange: Replace numbers with Colours enum on graph gui
2008-07-30 17:39:26 +00:00
belugas
63f7214abd
(svn r13882) -Codechange: Replace widget numbers with appropriate enums
2008-07-30 17:13:55 +00:00
rubidium
3a799389eb
(svn r13731) -Codechange: make a pool of the array of players.
2008-07-18 16:40:29 +00:00
skidd13
1ddafcadd2
(svn r13521) -Codechange: Use GUIList sorting instead of poll & sort for CompanyLeagueWindow
2008-06-15 15:48:33 +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
3455844ea3
(svn r13156) -Codechange: make classes of the GraphWindows.
2008-05-18 11:23:41 +00:00
rubidium
cc3a41bfa9
(svn r13155) -Codechange: make a window class of the company league and graph legenda windows.
2008-05-18 09:39:40 +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
rubidium
3b97cc2e30
(svn r13121) -Codechange: make a class of the PerformanceRatingDetailWindow.
2008-05-16 17:45:43 +00:00
rubidium
23fc96c3e8
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
2008-05-08 11:50:34 +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
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
rubidium
bbdc5a9314
(svn r11979) -Codechange: drop MSVC 2003 support because MSVC 2003 is broken in such a manner that it triggers an internal compiler error without any clue what of the code is wrong. Even trying to bisect the problem does not give a single line of code that causes the trouble.
2008-01-24 18:47:05 +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
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
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
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
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
rubidium
faf096f506
(svn r11559) -Fix [FS#1505]: overflow when drawing graphics with high company values.
2007-12-02 19:21:56 +00:00
rubidium
527b72749d
(svn r11555) -Codechange: use the new members introduced in r11551.
2007-12-02 14:29:48 +00:00
skidd13
bf959f926f
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
2007-11-24 10:38:43 +00:00
skidd13
a91c2a4c39
(svn r11485) -Codechange: Remove the doubled function ToggleBitT and rename the remaining to fit with the naming style
2007-11-20 14:11:19 +00:00
skidd13
eeaa348f8b
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
2007-11-20 13:35:54 +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
skidd13
50bfe1a19d
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
2007-11-19 18:58:04 +00:00
skidd13
8be526e499
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
2007-11-19 18:38:10 +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
rubidium
8212088c03
(svn r11312) -Codechange: implement a overflow safe integer and use that for money and don't misuses CommandCost to have a overflow safe integer. Based on a patch by Noldo.
2007-10-20 14:51:09 +00:00
rubidium
b1effc466e
(svn r11039) -Fix [FS#1191]: underflow that caused overflows in the performance rating calculation.
2007-09-02 20:41:46 +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
rubidium
efc7fdf2fd
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
2007-07-16 09:16:58 +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
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
80c259f64f
(svn r9672) -Cleanup: lots of coding style fixes around operands.
2007-04-18 22:10:36 +00:00
peter1138
49eb9b6fad
(svn r9638) -Feature: Increase cargo types from 12 to 32 and enable newcargo flag in NewGRF loader.
2007-04-15 16:20:35 +00:00
peter1138
fc540fcd0d
(svn r9435) -Fix (r8972): ensure the cargo payment graph is at least 12 "items" high
2007-03-24 18:56:59 +00:00
peter1138
d7f56f1550
(svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops.
2007-03-21 13:19:01 +00:00
peter1138
c94480ab80
(svn r9079) -Codechange: add WWT_LAST widget when dynamically building cargo payment graph
2007-03-09 22:55:04 +00:00
rubidium
24c4d5b06d
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
2007-03-07 12:11:48 +00:00
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
peter1138
8f2a554864
(svn r8989) -Fix: more indenting and variable scoping
2007-03-03 09:58:20 +00:00
peter1138
879eca8e23
(svn r8972) -Codechange: Dynamically add buttons on the cargo payment graph. This lets us remove the gaps and allow more than 12 cargo types later.
2007-03-02 11:36:34 +00:00
belugas
978d7da818
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
2007-03-01 01:24:44 +00:00
peter1138
ef2daa5060
(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels.
2007-02-20 22:09:21 +00:00
maedhros
7a685a35fc
(svn r8612) -Fix (r117) [FS#582]: When the currently selected player in the performance
...
details window is no longer active, choose the first active player instead of
the first player as that may also be inactive.
2007-02-06 15:50:15 +00:00
rubidium
c8882bd3d2
(svn r8511) -Codechange: make WindowClass an enumerated value.
2007-02-01 15:49:12 +00:00
maedhros
18fa2ca233
(svn r8374) -Fix (r8367): LLONG_MAX isn't always defined, and INT64_MAX describes the
...
required value better anyway. However, INT64_MAX comes from stdint.h which
doesn't seem to exist on MSVC or MorphOS, so it's defined manually for them.
2007-01-23 15:47:28 +00:00
maedhros
914c8147c0
(svn r8369) -Cleanup: [Graphs] Rename include_neg and adj_height to more descriptive names, and add some more comments.
2007-01-23 12:41:04 +00:00
maedhros
a014ace8e7
(svn r8368) -Cleanup: [Graphs] Rename the variables relating to whether datasets should be drawn, and use HASBIT for testing against them.
2007-01-23 12:19:41 +00:00
maedhros
3e43565fb3
(svn r8367) -Fix: [Graphs] Don't try to use the same value to mean something is invalid for both an int64 and a uint.
2007-01-23 11:20:59 +00:00
maedhros
75e7b2e6df
(svn r8366) -Codechange: [Graphs] Make the scaling code less cryptic, and fix two longstanding bugs.
...
1) If the graph contained negative values, the y axis labels were half the size they should have been.
2) If the maximum value was larger than the height of the graph in pixels << 32, all datapoints were scaled to 0.
2007-01-23 10:21:51 +00:00
maedhros
a830397501
(svn r8356) -Codechange: [Graphs] Rename mx to highest_value, and fix the scaling for negative values.
2007-01-22 20:38:19 +00:00
maedhros
35c80532e9
(svn r8350) -Codechange: [Graphs] Use DrawStringCentered instead of a hardcoded offset to make the string appear centred.
2007-01-22 16:26:45 +00:00
maedhros
053dd86a3c
(svn r8347) -Codechange: [Graphs] Make some more variables local to the loops they're used in, and remove some assumptions about the size of an array.
2007-01-22 15:46:57 +00:00
maedhros
17c71f4557
(svn r8330) -Codechange: Remove num_x and num_dataset from DrawGraph.
2007-01-21 20:54:29 +00:00
maedhros
e371c67199
(svn r8329) -Codechange: Remove the the horribly abused j and k variables completely, and make i local to each loop it's used in.
2007-01-21 20:34:28 +00:00
maedhros
2b2fdc1281
(svn r8328) -Codechange: Remove some magic numbers in the graph drawing code.
2007-01-21 20:14:35 +00:00
maedhros
06362c3535
(svn r8322) -Codechange: Rename unk61A and unk61C to something a little more descriptive.
2007-01-21 19:19:25 +00:00
maedhros
84f4ca8b56
(svn r8319) -Codechange: Remove the remaining colours from GraphDrawer as they're also the same everywhere.
2007-01-21 18:42:15 +00:00
maedhros
699d8709c1
(svn r8317) -Codechange: Remove GraphDrawer::bg_line_color since it was the same everywhere it was set.
2007-01-21 18:07:35 +00:00
maedhros
1564c74259
(svn r8312) -Fix (r8038, sort of): Operating profit and the company value can be negative,
...
so don't put them in an unsigned variable before drawing them in the various
graphs. Although the code didn't change, this only seems to have broken since
we started compiling it as C++.
2007-01-21 15:03:37 +00:00
maedhros
38647bb426
(svn r8301) -Codechange: Move the code relating to the sign list window from graph_gui.cpp to a file of its own: signs_gui.cpp.
2007-01-21 12:35:35 +00:00
maedhros
7a7562d8e2
(svn r8300) -Codechange: Add a prototype for DrawPlayerIcon to players.h and include that
...
instead of using externs. Also move DrawPlayerIcon from graph_gui.cpp to
players.cpp.
2007-01-21 11:49:18 +00:00
peter1138
92d418b031
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +00:00
KUDr
33be1ecfb1
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
2007-01-11 17:29:39 +00:00
celestar
2ac0410767
(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
2007-01-11 11:05:01 +00:00
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00