Commit Graph

1000 Commits (828d2146ebf81e54bdff53c5537d979ec18134c3)

Author SHA1 Message Date
Jonathan G Rennison ba34ec7ade Merge branch 'master' into jgrpp
Replace build and refit, and group collapse implementations
Fix template creation build and refit

# Conflicts:
#	Makefile.bundle.in
#	config.lib
#	src/animated_tile.cpp
#	src/blitter/32bpp_anim.hpp
#	src/blitter/32bpp_base.hpp
#	src/blitter/8bpp_base.hpp
#	src/blitter/null.hpp
#	src/build_vehicle_gui.cpp
#	src/command.cpp
#	src/command_func.h
#	src/console_gui.cpp
#	src/core/smallstack_type.hpp
#	src/date.cpp
#	src/debug.cpp
#	src/genworld_gui.cpp
#	src/ground_vehicle.hpp
#	src/group_gui.cpp
#	src/lang/korean.txt
#	src/linkgraph/linkgraph_gui.h
#	src/main_gui.cpp
#	src/misc_gui.cpp
#	src/network/core/game.h
#	src/network/core/packet.cpp
#	src/network/core/udp.cpp
#	src/network/core/udp.h
#	src/network/network_content.cpp
#	src/network/network_type.h
#	src/network/network_udp.cpp
#	src/newgrf_house.h
#	src/openttd.cpp
#	src/order_cmd.cpp
#	src/order_gui.cpp
#	src/os/unix/crashlog_unix.cpp
#	src/os/windows/crashlog_win.cpp
#	src/osk_gui.cpp
#	src/pathfinder/opf/opf_ship.cpp
#	src/rail_cmd.cpp
#	src/rail_gui.cpp
#	src/saveload/saveload.cpp
#	src/settings.cpp
#	src/settings_gui.cpp
#	src/smallmap_gui.h
#	src/station_base.h
#	src/station_cmd.cpp
#	src/table/gameopt_settings.ini
#	src/table/newgrf_debug_data.h
#	src/table/settings.ini
#	src/timetable_gui.cpp
#	src/toolbar_gui.cpp
#	src/train_gui.cpp
#	src/vehicle.cpp
#	src/vehicle_gui.cpp
#	src/vehiclelist.cpp
#	src/viewport.cpp
#	src/widgets/dropdown.cpp
#	src/window_gui.h
5 years ago
Henry Wilson c01a2e2a81 Codechange: Removed SmallVector completely 5 years ago
Henry Wilson ab711e6942 Codechange: Replaced SmallVector::[Begin|End]() with std alternatives 5 years ago
Henry Wilson a0f36a50e6 Codechange: Replaced SmallVector::Append() with std::vector::[push|emplace]_back() 5 years ago
Henry Wilson a690936ed7 Codechange: Replace SmallVector::Length() with std::vector::size() 5 years ago
Henry Wilson 9cba6f7193 Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit() 5 years ago
Henry Wilson bfd79e59dc Codechange: Replace SmallVector::Clear() with std::vector::clear() 5 years ago
peter1138 317f69c152 Codechange: Use override specifier in Window-derived classes. 5 years ago
Henry Wilson af7d9020a1 Codechange: Use override specifer for overriding member declarations
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.
5 years ago
Patric Stout e3c639a09f Remove: ENABLE_NETWORK switch
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.
5 years ago
Jonathan G Rennison 36ac643749 Merge branch 'master' into jgrpp
# Conflicts:
#	src/lang/afrikaans.txt
#	src/lang/basque.txt
#	src/lang/belarusian.txt
#	src/lang/brazilian_portuguese.txt
#	src/lang/bulgarian.txt
#	src/lang/catalan.txt
#	src/lang/croatian.txt
#	src/lang/czech.txt
#	src/lang/danish.txt
#	src/lang/dutch.txt
#	src/lang/english.txt
#	src/lang/english_AU.txt
#	src/lang/english_US.txt
#	src/lang/estonian.txt
#	src/lang/finnish.txt
#	src/lang/french.txt
#	src/lang/gaelic.txt
#	src/lang/galician.txt
#	src/lang/german.txt
#	src/lang/greek.txt
#	src/lang/hebrew.txt
#	src/lang/hungarian.txt
#	src/lang/icelandic.txt
#	src/lang/indonesian.txt
#	src/lang/irish.txt
#	src/lang/italian.txt
#	src/lang/japanese.txt
#	src/lang/korean.txt
#	src/lang/latin.txt
#	src/lang/latvian.txt
#	src/lang/lithuanian.txt
#	src/lang/luxembourgish.txt
#	src/lang/norwegian_bokmal.txt
#	src/lang/norwegian_nynorsk.txt
#	src/lang/polish.txt
#	src/lang/portuguese.txt
#	src/lang/romanian.txt
#	src/lang/russian.txt
#	src/lang/serbian.txt
#	src/lang/simplified_chinese.txt
#	src/lang/slovak.txt
#	src/lang/slovenian.txt
#	src/lang/spanish.txt
#	src/lang/spanish_MX.txt
#	src/lang/swedish.txt
#	src/lang/tamil.txt
#	src/lang/thai.txt
#	src/lang/traditional_chinese.txt
#	src/lang/turkish.txt
#	src/lang/ukrainian.txt
#	src/lang/unfinished/persian.txt
#	src/lang/vietnamese.txt
#	src/lang/welsh.txt
#	src/rail_cmd.cpp
#	src/station_cmd.cpp
5 years ago
glx 7c31a32c2b Fix: colour of network specific strings in company dropdown menus 5 years ago
Jonathan G Rennison e3d167f9f0 Merge branch 'save_ext' into jgrpp
# Conflicts:
#	config.lib
#	src/misc_gui.cpp
#	src/network/network_gui.cpp
#	src/settings_type.h
#	src/smallmap_gui.cpp
#	src/smallmap_gui.h
#	src/station_cmd.cpp
#	src/toolbar_gui.cpp
#	src/vehicle_gui.cpp
#	src/window.cpp
6 years ago
PeterN 5ff0c24993 Fix #6780: Some windows didn't get updated from OnTick() (#7048) 6 years ago
Jonathan G Rennison 6342099c4d Allow 256 NewGRFs in multiplayer
Add extended network format for server info
Add general UDP packet fragmentation system
Fix map dimensions >= 64k
Increase length of server revision string
Maintain backwards compatibility with trunk for advertisement/server listing
6 years ago
Jonathan G Rennison f34833f111 Merge branch 'improved_breakdowns' into jgrpp
# Conflicts:
#	src/vehiclelist.cpp
7 years ago
frosch b4b98e5165 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 7 years ago
frosch a47fb85cd8 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 7 years ago
Jonathan G Rennison 54494a0a7c Merge branch 'send_money_company' into jgrpp 7 years ago
patch-import f820543391 Import give money to company patch
From: https://www.tt-forums.net/viewtopic.php?p=1183311#p1183311

