Commit Graph

211 Commits

Author SHA1 Message Date
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
alberth bfaf610fff (svn r16466) -Codechange: Improved wording in comments. 2009-05-30 11:42:19 +00:00
alberth bfb8df3fb9 (svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once. 2009-05-30 11:30:25 +00:00
alberth 5eecf3e5cb (svn r16463) -Cleanup: Code style fixes. 2009-05-30 11:01:05 +00:00
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
alberth db7e24e211 (svn r16317) -Codechange: Generalized finding a widget by type. 2009-05-16 11:25:19 +00:00
rubidium 2664f2a2d9 (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 efde51e452 (svn r16226) -Codechange: Separating generation of a widget array from WindowDesc to the InitializeWidgetArrayFromNestedWidgets function. 2009-05-04 18:40:37 +00:00
rubidium 329cabab4f (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing 2009-04-19 10:31:30 +00:00
alberth 9d2738b9c4 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 2009-03-29 09:49:11 +00:00