summaryrefslogtreecommitdiff
path: root/src/widgets/dropdown.cpp
AgeCommit message (Collapse)Author
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Fix f6d5c01: Delay deletion when closing windowsglx22
2021-05-15Fix #9269, f6d5c01: Hide windows without abusing WC_INVALIDglx22
2021-05-12Codechange: use IterateFromBack/Front only if the order is important.frosch
Use Iterate if the order does not matter.
2021-05-08Codechange: Make GetCurrentRect() conform to usual Rect bounds, and reuse it.Peter Nelson
Similar code is already repeated in other locations.
2021-05-06Codechange: add SetDParamStr that accepts std::string&rubidium42
2021-04-30Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.Peter Nelson
2021-04-29Codechange: Replace window related FOR_ALL with range-based for loopsglx22
2021-04-28Fix: Incorrect vertical alignment of icon and text in DropDownListIconItem. ↵PeterN
(#9133) This happens if the bounding dimensions are changed so that each item is the same size, as happens on the railtype/roadtype dropdown lists, as the vertical offset was calculated before this dimension is changed.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-05-21Codechange: Store base set related texts in std::strings.Michael Lutz
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-10Fix #7494: std::sort() and qsort() use different comparators (#7495)glx22
2019-04-09Codechange: Switch DropDownList to directly use std::vector, thus making ↵Michael Lutz
AutoDeleteSmallVector obsolete. DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate copy-free code for most situations.
2019-03-28Fix: MSVC warnings (#7423)glx22
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-10Add: Generic drop down list string item with icon.peter1138
2019-03-10Codechange: Use Colours type instead of byte.peter1138
2019-01-20Fix #6060: When opening a scrollable dropdown above a widget, scroll it to ↵J0an Josep
its very bottom. This "prevents" the fast movement towards the bottom when holding down the mouse button.
2019-01-20Codechange #6060: Allow drawing dropdown lists with scrollbars above the widgetsJuanjo
2019-01-12Fix #6780: Some windows didn't get updated from OnTick() (#7048)PeterN
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2017-03-23(svn r27820) -Fix: Allow dropdown to be drawn above origin widget even with ↵peter1138
scrollbar (Juanjo)
2015-08-10(svn r27381) -Fix: Warnings due to C++11 requirements for explicit narrowing ↵michi_cc
conversions in initializer lists.
2015-02-01(svn r27131) -Fix: Dropdown- and tooltip-windows should not steal the focus.frosch
2014-07-16(svn r26691) -Codechange: Simplify ShowDropDownListAt (Juanjo)frosch
2014-07-08(svn r26680) -Codechange: Simplify dropdown height computation. (Juanjo)frosch
2014-06-05(svn r26629) -Fix [FS#6012]: If the video driver fails to supply a list of ↵frosch
resolutions, display an error message.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-11-26(svn r26128) -Fix: erroneous castrubidium
2013-11-26(svn r26121) -Codechange: add some asserts after dynamic casts to show they ↵rubidium
shouldn't return NULL ever
2013-11-24(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for ↵rubidium
dropdowns
2013-10-11(svn r25828) -Doc [FS#5785]: Description of parameters for ShowDropDownMenu ↵planetmaker
was partially swapped (3298)
2013-05-26(svn r25290) -Add: Assign string names to notable windows.frosch
2013-05-26(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window ↵frosch
after construction.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-06-01(svn r24308) -Add: ShowDropDownListAt() for drawing dropdown windows ↵frosch
independent of dropdown widgets.
2012-06-01(svn r24307) -Codechange: Move all interaction of the dropdown window with ↵frosch
widgets of the parent window to a method of the parent window.
2012-04-17(svn r24136) -Feature [FS#4465]: Autoreplace vehicles only when they get ↵michi_cc
old. (Vikthor)
2012-01-01(svn r23704) -Doc: Doxygen comment fixes and additions.alberth
2011-12-16(svn r23531) -Codechange: document and rename widgets to be consistent and ↵truebrain
understandable
2011-12-15(svn r23528) -Codechange: move widget enums to widgets/NNN_type.htruebrain
2011-12-15(svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, ↵truebrain
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
2011-10-11(svn r23018) -Fix (r14004): Pass bottom of dropdown item rather than bottom ↵peter1138
of dropdown window.
2011-10-11(svn r23017) -Codechange: Add support for resized scrollbars.peter1138
2011-09-15(svn r22932) -Fix [FS#4766]: disable the white border on window creation for ↵yexo
several windows (based on patch by monoid)
2011-05-06(svn r22429) -Add: some constants for specific palette colours used in the GUI.frosch