Commit Graph

138 Commits

Author SHA1 Message Date
yexo
f8773d001c (svn r19187) -Fix [FS#3634]: the vehicle info in the autoreplace gui was drawn even when the window was shaded 2010-02-21 17:52:43 +00:00
frosch
94a5c917a5 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 2010-01-30 18:34:48 +00:00
rubidium
9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 2010-01-15 16:41:15 +00:00
alberth
0e9dac92d2 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 2009-12-21 16:24:29 +00:00
alberth
f20e477a02 (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 2009-12-20 20:08:39 +00:00
rubidium
45eb0be570 (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 2009-11-28 14:42:35 +00:00
rubidium
50359b2d08 (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 2009-11-24 18:05:55 +00:00
rubidium
f8b79068e6 (svn r18274) -Codechange: remove the unused WDF flags 2009-11-24 17:28:29 +00:00
rubidium
78f783b89b (svn r18238) -Codechange: make the autoreplace window big font aware 2009-11-22 19:19:11 +00:00
rubidium
1ee0705dc4 (svn r18235) -Fix: like r18233, but for the non-trains 2009-11-22 18:51:21 +00:00
alberth
4d93e7728d (svn r18233) -Fix: Fix matrix widget of the autoreplace gui. 2009-11-22 18:32:03 +00:00
alberth
5bee09c924 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 2009-11-22 18:28:14 +00:00
alberth
8139a8d96f (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 2009-11-22 13:22:53 +00:00
rubidium
f106bbbe5c (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 2009-11-22 11:20:12 +00:00
rubidium
8e11cd3a42 (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 2009-11-17 19:16:48 +00:00
rubidium
f3043f2006 (svn r18119) -Codechange/Fix: always call OnResize so the matrices/scrollbars are initialised without the need for duplicating the OnResize code 2009-11-16 16:42:04 +00:00
rubidium
495461bc79 (svn r18118) -Codechange: improve behaviour of the engine lists (both build vehicle/autoreplace) w.r.t. large(r) fonts and RTL. RTL support for 'wider than usual' vehicles is still needed though. 2009-11-16 16:22:14 +00:00
rubidium
95e1684841 (svn r18117) -Codechange: don't pass the location of the vehicle count but whether to show the vehicle count 2009-11-16 15:11:54 +00:00
rubidium
b01251092e (svn r18086) -Codechange: remove 'widget' from WindowDesc 2009-11-15 10:26:01 +00:00
rubidium
ad1e735dc5 (svn r18071) -Codechange: remove the need for {SKIP} in the autoreplace window + strings 2009-11-14 12:50:38 +00:00
rubidium
104128a145 (svn r17892) -Feature [FS#1760]: automatically select the railtype with the most engines for the autoreplace window/try to avoid showing an empty autoreplace list 2009-10-27 20:19:05 +00:00
rubidium
c1365b3cc1 (svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone. 2009-10-24 14:53:55 +00:00
frosch
9259446b76 (svn r17830) -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately. 2009-10-20 21:25:25 +00:00
alberth
9669ae4869 (svn r17823) -Codechange: Use top of the matrix widget as offset for row calculation in autoreplace window. 2009-10-20 18:39:45 +00:00
frosch
0557a47162 (svn r17803) -Codechange: Remove update_(left|right) in favour of the rebuild flag of GUIList. 2009-10-18 16:31:27 +00:00
alberth
36b28dd48a (svn r17785) -Codechange: autoreplace window uses pure nested widgets. 2009-10-17 14:26:40 +00:00
alberth
d2a66d68c5 (svn r17784) -Codechange: Replace 'i' with 'side' when side is intended in the autoreplace window. 2009-10-17 08:18:55 +00:00
alberth
0bc7475032 (svn r17783) -Codechange: Remove local pointer variable 'widget' from autoreplace window. 2009-10-17 08:14:39 +00:00
alberth
735c261633 (svn r17781) -Codechange: Remove local variable 'selected_group' from autoreplace window. 2009-10-17 08:10:46 +00:00
alberth
82a29ef80d (svn r17780) -Codechange: A bit more code style in the autoreplace window. 2009-10-17 07:47:59 +00:00
alberth
df39af7be8 (svn r17764) -Codechange: Replace 'list' class variable in ReplacceVehicleWindow by 'engines'. 2009-10-11 13:09:44 +00:00
alberth
ab4e195072 (svn r17763) -Codechange: Rename 'wagon_btnstate' to 'replace_engines', and 'init_lists' to 'reset_sel_engine' in ReplaceVehicleWindow, add doxygen comments. 2009-10-11 12:51:15 +00:00
alberth
628f175154 (svn r17761) -Codechange: Removed some unused/unneeded variables from ReplaceVehicleWindow. 2009-10-11 11:47:21 +00:00
smatz
7c74afb1c3 (svn r17692) -Codechange: minor coding style fixes 2009-10-04 17:10:57 +00:00
rubidium
1854c5efec (svn r17530) -Codechange: use QSortT instead of qsort for sorting EngineIDs 2009-09-13 17:47:07 +00:00
rubidium
2e59affde5 (svn r17367) -Codechange: make the autoreplace, bridge and build vehicle GUIs use the scrollbar wrappers 2009-09-02 07:17:15 +00:00
rubidium
99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium
d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 2009-08-05 17:59:21 +00:00
alberth
fe9f5cbc46 (svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field. 2009-07-16 16:22:23 +00:00
rubidium
e39646d93b (svn r16841) -Cleanup: spaces/tabs where they don't belong 2009-07-16 10:01:32 +00:00
belugas
af54ba7bfc (svn r16611) -Doc Fix(r16606): "then" became "the" and now is gone.
In other words, fix a comment ;)
2009-06-20 23:22:46 +00:00
alberth
484a915ec2 (svn r16606) -Doc: Added/fixed doxygen comments. 2009-06-20 15:48:55 +00:00
yexo
68042a6dde (svn r16433) -Codechange: Remove most of CmdSetAutoreplace and replace it with calls to CmdChangeCompanySetting 2009-05-26 13:29:01 +00:00
smatz
d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
yexo
d489f93473 (svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct 2009-05-15 23:55:06 +00:00
rubidium
3bd4eeb178 (svn r16162) -Codechange: remove needless TC_ colours from DrawString when they are part of strings and add some colours to a few strings. 2009-04-26 15:26:19 +00:00
rubidium
5c5b357043 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 2009-04-21 23:40:56 +00:00
alberth
bbd546b792 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 2009-03-29 09:49:11 +00:00
yexo
2965004426 (svn r15870) -Codechange: New widgets for the autoreplace window. 2009-03-28 04:26:43 +00:00
rubidium
64e7ab4025 (svn r15807) -Codechange: let the build vehicle gui helper function pass around left and right instead of only left and assuming infinite width. 2009-03-22 11:06:25 +00:00