Commit Graph

236 Commits (420bc91436720fe63c72517d622064c3ccf0895b)

Author SHA1 Message Date
rubidium 46f90bef77 (svn r18273) -Codechange: do not require widget numbers for default widgets (close, sticky, resize buttons and the caption), except when you want to use SetStringParameter for the caption ofcourse. Also remove the requirement for some of the WDF flags; no need to test for both the flag whether a feature is used and whether the feature is in action. 15 years ago
rubidium 13371fa629 (svn r18206) -Fix [FS#3322]: on could 'pan' on the viewports of other windows, like the industry view, too 15 years ago
alberth 75e513d5b5 (svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays. 15 years ago
rubidium 8e11cd3a42 (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 15 years ago
rubidium 266a1d0f7d (svn r18150) -Codechange: make the horizontal scrollbar scroll in the opposite direction with RTL 15 years ago
rubidium 684e63e2b5 (svn r18130) -Codechange: initial steps into making the vehicle/group lists big font and RTL aware 15 years ago
rubidium c63b6887ef (svn r18120) -Fix (r18119): sometimes ReInit didn't dirty the new window 15 years ago
rubidium f3043f2006 (svn r18119) -Codechange/Fix: always call OnResize so the matrices/scrollbars are initialised without the need for duplicating the OnResize code 15 years ago
rubidium 23f0385d65 (svn r18095) -Fix (r18093): a bit too much nested_array != NULL removal 15 years ago
rubidium f20d3a55ec (svn r18093) -Fix: the mouseover handler could crash if there wasn't a widget under the mouse 15 years ago
rubidium 1f6f15a126 (svn r18092) -Codechange: remove support for the unnested widgets 15 years ago
alberth 452946cdad (svn r18090) -Fix: Only allow raising of WWT_* nested widgets. 15 years ago
rubidium c162fa0575 (svn r18088) -Codechange: remove CompareWidgetArrays 15 years ago
rubidium b01251092e (svn r18086) -Codechange: remove 'widget' from WindowDesc 15 years ago
alberth df877e480d (svn r18069) -Codechange: Initialize window flags at the same tme as the other fields instead of afterwards. 15 years ago
rubidium b3394dbeb4 (svn r18030) -Fix: screen jumped a bit for at least SDL and Allegro when right-click-dragging 15 years ago
alberth ade53126b4 (svn r18013) -Codechange: Add possibility to change window size during ReInit(). 15 years ago
rubidium 79a039b0df (svn r18003) -Cleanup: prune some unused functions from Window 15 years ago
alberth c7ca4691c4 (svn r17997) -Codechange: Introduce functions for querying top and bottom of the main view. 15 years ago
alberth 0fa6870eca (svn r17995) -Codechange: PreventHiding() is used in one file, make it static. 15 years ago
rubidium c4c56ea04d (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 15 years ago
rubidium 8742314bb8 (svn r17922) -Fix [FS#3291]: crash when closing NewGRF parameter window with no NewGRF selected 15 years ago
alberth 2a7d0de0b0 (svn r17915) -Codechange: Allow windows to compute their own initial position. 15 years ago
smatz 7921a5c7d0 (svn r17869) -Codechange: don't create OnScroll() event for zero delta 15 years ago
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. 15 years ago
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. 15 years ago
rubidium 6ba0dc05a7 (svn r17751) -Fix [FS#3253]: sometimes clicking on a for the user unfocused edit box would show the OSK (Zuu) 15 years ago
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium ed8788d581 (svn r17682) -Codechange: remove erroneous space before some commas 15 years ago
rubidium e3bb9351a4 (svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class 15 years ago
alberth d54028fde8 (svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array. 15 years ago
rubidium 310465da07 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
frosch 0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
frosch 263952f557 (svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already. 15 years ago
alberth 029c711732 (svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used. 15 years ago
rubidium 62c7948a4f (svn r17375) -Codechange: remove last direct usage of scrollbar variables 15 years ago
rubidium fc193fd902 (svn r17374) -Codechange: make the town and vehicle GUIs use the scrollbar wrappers 15 years ago
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 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
alberth bef94e081d (svn r17175) -Codechange: Only auto-raise push buttons. 15 years ago
smatz d64bdb138c (svn r17168) -Codechange: apply coding style to if and while statements 15 years ago
frosch e44a69b92f (svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them. 15 years ago
alberth eeaa337a21 (svn r17024) -Codechange: Allow InitNested to be done in two parts. 15 years ago
alberth 84507dc358 (svn r16963) -Codechange: Added NWidgetViewport widget. 15 years ago
frosch 1969cbd6e8 (svn r16957) -Fix: Trigger the same window repositioning after changing font/language as it is done after resizing the main OpenTTD window. 15 years ago
alberth 2399f91f62 (svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently. 15 years ago
alberth 05cbe62ba2 (svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used. 15 years ago
alberth 832c116b5b (svn r16848) -Fix: Trying to reduce a nested widget window further than the smallest alowed size should not crash the game. 15 years ago
alberth 62fc8bd6c5 (svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize. 15 years ago
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 15 years ago