Commit Graph

309 Commits

Author SHA1 Message Date
alberth
fdf0be0da8 (svn r21665) -Codechange: Make GetCallbackWnd a method of _thd. 2010-12-30 13:16:31 +00:00
alberth
7d989073d4 (svn r21627) -Codechange: Remove _place_proc global variable. 2010-12-24 15:08:19 +00:00
rubidium
004b2b6001 (svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed 2010-12-12 14:14:26 +00:00
terkhen
3524d55c6a (svn r21389) -Feature: Use alphabetical order when sorting industries by type at the industry directory window. 2010-12-04 22:54:11 +00:00
terkhen
64c200a25e (svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU. 2010-11-27 22:52:12 +00:00
terkhen
6352166908 (svn r21341) -Add: Use the complete industry name instead of only the town when sorting industries by name. 2010-11-27 22:42:24 +00:00
alberth
0722492c1b (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 2010-11-26 15:22:18 +00:00
rubidium
5ec2bcc0d9 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 2010-11-13 09:56:25 +00:00
alberth
063931d435 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 2010-10-30 17:51:07 +00:00
alberth
42f6245a31 (svn r21021) -Add [FS#4171]: Center industry gui and waypoint gui after resize (partly by Krille). 2010-10-23 20:51:48 +00:00
alberth
f502c82fa5 (svn r21019) -Add: Use center of industry to focus on in the industry gui. 2010-10-23 20:34:12 +00:00
planetmaker
310de59b0f (svn r20997) -Fix: Size of sort buttons for order and vehicle list gui could be too small 2010-10-19 21:48:20 +00:00
frosch
88a1b8c8d9 (svn r20902) -Fix [FS#4032]: Make IsProductionAlterable() work for most NewGRF industries.
The NewGRF either has to use properties 12/13, or it needs to set property 0B to 'primary industry'.
 So it will not work for bank-like industries which use pure production-callback production.
2010-10-04 20:20:50 +00:00
frosch
75f0653bdf (svn r20901) -Fix/Change: When using non-smooth or newgrf-economy changing production rates does not work (anymore), so allow changing the production multiplier instead. 2010-10-04 20:12:38 +00:00
frosch
1bbf059934 (svn r20899) -Codechange: Switch order of if-tests in IndustryViewWindow::OnClick(). 2010-10-04 20:00:23 +00:00
frosch
83a94cd560 (svn r20898) -Change: When entering a production rate, round to nearest possible rate instead towards zero. 2010-10-04 19:45:27 +00:00
frosch
ec38c7d687 (svn r20897) -Codechange: Store the result of IsProductionAlterable() in a member variable of IndustryViewWindow. 2010-10-04 19:35:40 +00:00
frosch
ebb4f36f34 (svn r20895) -Codechange: Use an enum to identify the rows of buttons in the industryview. 2010-10-04 19:14:43 +00:00
frosch
a2ad453239 (svn r20892) -Fix (maybe r10624): Scenario editor resp. cheat-buttons to alter industry production did not work for large industry windows. 2010-10-03 15:49:44 +00:00
frosch
221c1a259f (svn r20837) -Fix [FS#4132]: Set height of industry directory to 5 lines like other lists. 2010-09-22 19:47:01 +00:00
frosch
563afd0717 (svn r20751) -Fix: IndustryCargoesWindow::HousesCanAccept() did not check climate-availability of houses. 2010-09-05 19:46:04 +00:00
rubidium
360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 2010-08-26 22:01:16 +00:00
alberth
a51d34c048 (svn r20499) -Doc: Spelling fixes, and one doxygen comment addition. 2010-08-15 14:06:43 +00:00
frosch
1bc01bc4b6 (svn r20496) -Codechange: Remove IsProductionMinimum()/Maximum(). The 0 and 255 constants are used all over the place, no need for trivial wrapper functions. 2010-08-15 10:14:08 +00:00
frosch
2d5ef5e5a8 (svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR. 2010-08-12 09:16:43 +00:00
frosch
4817d5dcd6 (svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
2010-08-12 08:37:01 +00:00
frosch
341f41e347 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 2010-08-12 06:44:45 +00:00
rubidium
13fbe57957 (svn r20440) -Fix: MSVC warning about shifting a 32 bit value and then converting it to 64 bits 2010-08-10 16:17:51 +00:00
alberth
9b10773428 (svn r20415) -Add: Clicking at the smallmap disables updates from the industry chain window. 2010-08-08 11:21:24 +00:00
alberth
15f407acea (svn r20414) -Feature: Enable industries in the smallmap displayed in the industry chain window. 2010-08-08 11:17:14 +00:00
alberth
5967b81124 (svn r20412) -Codechange: Replace an if by a switch in IndustryCargoesWindow::OnClick. 2010-08-08 11:02:57 +00:00
alberth
a90c30d614 (svn r20397) -Feature: Display industry smallmap colour in the industry chain window. 2010-08-07 20:36:23 +00:00
alberth
9fed86a814 (svn r20387) -Fix [FS#4000]: Allow the industry-chain button for non-fundable industries, and disallow for the 'many random industries'. 2010-08-06 12:23:44 +00:00
alberth
03e8fe7c0e (svn r20386) -Fix: Initialize fund-industry buttons when opening window. 2010-08-06 12:19:01 +00:00
alberth
5f9d74467f (svn r20385) -Codechange: Move updating of buttons in the fund-industry window to a method. 2010-08-06 12:12:20 +00:00
frosch
5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
rubidium
8c85b4ce3d (svn r20281) -Codechange: unify case scope closure + break coding style 2010-08-01 18:53:30 +00:00
alberth
1743c86610 (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 2010-07-31 21:02:56 +00:00
alberth
3cd9351618 (svn r20241) -Codechange: Move variable declarations to their first use. 2010-07-30 10:39:24 +00:00
alberth
a50578c3ad (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 2010-07-26 13:08:48 +00:00
alberth
b378deff33 (svn r20216) -Fix: Increase scrolling speed of industry cargoes window, enlarge height slightly so small chains fit by default. 2010-07-25 12:38:06 +00:00
alberth
3dc9989841 (svn r20210) -Fix (r20206): Allow other compilers to enjoy the new window too. 2010-07-23 19:07:00 +00:00
alberth
a5e0362851 (svn r20209) -Add: Allow access to the industry cargoes window from the fund industry window. 2010-07-23 18:46:52 +00:00
alberth
76a00e51ad (svn r20208) -Add: Allow access of the industry cargoes window from the industry view window. 2010-07-23 18:44:04 +00:00
alberth
6490c06a66 (svn r20207) -Codechange: Move variable declaration to first use. 2010-07-23 18:40:39 +00:00
alberth
b4358056ee (svn r20206) -Feature: Display suppliers and customers of an industry or cargo. 2010-07-23 18:39:02 +00:00
rubidium
9fd2afb147 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 2010-07-19 17:28:27 +00:00
rubidium
60b93f5c69 (svn r20190) -Codechange: unVARDEF _generate_world and move it to genworld 2010-07-19 17:17:36 +00:00
frosch
4da8f78f5b (svn r20086) -Add: Textstack support for CB 38. 2010-07-07 20:00:04 +00:00
frosch
a5bea603ea (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. 2010-06-05 12:16:12 +00:00
frosch
ee53807e51 (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. 2010-05-31 20:22:57 +00:00
rubidium
cb92cdf975 (svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables 2010-04-24 13:39:11 +00:00
frosch
b4a9e9cadc (svn r19701) -Fix [FS#3787]: Check for industry availability more thoroughly and cancel object placement when selecting not available industries. 2010-04-23 21:47:03 +00:00
yexo
1c9877b0c7 (svn r19538) -Fix: sorting industries by production was broken for newgrf industries 2010-04-02 11:03:56 +00:00
terkhen
a68f917179 (svn r19522) -Feature: Sort industries alphabetically at the fund new industry window. 2010-03-28 12:29:41 +00:00
terkhen
bda9ad98c1 (svn r19521) -Codechange: Use a IndustryType array to sort industries by name instead of a LegendAndColour array. 2010-03-28 12:25:09 +00:00
alberth
68213d25ab (svn r19423) -Codechange: Move error message reporting of industry build in SE to a callback. 2010-03-14 19:59:45 +00:00
smatz
5504b1105e (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 2010-02-24 14:46:15 +00:00
yexo
edf2fd1433 (svn r19176) -Fix [FS#3632] (r17859): when selecting "build many industries" in the scenario editor the "build" button wasn't enabled 2010-02-20 21:21:54 +00:00
rubidium
1c468db7d5 (svn r19087) -Codechange: some typos in StringIDs 2010-02-10 20:20:18 +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
rubidium
6cac8be361 (svn r18717) -Codechange: use TileArea in industry instead of three separate variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry. 2010-01-04 18:21:07 +00:00
yexo
566df4c8bf (svn r18707) -Fix (r17802): local variables should not be accessed after the function returns 2010-01-03 22:43:12 +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
yexo
e0b9aaac4f (svn r18512) -Fix (r17859) [FS#3376]: assert when clicking the industry button in the scenario editor 2009-12-15 22:39:58 +00:00
rubidium
32b86b23b5 (svn r18447) -Change: make some more windows (e.g. graphs, company view) stickyable 2009-12-09 17:10:57 +00:00
rubidium
8c11679381 (svn r18342) -Fix: erroneous spaces before ; 2009-11-29 19:20: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
ab417c6c06 (svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input 2009-11-24 21:13:36 +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
alberth
5bee09c924 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 2009-11-22 18:28:14 +00:00
alberth
18b33fde83 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 2009-11-22 18:26:01 +00:00
alberth
8139a8d96f (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 2009-11-22 13:22:53 +00:00
rubidium
c227abd7c3 (svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars 2009-11-22 11:24:30 +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
peter1138
05a6b7bfeb (svn r18151) -Codechange: Let industry build/found widgets fill the window. 2009-11-17 19:12:49 +00:00
rubidium
a13fd6ddce (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 2009-11-16 20:34:57 +00:00
rubidium
b01251092e (svn r18086) -Codechange: remove 'widget' from WindowDesc 2009-11-15 10:26:01 +00:00
smatz
b27a12b8b6 (svn r18057) -Codechange: replace assert_compile() by new one which works with gcc3.3 and removes the need of assert_tcompile() 2009-11-13 15:53:51 +00:00
alberth
5a97b64d73 (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
2009-10-31 19:46:51 +00:00
rubidium
5be6edc6e3 (svn r17859) -Codechange: make the fund/build/prospect industry window nested 2009-10-24 19:36:24 +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
alberth
e05313e41d (svn r17828) -Codechange: Variable declaration code style, and a few comment typo-ish fixes. 2009-10-20 20:06:25 +00:00
frosch
966d8d8f52 (svn r17810) -Codechange/Fix: Add assert_tcompile() and use it.
OTTD's traditional assert_compile() does not work inside templates for gcc compilers, static_assert() does though.
  The new assert_tcompile() resolves into static_assert() if present, or into a runtime assert() else.
2009-10-18 20:26:29 +00:00
frosch
c1e005ac88 (svn r17802) -Feature(ette) [FS#1862]: [NewGRF] Textstack support for CB 37. 2009-10-18 15:36:30 +00:00
alberth
aa75552957 (svn r17799) -Codechange: industry view window uses pure nested widgets. 2009-10-18 14:10:59 +00:00
alberth
9c31915368 (svn r17798) -Codechange: Introduce new constant WD_PAR_VSEP_WIDE for large amount of space between text. 2009-10-18 13:59:25 +00:00
alberth
1f3dedea24 (svn r17797) -Codechange: Use parameters of new function, introduce constants for hardcoded numbers. 2009-10-18 13:56:09 +00:00
alberth
9b8030612f (svn r17796) -Codechange: Move drawing of the industry info to its own function. 2009-10-18 13:40:11 +00:00
rubidium
b72898c8a3 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 2009-10-17 14:29:10 +00:00
rubidium
982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
smatz
13437a998e (svn r17603) -Codechange: since now, towns are 'founded' instead of 'built' 2009-09-21 18:16:00 +00:00
alberth
d54028fde8 (svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array. 2009-09-19 11:31:12 +00:00
rubidium
c2c0f4403e (svn r17534) -Codechange: unify the naming of callback masks/flags 2009-09-14 12:22:57 +00:00
frosch
0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
smatz
2fafa87aa1 (svn r17445) -Fix (r17318): force resort after changing sort type in the industry list window 2009-09-07 08:52:01 +00:00