Patric Stout
199e41c762
Codechange: use default dtor instead of empty ( #10826 )
1 year ago
Peter Nelson
e5af5907ec
Change: Make all dropdown lists extend width if necessary.
...
This removes the auto_width parameter from ShowDropDown(At).
1 year ago
Peter Nelson
632464a623
Codechange: Use Rect in DropDownListItem::Draw().
2 years ago
PeterN
ae7f07de74
Fix: Incorrect vertical alignment of icon and text in DropDownListIconItem. ( #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.
3 years ago
Patric Stout
b21ba566ae
Codechange: remove special strings for language and resolutions ( #8824 )
...
As OpenTTD grew, we found other ways to do this, and we are no
longer in need for a hack like this.
3 years ago
Michael Lutz
a49fdb7ebb
Codechange: Store base set related texts in std::strings.
4 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
glx22
3b4f224c0b
Fix #7494 : std::sort() and qsort() use different comparators ( #7495 )
5 years ago
Michael Lutz
c7b9987d08
Codechange: Switch DropDownList to directly use std::vector, thus making 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.
5 years ago
Michael Lutz
9325d63d8e
Fix: Forgotten override keywords for DropDownListIconItem.
5 years ago
Henry Wilson
cc62f4163f
Cleanup: Remove unused size template parameters from SmallMap and Auto[Free|Delete]SmallVector
5 years ago
peter1138
aafce47596
Codechange: Use override specifier for DropDownListItem classes.
5 years ago
peter1138
b56ea5ca27
Add: Generic drop down list string item with icon.
5 years ago
peter1138
fb35cb5ed2
Remove: Unnecessary virtual destructors on drop down list items.
5 years ago
peter1138
811bf22620
Codechange: Use Colours type instead of byte.
5 years ago
rubidium
2fc10b7e04
(svn r26088) -Fix (r26086): Windows compilation
11 years ago
rubidium
83eeba28b7
(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for dropdowns
11 years ago
frosch
88fff21b93
(svn r24308) -Add: ShowDropDownListAt() for drawing dropdown windows independent of dropdown widgets.
12 years ago
frosch
ea1ca5bf1e
(svn r22311) -Add: DropDownListStringItem::NatSortFunc() which can be used as comparator function in DropDownList::sort().
13 years ago
frosch
18f0add50a
(svn r22310) -Codechange: Derive DropDownListCharStringItem from DropDownListStringItem.
13 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
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
peter1138
f30f5607e3
(svn r15877) -Codechange: Let drop down lists know about font height.
15 years ago
rubidium
93fe44a3c5
(svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier.
15 years ago
peter1138
77760a62fd
(svn r15387) -Codechange: Add a drop down list item type for char* strings.
16 years ago
peter1138
cf52b683c0
(svn r14168) -Codechange: Make dropdown 'auto_width' a separate parameter, so that a minimum width can be specified.
16 years ago
peter1138
3c2f69bf62
(svn r14015) -Codechange: Add facility for a drop down list to always close (if requested) when the mouse button is released.
16 years ago
peter1138
6bae045b4a
(svn r14014) -Codechange: Add support for automatically sizing drop down lists to the widest list item.
16 years ago
peter1138
98d3d86004
(svn r14004) -Codechange: Clean of drop down lists.
...
Move empty item drawing to base ListItem Draw() function.
Remove String() from base class.
Pass correct width to Draw().
16 years ago
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
16 years ago
peter1138
447a31b702
(svn r12675) -Codechange: Add support for custom drawing of drop down list items.
16 years ago
peter1138
711909fa0c
(svn r12672) -Codechange: Add support for variably-sized drop down list items.
16 years ago
rubidium
2ac6af4e48
(svn r12644) -Codechange: rework the order gui a little to prepare it for some future changes.
16 years ago
rubidium
c1108bd293
(svn r11857) -Fix: some compile time warnings.
17 years ago
peter1138
1bcca5aae2
(svn r11854) -Fix (r11848): Nightly build farm showed up more compiler warnings... c++ is fun
17 years ago
peter1138
bf0a7ae4fb
(svn r11849) -Fix (r11848): Incomplete(?) class broke MSVC/mingw compilation
17 years ago
peter1138
e4c05f8d78
(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