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
rubidium
f2cf272cc4
(svn r17959) -Cleanup: remove unused function
15 years ago
rubidium
9d573be6d8
(svn r17959) -Cleanup: remove unused function
15 years ago
rubidium
8742314bb8
(svn r17922) -Fix [FS#3291]: crash when closing NewGRF parameter window with no NewGRF selected
15 years ago
rubidium
86fd0c0bce
(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
alberth
82e21df3a4
(svn r17915) -Codechange: Allow windows to compute their own initial position.
15 years ago
rubidium
ea24fbcc62
(svn r17903) -Codechange: don't get a modifiable NWidget from a const Window
15 years ago
rubidium
3bc0a4ed3e
(svn r17903) -Codechange: don't get a modifiable NWidget from a const Window
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
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
9c31915368
(svn r17798) -Codechange: Introduce new constant WD_PAR_VSEP_WIDE for large amount of space between text.
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
b72898c8a3
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
15 years ago
rubidium
d1d35b95b6
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
15 years ago
rubidium
e3bb9351a4
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
15 years ago
rubidium
0032405093
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
15 years ago
alberth
0fd79cc4cc
(svn r17578) -Fix (r17572): Some compilers don't like default function template arguments.
15 years ago
alberth
89df436f84
(svn r17578) -Fix (r17572): Some compilers don't like default function template arguments.
15 years ago
alberth
d54028fde8
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
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
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
alberth
029c711732
(svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used.
15 years ago
alberth
afe190a216
(svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used.
15 years ago
alberth
be7056c2b3
(svn r17503) -Fix (r17502): Save all files before commit.
15 years ago
alberth
e1ae20a307
(svn r17503) -Fix (r17502): Save all files before commit.
15 years ago
rubidium
bbb7d3a4d5
(svn r17399) -Fix (r17365): if scrollbar has more capacity than elements clicking on the "scroll down" button asserted (esminis)
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
62c7948a4f
(svn r17375) -Codechange: remove last direct usage of scrollbar variables
15 years ago
rubidium
5cb22df0f5
(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
900aedf270
(svn r17374) -Codechange: make the town and vehicle GUIs use the scrollbar wrappers
15 years ago
rubidium
6d72ae033a
(svn r17370) -Codechange: make the saveload and network 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
2e59affde5
(svn r17367) -Codechange: make the autoreplace, bridge and build vehicle 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
042a99e328
(svn r17366) -Codechange: make the AI 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
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
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
7cb4f3e7a3
(svn r17324) -Codechange: Land info window uses nested widget tree
15 years ago
Yexo
fe7ca1b3e3
(svn r17324) -Codechange: Land info window uses nested widget tree
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(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
alberth
e6a1da11a3
(svn r17175) -Codechange: Only auto-raise push buttons.
15 years ago
alberth
0cc8cbd40d
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
15 years ago
alberth
4eb155ccfb
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
15 years ago
alberth
eeaa337a21
(svn r17024) -Codechange: Allow InitNested to be done in two parts.
15 years ago
alberth
6a1af7f74f
(svn r17024) -Codechange: Allow InitNested to be done in two parts.
15 years ago
alberth
db73234ba1
(svn r17008) -Fix [FS#3061]: Resize matrix in station build window vertically according to font height.
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
84507dc358
(svn r16963) -Codechange: Added NWidgetViewport widget.
15 years ago
alberth
9856cc9d0a
(svn r16963) -Codechange: Added NWidgetViewport widget.
15 years ago
alberth
9caa2e941e
(svn r16960) -Doc: Added some viewport and vehicle type doxygen strings.
15 years ago
alberth
75ccf9de3a
(svn r16960) -Doc: Added some viewport and vehicle type doxygen strings.
15 years ago
alberth
42714792dc
(svn r16953) -Codechange: Use SetStringParameters() for simple parameterized strings.
15 years ago
alberth
e3033ee895
(svn r16953) -Codechange: Use SetStringParameters() for simple parameterized strings.
15 years ago
alberth
2399f91f62
(svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently.
15 years ago
alberth
8083d67780
(svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently.
15 years ago
alberth
41671a441d
(svn r16892) -Codechange: Add support for nested widget tree windows to PickerWindowBase.
15 years ago
alberth
03abe67e88
(svn r16892) -Codechange: Add support for nested widget tree windows to PickerWindowBase.
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
1978c7dc87
(svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used.
15 years ago
alberth
543b86307f
(svn r16871) -Codechange: Generalize GetWidgetContentSize to UpdateWidgetSize for better control over widget size and resize steps.
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
62fc8bd6c5
(svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize.
15 years ago
alberth
9be387761c
(svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize.
15 years ago
alberth
4969d387d3
(svn r16831) -Fix (r16798): Stickybox is in the header and resizebox in the footer of the window.
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
95ac767add
(svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations.
15 years ago
alberth
9efd32d13c
(svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations.
15 years ago
yexo
a656094395
(svn r16787) -Fix [FS#3027]: the noise level text in the airport build window was drawn over the lowest button
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
b417938f74
(svn r16778) -Codechange: Split window initialization in a data part and a size/position part.
15 years ago
alberth
7f851505f9
(svn r16778) -Codechange: Split window initialization in a data part and a size/position part.
15 years ago
alberth
43ee12137b
(svn r16740) -Codechange: Self-sizing widgets in intro screen, town directory, and found town windows.
15 years ago
alberth
d65c6cae54
(svn r16740) -Codechange: Self-sizing widgets in intro screen, town directory, and found town windows.
15 years ago
alberth
b441e00ce7
(svn r16727) -Codechange: Introducing WD_SORTBUTTON_ARROW_WIDTH constant.
15 years ago
alberth
3c50a66ced
(svn r16727) -Codechange: Introducing WD_SORTBUTTON_ARROW_WIDTH constant.
15 years ago
alberth
2509f55d87
(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
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
194701b27a
(svn r16687) -Codechange: Perform re-initialization of windows with nested widgets after a language change.
15 years ago
alberth
058bb5d6c3
(svn r16687) -Codechange: Perform re-initialization of windows with nested widgets after a language change.
15 years ago
alberth
ae9cd9b700
(svn r16684) -Codechange: Add maxdim function for Dimension struct.
15 years ago
alberth
8fba82c99b
(svn r16684) -Codechange: Add maxdim function for Dimension struct.
15 years ago
alberth
e47ca002d2
(svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees.
15 years ago
alberth
19ccf6912c
(svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees.
15 years ago
alberth
cbf2d24ebb
(svn r16516) -Codechange: Added click and drag handling for nested widgets.
15 years ago
alberth
b144a5451c
(svn r16516) -Codechange: Added click and drag handling for nested widgets.
15 years ago
alberth
ed0a0a681a
(svn r16514) -Codechange: Add widget flags, and drawing and invalidating.
15 years ago
alberth
5c9071fcff
(svn r16514) -Codechange: Add widget flags, and drawing and invalidating.
15 years ago
alberth
bb075195b9
(svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array.
15 years ago
alberth
1ba3755aa7
(svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array.
15 years ago
alberth
3e78641156
(svn r16467) -Codechange: Unduplicate setting of widget focus (with thanks to Smatz).
15 years ago
alberth
101a6b3320
(svn r16467) -Codechange: Unduplicate setting of widget focus (with thanks to Smatz).
15 years ago
alberth
c9e3d041fb
(svn r16466) -Codechange: Improved wording in comments.
15 years ago
alberth
bfaf610fff
(svn r16466) -Codechange: Improved wording in comments.
15 years ago
alberth
b96e1dc80c
(svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once.
15 years ago
alberth
bfb8df3fb9
(svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once.
15 years ago
alberth
feaaf78a63
(svn r16463) -Cleanup: Code style fixes.
15 years ago
alberth
5eecf3e5cb
(svn r16463) -Cleanup: Code style fixes.
15 years ago
alberth
b46d9079ce
(svn r16317) -Codechange: Generalized finding a widget by type.
15 years ago
alberth
db7e24e211
(svn r16317) -Codechange: Generalized finding a widget by type.
15 years ago
alberth
bbd546b792
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
15 years ago
alberth
9d2738b9c4
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
15 years ago
yexo
5fa59bab6f
(svn r15867) -Codechange: remove the assumption that the first widgets are the close box/title bar.
...
Most work already done by r15756.
15 years ago
yexo
ed330197c4
(svn r15867) -Codechange: remove the assumption that the first widgets are the close box/title bar.
...
Most work already done by r15756.
15 years ago
alberth
4ac600e2cf
(svn r15819) -Add: Nested widgets framework
16 years ago
alberth
12a31f3d5c
(svn r15819) -Add: Nested widgets framework
16 years ago
rubidium
1ba5811024
(svn r15760) -Codechange [FS#2704]: support that the resize box is at the left side of the window too (based on work by Alberth)
16 years ago
rubidium
35e4dc0f4b
(svn r15760) -Codechange [FS#2704]: support that the resize box is at the left side of the window too (based on work by Alberth)
16 years ago
rubidium
7f468dc142
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago
rubidium
f9def73be6
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago
belugas
ef4476d92d
(svn r15627) -Documentation: Add two Doxygen strings (Alberth).
16 years ago
belugas
3d05c31031
(svn r15627) -Documentation: Add two Doxygen strings (Alberth).
16 years ago
smatz
af90d021f4
(svn r15509) -Codechange: move definition of some Window methods to class definition
16 years ago
smatz
e9378e17c8
(svn r15509) -Codechange: move definition of some Window methods to class definition
16 years ago
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
c7f3daacbf
(svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window
16 years ago
rubidium
90e2465d7d
(svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window
16 years ago
rubidium
5080feba0d
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
16 years ago
rubidium
861e9cefb3
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
16 years ago
rubidium
66cb1fe1ff
(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.
16 years ago
rubidium
9907742a0f
(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.
16 years ago
rubidium
42fe0b65d2
(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.
16 years ago
rubidium
ac7757324e
(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.
16 years ago
rubidium
d29dc478dd
(svn r14918) -Cleanup: remove unused constant.
16 years ago
rubidium
b34b386588
(svn r14918) -Cleanup: remove unused constant.
16 years ago
rubidium
7b4fba0f89
(svn r14905) -Fix (r14899): in some corner cases already freed memory could be read.
16 years ago
rubidium
c71862174a
(svn r14905) -Fix (r14899): in some corner cases already freed memory could be read.
16 years ago
rubidium
567b262901
(svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
...
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
16 years ago
rubidium
84dee1e738
(svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
...
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
16 years ago
rubidium
aa6c7e8574
(svn r14880) -Codechange: make it clear which way the FOR_ALL_WINDOWS goes (from back to front or vice versa) and make it iterate over the Window* instead of Window**.
16 years ago
rubidium
19edb3ccc3
(svn r14880) -Codechange: make it clear which way the FOR_ALL_WINDOWS goes (from back to front or vice versa) and make it iterate over the Window* instead of Window**.
16 years ago
rubidium
72d89337ee
(svn r14804) -Codechange: unify opening the OSK (Zuu)
16 years ago
rubidium
e5c1a7b5c3
(svn r14804) -Codechange: unify opening the OSK (Zuu)
16 years ago
rubidium
94a5f66427
(svn r14679) -Fix [FS#2431]: opening the OSK on the chatbox did disable map scrolling (with keyboard) until another window with editbox was opened and closed. Just "refcount" the open edit boxes instead of setting/clearing a bit when opening/closing a window.
16 years ago
rubidium
1599ade7ca
(svn r14679) -Fix [FS#2431]: opening the OSK on the chatbox did disable map scrolling (with keyboard) until another window with editbox was opened and closed. Just "refcount" the open edit boxes instead of setting/clearing a bit when opening/closing a window.
16 years ago
rubidium
e7bb5c63a4
(svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation.
16 years ago
rubidium
a999bb3227
(svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation.
16 years ago
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
f56e630e5c
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
smatz
a000de8418
(svn r14395) -Fix [FS#2285]: crashes and GUI desyncs when order is deleted/modified while the timetable window is open
...
-Fix: close any dropdown and child windows in the Order and Timetable windows when selected order is deselected, deleted, ...
16 years ago
smatz
6987e6015a
(svn r14395) -Fix [FS#2285]: crashes and GUI desyncs when order is deleted/modified while the timetable window is open
...
-Fix: close any dropdown and child windows in the Order and Timetable windows when selected order is deselected, deleted, ...
16 years ago
rubidium
9246ff28ac
(svn r14392) -Fix [FS#1404]: some widgets saw a single click as multiple clicks.
16 years ago
rubidium
57d592828b
(svn r14392) -Fix [FS#1404]: some widgets saw a single click as multiple clicks.
16 years ago
rubidium
f49d5057ee
(svn r14390) -Codechange: replace magic constants with symbolic constants.
16 years ago
rubidium
6a931d67cd
(svn r14390) -Codechange: replace magic constants with symbolic constants.
16 years ago
peter1138
d5c80dfb8e
(svn r13977) -Codechange: Let ResizeWindowForWidget() handle hidden (zero height or zero width) widgets.
16 years ago
peter1138
92b63e38f0
(svn r13977) -Codechange: Let ResizeWindowForWidget() handle hidden (zero height or zero width) widgets.
16 years ago
frosch
196268b7ff
(svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window.
16 years ago
frosch
0fc769bb6c
(svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window.
16 years ago
rubidium
019a519446
(svn r13910) -Document: string drawing related functions and types (Alberth)
16 years ago
rubidium
c5a4e90338
(svn r13910) -Document: string drawing related functions and types (Alberth)
16 years ago
rubidium
6ecfaa5c84
(svn r13732) -Feature: add a few extra columns with information to the server list. Patch by Pegasus.
16 years ago
rubidium
5f280d0e50
(svn r13732) -Feature: add a few extra columns with information to the server list. Patch by Pegasus.
16 years ago
rubidium
4151d68480
(svn r13322) -Codechange: _no_scroll belongs more with the window code.
16 years ago
rubidium
22d7b25296
(svn r13322) -Codechange: _no_scroll belongs more with the window code.
16 years ago
rubidium
3716f4814d
(svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to window_gui.h/window.cpp because they belong there.
16 years ago
rubidium
27bca407de
(svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to window_gui.h/window.cpp because they belong there.
16 years ago
frosch
9da2cd6e02
(svn r13230) -Fix [FS#2030](r13171): When closing toolbars, also close their PickerWindows.
16 years ago
frosch
8b1e7c8189
(svn r13230) -Fix [FS#2030](r13171): When closing toolbars, also close their PickerWindows.
16 years ago
rubidium
162e2e074b
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
16 years ago
rubidium
27c38052b7
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
16 years ago
rubidium
a21d3fc63b
(svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors.
16 years ago
rubidium
6da56ee87e
(svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors.
16 years ago
rubidium
4d5b9e38d6
(svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent.
16 years ago
rubidium
fc4393dcfe
(svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent.
16 years ago
rubidium
d284ba2283
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
16 years ago
rubidium
f5681547ef
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
16 years ago
rubidium
ac8f0fdc7b
(svn r13141) -Codechange: remove an unused variable from Window.
16 years ago
rubidium
7812b24a77
(svn r13141) -Codechange: remove an unused variable from Window.
16 years ago
rubidium
ad6e52080c
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
16 years ago
rubidium
87015f5b63
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
16 years ago
rubidium
a89b5721a8
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
16 years ago
rubidium
8b54212900
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
16 years ago
rubidium
7f6ccdc624
(svn r13138) -Codechange: remove the need for IsWindowOfPrototype.
16 years ago
rubidium
d8154e00ac
(svn r13138) -Codechange: remove the need for IsWindowOfPrototype.
16 years ago
belugas
835a5fcf43
(svn r13133) -Codechange: Add a base class (descending from Window) for all new windows that are going to require a ResetObjectToPlace to be performed on closing.
...
This will allow to free the said window only once, and not twice otherwise
16 years ago
belugas
17bd325574
(svn r13133) -Codechange: Add a base class (descending from Window) for all new windows that are going to require a ResetObjectToPlace to be performed on closing.
...
This will allow to free the said window only once, and not twice otherwise
16 years ago
rubidium
758f4a358d
(svn r13130) -Codechange: remove some of the (old) WindowEvent wrapper functions/enums/variables as they are not used anymore.
16 years ago
rubidium
cc0dae2271
(svn r13130) -Codechange: remove some of the (old) WindowEvent wrapper functions/enums/variables as they are not used anymore.
16 years ago
rubidium
0b61b6c1d0
(svn r13129) -Codechange: remove the WP macro and it's related variables.
16 years ago
rubidium
55546ae82c
(svn r13129) -Codechange: remove the WP macro and it's related variables.
16 years ago
rubidium
5a85fb104e
(svn r13117) -Codechange: make a window class of the PlayerFinancesWindow.
16 years ago
rubidium
b39525581d
(svn r13117) -Codechange: make a window class of the PlayerFinancesWindow.
16 years ago
rubidium
439b328f41
(svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus.
16 years ago
rubidium
b08d728ac9
(svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus.
16 years ago
rubidium
6d880ada7f
(svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows.
16 years ago
rubidium
5ae795953a
(svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows.
16 years ago
rubidium
31ab1e815a
(svn r13103) -Codechange: make a class of the PlayerCompanyWindow.
16 years ago
rubidium
8fff6e8638
(svn r13103) -Codechange: make a class of the PlayerCompanyWindow.
16 years ago
rubidium
a7db265bb6
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
16 years ago
rubidium
dddfaaac7d
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
16 years ago
rubidium
bcdd9fcfe4
(svn r13051) -Codechange: depot_d belongs in depot_gui.cpp.
16 years ago
rubidium
4caa813711
(svn r13051) -Codechange: depot_d belongs in depot_gui.cpp.
16 years ago
glx
dacd2c5de8
(svn r13047) -Codechange: remove vp_d
16 years ago
glx
c708ab3b48
(svn r13047) -Codechange: remove vp_d
16 years ago
rubidium
89a60ce249
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
16 years ago
rubidium
75e3792aa3
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
16 years ago
rubidium
29ad1d442a
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
16 years ago
rubidium
e63137f47f
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
16 years ago
rubidium
9410be7b70
(svn r13031) -Codechange: make AssignWidgetToWindow a static function instead of a global one as it should only be used from window.cpp.
16 years ago
rubidium
83664c8bc4
(svn r13031) -Codechange: make AssignWidgetToWindow a static function instead of a global one as it should only be used from window.cpp.
16 years ago
rubidium
2ac412375c
(svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme.
16 years ago
rubidium
d24442ae8b
(svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme.
16 years ago
rubidium
f710876037
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
16 years ago
rubidium
935434333b
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
16 years ago
rubidium
2c96ce4506
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
16 years ago
rubidium
f23026cce8
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
16 years ago
rubidium
8d0a7f4634
(svn r13025) -Codechange: remove the need for two WindowEvents.
16 years ago
rubidium
68a1d75d9e
(svn r13025) -Codechange: remove the need for two WindowEvents.
16 years ago
rubidium
0f7d925121
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
16 years ago
rubidium
f438700402
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
16 years ago
rubidium
11d36d5e46
(svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used.
16 years ago
rubidium
4a11ebe76f
(svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used.
16 years ago
rubidium
0c30e46c9c
(svn r13010) -Codechange: move the tree building GUI out of misc_gui.cpp.
16 years ago
rubidium
cd3dda5c0c
(svn r13010) -Codechange: move the tree building GUI out of misc_gui.cpp.
16 years ago
rubidium
f3d184aee4
(svn r13006) -Codechange: GetMenuItemIndex is only used for the toolbar, so move it to there.
16 years ago
rubidium
9ed36409c5
(svn r13006) -Codechange: GetMenuItemIndex is only used for the toolbar, so move it to there.
16 years ago
rubidium
92aac531c2
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
16 years ago
rubidium
23fc96c3e8
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
16 years ago
rubidium
51cda2252c
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
16 years ago
rubidium
2eef026fe3
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
16 years ago
rubidium
c28ce39e3c
(svn r12987) -Codechange: split viewport and tile selection.
16 years ago
rubidium
3d5567ccf7
(svn r12987) -Codechange: split viewport and tile selection.
16 years ago
rubidium
c27f3cfa62
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
16 years ago
rubidium
402a1e24ba
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
16 years ago
rubidium
8796331d83
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
16 years ago
rubidium
e6c944a6c4
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
16 years ago
rubidium
0083ce9e1b
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
16 years ago
rubidium
cb680474c3
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
16 years ago
rubidium
a9775dfcc9
(svn r12790) -Codechange: code style fixes. Patch by Alberth.
16 years ago
rubidium
752c8d8f2e
(svn r12790) -Codechange: code style fixes. Patch by Alberth.
16 years ago
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
16 years ago
rubidium
9d8fa486af
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
16 years ago
rubidium
2752568d61
(svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport.
16 years ago
rubidium
c31287206d
(svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport.
16 years ago
rubidium
8ab49198b9
(svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth.
16 years ago
rubidium
9a73b698d4
(svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth.
16 years ago
rubidium
99b51aa235
(svn r12693) -Documentation: add some documentation to some window related stuff. Based on a patch by Albert.
16 years ago
rubidium
2310557716
(svn r12693) -Documentation: add some documentation to some window related stuff. Based on a patch by Albert.
16 years ago
rubidium
89ff74fa73
(svn r12663) -Codechange: move the definition from 'order_d' to a more appropriate place and do not misuse it for the time table GUI.
16 years ago
rubidium
00d23c57b3
(svn r12663) -Codechange: move the definition from 'order_d' to a more appropriate place and do not misuse it for the time table GUI.
16 years ago
rubidium
1dc0af3248
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
16 years ago
rubidium
ee02dd7dad
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
16 years ago
rubidium
492d132831
(svn r12470) -Codechange: split order related types from order.h (and openttd.h) to order_type.h.
17 years ago
rubidium
4c63dd074e
(svn r12470) -Codechange: split order related types from order.h (and openttd.h) to order_type.h.
17 years ago
rubidium
bf54e0ba1c
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
17 years ago
rubidium
878489e38d
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
17 years ago
rubidium
2426f5342f
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
17 years ago
rubidium
eeabab4555
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
17 years ago
rubidium
a606fe9610
(svn r12425) -Feature [FS#1846]: On Screen Keyboard for input fields so someone without a keyboard can enter text too. Patch by Dominik.
17 years ago
rubidium
327e870962
(svn r12425) -Feature [FS#1846]: On Screen Keyboard for input fields so someone without a keyboard can enter text too. Patch by Dominik.
17 years ago
smatz
d3d126f999
(svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed
17 years ago
smatz
8b56e7544e
(svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed
17 years ago
peter1138
c5b749f983
(svn r11988) -Codechange: Add a generic way of changing a widget's size and adjust the widgets around it to suit.
17 years ago
peter1138
c99eb9e456
(svn r11988) -Codechange: Add a generic way of changing a widget's size and adjust the widgets around it to suit.
17 years ago
peter1138
04da1e1d45
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
17 years ago
peter1138
68707808c0
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
17 years ago
peter1138
9fdb9a82a2
(svn r11901) -Add: add two widgets for dropdowns, one raised and one inset, to eventually replace use of two widgets for each dropdown control.
17 years ago
peter1138
c313676c66
(svn r11901) -Add: add two widgets for dropdowns, one raised and one inset, to eventually replace use of two widgets for each dropdown control.
17 years ago
peter1138
1fa2285327
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
17 years ago