Commit Graph

220 Commits

Author SHA1 Message Date
alberth a2e6035f16 (svn r18013) -Codechange: Add possibility to change window size during ReInit(). 2009-11-08 15:22:04 +00:00
rubidium 618621e851 (svn r18003) -Cleanup: prune some unused functions from Window 2009-11-07 22:29:17 +00:00
alberth 0bc03c25f4 (svn r17997) -Codechange: Introduce functions for querying top and bottom of the main view. 2009-11-07 17:24:04 +00:00
alberth b500170ac2 (svn r17995) -Codechange: PreventHiding() is used in one file, make it static. 2009-11-07 15:49:36 +00:00
rubidium 4a970202a9 (svn r17947) -Codechange: make the statusbar, chat input and news window know of eachothers size so they don't get overlapped and don't get invisible (bottoms) of windows when a larger font is used 2009-11-02 10:15:48 +00:00
rubidium 86fd0c0bce (svn r17922) -Fix [FS#3291]: crash when closing NewGRF parameter window with no NewGRF selected 2009-10-31 14:53:19 +00:00
alberth 82e21df3a4 (svn r17915) -Codechange: Allow windows to compute their own initial position. 2009-10-31 11:34:43 +00:00
smatz a558159faa (svn r17869) -Codechange: don't create OnScroll() event for zero delta 2009-10-25 17:01:45 +00:00
rubidium ca0521f89f (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 21fdc65ce4 (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 66721ffd36 (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 d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
rubidium e9624fe0cc (svn r17682) -Codechange: remove erroneous space before some commas 2009-10-02 15:13:15 +00:00
rubidium 0032405093 (svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class 2009-09-30 21:00:35 +00:00
alberth 116c77c342 (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 e8ddf001c8 (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 ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
frosch 734edc178d (svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already. 2009-09-13 17:37:47 +00:00
alberth afe190a216 (svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used. 2009-09-11 19:12:05 +00:00
rubidium 5cb22df0f5 (svn r17375) -Codechange: remove last direct usage of scrollbar variables 2009-09-02 08:58:20 +00:00
rubidium 900aedf270 (svn r17374) -Codechange: make the town and vehicle GUIs use the scrollbar wrappers 2009-09-02 08:48:29 +00:00
rubidium b06e026f97 (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 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
alberth e6a1da11a3 (svn r17175) -Codechange: Only auto-raise push buttons. 2009-08-14 21:27:08 +00:00
smatz c5533ae470 (svn r17168) -Codechange: apply coding style to if and while statements 2009-08-14 17:11:59 +00:00
frosch 52f9b8ffbd (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 6a1af7f74f (svn r17024) -Codechange: Allow InitNested to be done in two parts. 2009-08-01 15:49:18 +00:00
alberth 9856cc9d0a (svn r16963) -Codechange: Added NWidgetViewport widget. 2009-07-26 17:29:01 +00:00
frosch 55e07d0606 (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 8083d67780 (svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently. 2009-07-21 22:25:21 +00:00
alberth 1978c7dc87 (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 b6889daf8d (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 9be387761c (svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize. 2009-07-15 22:51:37 +00:00
rubidium 463b96a746 (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 9efd32d13c (svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations. 2009-07-12 12:19:41 +00:00
alberth 1d8e4a48b4 (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 7f851505f9 (svn r16778) -Codechange: Split window initialization in a data part and a size/position part. 2009-07-09 19:52:47 +00:00
alberth e1a26058e9 (svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty. 2009-07-05 14:26:29 +00:00
alberth d65c6cae54 (svn r16740) -Codechange: Self-sizing widgets in intro screen, town directory, and found town windows. 2009-07-04 15:35:36 +00:00
alberth 058bb5d6c3 (svn r16687) -Codechange: Perform re-initialization of windows with nested widgets after a language change. 2009-06-28 20:09:40 +00:00
alberth ec5db12adc (svn r16519) -Add: Prevent hiding of a window titlebar behind the status bar. 2009-06-05 07:25:26 +00:00
alberth 19ccf6912c (svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees. 2009-06-04 14:34:38 +00:00
alberth b144a5451c (svn r16516) -Codechange: Added click and drag handling for nested widgets. 2009-06-04 14:07:05 +00:00
alberth 1a4934ef07 (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 5c9071fcff (svn r16514) -Codechange: Add widget flags, and drawing and invalidating. 2009-06-03 21:13:13 +00:00
alberth 1ba3755aa7 (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 333795bc70 (svn r16495) -Codechange: Renamed a few variables. 2009-06-01 13:28:05 +00:00
alberth bab70a823d (svn r16491) -Codechange: Added parentheses around bitwise operators for code style. 2009-06-01 11:43:36 +00:00
alberth 6c126cc5c8 (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 101a6b3320 (svn r16467) -Codechange: Unduplicate setting of widget focus (with thanks to Smatz). 2009-05-30 12:41:53 +00:00