summaryrefslogtreecommitdiff
path: root/src/network/network_chat_gui.cpp
AgeCommit message (Collapse)Author
2021-04-22Codechange: Use new widget features on chat message box.Peter Nelson
2021-04-16Feature: Show previous chat history when the chat message box is openPeter Nelson
2021-04-16Codechange: Use std::deque for chat history instead of fixed arrayPeter Nelson
2021-02-27Codechange: [Network] replace _realtime_tick with std::chronoPatric Stout
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2019-12-21Codechange: Replace FOR_ALL_TOWNS with range-based for loopsglx
2019-12-21Codechange: Replace network related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-24Codechange: Use override specifier in Window-derived 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.
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2017-03-14(svn r27794) -Fix [FS#6526]: Chat text background overflowed due to missing ↵peter1138
padding.
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.
2015-02-12(svn r27144) -Change: The chatbox-width setting now uses percent of screen ↵frosch
width instead of pixels.
2014-04-28(svn r26538) -Codechange: remove double accounting of the driversrubidium
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-24(svn r26506) -Codechange: replace most of vsnprintf with vseprintfrubidium
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
2014-01-02(svn r26209) -Codechange: remove some template magic and simplify some coderubidium
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-23(svn r25452) -Codechange: let the chat messages be drawn like the console ↵rubidium
messages; drawing complete multiline strings from the bottom, instead of manually breaking the strings and drawing those
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-03-17(svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf.frosch
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
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 r24739) -Codechange: Simplify some code by using Textbuf::Assign.frosch
2012-11-14(svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor.frosch
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 r24726) -Codechange: Move editbox mouseloop handling to Window class.frosch
2012-11-13(svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code.frosch
2012-06-04(svn r24324) -Codechange: Turn functions dealing with Textbufs into member ↵frosch
functions.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-16(svn r23544) -Codechange: document and rename widgets to be consistent and ↵truebrain
understandable
2011-12-15(svn r23528) -Codechange: move widget enums to widgets/NNN_type.htruebrain
2011-05-05(svn r22424) -Document: some more bitsrubidium
2011-04-22(svn r22362) -Codechange: NetworkFindClientInfoFromClientID -> ↵rubidium
NetworkClientInfo::GetByClientID
2011-04-22(svn r22357) -Fix (r22345): crash when opening the chat box or company ↵smatz
password input box
2011-03-13(svn r22248) -Codechange: Make OnInvalidateData() process 'delete this;' ↵frosch
already in command scope.
2011-03-13(svn r22241) -Codechange: Add additional to-be-used parameter to ↵frosch
OnInvalidateData().
2011-02-11(svn r22059) -Fix (r21179): Make the send chat message window follow the ↵terkhen
position of the status bar.
2011-02-09(svn r22038) -Fix (r21406): Tab completion in chat did not cycle through all ↵terkhen
possible options.