summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
AgeCommit message (Collapse)Author
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-03-24Codechange: Use override specifier for DropDownListItem classes.peter1138
2019-03-24Codechange: Use override specifer for overriding member declarationsHenry Wilson
This is a C++11 feature that allows the compiler to check that a virtual member declaration overrides a base-class member with the same signature. Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked as virtual despite being a template.
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-10Feature: Add road icon to road construction drop down list.peter1138
2019-03-10Remove: Unnecessary virtual destructors on drop down list items.peter1138
2019-03-10Codechange: Use Colours type instead of byte.peter1138
2019-02-24Fix c3dbe836b4: also compile without ENABLE_NETWORK defined againPatric Stout
2019-02-17Fix 1585eb1a3: wrong default selection for goals and story bookglx
2019-02-16Add: News menu entry and shortcut for deleting all messages. (#7240)Joan Josep
2019-02-16Fix: use more descriptive "spectator" strings for story book and goal ↵glx
dropdown menus
2019-02-04Add: CompanyCtrlAction enum for CMD_COMPANY_CTRL actionsglx
2019-01-22Add: Draw network password indicator lock in company drop down list. (#7079)PeterN
2019-01-11Change: Use GUITimer class instead of bare int/uints.Peter Nelson
2019-01-11Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust ↵Peter Nelson
timers to work with milliseconds instead of ticks.
2018-07-19Feature: Framerate display window (#6822)Niels Martin Hansen
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2018-04-30Fix: Spelling errors (#6769)Joan Josep
2016-10-30(svn r27671) -Codechange: Replace magic numbers in the toolbar with the ↵frosch
already existing WID_TN_xxx. (Wolf01)
2016-09-04(svn r27653) -Fix(r27647): Rename FileOperation enum and values to ↵alberth
SaveLoadOperation to avoid nameclash with windows compiler toolkit.
2016-09-04(svn r27648) -Codechange: Remove remaining _saveload_mode usage.alberth
2016-08-15(svn r27626) -Codechange: Do not use the cursor sprite as PlaceObject status ↵frosch
in the main toolbar.
2015-03-07(svn r27178) -Fix [FS#5969]: Data race due to lazy initialisation of objects.frosch
2015-02-14(svn r27150) -Fix (r27146): Forgot scenario toolbar.frosch
2015-02-13(svn r27146) -Fix: Make statusbar and chat-entry window use the same width ↵frosch
as the toolbar. Otherwise they lack a size definition.
2014-10-09(svn r26986) -Change: Rename 'Advanced Settings' to just 'Settings'.frosch
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-02-06(svn r26314) -Fix [FS#5899]: The giant-screenshot confirmation window only ↵frosch
triggered for rediculously big screenshots, for ludicrously big ones.
2014-01-03(svn r26217) -Change: blitter autoselection based on full animation state, ↵rubidium
so the non-animated optimizations can actually be used in an easy manner (based on patch by MJP)
2013-11-24(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for ↵rubidium
dropdowns
2013-10-15(svn r25867) -Fix [FS#5764]: Shift dates on link graphs when using scenario ↵fonsinchen
editor date tool.
2013-09-14(svn r25772) -Add: Additional layered main toolbar arrangementzuu
2013-09-13(svn r25761) -Change: Disable story/goal buttons when there is no content to ↵zuu
show instead of when there is zero companies
2013-06-15(svn r25412) -Codechange: Make use of Window::OnHotkeyfrosch
2013-06-15(svn r25410) -Codechange: Put all hotkeys of a window into a static ↵frosch
HotkeyList member.
2013-06-15(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.frosch
2013-06-09(svn r25383) -Fix (r25376): Remove now redundant menu entries for story book ↵zuu
and goals
2013-06-09(svn r25376) -Feature: Allow access to goal list and story book of other ↵zuu
companies than your own
2013-06-09(svn r25372) -Add: Allow opening a goal list window specific to a companyzuu
2013-06-09(svn r25369) -Add: allow opening a story window specific to a companyzuu
2013-06-09(svn r25344) -Feature: GUI for viewing story pageszuu
2013-06-08(svn r25335) -Change: Revisit the map menu in scenario editor: Remove ↵frosch
linkgraph legend, add industry list.
2013-05-29(svn r25304) -Change: Move the GS goals window from the subsidies to the ↵frosch
league menu.
2013-05-26(svn r25290) -Add: Assign string names to notable windows.frosch
2013-05-26(svn r25289) -Codechange: Store width of statusbar and main toolbar directly ↵frosch
in the WindowDesc.
2013-05-26(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window ↵frosch
after construction.
2013-05-19(svn r25263) -Add: legend for linkgraph overlay (fonsinchen)rubidium
2012-12-23(svn r24846) -Add: Advanced settings to disable certain sound effects.frosch
2012-12-23(svn r24842) -Remove: News settings window.frosch
2012-12-09(svn r24806) -Feature [FS#3148]: Ask for confirmation before creating giant ↵frosch
screenshots.