summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
AgeCommit message (Collapse)Author
2020-07-02 Fix #8250: [NRT] Company infrastructure window always omits last road/tramtypestormcone
2020-06-18Fix: Violation of strict weak ordering in group name sortersJonathan G Rennison
This could be caused by a group being renamed, and the old name being cached from a previous sort. See: #7838
2019-12-21Codechange: Replace FOR_ALL_GROUPS with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_ENGINES with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_COMPANIES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-24Fix: Automatic line breaking of the warningNiels Martin Hansen
2019-04-13Codechange: use std::sort() in GUIListglx
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
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: Removed SmallVector completelyHenry Wilson
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-26Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-03-24Codechange: Use override specifier for DropDownListItem classes.peter1138
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
This switch has been a pain for years. Often disabling broke compilation, as no developer compiles OpenTTD without, neither do any of our official binaries. Additionaly, it has grown so hugely in our codebase, that it clearly shows that the current solution was a poor one. 350+ instances of "#ifdef ENABLE_NETWORK" were in the code, of which only ~30 in the networking code itself. The rest were all around the code to do the right thing, from GUI to NewGRF. A more proper solution would be to stub all the functions, and make sure the rest of the code can simply assume network is available. This was also partially done, and most variables were correct if networking was disabled. Despite that, often the #ifdefs were still used. With the recent removal of DOS, there is also no platform anymore which we support where networking isn't working out-of-the-box. All in all, it is time to remove the ENABLE_NETWORK switch. No replacement is planned, but if you feel we really need this option, we welcome any Pull Request which implements this in a way that doesn't crawl through the code like this diff shows we used to.
2019-03-10Remove: Unnecessary virtual destructors on drop down list items.peter1138
2019-03-10Codechange: Use Colours type instead of byte.peter1138
2019-03-03Fix 23960d0f2c: Company livery window shows incorrect groups when opened ↵peter1138
from group window in multiplayer.
2019-02-26Fix #7281: Unable to select last group in open livery window on group creation.peter1138
2019-02-02Fix: Make livery window resize properly if GUI scale changes whilst open.Peter Nelson
2019-02-01Fix 23960d0f2c: Scrollbar was broken for non-group liveries.Peter Nelson
Simplify how list position is determined by using existing functions. Also rename livery_height -> rows and SetLiveryHeight() -> SetRows(), as height implies pixels.
2019-01-31Feature: Group liveries, and livery window usability enhancements. (#7108)PeterN
* Change: Replace checkbox in livery selection window with Default option in drop down selection. This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired. * Feature: Add vehicle group liveries.
2019-01-27Change: For consistency, add company name to colour scheme window.Peter Nelson
2019-01-27Fix: Ignore company colour selection when showing different company's colour ↵Peter Nelson
scheme.
2019-01-11Codechange: Fix typo in variable name: pices -> pieces (#7033)nikolas
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2017-07-11(svn r27889) -Change: Do not cancel headquarter construction and ↵frosch
engine-preview-query when shift-clicking (adf88)
2015-10-30(svn r27427) -Fix: Use the NewGRF railtype sorting order in the ↵frosch
infrastructure window.
2015-02-01(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ↵frosch
ScaleGUITrad().
2014-09-28(svn r26935) -Codechange: Fit company colour selection drop down list to UI ↵peter1138
scale.
2014-09-20(svn r26856) -Codechange: Ensure company face widgets can fit company face.peter1138
2014-04-27(svn r26527) -Codechange: Rename STR_MAPGEN_RANDOM to STR_FACE_RANDOMfrosch
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
2014-03-18(svn r26416) -Fix [FS#5947]: Shares button state was not appropriately ↵planetmaker
updated when switching setting or company (frosch)
2013-11-24(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for ↵rubidium
dropdowns
2013-06-30(svn r25531) -Codechange: Use separate function to set data of WWT_MATRIX ↵frosch
widgets.
2013-06-29(svn r25517) -Fix-ish (r25515) / Feature-ish [FS#5623]: properly align the ↵rubidium
statistics as well when the infra sharing is turned on
2013-06-29(svn r25516) -Codechange: reduce code duplication in infrastructure ↵rubidium
statistics window
2013-06-29(svn r25515) -Feature [FS#5595]: right align the infrastructure statisticsrubidium
2013-06-23(svn r25442) -Codechange: move height and ascender information into the ↵rubidium
FontCache instances
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-02-04(svn r24968) -Fix [FS#5379]: company window was not updated when shared were ↵rubidium
enabled/disabled