summaryrefslogtreecommitdiff
path: root/src/widgets/dropdown_type.h
AgeCommit message (Collapse)Author
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-03-09Codechange: remove special strings for language and resolutions (#8824)Patric Stout
As OpenTTD grew, we found other ways to do this, and we are no longer in need for a hack like this.
2020-05-21Codechange: Store base set related texts in std::strings.Michael Lutz
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
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-04-09Fix: Forgotten override keywords for DropDownListIconItem.Michael Lutz
2019-03-26Cleanup: Remove unused size template parameters from SmallMap and ↵Henry Wilson
Auto[Free|Delete]SmallVector
2019-03-24Codechange: Use override specifier for DropDownListItem classes.peter1138
2019-03-10Add: Generic drop down list string item with icon.peter1138
2019-03-10Remove: Unnecessary virtual destructors on drop down list items.peter1138
2019-03-10Codechange: Use Colours type instead of byte.peter1138
2013-11-24(svn r26088) -Fix (r26086): Windows compilationrubidium
2013-11-24(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for ↵rubidium
dropdowns
2012-06-01(svn r24308) -Add: ShowDropDownListAt() for drawing dropdown windows ↵frosch
independent of dropdown widgets.
2011-04-10(svn r22311) -Add: DropDownListStringItem::NatSortFunc() which can be used ↵frosch
as comparator function in DropDownList::sort().
2011-04-10(svn r22310) -Codechange: Derive DropDownListCharStringItem from ↵frosch
DropDownListStringItem.
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-03-28(svn r15877) -Codechange: Let drop down lists know about font height.peter1138
2009-03-21(svn r15783) -Codechange: make the dropdown draw code pass around the ↵rubidium
left/right instead of the x and width to make drawing text at offsets easier.
2009-02-07(svn r15387) -Codechange: Add a drop down list item type for char* strings.peter1138
2008-08-25(svn r14168) -Codechange: Make dropdown 'auto_width' a separate parameter, ↵peter1138
so that a minimum width can be specified.
2008-08-07(svn r14015) -Codechange: Add facility for a drop down list to always close ↵peter1138
(if requested) when the mouse button is released.
2008-08-07(svn r14014) -Codechange: Add support for automatically sizing drop down ↵peter1138
lists to the widest list item.
2008-08-06(svn r14004) -Codechange: Clean of drop down lists.peter1138
Move empty item drawing to base ListItem Draw() function. Remove String() from base class. Pass correct width to Draw().
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-12(svn r12675) -Codechange: Add support for custom drawing of drop down list ↵peter1138
items.
2008-04-12(svn r12672) -Codechange: Add support for variably-sized drop down list items.peter1138
2008-04-09(svn r12644) -Codechange: rework the order gui a little to prepare it for ↵rubidium
some future changes.
2008-01-15(svn r11857) -Fix: some compile time warnings.rubidium
2008-01-14(svn r11854) -Fix (r11848): Nightly build farm showed up more compiler ↵peter1138
warnings... c++ is fun
2008-01-14(svn r11849) -Fix (r11848): Incomplete(?) class broke MSVC/mingw compilationpeter1138
2008-01-14(svn r11848) -Codechange: New class-based drop down list functionality. ↵peter1138
Lists are now dynamically generated, and can include parameters, or be extended however needed.