rubidium
8c2b418749
(svn r20577) -Fix [FS#4043]: scroll button flickering when pressed
14 years ago
terkhen
0d68b98482
(svn r20552) -Fix: Never show tooltips when the mouse cursor is outside the window.
14 years ago
rubidium
55427e4062
(svn r20509) -Change: don't cycle (quickly) through the shade states. Just make scrolling up shade the window and scrolling down unshade it. (avdg)
14 years ago
frosch
ba8d961664
(svn r20470) -Codechange: Make arrow buttons lower and raise like other buttons when clicked.
14 years ago
frosch
2d5ef5e5a8
(svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR.
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
b98eba0fb2
(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
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
e41130db84
(svn r20456) -Codechange: Add separate nested widget class for scrollbars.
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
341f41e347
(svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar().
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
terkhen
04134c1e51
(svn r20289) -Codechange: Unify fall through coding style.
14 years ago
frosch
c18839704b
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
rubidium
8c85b4ce3d
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
alberth
603c33efc1
(svn r20269) -Codechange: Use IsLocalCompany() everywhere, document the function and two company globals.
14 years ago
alberth
1743c86610
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
14 years ago
alberth
6734f083b0
(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
rubidium
9fd2afb147
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
14 years ago
frosch
ca8a953395
(svn r20152) -Fix: Silence a gcc warning.
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
terkhen
6154b346e3
(svn r20144) -Feature: Allow to configure the delay of hover events, or to disable them completely.
14 years ago
frosch
2db785bfff
(svn r20124) -Fix (r20118): Don't bring windows to front by hovering over them.
14 years ago
terkhen
010ebadb0a
(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
90d6003dbb
(svn r20118) -Add: Detect if the mouse has been hovering over the same point.
14 years ago
terkhen
ff26bed701
(svn r20117) -Codechange: Use a Point struct to store double click position.
14 years ago
yexo
d96aa7abfa
(svn r20070) -Feature: when none of the open windows handles a keypress, try all toolbars for global hotkeys
...
Users that have run a version between r20056 and r20068 should delete their hotkeys.cfg to reset the terraform toolbar hotkeys to default
14 years ago
frosch
65d058723e
(svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in sync during GUI operation.
14 years ago
alberth
6a2af1cd29
(svn r19910) -Doc: Doxygen additions.
14 years ago
alberth
29fd6ce0e4
(svn r19909) -Doc: Typo fixes, small doxygen improvements.
14 years ago
alberth
d0a999bd5b
(svn r19908) -Codechange: Use a boolean value to assign to a boolean variable.
14 years ago
alberth
1417c52725
(svn r19906) -Codechange: HandleMouseOver() never ends, so don't return an event handling state.
14 years ago
alberth
ee390ab713
(svn r19905) -Codechange: Use EventState for mouse handling routines.
14 years ago
alberth
b40fc5bab8
(svn r19904) -Codechange: Make EventState usable outside Window context.
14 years ago
alberth
63c3220e1d
(svn r19903) -Codechange: Use SpecialMouseMode enum as type of _special_mouse_mode.
14 years ago
alberth
740185febd
(svn r19886) -Add [FS#3705]: Perform window callback during mouse dragging for the purpose of highlighting the destination (sbr).
14 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.
14 years ago
frosch
efdc25bb73
(svn r19731) -Add: Spritepicker to sprite alignment tool.
14 years ago
rubidium
b32665ebd0
(svn r19706) -Add: support for the (NewGRF) debug box
14 years ago
rubidium
8a4bfe10cb
(svn r19563) -Fix [FS#3733] (r19558): OnResize wasn't called often enough so scrollbars were in some cases not properly updated causing division by zero
14 years ago
alberth
7f9a771a8b
(svn r19558) -Fix [FS#3730]: Window::OnResize() was not always called while resizing a window.
14 years ago
rubidium
59e767b1bf
(svn r19250) -Fix [FS#3643]: with RTL languages clicking a horizontal scrollbar that could not scroll could cause a crash
15 years ago
rubidium
970842e4a2
(svn r19089) -Codechange: some minor coding style
15 years ago
rubidium
d966b3655f
(svn r19002) -Fix [FS#1140]: [OSX] Problems with scrolling touchpad (Peter Thorson). I can/have not test(ed) it, it cannot break non OSX builds.
15 years ago
frosch
94a5c917a5
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
15 years ago
peter1138
dec341a963
(svn r18933) -Codechange: Don't constantly redraw a window when moving it unless it actually moves.
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
frosch
64feefa80e
(svn r18744) -Fix [FS#3487-ish]: Do not toggle the sticky- and shading-button twice per mouseclick when clicking fast.
15 years ago
rubidium
d1d6e8fc20
(svn r18675) -Add [FS#3256]: function to remove focus from all widgets in a window
15 years ago
rubidium
af5bd27c73
(svn r18620) -Fix: possible deadlock with SDL and changing the resolution in-game
15 years ago
alberth
8e802135d8
(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
40ab9eeeba
(svn r18587) -Codechange: Insert a shade selection widget in the widget tree when the window starts with a title bar with a shade box.
15 years ago
alberth
45a8eb682e
(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
alberth
f20e477a02
(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
57ea707cc4
(svn r18345) -Codechange: Warn the window that it gets initialized, so it can do some work ahead.
15 years ago
alberth
acf091da8e
(svn r18335) -Codechange: Further reduction of nested_root NULL-ness checking.
15 years ago
alberth
30e834860a
(svn r18334) -Codechange: No need to test a pointer after using it.
15 years ago
rubidium
55897be79b
(svn r18331) -Fix [FS#3334]: news items would with some chat 'bars' not be displayed fully. Fix by erikjanp.
15 years ago
rubidium
45eb0be570
(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
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
46f90bef77
(svn r18273) -Codechange: do not require widget numbers for default widgets (close, sticky, resize buttons and the caption), except when you want to use SetStringParameter for the caption ofcourse. Also remove the requirement for some of the WDF flags; no need to test for both the flag whether a feature is used and whether the feature is in action.
15 years ago
rubidium
13371fa629
(svn r18206) -Fix [FS#3322]: on could 'pan' on the viewports of other windows, like the industry view, too
15 years ago
alberth
75e513d5b5
(svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays.
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
266a1d0f7d
(svn r18150) -Codechange: make the horizontal scrollbar scroll in the opposite direction with RTL
15 years ago
rubidium
684e63e2b5
(svn r18130) -Codechange: initial steps into making the vehicle/group lists big font and RTL aware
15 years ago
rubidium
c63b6887ef
(svn r18120) -Fix (r18119): sometimes ReInit didn't dirty the new window
15 years ago
rubidium
f3043f2006
(svn r18119) -Codechange/Fix: always call OnResize so the matrices/scrollbars are initialised without the need for duplicating the OnResize code
15 years ago
rubidium
23f0385d65
(svn r18095) -Fix (r18093): a bit too much nested_array != NULL removal
15 years ago
rubidium
f20d3a55ec
(svn r18093) -Fix: the mouseover handler could crash if there wasn't a widget under the mouse
15 years ago
rubidium
1f6f15a126
(svn r18092) -Codechange: remove support for the unnested widgets
15 years ago
alberth
452946cdad
(svn r18090) -Fix: Only allow raising of WWT_* nested widgets.
15 years ago
rubidium
c162fa0575
(svn r18088) -Codechange: remove CompareWidgetArrays
15 years ago
rubidium
b01251092e
(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
rubidium
b3394dbeb4
(svn r18030) -Fix: screen jumped a bit for at least SDL and Allegro when right-click-dragging
15 years ago
alberth
ade53126b4
(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
alberth
c7ca4691c4
(svn r17997) -Codechange: Introduce functions for querying top and bottom of the main view.
15 years ago
alberth
0fa6870eca
(svn r17995) -Codechange: PreventHiding() is used in one file, make it static.
15 years ago
rubidium
c4c56ea04d
(svn r17947) -Codechange: make the statusbar, chat input and news window know of eachothers size so they don't get overlapped and don't get invisible (bottoms) of windows when a larger font is used
15 years ago
rubidium
8742314bb8
(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
smatz
7921a5c7d0
(svn r17869) -Codechange: don't create OnScroll() event for zero delta
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
frosch
9259446b76
(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.
15 years ago
rubidium
6ba0dc05a7
(svn r17751) -Fix [FS#3253]: sometimes clicking on a for the user unfocused edit box would show the OSK (Zuu)
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
ed8788d581
(svn r17682) -Codechange: remove erroneous space before some commas
15 years ago
rubidium
e3bb9351a4
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
15 years ago
alberth
d54028fde8
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
15 years ago
rubidium
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
frosch
263952f557
(svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already.
15 years ago
alberth
029c711732
(svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used.
15 years ago
rubidium
62c7948a4f
(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
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
99d46e0ad7
(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
smatz
d64bdb138c
(svn r17168) -Codechange: apply coding style to if and while statements
15 years ago
frosch
e44a69b92f
(svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them.
15 years ago
alberth
eeaa337a21
(svn r17024) -Codechange: Allow InitNested to be done in two parts.
15 years ago
alberth
84507dc358
(svn r16963) -Codechange: Added NWidgetViewport widget.
15 years ago
frosch
1969cbd6e8
(svn r16957) -Fix: Trigger the same window repositioning after changing font/language as it is done after resizing the main OpenTTD window.
15 years ago
alberth
2399f91f62
(svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently.
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
832c116b5b
(svn r16848) -Fix: Trying to reduce a nested widget window further than the smallest alowed size should not crash the game.
15 years ago
alberth
62fc8bd6c5
(svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize.
15 years ago
rubidium
fd980be463
(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
15 years ago
alberth
95ac767add
(svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations.
15 years ago
alberth
99455ffb49
(svn r16779) -Fix: Take real smallest size of nested widgets into account for initial window position.
15 years ago
alberth
b417938f74
(svn r16778) -Codechange: Split window initialization in a data part and a size/position part.
15 years ago
alberth
36ce7e09ef
(svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty.
15 years ago
alberth
43ee12137b
(svn r16740) -Codechange: Self-sizing widgets in intro screen, town directory, and found town 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
e77b0adb53
(svn r16519) -Add: Prevent hiding of a window titlebar behind the status bar.
15 years ago
alberth
e47ca002d2
(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
24b2876cb5
(svn r16515) -Codechange: Added scrollbar handling for nested widgets, and finding widgets by type or position in the tree.
15 years ago
alberth
ed0a0a681a
(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
53c60be207
(svn r16495) -Codechange: Renamed a few variables.
15 years ago
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
15 years ago
alberth
5207900285
(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.
15 years ago
alberth
3e78641156
(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
b96e1dc80c
(svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once.
15 years ago
alberth
feaaf78a63
(svn r16463) -Cleanup: Code style fixes.
15 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
15 years ago
alberth
b46d9079ce
(svn r16317) -Codechange: Generalized finding a widget by type.
15 years ago
rubidium
241af768f0
(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
15 years ago
alberth
adfc9c968c
(svn r16226) -Codechange: Separating generation of a widget array from WindowDesc to the InitializeWidgetArrayFromNestedWidgets function.
15 years ago
rubidium
e88cb7f70f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
15 years ago
alberth
bbd546b792
(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
alberth
4ac600e2cf
(svn r15819) -Add: Nested widgets framework
15 years ago
alberth
82a171f175
(svn r15817) -Codechange: Make room for additional widget types (Rubidium)
15 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
f7155ed34a
(svn r15756) -Codechange: remove the assumption that the second windget is always the title bar. Also replace a few magic numbers with a const.
16 years ago
smatz
d28895c88b
(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate
16 years ago
rubidium
7f468dc142
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago