frosch
18dcd2e6a4
(svn r24742) -Codechange: Remove QueryStringBaseWindow and store QueryStrings per widget instead.
12 years ago
frosch
f5d8ba5d7f
(svn r24742) -Codechange: Remove QueryStringBaseWindow and store QueryStrings per widget instead.
12 years ago
frosch
2ccba5e6c5
(svn r24735) -Codechange: Move HandleEditBoxKey to Window class.
12 years ago
frosch
fc2b12acca
(svn r24735) -Codechange: Move HandleEditBoxKey to Window class.
12 years ago
frosch
f1d40ca6f2
(svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to Window::OnEditboxChanged.
12 years ago
frosch
2c22fe98dd
(svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to Window::OnEditboxChanged.
12 years ago
frosch
3b06409153
(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.
12 years ago
frosch
03736af2ae
(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.
12 years ago
frosch
b02347c645
(svn r24696) -Doc: Improve documentation for button widget types.
12 years ago
frosch
cfccaff645
(svn r24696) -Doc: Improve documentation for button widget types.
12 years ago
frosch
2626d7ac7c
(svn r24307) -Codechange: Move all interaction of the dropdown window with widgets of the parent window to a method of the parent window.
13 years ago
frosch
6207a6017f
(svn r24307) -Codechange: Move all interaction of the dropdown window with widgets of the parent window to a method of the parent window.
13 years ago
truebrain
aa1a0053b0
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
13 years ago
truebrain
1c9bec1999
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
13 years ago
truebrain
867b263900
(svn r23631) -Add: ScriptWindow, to manipulate windows on the client (GameScript only)
13 years ago
truebrain
403cd3acdb
(svn r23631) -Add: ScriptWindow, to manipulate windows on the client (GameScript only)
13 years ago
truebrain
da63ce43fa
(svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, with only values known in WindowFlags (and move out 2 timers to their own variable)
...
-Codechange: rename Window::flags4 to Window::flags
-Codechange: move some non-inline functions from .hpp to .cpp
13 years ago
truebrain
df0afdf0dc
(svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, with only values known in WindowFlags (and move out 2 timers to their own variable)
...
-Codechange: rename Window::flags4 to Window::flags
-Codechange: move some non-inline functions from .hpp to .cpp
13 years ago
rubidium
7abb74d4a2
(svn r23484) -Fix [FS#4770]: in case you already have orders, ignore the vehicles when adding an extra order
13 years ago
rubidium
b5a2183214
(svn r23484) -Fix [FS#4770]: in case you already have orders, ignore the vehicles when adding an extra order
13 years ago
frosch
3b0816c614
(svn r23252) -Codechange: Add WD_BEVEL_xxx constants.
13 years ago
frosch
ca4f0509fc
(svn r23252) -Codechange: Add WD_BEVEL_xxx constants.
13 years ago
peter1138
cacf7ecf2b
(svn r23017) -Codechange: Add support for resized scrollbars.
13 years ago
peter1138
50d1541270
(svn r23017) -Codechange: Add support for resized scrollbars.
13 years ago
frosch
335744a1af
(svn r22242) -Codechange: Let OnInvalidateData() decide itself what to do immediately in command scope, and what to do asynchronously in GUI-scope.
14 years ago
frosch
51ddbbb13d
(svn r22242) -Codechange: Let OnInvalidateData() decide itself what to do immediately in command scope, and what to do asynchronously in GUI-scope.
14 years ago
frosch
4b4a40a72e
(svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData().
14 years ago
frosch
ec9540a12a
(svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData().
14 years ago
frosch
074548f8f3
(svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command.
14 years ago
frosch
19b7249ade
(svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command.
14 years ago
terkhen
b6148914b0
(svn r21803) -Cleanup: Remove unnecessary semicolons.
14 years ago
terkhen
679cd3c21b
(svn r21803) -Cleanup: Remove unnecessary semicolons.
14 years ago
alberth
fdf0be0da8
(svn r21665) -Codechange: Make GetCallbackWnd a method of _thd.
14 years ago
alberth
22a13850cb
(svn r21665) -Codechange: Make GetCallbackWnd a method of _thd.
14 years ago
rubidium
004b2b6001
(svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed
14 years ago
rubidium
a029b2b83a
(svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed
14 years ago
alberth
0722492c1b
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
14 years ago
alberth
f5c6fd1a25
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
14 years ago
smatz
63b8fea69f
(svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window
14 years ago
smatz
fd54943c7a
(svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window
14 years ago
alberth
2b4da1d345
(svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file.
14 years ago
alberth
9f5a96ead2
(svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file.
14 years ago
rubidium
360d6daf34
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
frosch
984e555cb4
(svn r20460) -Codechange: Remove WF_SCROLL window flags and store the state directly in the scrollbar widget instead.
14 years ago
frosch
b37be47f16
(svn r20460) -Codechange: Remove WF_SCROLL window flags and store the state directly in the scrollbar widget instead.
14 years ago
frosch
b98eba0fb2
(svn r20459) -Codechange: Remove the Scrollbar members of Window and make NWidgetScrollbar inherit from Scrollbar instead.
14 years ago
frosch
6e9c9c28d9
(svn r20459) -Codechange: Remove the Scrollbar members of Window and make NWidgetScrollbar inherit from Scrollbar instead.
14 years ago
frosch
92c34da796
(svn r20458) -Codechange: Move Scrollbar from window.cpp to widget.cpp
14 years ago
frosch
55bd5de43d
(svn r20458) -Codechange: Move Scrollbar from window.cpp to widget.cpp
14 years ago
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.
14 years ago
frosch
57c063250f
(svn r20457) -Codechange: Remove _scrolling_scrollbar and WF_SCROLL_MIDDLE and instead store the widget index of the being scrolled scrollbar in the Window.
14 years ago
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.
14 years ago
frosch
71ca58c2bb
(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.
14 years ago
frosch
d2cd93fee2
(svn r20451) -Codechange: Add helper function Window::GetScrollbar() to get the Scrollbar belonging to a scrollbar widget.
14 years ago
frosch
629b350a71
(svn r20451) -Codechange: Add helper function Window::GetScrollbar() to get the Scrollbar belonging to a scrollbar widget.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
alberth
6734f083b0
(svn r20222) -Add: Add functions to compute the row in a scrolled widget.
14 years ago
alberth
97f85f7bfb
(svn r20222) -Add: Add functions to compute the row in a scrolled widget.
14 years ago
alberth
71aac2192f
(svn r20221) -Codechange: Move unscrolled row calculation into a function.
14 years ago
alberth
3a1451644a
(svn r20221) -Codechange: Move unscrolled row calculation into a function.
14 years ago
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.
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
010ebadb0a
(svn r20121) -Add: OnHover method for windows.
14 years ago
terkhen
9cf9bb9b92
(svn r20121) -Add: OnHover method for windows.
14 years ago
terkhen
840f09ddf0
(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
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
086a424b7a
(svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse.
14 years ago
terkhen
51e6cb0a70
(svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse.
14 years ago
terkhen
90d6003dbb
(svn r20118) -Add: Detect if the mouse has been hovering over the same point.
14 years ago
terkhen
9aef7b8c3d
(svn r20118) -Add: Detect if the mouse has been hovering over the same point.
14 years ago
frosch
c973a3cc7b
(svn r19943) -Fix [FS#3865]: Disallow moving of vehicle news window.
15 years ago
frosch
38b8259f3b
(svn r19943) -Fix [FS#3865]: Disallow moving of vehicle news window.
15 years ago
alberth
b40fc5bab8
(svn r19904) -Codechange: Make EventState usable outside Window context.
15 years ago
alberth
113f3ef0eb
(svn r19904) -Codechange: Make EventState usable outside Window context.
15 years ago
alberth
63c3220e1d
(svn r19903) -Codechange: Use SpecialMouseMode enum as type of _special_mouse_mode.
15 years ago
alberth
fc82d9cd77
(svn r19903) -Codechange: Use SpecialMouseMode enum as type of _special_mouse_mode.
15 years ago
alberth
740185febd
(svn r19886) -Add [FS#3705]: Perform window callback during mouse dragging for the purpose of highlighting the destination (sbr).
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
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.
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
b32665ebd0
(svn r19706) -Add: support for the (NewGRF) debug box
15 years ago
rubidium
e75e2648fc
(svn r19706) -Add: support for the (NewGRF) debug box
15 years ago
smatz
d2e99657fa
(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET
15 years ago
smatz
53aaabe6e9
(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET
15 years ago
frosch
94a5c917a5
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
15 years ago
frosch
88019e64e1
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
15 years ago
rubidium
2a0405ecc4
(svn r18900) -Document: that an empty string for OnQueryTextFinished means 'use default'
15 years ago
rubidium
37b0a61b42
(svn r18900) -Document: that an empty string for OnQueryTextFinished means 'use default'
15 years ago
rubidium
9467b7c6d6
(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
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
d1d6e8fc20
(svn r18675) -Add [FS#3256]: function to remove focus from all widgets in a window
15 years ago
rubidium
de3cff9e1a
(svn r18675) -Add [FS#3256]: function to remove focus from all widgets in a window
15 years ago
alberth
8e802135d8
(svn r18607) -Fix (r18583): Preserve window width when shading.
15 years ago
alberth
b30e56850c
(svn r18607) -Fix (r18583): Preserve window width when shading.
15 years ago
alberth
e967f04123
(svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes.
15 years ago
alberth
3323d64f28
(svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes.
15 years ago
alberth
45a8eb682e
(svn r18583) -Codechange: Add WWT_SHADEBOX widget and its functions (heavily based on code by erikjanp).
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
97a6adf9f3
(svn r18582) -Codechange: save 8 bytes from the Window class
15 years ago
rubidium
c03aadda08
(svn r18582) -Codechange: save 8 bytes from the Window class
15 years ago
alberth
f20e477a02
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
15 years ago
alberth
5a083f183e
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
15 years ago
alberth
05c30d294e
(svn r18579) -Codechange: Add orientation to scrollbars.
15 years ago
alberth
20debea202
(svn r18579) -Codechange: Add orientation to scrollbars.
15 years ago
alberth
2f9f70c295
(svn r18542) -Codechange: Make nested widget parts obligatory in a window description.
15 years ago
alberth
614501b1be
(svn r18542) -Codechange: Make nested widget parts obligatory in a window description.
15 years ago
alberth
01e17c6828
(svn r18348) -Doc: Doxygen fixes, and removal of an old @note.
15 years ago
alberth
ccd7399ea0
(svn r18348) -Doc: Doxygen fixes, and removal of an old @note.
15 years ago
alberth
57ea707cc4
(svn r18345) -Codechange: Warn the window that it gets initialized, so it can do some work ahead.
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
ee0b708ea5
(svn r18336) -Cleanup (r18092): Remove declaration of an already removed function.
15 years ago
alberth
1f70f065d6
(svn r18336) -Cleanup (r18092): Remove declaration of an already removed function.
15 years ago
rubidium
45eb0be570
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
15 years ago
rubidium
293dfd7c3e
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
15 years ago
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
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
0b31433eea
(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
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
fedb593293
(svn r18318) -Codechange: add an enum value for manual window placement
15 years ago
rubidium
458c73aecb
(svn r18318) -Codechange: add an enum value for manual window placement
15 years ago
rubidium
f8b79068e6
(svn r18274) -Codechange: remove the unused WDF flags
15 years ago
rubidium
69b6d9309a
(svn r18274) -Codechange: remove the unused WDF flags
15 years ago
alberth
5bee09c924
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
15 years ago
alberth
450e40b997
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
15 years ago
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
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
8e11cd3a42
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
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
1f6f15a126
(svn r18092) -Codechange: remove support for the unnested widgets
15 years ago
rubidium
aeb9f8e715
(svn r18092) -Codechange: remove support for the unnested widgets
15 years ago
rubidium
b3d1657d11
(svn r18089) -Codechange: remove ResizeWindowForWidget
15 years ago
rubidium
b812a48a8d
(svn r18089) -Codechange: remove ResizeWindowForWidget
15 years ago
rubidium
b01251092e
(svn r18086) -Codechange: remove 'widget' from WindowDesc
15 years ago
rubidium
3d2d7af88f
(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
alberth
94261ad01a
(svn r18069) -Codechange: Initialize window flags at the same tme as the other fields instead of afterwards.
15 years ago
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.
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
88edbfe3d6
(svn r18040) -Codechange: the size parameter (if it's that actually) isn't needed for the delete operator
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
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
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
064365fc7a
(svn r18022) -Cleanup: remove some (now) unused button resize functions
15 years ago
rubidium
85a3dce45c
(svn r18022) -Cleanup: remove some (now) unused button resize functions
15 years ago
alberth
ade53126b4
(svn r18013) -Codechange: Add possibility to change window size during ReInit().
15 years ago
alberth
a2e6035f16
(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
rubidium
618621e851
(svn r18003) -Cleanup: prune some unused functions from Window
15 years ago