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
rubidium
6ba0dc05a7
(svn r17751) -Fix [FS#3253]: sometimes clicking on a for the user unfocused edit box would show the OSK (Zuu)
2009-10-10 12:11:05 +00:00
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
ed8788d581
(svn r17682) -Codechange: remove erroneous space before some commas
2009-10-02 15:13:15 +00:00
rubidium
e3bb9351a4
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
2009-09-30 21:00:35 +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
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +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
frosch
263952f557
(svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already.
2009-09-13 17:37:47 +00:00
alberth
029c711732
(svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used.
2009-09-11 19:12:05 +00:00
rubidium
62c7948a4f
(svn r17375) -Codechange: remove last direct usage of scrollbar variables
2009-09-02 08:58:20 +00:00
rubidium
fc193fd902
(svn r17374) -Codechange: make the town and vehicle GUIs use the scrollbar wrappers
2009-09-02 08:48:29 +00:00
rubidium
f1ba8fb206
(svn r17365) -Codechange: introduce wrapper functions to update the position, capacity and count of scroll bars. This to (eventually) prevent the scrollbar overflowing outside of the window
2009-09-02 06:34:40 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
alberth
bef94e081d
(svn r17175) -Codechange: Only auto-raise push buttons.
2009-08-14 21:27:08 +00:00
smatz
d64bdb138c
(svn r17168) -Codechange: apply coding style to if and while statements
2009-08-14 17:11:59 +00:00
frosch
e44a69b92f
(svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them.
2009-08-10 20:06:39 +00:00
alberth
eeaa337a21
(svn r17024) -Codechange: Allow InitNested to be done in two parts.
2009-08-01 15:49:18 +00:00
alberth
84507dc358
(svn r16963) -Codechange: Added NWidgetViewport widget.
2009-07-26 17:29:01 +00:00
frosch
1969cbd6e8
(svn r16957) -Fix: Trigger the same window repositioning after changing font/language as it is done after resizing the main OpenTTD window.
2009-07-25 15:58:48 +00:00
alberth
2399f91f62
(svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently.
2009-07-21 22:25:21 +00:00
alberth
05cbe62ba2
(svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used.
2009-07-20 18:39:38 +00:00
alberth
832c116b5b
(svn r16848) -Fix: Trying to reduce a nested widget window further than the smallest alowed size should not crash the game.
2009-07-16 18:31:33 +00:00
alberth
62fc8bd6c5
(svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize.
2009-07-15 22:51:37 +00:00
rubidium
fd980be463
(svn r16815) -Fix: reduce the toolbar's priority for handling keypresses from most important to least important, so e.g. the order windows' 'd' skips to the next order
2009-07-13 16:41:34 +00:00
alberth
95ac767add
(svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations.
2009-07-12 12:19:41 +00:00
alberth
99455ffb49
(svn r16779) -Fix: Take real smallest size of nested widgets into account for initial window position.
2009-07-09 19:57:33 +00:00
alberth
b417938f74
(svn r16778) -Codechange: Split window initialization in a data part and a size/position part.
2009-07-09 19:52:47 +00:00
alberth
36ce7e09ef
(svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty.
2009-07-05 14:26:29 +00:00
alberth
43ee12137b
(svn r16740) -Codechange: Self-sizing widgets in intro screen, town directory, and found town windows.
2009-07-04 15:35:36 +00:00
alberth
194701b27a
(svn r16687) -Codechange: Perform re-initialization of windows with nested widgets after a language change.
2009-06-28 20:09:40 +00:00
alberth
e77b0adb53
(svn r16519) -Add: Prevent hiding of a window titlebar behind the status bar.
2009-06-05 07:25:26 +00:00
alberth
e47ca002d2
(svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees.
2009-06-04 14:34:38 +00:00
alberth
cbf2d24ebb
(svn r16516) -Codechange: Added click and drag handling for nested widgets.
2009-06-04 14:07:05 +00:00
alberth
24b2876cb5
(svn r16515) -Codechange: Added scrollbar handling for nested widgets, and finding widgets by type or position in the tree.
2009-06-04 12:46:37 +00:00
alberth
ed0a0a681a
(svn r16514) -Codechange: Add widget flags, and drawing and invalidating.
2009-06-03 21:13:13 +00:00
alberth
bb075195b9
(svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array.
2009-06-03 20:00:33 +00:00
alberth
53c60be207
(svn r16495) -Codechange: Renamed a few variables.
2009-06-01 13:28:05 +00:00
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
2009-06-01 11:43:36 +00:00
alberth
5207900285
(svn r16484) -Cleanup: Renamed widget variable to widget_index and introduced widget_type variable.
...
-Fix: Prevented out-of-bounds array access when not clicking at a widget.
2009-05-31 14:30:58 +00:00
alberth
3e78641156
(svn r16467) -Codechange: Unduplicate setting of widget focus (with thanks to Smatz).
2009-05-30 12:41:53 +00:00
alberth
c9e3d041fb
(svn r16466) -Codechange: Improved wording in comments.
2009-05-30 11:42:19 +00:00
alberth
b96e1dc80c
(svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once.
2009-05-30 11:30:25 +00:00
alberth
feaaf78a63
(svn r16463) -Cleanup: Code style fixes.
2009-05-30 11:01:05 +00:00
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00
alberth
b46d9079ce
(svn r16317) -Codechange: Generalized finding a widget by type.
2009-05-16 11:25:19 +00:00
rubidium
241af768f0
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
2009-05-06 15:06:57 +00:00
alberth
adfc9c968c
(svn r16226) -Codechange: Separating generation of a widget array from WindowDesc to the InitializeWidgetArrayFromNestedWidgets function.
2009-05-04 18:40:37 +00:00
rubidium
e88cb7f70f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
2009-04-19 10:31:30 +00:00