frosch
629b350a71
(svn r20451) -Codechange: Add helper function Window::GetScrollbar() to get the Scrollbar belonging to a scrollbar widget.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
alberth
97f85f7bfb
(svn r20222) -Add: Add functions to compute the row in a scrolled widget.
14 years ago
alberth
3a1451644a
(svn r20221) -Codechange: Move unscrolled row calculation into a function.
14 years ago
rubidium
0e078670b7
(svn r20145) -Codechange: keep original RMB->tooltip behaviour when hovering is disabled and there is no handled right click event for the widget, i.e. if a widget would handle the right click you won't see the tooltip anymore by right clicking; by enabling hovering you would get access to that tooltip again.
14 years ago
terkhen
9cf9bb9b92
(svn r20121) -Add: OnHover method for windows.
14 years ago
terkhen
10fbb87823
(svn r20120) -Feature [FS#3913]: Tooltips are shown by hovering the mouse over a widget instead of by right clicking on it.
14 years ago
terkhen
51e6cb0a70
(svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse.
14 years ago
terkhen
9aef7b8c3d
(svn r20118) -Add: Detect if the mouse has been hovering over the same point.
14 years ago
frosch
38b8259f3b
(svn r19943) -Fix [FS#3865]: Disallow moving of vehicle news window.
15 years ago
alberth
113f3ef0eb
(svn r19904) -Codechange: Make EventState usable outside Window context.
15 years ago
alberth
fc82d9cd77
(svn r19903) -Codechange: Use SpecialMouseMode enum as type of _special_mouse_mode.
15 years ago
alberth
ae560aeb8b
(svn r19886) -Add [FS#3705]: Perform window callback during mouse dragging for the purpose of highlighting the destination (sbr).
15 years ago
frosch
68c1213efa
(svn r19746) -Fix [FS#3675]: Do not recenter usually centered windows when resizing main window or changing language, if they have been moved/resized before.
15 years ago
rubidium
e75e2648fc
(svn r19706) -Add: support for the (NewGRF) debug box
15 years ago
smatz
53aaabe6e9
(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET
15 years ago
frosch
88019e64e1
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
15 years ago
rubidium
37b0a61b42
(svn r18900) -Document: that an empty string for OnQueryTextFinished means 'use default'
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
de3cff9e1a
(svn r18675) -Add [FS#3256]: function to remove focus from all widgets in a window
15 years ago
alberth
b30e56850c
(svn r18607) -Fix (r18583): Preserve window width when shading.
15 years ago
alberth
3323d64f28
(svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes.
15 years ago
alberth
ca66652005
(svn r18583) -Codechange: Add WWT_SHADEBOX widget and its functions (heavily based on code by erikjanp).
15 years ago
rubidium
c03aadda08
(svn r18582) -Codechange: save 8 bytes from the Window class
15 years ago
alberth
5a083f183e
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
15 years ago
alberth
20debea202
(svn r18579) -Codechange: Add orientation to scrollbars.
15 years ago
alberth
614501b1be
(svn r18542) -Codechange: Make nested widget parts obligatory in a window description.
15 years ago
alberth
ccd7399ea0
(svn r18348) -Doc: Doxygen fixes, and removal of an old @note.
15 years ago
alberth
5187a5980b
(svn r18345) -Codechange: Warn the window that it gets initialized, so it can do some work ahead.
15 years ago
alberth
1f70f065d6
(svn r18336) -Cleanup (r18092): Remove declaration of an already removed function.
15 years ago
rubidium
293dfd7c3e
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
15 years ago
rubidium
b58b058e2b
(svn r18321) -Fix [FS#3331]: make the toolbars also calculate their top location based on the main toolbar's height instead of hardcoding that
15 years ago
rubidium
6a367fda8a
(svn r18320) -Codechange: make the terraform and transparency window not use absolute location but manually calculate based on toolbar size etc.
15 years ago
rubidium
458c73aecb
(svn r18318) -Codechange: add an enum value for manual window placement
15 years ago
rubidium
69b6d9309a
(svn r18274) -Codechange: remove the unused WDF flags
15 years ago
alberth
450e40b997
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
15 years ago
rubidium
da25f121ac
(svn r18195) -Codechange: move the child padding calculation/handling to WWT_FRAME
...
-Fix (r18168): crash when switching languages when a non-standard font height is used
15 years ago
rubidium
5f2ddfbc5a
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
15 years ago
rubidium
aeb9f8e715
(svn r18092) -Codechange: remove support for the unnested widgets
15 years ago
rubidium
b812a48a8d
(svn r18089) -Codechange: remove ResizeWindowForWidget
15 years ago
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
15 years ago
alberth
94261ad01a
(svn r18069) -Codechange: Initialize window flags at the same tme as the other fields instead of afterwards.
15 years ago
rubidium
485b5a9c2f
(svn r18045) -Fix: GCC 4.5@HEAD not compiling OpenTTD anymore because of a "non-placement deallocation function [is] selected for placement delete", or in other words delete(void *, size_t) is 'magic'.
...
We implemented these delete(void *, size_t) operator functions because MSVC warned that "no matching operator delete found; memory will not be freed if initialization throws an exception" for new(size_t, size_t).
This disables MSVC warning about this because we do not use exceptions in the (constructors that use the) overridden allocation functions, as such they will never be called; delete(void *) remains necessary though.
15 years ago
rubidium
8f9157b648
(svn r18040) -Codechange: the size parameter (if it's that actually) isn't needed for the delete operator
15 years ago
rubidium
cbeba59fc2
(svn r18033) -Codechange: make the padding for IMGBTN_2 the same as for IMGBTN; the image doesn't move, so the extra space at the right and bottom aren't needed
15 years ago
rubidium
85a3dce45c
(svn r18022) -Cleanup: remove some (now) unused button resize functions
15 years ago
alberth
a2e6035f16
(svn r18013) -Codechange: Add possibility to change window size during ReInit().
15 years ago
rubidium
618621e851
(svn r18003) -Cleanup: prune some unused functions from Window
15 years ago
rubidium
9d573be6d8
(svn r17959) -Cleanup: remove unused function
15 years ago
rubidium
86fd0c0bce
(svn r17922) -Fix [FS#3291]: crash when closing NewGRF parameter window with no NewGRF selected
15 years ago
alberth
82e21df3a4
(svn r17915) -Codechange: Allow windows to compute their own initial position.
15 years ago
rubidium
3bc0a4ed3e
(svn r17903) -Codechange: don't get a modifiable NWidget from a const Window
15 years ago
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.
15 years ago
alberth
f1e885e0d2
(svn r17798) -Codechange: Introduce new constant WD_PAR_VSEP_WIDE for large amount of space between text.
15 years ago
rubidium
d1d35b95b6
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
15 years ago
rubidium
0032405093
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
15 years ago
alberth
89df436f84
(svn r17578) -Fix (r17572): Some compilers don't like default function template arguments.
15 years ago
alberth
116c77c342
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
15 years ago
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
alberth
afe190a216
(svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used.
15 years ago
alberth
e1ae20a307
(svn r17503) -Fix (r17502): Save all files before commit.
15 years ago
rubidium
d81a3ba2da
(svn r17399) -Fix (r17365): if scrollbar has more capacity than elements clicking on the "scroll down" button asserted (esminis)
15 years ago
rubidium
5cb22df0f5
(svn r17375) -Codechange: remove last direct usage of scrollbar variables
15 years ago
rubidium
900aedf270
(svn r17374) -Codechange: make the town and vehicle GUIs use the scrollbar wrappers
15 years ago
rubidium
59ac4f6b21
(svn r17370) -Codechange: make the saveload and network GUIs use the scrollbar wrappers
15 years ago
rubidium
e69e3378b0
(svn r17367) -Codechange: make the autoreplace, bridge and build vehicle GUIs use the scrollbar wrappers
15 years ago
rubidium
4b9b858127
(svn r17366) -Codechange: make the AI GUIs use the scrollbar wrappers
15 years ago
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
15 years ago
Yexo
fe7ca1b3e3
(svn r17324) -Codechange: Land info window uses nested widget tree
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
alberth
e6a1da11a3
(svn r17175) -Codechange: Only auto-raise push buttons.
15 years ago
alberth
4eb155ccfb
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
15 years ago
alberth
6a1af7f74f
(svn r17024) -Codechange: Allow InitNested to be done in two parts.
15 years ago
alberth
b129184d57
(svn r17008) -Fix [FS#3061]: Resize matrix in station build window vertically according to font height.
15 years ago
alberth
9856cc9d0a
(svn r16963) -Codechange: Added NWidgetViewport widget.
15 years ago
alberth
75ccf9de3a
(svn r16960) -Doc: Added some viewport and vehicle type doxygen strings.
15 years ago
alberth
e3033ee895
(svn r16953) -Codechange: Use SetStringParameters() for simple parameterized strings.
15 years ago
alberth
8083d67780
(svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently.
15 years ago
alberth
03abe67e88
(svn r16892) -Codechange: Add support for nested widget tree windows to PickerWindowBase.
15 years ago
alberth
1978c7dc87
(svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used.
15 years ago
alberth
36576371c0
(svn r16871) -Codechange: Generalize GetWidgetContentSize to UpdateWidgetSize for better control over widget size and resize steps.
15 years ago
alberth
9be387761c
(svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize.
15 years ago
alberth
f1303f1ae8
(svn r16831) -Fix (r16798): Stickybox is in the header and resizebox in the footer of the window.
15 years ago
alberth
9efd32d13c
(svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations.
15 years ago
yexo
024a2eeed5
(svn r16787) -Fix [FS#3027]: the noise level text in the airport build window was drawn over the lowest button
15 years ago
alberth
7f851505f9
(svn r16778) -Codechange: Split window initialization in a data part and a size/position part.
15 years ago
alberth
d65c6cae54
(svn r16740) -Codechange: Self-sizing widgets in intro screen, town directory, and found town windows.
15 years ago
alberth
3c50a66ced
(svn r16727) -Codechange: Introducing WD_SORTBUTTON_ARROW_WIDTH constant.
15 years ago
alberth
baab325b54
(svn r16689) -Codechange: Allow for rendering of parameterized text of nested widgets in Window::DrawWidget, adapt intro and town directory windows.
15 years ago
alberth
058bb5d6c3
(svn r16687) -Codechange: Perform re-initialization of windows with nested widgets after a language change.
15 years ago
alberth
8fba82c99b
(svn r16684) -Codechange: Add maxdim function for Dimension struct.
15 years ago
alberth
19ccf6912c
(svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees.
16 years ago
alberth
b144a5451c
(svn r16516) -Codechange: Added click and drag handling for nested widgets.
16 years ago
alberth
5c9071fcff
(svn r16514) -Codechange: Add widget flags, and drawing and invalidating.
16 years ago
alberth
1ba3755aa7
(svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array.
16 years ago
alberth
101a6b3320
(svn r16467) -Codechange: Unduplicate setting of widget focus (with thanks to Smatz).
16 years ago
alberth
bfaf610fff
(svn r16466) -Codechange: Improved wording in comments.
16 years ago
alberth
bfb8df3fb9
(svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once.
16 years ago
alberth
5eecf3e5cb
(svn r16463) -Cleanup: Code style fixes.
16 years ago
alberth
db7e24e211
(svn r16317) -Codechange: Generalized finding a widget by type.
16 years ago