Fix language files and minor formatting issues
7 years ago
Jonathan G Rennison f89e8b76d6 Fix increased number of NewGRFs support.
Improve error handling if multiplayer limit is exceeded.
7 years ago
Jonathan G Rennison 90cd312428 Merge branch 'master' into jgrpp
# Conflicts:
#	src/fios.h
8 years ago
Jonathan G Rennison 5e67582a64 Merge branch 'save_ext' into jgrpp
# Conflicts:
#	config.lib
#	src/saveload/extended_ver_sl.cpp
#	src/saveload/saveload.cpp
8 years ago
alberth f286ba8db2 (svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit. 8 years ago
alberth 0adfb1ac6f (svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit. 8 years ago
alberth 3b84827773 (svn r27648) -Codechange: Remove remaining _saveload_mode usage. 8 years ago
alberth 88bdf482c0 (svn r27648) -Codechange: Remove remaining _saveload_mode usage. 8 years ago
Jonathan G Rennison 09291a3b74 Merge branch 'master' into jgrpp
# Conflicts:
#	src/blitter/32bpp_anim.cpp
#	src/rail_gui.cpp
#	src/saveload/saveload.cpp
#	src/train_cmd.cpp
#	src/vehicle_base.h
8 years ago
frosch b1272ee714 (svn r27577) -Fix [FS#6386]: Dock and roadstop picker, client list and town authority window did not auto-resize according to their content when they were positioned at the bottom of the screen. (Eearslya) 8 years ago
frosch 8084f39bf3 (svn r27577) -Fix [FS#6386]: Dock and roadstop picker, client list and town authority window did not auto-resize according to their content when they were positioned at the bottom of the screen. (Eearslya) 8 years ago
Jonathan G Rennison 8d19727c93 Merge branch 'save_ext' into jgrpp
Conflicts:
	src/pathfinder/follow_track.hpp
9 years ago
frosch 7be7851b94 (svn r27421) -Fix [FS#6265]: Consider text and icon sizes when drawing the client list. (_dp_) 9 years ago
frosch 2c9117fbdd (svn r27421) -Fix [FS#6265]: Consider text and icon sizes when drawing the client list. (_dp_) 9 years ago
patch-import 8f5ef2ae01 Import and rebase Max NewGRFs patch
Fix trailing whitespace, clean up code a bit

http://www.tt-forums.net/viewtopic.php?p=894743#p894743
9 years ago
frosch 4117c5b747 (svn r27304) -Fix [FS#6321-ish]: Improve password window layout for big font sizes. 9 years ago
frosch fc50ff6531 (svn r27304) -Fix [FS#6321-ish]: Improve password window layout for big font sizes. 9 years ago
peter1138 6872b647f1 (svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort buttons with non-static width. 10 years ago
peter1138 0877f892c5 (svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort buttons with non-static width. 10 years ago
peter1138 a1929222d5 (svn r26923) -Codechange: Make multiplayer lobby fit to icon size. 10 years ago
peter1138 59076ee32b (svn r26923) -Codechange: Make multiplayer lobby fit to icon size. 10 years ago
rubidium 6ecc602050 (svn r26486) -Codechange: replace a number of snprintfs with seprintf 10 years ago
rubidium 5b82822c12 (svn r26486) -Codechange: replace a number of snprintfs with seprintf 10 years ago
rubidium 2be4215f43 (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 10 years ago
rubidium 0463dbdc9e (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 10 years ago
rubidium 7ecfd60b96 (svn r26055) -Codechange: mark switch default as really not triggerable, as technically it's dead code 11 years ago
rubidium bdd62a4b3e (svn r26055) -Codechange: mark switch default as really not triggerable, as technically it's dead code 11 years ago
michi_cc 872acc5287 (svn r25668) -Codechange: Pass proper Unicode UCS-4 characters instead of just UCS-2 to the window key press handlers. 11 years ago
michi_cc b911f4a452 (svn r25668) -Codechange: Pass proper Unicode UCS-4 characters instead of just UCS-2 to the window key press handlers. 11 years ago
frosch 538159cb1d (svn r25537) -Codechange: Optionally make WWT_MATRIX compute the number of rows and columns from the resize step size. 11 years ago
frosch 43ec0bf0c1 (svn r25537) -Codechange: Optionally make WWT_MATRIX compute the number of rows and columns from the resize step size. 11 years ago
frosch ebcea87745 (svn r25534) -Codechange: FinishInitNested calls OnResize, no need to setup scrollbar capacity before that. 11 years ago
frosch df732f2bae (svn r25534) -Codechange: FinishInitNested calls OnResize, no need to setup scrollbar capacity before that. 11 years ago
frosch f6d27acb51 (svn r25531) -Codechange: Use separate function to set data of WWT_MATRIX widgets. 11 years ago
frosch 98fdd20f84 (svn r25531) -Codechange: Use separate function to set data of WWT_MATRIX widgets. 11 years ago
frosch 13badddd75 (svn r25294) -Feature: Add another button to window title bars to resize the window to its default size. 11 years ago
frosch 4e4e635916 (svn r25294) -Feature: Add another button to window title bars to resize the window to its default size. 11 years ago
frosch 16feb5c4e9 (svn r25290) -Add: Assign string names to notable windows. 11 years ago
frosch 8157a8afd8 (svn r25290) -Add: Assign string names to notable windows. 11 years ago
frosch 25adefca23 (svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction. 11 years ago
frosch 56e4a8c4d6 (svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction. 11 years ago
planetmaker 0f84700ecb (svn r25253) -Codechange: Rename the strings of the advertisement settings to better reflect what they do 11 years ago
planetmaker 7e4f68d275 (svn r25253) -Codechange: Rename the strings of the advertisement settings to better reflect what they do 11 years ago
frosch 9c23446b2b (svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf. 11 years ago
frosch 579ee7a592 (svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf. 11 years ago
frosch 356ecf05c4 (svn r24983) -Change: Apply the same name sorting rules to content and NewGRF list as for the server list. 12 years ago
frosch 3e02890b73 (svn r24983) -Change: Apply the same name sorting rules to content and NewGRF list as for the server list. 12 years ago
frosch eb20798aae (svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations. 12 years ago
frosch b533523258 (svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations. 12 years ago
alberth 19adc87262 (svn r24776) -Doc: Typo fixes, additions, and additional dots collected from various sources (including Eagle_rainbow, MinchinWeb) 12 years ago
alberth 732e073261 (svn r24776) -Doc: Typo fixes, additions, and additional dots collected from various sources (including Eagle_rainbow, MinchinWeb) 12 years ago
frosch c53e0a9ad5 (svn r24770) -Fix-ish: Calling GUIList::Sort repeatedly has no use without GUIList::NeedResort since the latter has the sideeffects. 12 years ago
frosch 4e8f3f7a99 (svn r24770) -Fix-ish: Calling GUIList::Sort repeatedly has no use without GUIList::NeedResort since the latter has the sideeffects. 12 years ago
frosch f37b3740b3 (svn r24769) -Feature [FS#3852]: Add a string filter to the server list. (Eagle_rainbow) 12 years ago
frosch 507de921c2 (svn r24769) -Feature [FS#3852]: Add a string filter to the server list. (Eagle_rainbow) 12 years ago
frosch c68200a66e (svn r24768) -Fix: Adjust a comment to reflect some more truth. 12 years ago
frosch b884195400 (svn r24768) -Fix: Adjust a comment to reflect some more truth. 12 years ago
frosch 6e82b9f70d (svn r24767) -Codechange: Remove some fragile hacks from the multiplayer list who tried to disguised themself as optimisations. 12 years ago
frosch 9aeeb5acb9 (svn r24767) -Codechange: Remove some fragile hacks from the multiplayer list who tried to disguised themself as optimisations. 12 years ago
frosch 18dcd2e6a4 (svn r24742) -Codechange: Remove QueryStringBaseWindow and store QueryStrings per widget instead. 12 years ago
frosch f5d8ba5d7f (svn r24742) -Codechange: Remove QueryStringBaseWindow and store QueryStrings per widget instead. 12 years ago
frosch ec27bcb6a6 (svn r24740) -Codechange: Remove duplicate members from QueryStringBaseWindow and directly use QueryString. 12 years ago
frosch 6e6d94a2d1 (svn r24740) -Codechange: Remove duplicate members from QueryStringBaseWindow and directly use QueryString. 12 years ago
frosch 0ab8e7939b (svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor. 12 years ago
frosch f6d4200f86 (svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor. 12 years ago
frosch 2078fc5325 (svn r24736) -Cleanup: The third parameter of Textbuf::Initialize only makes sense if it is smaller than the second one, also its unit is not pixels. 12 years ago
frosch f2221e8b89 (svn r24736) -Cleanup: The third parameter of Textbuf::Initialize only makes sense if it is smaller than the second one, also its unit is not pixels. 12 years ago
frosch f1d40ca6f2 (svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to Window::OnEditboxChanged. 12 years ago
frosch 2c22fe98dd (svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to Window::OnEditboxChanged. 12 years ago
frosch 08e92e6f23 (svn r24733) -Codechange: Move handling of editbox keys to window class. 12 years ago
frosch c4d7c8dd42 (svn r24733) -Codechange: Move handling of editbox keys to window class. 12 years ago
frosch 8f611527e9 (svn r24732) -Codechange: Unify handling of OK and CANCEL actions for editboxes. 12 years ago
frosch 7699a7dc06 (svn r24732) -Codechange: Unify handling of OK and CANCEL actions for editboxes. 12 years ago
frosch c6ac0299a8 (svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and CANCEL buttons via QueryString members. 12 years ago
frosch fd55399167 (svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and CANCEL buttons via QueryString members. 12 years ago
frosch c12caa20aa (svn r24729) -Codechange: Unify the handling of HEBR_EDITING. 12 years ago
frosch 6d1fe626f5 (svn r24729) -Codechange: Unify the handling of HEBR_EDITING. 12 years ago
frosch 6616b70654 (svn r24727) -Fix: In various windows the OSK looked shiny but using it had no effect whatsoever. 12 years ago
frosch 1071d51508 (svn r24727) -Fix: In various windows the OSK looked shiny but using it had no effect whatsoever. 12 years ago
frosch e0f59fb049 (svn r24726) -Codechange: Move editbox mouseloop handling to Window class. 12 years ago
frosch 137adb3496 (svn r24726) -Codechange: Move editbox mouseloop handling to Window class. 12 years ago
frosch 6b77177f25 (svn r24725) -Cleanup: Remove old editbox focus code which is already handled more generally. 12 years ago
frosch 2614ed18f9 (svn r24725) -Cleanup: Remove old editbox focus code which is already handled more generally. 12 years ago
frosch e95b757c11 (svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code. 12 years ago
frosch 17025fa6ea (svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code. 12 years ago
frosch 3b06409153 (svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default. 12 years ago
frosch 03736af2ae (svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default. 12 years ago
frosch ac72c956d8 (svn r24335) -Fix: The cursor in the company password window was not blinking due to wrong magic constants (same as r17539). 12 years ago
frosch 7e57e8692a (svn r24335) -Fix: The cursor in the company password window was not blinking due to wrong magic constants (same as r17539). 12 years ago
frosch 9b196d0fb4 (svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions. 12 years ago
frosch d58eee1e79 (svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions. 12 years ago
rubidium 5791feadf0 (svn r24070) -Fix [FS#5098]: the 'last joined' server was not properly selected anymore (adf88) 12 years ago
rubidium 1adb9a5c85 (svn r24070) -Fix [FS#5098]: the 'last joined' server was not properly selected anymore (adf88) 12 years ago
rubidium 5ace36f570 (svn r24069) -Fix (r24062): crash when not having a valid last joined address 12 years ago
rubidium f2f939906e (svn r24069) -Fix (r24062): crash when not having a valid last joined address 12 years ago
rubidium 17f822d572 (svn r24062) -Fix [FS#5097]: immediately start querying the last joined server instead of waiting for the requery loop (adf88) 12 years ago
rubidium 357843378f (svn r24062) -Fix [FS#5097]: immediately start querying the last joined server instead of waiting for the requery loop (adf88) 12 years ago
rubidium bd252de9ef (svn r23906) -Codechange: replace magic numbers with named constants (adf88) 13 years ago
rubidium 446758872c (svn r23906) -Codechange: replace magic numbers with named constants (adf88) 13 years ago
rubidium 84433bbeb7 (svn r23787) -Fix: add some missing spaces 13 years ago
rubidium 89ab59f0cb (svn r23787) -Fix: add some missing spaces 13 years ago
rubidium d5eeab43b7 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
rubidium 6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
rubidium 2b32ddf24f (svn r23710) -Change: make the default secondary sort method for the server list the number of clients instead of the name 13 years ago
rubidium 6ed84aff8d (svn r23710) -Change: make the default secondary sort method for the server list the number of clients instead of the name 13 years ago
rubidium 37a81f01cf (svn r23709) -Feature-ish: try harder to sort text instead of fancy characters in the server names 13 years ago
rubidium 9a921fd0ae (svn r23709) -Feature-ish: try harder to sort text instead of fancy characters in the server names 13 years ago
rubidium 7e8fc15328 (svn r23692) -Fix: use smallest_x of your children only when you let the children update it 13 years ago
rubidium 1a6d352b92 (svn r23692) -Fix: use smallest_x of your children only when you let the children update it 13 years ago
truebrain c967d260bc (svn r23691) -Fix: signed/unsigned issues, causing asserts for some languages in relation to the serverlist 13 years ago
truebrain f27b7e2a78 (svn r23691) -Fix: signed/unsigned issues, causing asserts for some languages in relation to the serverlist 13 years ago
truebrain c74ccfff1b (svn r23601) -Fix: fix the conflict in window number 13 years ago
truebrain 561b25d031 (svn r23601) -Fix: fix the conflict in window number 13 years ago
frosch 7b9891f086 (svn r23579) -Fix (r23525): Most up/down arrows stopped working. 13 years ago
frosch 4e4a87bd3c (svn r23579) -Fix (r23525): Most up/down arrows stopped working. 13 years ago
truebrain 4c344a82a9 (svn r23544) -Codechange: document and rename widgets to be consistent and understandable 13 years ago
truebrain e2d8abeec5 (svn r23544) -Codechange: document and rename widgets to be consistent and understandable 13 years ago
truebrain 49e88dcbf0 (svn r23528) -Codechange: move widget enums to widgets/NNN_type.h 13 years ago
truebrain 2aa774e831 (svn r23528) -Codechange: move widget enums to widgets/NNN_type.h 13 years ago
truebrain da63ce43fa (svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, with only values known in WindowFlags (and move out 2 timers to their own variable)
-Codechange: rename Window::flags4 to Window::flags
-Codechange: move some non-inline functions from .hpp to .cpp
13 years ago
truebrain df0afdf0dc (svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, with only values known in WindowFlags (and move out 2 timers to their own variable)
-Codechange: rename Window::flags4 to Window::flags
-Codechange: move some non-inline functions from .hpp to .cpp
13 years ago
rubidium daba7e588a (svn r23470) -Codechange: move declaration of SwitchToMode to a header instead of declaring it in 6 other files 13 years ago
rubidium b231e80125 (svn r23470) -Codechange: move declaration of SwitchToMode to a header instead of declaring it in 6 other files 13 years ago
yexo 442caecab0 (svn r23465) -Feature [FS#4827]: add 'find missing content online' button to 'load savegame' and 'find network game' windows 13 years ago
yexo dcba6c25ea (svn r23465) -Feature [FS#4827]: add 'find missing content online' button to 'load savegame' and 'find network game' windows 13 years ago
rubidium 1c5ecf5619 (svn r23202) -Fix [FS#4829]: unstable sorting in the network list when two servers had the exact same name 13 years ago
rubidium aa668ba6bd (svn r23202) -Fix [FS#4829]: unstable sorting in the network list when two servers had the exact same name 13 years ago
peter1138 cacf7ecf2b (svn r23017) -Codechange: Add support for resized scrollbars. 13 years ago
peter1138 50d1541270 (svn r23017) -Codechange: Add support for resized scrollbars. 13 years ago
planetmaker 4a87470323 (svn r23011) -Fix [FS#4791]: When the last used server is deleted from the list also clear the last used server if it is the same (monoid) 13 years ago
planetmaker 74f6813a55 (svn r23011) -Fix [FS#4791]: When the last used server is deleted from the list also clear the last used server if it is the same (monoid) 13 years ago
yexo 7196157d2d (svn r22932) -Fix [FS#4766]: disable the white border on window creation for several windows (based on patch by monoid) 13 years ago
yexo ad232bd497 (svn r22932) -Fix [FS#4766]: disable the white border on window creation for several windows (based on patch by monoid) 13 years ago
rubidium 838a7040f3 (svn r22696) -Fix: don't requery the servers when the server list window isn't opened 13 years ago
rubidium 36e887591b (svn r22696) -Fix: don't requery the servers when the server list window isn't opened 13 years ago
frosch 7b251297c9 (svn r22429) -Add: some constants for specific palette colours used in the GUI. 13 years ago
frosch 5e449b8fae (svn r22429) -Add: some constants for specific palette colours used in the GUI. 13 years ago
rubidium 61a3963361 (svn r22424) -Document: some more bits 13 years ago
rubidium c4aa943aaa (svn r22424) -Document: some more bits 13 years ago
frosch 7cc3d3e143 (svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices. 13 years ago
frosch 22286bd7b6 (svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices. 13 years ago
rubidium c4af57ad3b (svn r22365) -Codechange: add overload of NetworkServerKickOrBanIP using the ClientID, which later resolves the IP address to ban. This to consolidate the knowledge about resolving IP addresses 13 years ago
rubidium caf02450fb (svn r22365) -Codechange: add overload of NetworkServerKickOrBanIP using the ClientID, which later resolves the IP address to ban. This to consolidate the knowledge about resolving IP addresses 13 years ago
rubidium 0a7dcc9781 (svn r22362) -Codechange: NetworkFindClientInfoFromClientID -> NetworkClientInfo::GetByClientID 13 years ago
rubidium bc9a803ea9 (svn r22362) -Codechange: NetworkFindClientInfoFromClientID -> NetworkClientInfo::GetByClientID 13 years ago
rubidium c90e28d184 (svn r22361) -Codechange: delete the client list popup when the client got removed (instead of previously selecting some other client) 13 years ago
rubidium 393fb8e46b (svn r22361) -Codechange: delete the client list popup when the client got removed (instead of previously selecting some other client) 13 years ago
rubidium 9b2b82ecd9 (svn r22360) -Codechange: use globally unique client id to mark the selected client instead of the position in the client list 13 years ago
rubidium 2802c742a4 (svn r22360) -Codechange: use globally unique client id to mark the selected client instead of the position in the client list 13 years ago
rubidium 1f873ff0f1 (svn r22359) -Codechange: pass client info pointers instead of the position to the client popup list's callbacks 13 years ago
rubidium 2f9b6156ee (svn r22359) -Codechange: pass client info pointers instead of the position to the client popup list's callbacks 13 years ago
rubidium 9a466d0e04 (svn r22358) -Codechange: WC_TOOLBAR_MENU isn't the right name when its only used for client list popups 13 years ago
rubidium 835ae31f45 (svn r22358) -Codechange: WC_TOOLBAR_MENU isn't the right name when its only used for client list popups 13 years ago
smatz a932afb7f1 (svn r22357) -Fix (r22345): crash when opening the chat box or company password input box 13 years ago
smatz e2d5ce1b0e (svn r22357) -Fix (r22345): crash when opening the chat box or company password input box 13 years ago
terkhen a88fe7c2aa (svn r22343) -Change: Remove pixel limiter for query strings. 13 years ago
terkhen 10caf391a1 (svn r22343) -Change: Remove pixel limiter for query strings. 13 years ago
frosch db3a8d1abf (svn r22247) -Codechange: Update comments wrt. ForceRebuild() in command-scope. 13 years ago
frosch 652c9cb663 (svn r22247) -Codechange: Update comments wrt. ForceRebuild() in command-scope. 13 years ago
frosch 4b4a40a72e (svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData(). 13 years ago
frosch ec9540a12a (svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData(). 13 years ago
rubidium 60b5ffdd62 (svn r22093) -Fix [FS#4514]: The server list did not get sorted with one item in it, so the "position in the list" variable was never updated causing problems when using the keyboard shortcuts for scrolling 14 years ago
rubidium 1a5087be69 (svn r22093) -Fix [FS#4514]: The server list did not get sorted with one item in it, so the "position in the list" variable was never updated causing problems when using the keyboard shortcuts for scrolling 14 years ago
rubidium d50b10dffc (svn r22030) -Cleanup: dead code in NetworkGameWindow::OnInvalidateData (adf88) 14 years ago
rubidium 5f7439a00f (svn r22030) -Cleanup: dead code in NetworkGameWindow::OnInvalidateData (adf88) 14 years ago
rubidium a663fb0ce6 (svn r21918) -Fix [FS#4443]: Languages improperly sorted in the "start server" window (adf88) 14 years ago
rubidium 62e5afcdf8 (svn r21918) -Fix [FS#4443]: Languages improperly sorted in the "start server" window (adf88) 14 years ago
rubidium 25735450b1 (svn r21892) -Fix [FS#4421]: only some scenarios from the main scenario folder and no heightmaps could be started in the "start server" window 14 years ago
rubidium cc8da3e5ab (svn r21892) -Fix [FS#4421]: only some scenarios from the main scenario folder and no heightmaps could be started in the "start server" window 14 years ago
rubidium f1e42dc23b (svn r21854) -Codechange: refactor the password setting methods to make it possible to change the password of other companies (on the server) 14 years ago
rubidium 795a528328 (svn r21854) -Codechange: refactor the password setting methods to make it possible to change the password of other companies (on the server) 14 years ago
rubidium ee087fb581 (svn r21390) -Codechange: prepare the network join progress bar for getting the file size later in the download process, i.e. when a chunk of the savegame is already received by the client 14 years ago
rubidium 98df56d032 (svn r21390) -Codechange: prepare the network join progress bar for getting the file size later in the download process, i.e. when a chunk of the savegame is already received by the client 14 years ago
terkhen 64c200a25e (svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU. 14 years ago
terkhen 75f86a7a21 (svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU. 14 years ago
alberth 0722492c1b (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 14 years ago
alberth f5c6fd1a25 (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 14 years ago
rubidium 5ec2bcc0d9 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 14 years ago
rubidium 30637a8340 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 14 years ago
frosch a7e486360d (svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions. 14 years ago
frosch 3972c790c2 (svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions. 14 years ago
rubidium 8f4638ed0f (svn r20925) -Codechange: make the client send commands have a slightly more sensible name 14 years ago
rubidium 515edee17c (svn r20925) -Codechange: make the client send commands have a slightly more sensible name 14 years ago
frosch 46acb837eb (svn r20720) -Add: separate GUI icons for vehicle/company profit, exclusive rights and unread news. 14 years ago
frosch 48767d1bef (svn r20720) -Add: separate GUI icons for vehicle/company profit, exclusive rights and unread news. 14 years ago
frosch 41dac2e579 (svn r20719) -Codechange: Remove some hardcoded iconsizes. 14 years ago
frosch 48d8f16653 (svn r20719) -Codechange: Remove some hardcoded iconsizes. 14 years ago
yexo 5192a7c90c (svn r20692) -Fix [FS#4055]: crash after downloading missing content 14 years ago
yexo 9a05f8004b (svn r20692) -Fix [FS#4055]: crash after downloading missing content 14 years ago
rubidium 360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
frosch 2d5ef5e5a8 (svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR. 14 years ago
frosch 9e538acc03 (svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR. 14 years ago
frosch 4817d5dcd6 (svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
14 years ago
frosch 71ca58c2bb (svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
14 years ago
frosch 341f41e347 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 14 years ago
frosch 10339c60c0 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 14 years ago
terkhen 04134c1e51 (svn r20289) -Codechange: Unify fall through coding style. 14 years ago
terkhen 80c43f52e8 (svn r20289) -Codechange: Unify fall through coding style. 14 years ago
frosch c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium 8c85b4ce3d (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
rubidium e356cb9405 (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
terkhen c92b2e9d3c (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). 14 years ago
terkhen 88ca183191 (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). 14 years ago
alberth a50578c3ad (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 14 years ago
alberth 4203e641f8 (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 14 years ago
alberth c2a871d10b (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 years ago
alberth 22b9bc5157 (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 years ago
alberth 0dd71a0d7e (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. 14 years ago
alberth 604e56adc2 (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. 14 years ago
yexo df1036f948 (svn r20012) -Fix: when joining a company with a password you could only enter 20 characters of the password 14 years ago
yexo 9683b87466 (svn r20012) -Fix: when joining a company with a password you could only enter 20 characters of the password 14 years ago
rubidium 52d136ee2c (svn r19998) -Codechange: Unify the order of ship and plane icon in network-lobby with the rest of the game (frosch) 14 years ago
rubidium 876eb5ee0b (svn r19998) -Codechange: Unify the order of ship and plane icon in network-lobby with the rest of the game (frosch) 14 years ago
rubidium 8b8102d30f (svn r19996) -Codechange: Add NetworkVehicleType enum. 14 years ago
rubidium 99a11badaf (svn r19996) -Codechange: Add NetworkVehicleType enum. 14 years ago
smatz 09cb5fff3a (svn r19818) -Fix [FS#3784](r16004): kicking clients by IP didn't work 14 years ago
smatz 80fd67a314 (svn r19818) -Fix [FS#3784](r16004): kicking clients by IP didn't work 14 years ago
smatz 150ae1c707 (svn r19607) -Codechange: use different packet types instead of packet subtypes 14 years ago
smatz 11d6e21c3a (svn r19607) -Codechange: use different packet types instead of packet subtypes 14 years ago
smatz ac82a8fee0 (svn r19606) -Codechange: remove global variable pw_type 14 years ago
smatz d2dc3a2e2b (svn r19606) -Codechange: remove global variable pw_type 14 years ago
yexo b21278659c (svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it 15 years ago
yexo a9c8dbc0a0 (svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it 15 years ago
alberth e3b24801e2 (svn r19132) -Codechange: No need to end a line with ;;. 15 years ago
alberth 33a96b5ef3 (svn r19132) -Codechange: No need to end a line with ;;. 15 years ago
rubidium 1c468db7d5 (svn r19087) -Codechange: some typos in StringIDs 15 years ago
rubidium 0072503496 (svn r19087) -Codechange: some typos in StringIDs 15 years ago
smatz c736bbb875 (svn r19075) -Codechange: unhackify NetworkChangeCompanyPassword() 15 years ago
smatz 73ed81b1c7 (svn r19075) -Codechange: unhackify NetworkChangeCompanyPassword() 15 years ago
frosch 28bb97ffdf (svn r18967) -Fix (r18966): Never trust your copy&paste skills. 15 years ago
frosch f9cebfcfc4 (svn r18967) -Fix (r18966): Never trust your copy&paste skills. 15 years ago
frosch 94a5c917a5 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 15 years ago
frosch 88019e64e1 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 15 years ago
rubidium 9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
smatz c031c9a731 (svn r18645) -Fix [FS#3433](r942): out-of-bounds access in the 'Start new multiplayer game' GUI 15 years ago
smatz 29e05554d7 (svn r18645) -Fix [FS#3433](r942): out-of-bounds access in the 'Start new multiplayer game' GUI 15 years ago
rubidium 7263d3ff34 (svn r18595) -Fix (r18277): one couldn't enter test via the keyboard in the company password window. Also replace a magic number with a enumified constant. 15 years ago
rubidium 0cb84effc8 (svn r18595) -Fix (r18277): one couldn't enter test via the keyboard in the company password window. Also replace a magic number with a enumified constant. 15 years ago
alberth 2ac35a8cff (svn r18589) -Codechange: Add tooltip to some network windows, remove old comment. 15 years ago
alberth 1d7a75032f (svn r18589) -Codechange: Add tooltip to some network windows, remove old comment. 15 years ago
alberth f20e477a02 (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 15 years ago
alberth 5a083f183e (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 15 years ago
rubidium 5f1bb2e882 (svn r18578) -Feature: initially select the last joined server when going to the server list 15 years ago
rubidium cf2349ae10 (svn r18578) -Feature: initially select the last joined server when going to the server list 15 years ago
frosch a23b215b5a (svn r18408) -Fix (r17954): After computing the needed width for the client list, also use it. 15 years ago
frosch a12d91423b (svn r18408) -Fix (r17954): After computing the needed width for the client list, also use it. 15 years ago
rubidium da30e736ca (svn r18330) -Cleanup: remove some unneeded includes 15 years ago
rubidium b00a5f1069 (svn r18330) -Cleanup: remove some unneeded includes 15 years ago
rubidium 21f2acfd01 (svn r18324) -Codechange: there's no need for a default size when the window isn't resizable 15 years ago
rubidium 1f0da3710f (svn r18324) -Codechange: there's no need for a default size when the window isn't resizable 15 years ago
rubidium 45eb0be570 (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 15 years ago
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 15 years ago
rubidium 50359b2d08 (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 15 years ago
rubidium 14300d309c (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 15 years ago
rubidium f8b79068e6 (svn r18274) -Codechange: remove the unused WDF flags 15 years ago
rubidium 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 15 years ago
rubidium 7824727828 (svn r18251) -Codechange: make the join status window big font aware 15 years ago
rubidium 29c65215ed (svn r18251) -Codechange: make the join status window big font aware 15 years ago
rubidium a71cc49498 (svn r18249) -Codechange: make the network client list big font aware 15 years ago
rubidium 3a16e0edf1 (svn r18249) -Codechange: make the network client list big font aware 15 years ago
alberth 5bee09c924 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 15 years ago
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 15 years ago
alberth 18b33fde83 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 15 years ago
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 15 years ago
alberth 8139a8d96f (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 15 years ago
alberth bf93372ca2 (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 15 years ago
rubidium a58582e6d1 (svn r18219) -Fix: the up/down buttons in the start network server window didn't work anymore 15 years ago
rubidium 2332034822 (svn r18219) -Fix: the up/down buttons in the start network server window didn't work anymore 15 years ago
rubidium 892d877458 (svn r18218) -Codechange: make a few network windows big font aware 15 years ago
rubidium 206c01a4e5 (svn r18218) -Codechange: make a few network windows big font aware 15 years ago
rubidium c227abd7c3 (svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars 15 years ago
rubidium 8204f226f1 (svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars 15 years ago
rubidium f106bbbe5c (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 15 years ago
rubidium d913282e7a (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 15 years ago
alberth 75e513d5b5 (svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays. 15 years ago
alberth 777d5ce12e (svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays. 15 years ago