Commit Graph

42 Commits (bd7120bae41b6e7ac86c664c8220b59cd57242bb)

Author SHA1 Message Date
Rubidium e3f49ee7a0 Codechange: coding style fixes 6 months ago
Peter Nelson dcf730f1f6 Codechange: Optionally allow passing state to GUIList sorter function.
GUIList sorter functions can currently only use global state, which makes per-window-instance sorting difficult.
7 months ago
Tyler Trahan 701a61c9af Codechange: Delete date_type.h 10 months ago
Tyler Trahan fca2b37726 Codechange: Move Ticks into their own class 10 months ago
Rubidium eaae0bb5e7 Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
11 months ago
PeterN 8a2d550904
Codechange: Use std::reverse instead of custom implementation. (#10918) 1 year ago
Rubidium 3323402aaa Codechange: rename smallvec_type to container_func and use only when needed 1 year ago
glx22 7222bc5814 Cleanup 2db88953e7: Remove VL_FIRST_SORT as it's useless 4 years ago
Jonathan G Rennison 084b073e57 Codechange: Use template type for GUIList::Sort comparator 4 years ago
S. D. Cloudt 13cc8a0cee Cleanup: Removed SVN headers 5 years ago
glx ebd4f32d15 Cleanup: remove core/sort_func.hpp as it's not used anymore 5 years ago
glx 2db88953e7 Codechange: use std::sort() in GUIList 5 years ago
Henry Wilson 7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 5 years ago
Henry Wilson c01a2e2a81 Codechange: Removed SmallVector completely 5 years ago
Henry Wilson ca2f33c6d0 Codechange: Replaced SmallVector::Erase() with std::vector::erase() 5 years ago
Henry Wilson 4b349c0f90 Codechange: [core] Implement SmallVector using std::vector
The public and protected interface to SmallVector are unchanged
SmallVector now requires that items be default constructible
This isn't an issue since some contained items were previously created
uninitialized.

Temporary default constructors are added to the following structs
- SmallPair
- SmallStackItem
- GRFPresence

Where vector<bool> is required, transition immediately to std::vector
to avoid returning proxy object references.
5 years ago
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
smatz 53aaabe6e9 (svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET 14 years ago
rubidium 17313b6e3f (svn r17530) -Codechange: use QSortT instead of qsort for sorting EngineIDs 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
alberth f5d9760824 (svn r16730) -Doc: Added some missing docs (most notably the class/struct docs) to GUIList template. 15 years ago
frosch 0d782b0f96 (svn r16498) -Codechange: Remove hardly used HASBITS. 15 years ago
rubidium 841050ec83 (svn r15377) -Fix [FS#2607]: filter did resort when unneeded and didn't deselect properly in some cases (Roujin) 16 years ago
rubidium 2ab6fffccc (svn r15369) -Codechange: generalise the GUIList a bit so peter can write filters for cargo type, speed and mass ;) 16 years ago
rubidium 6252c74584 (svn r15368) -Fix: some typos in comments 16 years ago
rubidium cfc80a17d8 (svn r15367) -Add: framework for filtering GUILists (Roujin) 16 years ago
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 16 years ago
skidd13 2f65d35ead (svn r13575) -Codechange: Move small vector to core since it fits better in there
-Codechange: convert smallvector from struct to class
16 years ago
skidd13 f1cecb1795 (svn r13535) -Codechange: Protect GUIList internals
-Fix: VL_FIST_SORT should be set after list rebuild too
16 years ago
skidd13 96fc91baf3 (svn r13516) -Codechange: Move MemCpyT to a fitting core header
-Codechange: Split the sorting code from the sortlist to an appropriate header
16 years ago
rubidium e81386476f (svn r13342) -Fix: smallvec.h/sortlist_type.h didn't include everything they needed. 16 years ago
smatz ee9a9503ce (svn r13296) -Fix (r13276): VL_FIRST_SORT was never reset 16 years ago
skidd13 6d46851b61 (svn r13286) -Codechange: GUIList Sort returns now if the list sequence has been altered 16 years ago
smatz e424367938 (svn r13280) -Fix (r13276): MSVC compilation was broken 16 years ago
smatz a7761332f6 (svn r13279) -Codechange: simplify condition for terminating loop when reversing list order 16 years ago
smatz a0b14f02c8 (svn r13276) -Codechange: use qsort() for initial sorting of a list for better performance (credits go to skidd13 and peter1138) 16 years ago
smatz a509746288 (svn r13275) -Fix: sort lists with 2 items, too
-Fix: reset VL_RESORT and resort timer even when no sort was needed
16 years ago
skidd13 18acb21d65 (svn r13267) -Codechange: extend GUIList with a GnomeSort 16 years ago
peter1138 02b5ffa13f (svn r13266) -Codechange: Use SmallVector in GUIList 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