summaryrefslogtreecommitdiff
path: root/src/network/network_gui.cpp
AgeCommit message (Collapse)Author
2019-03-24Codechange: Use override specifier in Window-derived 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-02-16Fix: colour of network specific strings in company dropdown menusglx
2019-01-12Fix #6780: Some windows didn't get updated from OnTick() (#7048)PeterN
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
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-05-22(svn r27577) -Fix [FS#6386]: Dock and roadstop picker, client list and town ↵frosch
authority window did not auto-resize according to their content when they were positioned at the bottom of the screen. (Eearslya)
2015-10-30(svn r27421) -Fix [FS#6265]: Consider text and icon sizes when drawing the ↵frosch
client list. (_dp_)
2015-06-20(svn r27304) -Fix [FS#6321-ish]: Improve password window layout for big font ↵frosch
sizes.
2014-10-05(svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort ↵peter1138
buttons with non-static width.
2014-09-26(svn r26923) -Codechange: Make multiplayer lobby fit to icon size.peter1138
2014-04-23(svn r26486) -Codechange: replace a number of snprintfs with seprintfrubidium
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
2013-11-22(svn r26055) -Codechange: mark switch default as really not triggerable, as ↵rubidium
technically it's dead code
2013-08-05(svn r25668) -Codechange: Pass proper Unicode UCS-4 characters instead of ↵michi_cc
just UCS-2 to the window key press handlers.
2013-06-30(svn r25537) -Codechange: Optionally make WWT_MATRIX compute the number of ↵frosch
rows and columns from the resize step size.
2013-06-30(svn r25534) -Codechange: FinishInitNested calls OnResize, no need to setup ↵frosch
scrollbar capacity before that.
2013-06-30(svn r25531) -Codechange: Use separate function to set data of WWT_MATRIX ↵frosch
widgets.
2013-05-26(svn r25294) -Feature: Add another button to window title bars to resize the ↵frosch
window to its default size.
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-05-19(svn r25253) -Codechange: Rename the strings of the advertisement settings ↵planetmaker
to better reflect what they do
2013-03-17(svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf.frosch
2013-02-09(svn r24983) -Change: Apply the same name sorting rules to content and ↵frosch
NewGRF list as for the server list.
2012-12-08(svn r24801) -Codechange: Add functions to set integral DParams to suitable ↵frosch
values for size computations.
2012-12-01(svn r24776) -Doc: Typo fixes, additions, and additional dots collected from ↵alberth
various sources (including Eagle_rainbow, MinchinWeb)
2012-11-27(svn r24770) -Fix-ish: Calling GUIList::Sort repeatedly has no use without ↵frosch
GUIList::NeedResort since the latter has the sideeffects.
2012-11-27(svn r24769) -Feature [FS#3852]: Add a string filter to the server list. ↵frosch
(Eagle_rainbow)
2012-11-27(svn r24768) -Fix: Adjust a comment to reflect some more truth.frosch
2012-11-27(svn r24767) -Codechange: Remove some fragile hacks from the multiplayer ↵frosch
list who tried to disguised themself as optimisations.
2012-11-14(svn r24742) -Codechange: Remove QueryStringBaseWindow and store ↵frosch
QueryStrings per widget instead.
2012-11-14(svn r24740) -Codechange: Remove duplicate members from ↵frosch
QueryStringBaseWindow and directly use QueryString.
2012-11-14(svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor.frosch
2012-11-14(svn r24736) -Cleanup: The third parameter of Textbuf::Initialize only makes ↵frosch
sense if it is smaller than the second one, also its unit is not pixels.
2012-11-13(svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to ↵frosch
Window::OnEditboxChanged.
2012-11-13(svn r24733) -Codechange: Move handling of editbox keys to window class.frosch
2012-11-13(svn r24732) -Codechange: Unify handling of OK and CANCEL actions for editboxes.frosch
2012-11-13(svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and ↵frosch
CANCEL buttons via QueryString members.
2012-11-13(svn r24729) -Codechange: Unify the handling of HEBR_EDITING.frosch
2012-11-13(svn r24727) -Fix: In various windows the OSK looked shiny but using it had ↵frosch
no effect whatsoever.
2012-11-13(svn r24726) -Codechange: Move editbox mouseloop handling to Window class.frosch
2012-11-13(svn r24725) -Cleanup: Remove old editbox focus code which is already ↵frosch
handled more generally.
2012-11-13(svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code.frosch
2012-11-11(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.frosch
2012-06-09(svn r24335) -Fix: The cursor in the company password window was not ↵frosch
blinking due to wrong magic constants (same as r17539).
2012-06-04(svn r24324) -Codechange: Turn functions dealing with Textbufs into member ↵frosch
functions.
2012-03-25(svn r24070) -Fix [FS#5098]: the 'last joined' server was not properly ↵rubidium
selected anymore (adf88)
2012-03-25(svn r24069) -Fix (r24062): crash when not having a valid last joined addressrubidium