frosch
984e555cb4
(svn r20460) -Codechange: Remove WF_SCROLL window flags and store the state directly in the scrollbar widget instead.
2010-08-12 09:14:34 +00:00
frosch
b98eba0fb2
(svn r20459) -Codechange: Remove the Scrollbar members of Window and make NWidgetScrollbar inherit from Scrollbar instead.
2010-08-12 09:13:04 +00:00
frosch
92c34da796
(svn r20458) -Codechange: Move Scrollbar from window.cpp to widget.cpp
2010-08-12 09:11:12 +00:00
frosch
807370d4b8
(svn r20457) -Codechange: Remove _scrolling_scrollbar and WF_SCROLL_MIDDLE and instead store the widget index of the being scrolled scrollbar in the Window.
2010-08-12 09:09:24 +00:00
frosch
4817d5dcd6
(svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
...
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
2010-08-12 08:37:01 +00:00
frosch
d2cd93fee2
(svn r20451) -Codechange: Add helper function Window::GetScrollbar() to get the Scrollbar belonging to a scrollbar widget.
2010-08-12 06:40:28 +00:00
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
alberth
6734f083b0
(svn r20222) -Add: Add functions to compute the row in a scrolled widget.
2010-07-26 13:03:40 +00:00
alberth
71aac2192f
(svn r20221) -Codechange: Move unscrolled row calculation into a function.
2010-07-26 13:02:28 +00:00
rubidium
5e83d73679
(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.
2010-07-14 17:36:27 +00:00
terkhen
010ebadb0a
(svn r20121) -Add: OnHover method for windows.
2010-07-11 11:00:09 +00:00
terkhen
840f09ddf0
(svn r20120) -Feature [FS#3913]: Tooltips are shown by hovering the mouse over a widget instead of by right clicking on it.
2010-07-11 10:58:55 +00:00
terkhen
086a424b7a
(svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse.
2010-07-11 10:55:57 +00:00
terkhen
90d6003dbb
(svn r20118) -Add: Detect if the mouse has been hovering over the same point.
2010-07-11 10:53:07 +00:00
frosch
c973a3cc7b
(svn r19943) -Fix [FS#3865]: Disallow moving of vehicle news window.
2010-06-07 19:56:32 +00:00
alberth
b40fc5bab8
(svn r19904) -Codechange: Make EventState usable outside Window context.
2010-05-30 12:06:18 +00:00
alberth
63c3220e1d
(svn r19903) -Codechange: Use SpecialMouseMode enum as type of _special_mouse_mode.
2010-05-30 10:36:32 +00:00
alberth
740185febd
(svn r19886) -Add [FS#3705]: Perform window callback during mouse dragging for the purpose of highlighting the destination (sbr).
2010-05-23 14:53:39 +00:00
frosch
dccab5b43f
(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.
2010-05-01 15:32:17 +00:00
rubidium
b32665ebd0
(svn r19706) -Add: support for the (NewGRF) debug box
2010-04-24 13:27:22 +00:00
smatz
d2e99657fa
(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET
2010-03-23 22:25:43 +00:00
frosch
94a5c917a5
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
2010-01-30 18:34:48 +00:00
rubidium
2a0405ecc4
(svn r18900) -Document: that an empty string for OnQueryTextFinished means 'use default'
2010-01-23 19:30:53 +00:00
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
d1d6e8fc20
(svn r18675) -Add [FS#3256]: function to remove focus from all widgets in a window
2009-12-31 18:11:03 +00:00
alberth
8e802135d8
(svn r18607) -Fix (r18583): Preserve window width when shading.
2009-12-22 20:53:28 +00:00
alberth
e967f04123
(svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes.
2009-12-22 20:43:25 +00:00
alberth
45a8eb682e
(svn r18583) -Codechange: Add WWT_SHADEBOX widget and its functions (heavily based on code by erikjanp).
2009-12-21 16:06:20 +00:00
rubidium
97a6adf9f3
(svn r18582) -Codechange: save 8 bytes from the Window class
2009-12-20 20:49:47 +00:00
alberth
f20e477a02
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
2009-12-20 20:08:39 +00:00
alberth
05c30d294e
(svn r18579) -Codechange: Add orientation to scrollbars.
2009-12-20 20:04:30 +00:00
alberth
2f9f70c295
(svn r18542) -Codechange: Make nested widget parts obligatory in a window description.
2009-12-19 18:03:04 +00:00
alberth
01e17c6828
(svn r18348) -Doc: Doxygen fixes, and removal of an old @note.
2009-11-29 21:27:12 +00:00
alberth
57ea707cc4
(svn r18345) -Codechange: Warn the window that it gets initialized, so it can do some work ahead.
2009-11-29 21:14:34 +00:00
alberth
ee0b708ea5
(svn r18336) -Cleanup (r18092): Remove declaration of an already removed function.
2009-11-29 11:48:20 +00:00
rubidium
45eb0be570
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
2009-11-28 14:42:35 +00:00
rubidium
877307a0eb
(svn r18321) -Fix [FS#3331]: make the toolbars also calculate their top location based on the main toolbar's height instead of hardcoding that
2009-11-28 14:36:43 +00:00
rubidium
0b31433eea
(svn r18320) -Codechange: make the terraform and transparency window not use absolute location but manually calculate based on toolbar size etc.
2009-11-28 14:30:00 +00:00
rubidium
fedb593293
(svn r18318) -Codechange: add an enum value for manual window placement
2009-11-28 13:54:28 +00:00
rubidium
f8b79068e6
(svn r18274) -Codechange: remove the unused WDF flags
2009-11-24 17:28:29 +00:00
alberth
5bee09c924
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
2009-11-22 18:28:14 +00:00
rubidium
bea622be02
(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
2009-11-19 22:49:04 +00:00
rubidium
8e11cd3a42
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
2009-11-17 19:16:48 +00:00
rubidium
1f6f15a126
(svn r18092) -Codechange: remove support for the unnested widgets
2009-11-15 13:36:30 +00:00
rubidium
b3d1657d11
(svn r18089) -Codechange: remove ResizeWindowForWidget
2009-11-15 10:40:06 +00:00
rubidium
b01251092e
(svn r18086) -Codechange: remove 'widget' from WindowDesc
2009-11-15 10:26:01 +00:00
alberth
df877e480d
(svn r18069) -Codechange: Initialize window flags at the same tme as the other fields instead of afterwards.
2009-11-14 09:58:52 +00:00
rubidium
eeb6cf766b
(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.
2009-11-11 21:15:58 +00:00
rubidium
88edbfe3d6
(svn r18040) -Codechange: the size parameter (if it's that actually) isn't needed for the delete operator
2009-11-11 20:40:40 +00:00
rubidium
2396f693a2
(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
2009-11-09 17:20:48 +00:00
rubidium
064365fc7a
(svn r18022) -Cleanup: remove some (now) unused button resize functions
2009-11-08 19:49:13 +00:00
alberth
ade53126b4
(svn r18013) -Codechange: Add possibility to change window size during ReInit().
2009-11-08 15:22:04 +00:00
rubidium
79a039b0df
(svn r18003) -Cleanup: prune some unused functions from Window
2009-11-07 22:29:17 +00:00
rubidium
f2cf272cc4
(svn r17959) -Cleanup: remove unused function
2009-11-02 20:12:47 +00:00
rubidium
8742314bb8
(svn r17922) -Fix [FS#3291]: crash when closing NewGRF parameter window with no NewGRF selected
2009-10-31 14:53:19 +00:00
alberth
2a7d0de0b0
(svn r17915) -Codechange: Allow windows to compute their own initial position.
2009-10-31 11:34:43 +00:00
rubidium
ea24fbcc62
(svn r17903) -Codechange: don't get a modifiable NWidget from a const Window
2009-10-30 07:51:33 +00:00
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
alberth
9c31915368
(svn r17798) -Codechange: Introduce new constant WD_PAR_VSEP_WIDE for large amount of space between text.
2009-10-18 13:59:25 +00:00
rubidium
b72898c8a3
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
2009-10-17 14:29:10 +00:00
rubidium
e3bb9351a4
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
2009-09-30 21:00:35 +00:00
alberth
0fd79cc4cc
(svn r17578) -Fix (r17572): Some compilers don't like default function template arguments.
2009-09-19 14:41:43 +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
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
alberth
029c711732
(svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used.
2009-09-11 19:12:05 +00:00
alberth
be7056c2b3
(svn r17503) -Fix (r17502): Save all files before commit.
2009-09-11 18:54:33 +00:00
rubidium
bbb7d3a4d5
(svn r17399) -Fix (r17365): if scrollbar has more capacity than elements clicking on the "scroll down" button asserted (esminis)
2009-09-03 09:07:14 +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
6d72ae033a
(svn r17370) -Codechange: make the saveload and network GUIs use the scrollbar wrappers
2009-09-02 08:08:30 +00:00
rubidium
2e59affde5
(svn r17367) -Codechange: make the autoreplace, bridge and build vehicle GUIs use the scrollbar wrappers
2009-09-02 07:17:15 +00:00
rubidium
042a99e328
(svn r17366) -Codechange: make the AI GUIs use the scrollbar wrappers
2009-09-02 07:01:25 +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
Yexo
7cb4f3e7a3
(svn r17324) -Codechange: Land info window uses nested widget tree
2009-08-30 17:07:53 +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
alberth
0cc8cbd40d
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
2009-08-14 18:41:03 +00:00
alberth
eeaa337a21
(svn r17024) -Codechange: Allow InitNested to be done in two parts.
2009-08-01 15:49:18 +00:00
alberth
db73234ba1
(svn r17008) -Fix [FS#3061]: Resize matrix in station build window vertically according to font height.
2009-07-31 22:08:19 +00:00
alberth
84507dc358
(svn r16963) -Codechange: Added NWidgetViewport widget.
2009-07-26 17:29:01 +00:00
alberth
9caa2e941e
(svn r16960) -Doc: Added some viewport and vehicle type doxygen strings.
2009-07-26 12:49:26 +00:00
alberth
42714792dc
(svn r16953) -Codechange: Use SetStringParameters() for simple parameterized strings.
2009-07-25 11:54:53 +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
41671a441d
(svn r16892) -Codechange: Add support for nested widget tree windows to PickerWindowBase.
2009-07-20 19:44:28 +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
543b86307f
(svn r16871) -Codechange: Generalize GetWidgetContentSize to UpdateWidgetSize for better control over widget size and resize steps.
2009-07-18 10:46:55 +00:00
alberth
62fc8bd6c5
(svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize.
2009-07-15 22:51:37 +00:00
alberth
4969d387d3
(svn r16831) -Fix (r16798): Stickybox is in the header and resizebox in the footer of the window.
2009-07-14 21:25:32 +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
yexo
a656094395
(svn r16787) -Fix [FS#3027]: the noise level text in the airport build window was drawn over the lowest button
2009-07-10 20:48:08 +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
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
b441e00ce7
(svn r16727) -Codechange: Introducing WD_SORTBUTTON_ARROW_WIDTH constant.
2009-07-02 21:18:22 +00:00
alberth
2509f55d87
(svn r16689) -Codechange: Allow for rendering of parameterized text of nested widgets in Window::DrawWidget, adapt intro and town directory windows.
2009-06-28 22:23:26 +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
ae9cd9b700
(svn r16684) -Codechange: Add maxdim function for Dimension struct.
2009-06-28 15:16:57 +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
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