Commit Graph

3690 Commits (f740702f90314e5575eac2c200b05cc5983985c3)

Author SHA1 Message Date
glx dc69a7c51b (svn r13163) -Codechange: remove unused code 16 years ago
smatz 119b892f95 (svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded 16 years ago
glx ca27e25ab0 (svn r13161) -Fix: free the blitter list when the last blitter is removed. 16 years ago
rubidium 4d5b9e38d6 (svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent. 16 years ago
skidd13 cbd09e4f57 (svn r13159) -Feature: Add the ability to sort availible bridges in the build bridge GUI 16 years ago
rubidium 6891469e87 (svn r13158) -Codechange: make a class of the GameOptionsWindow. 16 years ago
rubidium 9155d641cb (svn r13156) -Codechange: make classes of the GraphWindows. 16 years ago
rubidium 77059f7b5d (svn r13155) -Codechange: make a window class of the company league and graph legenda windows. 16 years ago
rubidium 8846d4380f (svn r13154) -Codechange: make a window class of the news message history window. 16 years ago
rubidium 4268afe340 (svn r13153) -Codechange: make classes of the TownViewWindow and the ScenarioEditorTownGenerationWindow. 16 years ago
rubidium 37386287f8 (svn r13152) -Codechange: make a class of the subsidy window. 16 years ago
rubidium d284ba2283 (svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean. 16 years ago
glx b101faea20 (svn r13150) -Codechange: make classes of the Music[TrackSelection]Window. 16 years ago
skidd13 bd742920b4 (svn r13149) -Codechange: make a class of the BuildBridgeWindow. 16 years ago
glx fb97874bc7 (svn r13148) -Codechange: make a class of the SelectGameWindow. 16 years ago
rubidium 4db10034fd (svn r13147) -Codechange: move the code to draw bankruptcy news to news_gui.cpp. 16 years ago
rubidium 8ff56af53d (svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h. 16 years ago
glx 107371a26b (svn r13145) -Codechange: make classes of the BuildDocks[Depot|Station]Window. 16 years ago
glx e0e2b4b55a (svn r13144) -Codechange: make classes of the BuildRoad[Depot|Station]Window. 16 years ago
smatz acd36adf0b (svn r13143) -Fix (r13142): the Build Waypoint window wasn't resized when it was opened 16 years ago
glx f9935785f7 (svn r13142) -Codechange: make classes of the Build[RailDepot|RailStation|RailWaypoint|Signal]Window 16 years ago
rubidium ac8f0fdc7b (svn r13141) -Codechange: remove an unused variable from Window. 16 years ago
rubidium ad6e52080c (svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp. 16 years ago
rubidium a89b5721a8 (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. 16 years ago
rubidium 7f6ccdc624 (svn r13138) -Codechange: remove the need for IsWindowOfPrototype. 16 years ago
rubidium baff68179c (svn r13137) -Fix: do not send rcon commands of the server to the first client but do directly execute those on the server. 16 years ago
rubidium a21692bdc1 (svn r13136) -Codechange: make a window class of the console window. 16 years ago
rubidium 6f45805af0 (svn r13135) -Codechange: make a class of the NetworkJoinStatusWindow. 16 years ago
belugas 47d9a8aa21 (svn r13134) -Codechange: make a class of the Airport Picker Window. 16 years ago
belugas 835a5fcf43 (svn r13133) -Codechange: Add a base class (descending from Window) for all new windows that are going to require a ResetObjectToPlace to be performed on closing.
This will allow to free the said window only once, and not twice otherwise
16 years ago
glx a4c5f94658 (svn r13132) -Codechange: make a class of the GenerateProgressWindow. 16 years ago
glx 0e9eb5bacb (svn r13131) -Codechange: make a class of the ErrmsgWindow. 16 years ago
rubidium 758f4a358d (svn r13130) -Codechange: remove some of the (old) WindowEvent wrapper functions/enums/variables as they are not used anymore. 16 years ago
rubidium 0b61b6c1d0 (svn r13129) -Codechange: remove the WP macro and it's related variables. 16 years ago
peter1138 e03193f9d7 (svn r13128) -Codechange: Make a class of the refit window 16 years ago
glx 6741af92d3 (svn r13127) -Fix (r13122): of course WIN32_LEAN_AND_MEAN excludes too much stuff 16 years ago
glx 0cab2cade2 (svn r13126) -Fix (r13022) [FS#2009, FS#2010]: driver list should be dynamically allocated as static uninitialistion order is undetermined. The list is freed when the latest driver is removed. 16 years ago
bjarni 13954aaaff (svn r13125) -Fix [FS#2000](r12913): [autoreplace] failing replacement and restoring a vehicle will no longer decrease the vehicle count in groups 16 years ago
glx 892759c396 (svn r13124) -Codechange: make a class of the OrdersWindow. 16 years ago
rubidium 483ad8d02a (svn r13123) -Codechange: passing the bankrupt type via data_b is not needed anymore. Patch by Cirdan. 16 years ago
glx bbb9dafa32 (svn r13122) -Fix: WIN32_LEAN_AND_MEAN define is needed for all WIN32 compilers 16 years ago
rubidium adb5a09cb3 (svn r13121) -Codechange: make a class of the PerformanceRatingDetailWindow. 16 years ago
rubidium a7c7067c4f (svn r13120) -Codechange: make a class of the VehicleDetailsWindow. 16 years ago
rubidium cbdcc7cc3b (svn r13119) -Codechange: make a class of the timetable window. 16 years ago
rubidium e7b3c3fa34 (svn r13118) -Codechange: make classes of the EndGameWindow and the HighScoreWindow. 16 years ago
rubidium 5a85fb104e (svn r13117) -Codechange: make a window class of the PlayerFinancesWindow. 16 years ago
rubidium 804b9f1d3a (svn r13116) -Codechange: make a window class of the statusbar window. 16 years ago
rubidium 349aec37e6 (svn r13115) -Codechange: make a window subclass of the MessageOptionsWindow. 16 years ago
rubidium 083d7e8726 (svn r13114) -Codechange: use InvalidateData instead of direct window access to modify the state of the statusbar from outside the statusbar. 16 years ago
rubidium 5b712cf81e (svn r13113) -Codechange: make a class of the TownAuthorityWindow. 16 years ago
rubidium 045aaae1c7 (svn r13112) -Codechange: make classes of the patches and custom currency windows. 16 years ago
rubidium 01e79dde73 (svn r13111) -Documentation: update the documentation of AddNewsItem to reflect reality. Patch by Cirdan. 16 years ago
rubidium 2704b12f2b (svn r13110) -Fix [FS#2018]: some toolbar buttons not being unpressed properly. 16 years ago
rubidium 447ed7a2a5 (svn r13109) -Codechange: make a class out of the CheatWindow. 16 years ago
rubidium 439b328f41 (svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus. 16 years ago
glx 07e10eade8 (svn r13107) -Codechange: make NetworkCompanyPasswordWindow and SelectPlayerFaceWindow children of PlayerCompanyWindow. 16 years ago
rubidium d87fc4d534 (svn r13106) -Codechange: rework the toolbar code a little so functions do not have to return the Window they just created. 16 years ago
rubidium 7c10fb0023 (svn r13105) -Fix [FS#2015]: the title of a query window would (sometimes) change when the on screen keyboard was opened. 16 years ago
rubidium 6d880ada7f (svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows. 16 years ago
rubidium 31ab1e815a (svn r13103) -Codechange: make a class of the PlayerCompanyWindow. 16 years ago
rubidium ca8d282eff (svn r13102) -Codechange: make a class of the NewsWindow. 16 years ago
rubidium f8d02c7d71 (svn r13101) -Codechange: remove a unused global function. 16 years ago
rubidium 373343cef6 (svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls. 16 years ago
rubidium c709b8a711 (svn r13099) -Fix [FS#2014]: when a window had children only one of them would be closed (on a parent closure) instead of all children. 16 years ago
rubidium 35c14f45be (svn r13098) -Fix [FS#2016]: segmentation fault on opening an already opened depot. 16 years ago
glx 7096f20ec5 (svn r13097) -Codechange: make a class of the GameDifficultyWindow. 16 years ago
glx 1c77928886 (svn r13096) -Codechange: resize SelectPlayerLiveryWindow dynamically on _loaded_newgrf_feature.has_2CC changes 16 years ago
glx 3a88f38b65 (svn r13095) -Codechange: make a class of the SelectPlayerLiveryWindow. 16 years ago
rubidium beb17f743f (svn r13094) -Fix: closing the QueryWindow would always send a 'query has been cancelled message' even when it was not cancelled causing joining passworded servers/companies to fail. 16 years ago
glx 5704d59314 (svn r13093) -Codechange: make a class of AboutWindow. 16 years ago
glx e812c8223f (svn r13092) -Fix (r13042): don't add a variable in a subclass when the parent class already have it 16 years ago
smatz f0e2d800ee (svn r13091) -Fix: certain compilers give false warning about uninitialized variable 16 years ago
smatz 2be223fc03 (svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits 16 years ago
smatz c90cda6c1c (svn r13089) -Fix (r13072): MorphOS compilation was broken 16 years ago
smatz 9b8d16b7ff (svn r13088) -Codechange: use SigSegState enum instead of bool variable (michi_cc) 16 years ago
peter1138 2475959196 (svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc) 16 years ago
smatz e4dee736c5 (svn r13086) -Fix: do not crash badly after loading a newgrf with engines in-game that often 16 years ago
glx ab0aa4e080 (svn r13083) -Fix (r13042): another segmentation fault when OskWindow's parent closes it 16 years ago
glx 015dbc6e7b (svn r13082) -Fix (r13042): segmentation fault due to too early deletion of OskWindow. 16 years ago
glx 1ce52ef5cb (svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+ 16 years ago
smatz dac285a74b (svn r13080) -Fix: warning about unused variable when compiling without asserts 16 years ago
smatz bea03ab5e7 (svn r13079) -Fix: certain compilers give false warning about uninitialized variable 16 years ago
rubidium 0d2e74fb71 (svn r13078) -Fix: group gui used the vehicle type before it was actually set. 16 years ago
smatz f92a48c24b (svn r13077) -Codechange: move function that updates cached num_engines to engine.cpp, make it run only 1 loop 16 years ago
rubidium 316d3fbe1d (svn r13076) -Fix [FS#2012]: the wrong autoreplace window would be shown if the vehicle isn't a train. 16 years ago
peter1138 2c02810b3a (svn r13075) -Codechange: Allow any value for a dropdown item instead of just positive. 16 years ago
peter1138 839070028e (svn r13074) -Fix: For multiheaded engines, halve power and running cost when used instead of when loading, to allow callback values to work properly. 16 years ago
peter1138 3f0895872f (svn r13073) -Codechange: make classes of the NewGRF windows 16 years ago
smatz 3670a25e3a (svn r13072) -Fix (r12995): possible out-of-bounds access 16 years ago
rubidium 6ae37e6339 (svn r13071) -Codechange: make also a class of the MainWindow. 16 years ago
rubidium c18c9689a1 (svn r13070) -Fix (r13069): do save before commit... 16 years ago
rubidium a7db265bb6 (svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore. 16 years ago
rubidium c6c908aba5 (svn r13068) -Codechange: make a class of the BuildVehicleWindow. 16 years ago
rubidium b2fe906015 (svn r13067) -Codechange: make a class of the DepotWindow. 16 years ago
rubidium 962273e242 (svn r13066) -Fix [FS#2005]: loading of TTDP savegames with rivers in them. 16 years ago
rubidium 5d7851e8d6 (svn r13065) -Codechange: remove the need for the news string callbacks. Patch by Cirdan. 16 years ago
glx a3d037956f (svn r13064) -Codechange: make a class of the SelectPlayerFaceWindow. 16 years ago
belugas d283521782 (svn r13063) -Fix(13062): Removal of old handler was not followed by removal in descriptor 16 years ago
belugas 27b3767b79 (svn r13062) -Codechange: make a class of the TransparencyToolbar. 16 years ago
glx a6c4bbccb9 (svn r13061) -Codechange: make a class of the BuildTreesWindow. 16 years ago
glx eb70da38d0 (svn r13060) -Codechange: update build industry window when raw_industry_construction setting is modified 16 years ago
glx 9f11d3089a (svn r13058) -Codechange: make a class of the ExtraViewportWindow. 16 years ago
glx a1a04fcc61 (svn r13055) -Codechange: make a class of SmallMapWindow. 16 years ago
rubidium d711d21199 (svn r13054) -Codechange: make a class of the PlayerStationsWindow. 16 years ago
rubidium e414ecdbdf (svn r13053) -Codechange: station sorting used it's own implementation of GUIList and the associated enums, now it doesn't anymore. 16 years ago
rubidium 4525234df4 (svn r13052) -Codechange: make a class of the DropdownWindow. 16 years ago
rubidium bcdd9fcfe4 (svn r13051) -Codechange: depot_d belongs in depot_gui.cpp. 16 years ago
glx cf315d2656 (svn r13050) -Codechange: make a class of IndustryViewWindow. 16 years ago
rubidium 323004da0c (svn r13049) -Codechange: make a class of the TooltipsWindow. 16 years ago
rubidium 33b830aabe (svn r13048) -Codechange: make a class of the StationViewWindow. 16 years ago
glx dacd2c5de8 (svn r13047) -Codechange: remove vp_d 16 years ago
rubidium ee3c14b344 (svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow. 16 years ago
rubidium 89a60ce249 (svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform. 16 years ago
rubidium aa0929351d (svn r13044) -Fix: deleting an already deleted window. 16 years ago
rubidium 4a46a5cdda (svn r13043) -Codechange: remove some duplicate variables from news_d. 16 years ago
rubidium d8a6bb392a (svn r13042) -Codechange: make a class of CreateScenarioWindow, GenerateLandscapeWindow, NetworkChatWindow, NetworkCompanyPasswordWindow, NetworkGameWindow, NetworkStartServerWindow, QueryStringWindow, SaveLoadWindow. All these classes depended on the 'querystr_d' object which is now put into QueryStringBaseWindow. As a side effect this removes quite a lot of WP macro usages and a few global variables. 16 years ago
rubidium 29ad1d442a (svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors. 16 years ago
rubidium 1f70b47e22 (svn r13040) -Codechange: make a class of the NetworkLobbyWindow. 16 years ago
rubidium dc42908757 (svn r13039) -Codechange: make a class of the Query window. 16 years ago
belugas 914e51546d (svn r13038) -Fix: When switching the signal gui patch to off, delete the signal window accordingly 16 years ago
rubidium 3651c0585a (svn r13037) -Codechange: make a class of the ReplaceVehicle window.
-Fix [FS#1997]: MSVC 64 bit build failing to compile due to std::vectors being very large..
16 years ago
glx d706c8b462 (svn r13036) -Codechange: make a class of the BuildIndustry Window. 16 years ago
rubidium 9e0e4c0342 (svn r13035) -Codechange: remove two needless global-ish variables. 16 years ago
rubidium 1853a56291 (svn r13034) -Fix: segmentation fault due do double delete when closing the OSK window in some cases. 16 years ago
smatz 311a3f9675 (svn r13033) -Fix [FS#2003](r13029): land info tool wasn't working 16 years ago
glx 4c98a72745 (svn r13032) -Codechange: make industry view window resizable and truncate strings 16 years ago
rubidium 9410be7b70 (svn r13031) -Codechange: make AssignWidgetToWindow a static function instead of a global one as it should only be used from window.cpp. 16 years ago
rubidium 24c2d9ff5c (svn r13030) -Codechange: do use MallocT instead of ReallocT when 100% sure that the pointer you are allocating to is NULL. Patch by Alberth. 16 years ago
rubidium 2ac412375c (svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme. 16 years ago
rubidium f710876037 (svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing. 16 years ago
rubidium 2c96ce4506 (svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL. 16 years ago
belugas 8ebfbc2bd3 (svn r13026) -Codechange[FS#1999]: Further Dynamite Tool Unification.(Roujin) 16 years ago
rubidium 8d0a7f4634 (svn r13025) -Codechange: remove the need for two WindowEvents. 16 years ago
rubidium 0f7d925121 (svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments. 16 years ago
peter1138 edc756697e (svn r13023) -Revert (r1444): Revert changes to multihead engine weight -- the original values were correct. 16 years ago
smatz 273448436a (svn r13022) -Fix: driver list wasn't freed, replace by statically allocated one 16 years ago
rubidium ee0a49c91a (svn r13021) -Codechange: free data_b for other uses when it is not used to store a second tile to skip to (in news messages). Patch by cirdan. 16 years ago
glx 5c9c8fc199 (svn r13020) -Codechange: make industry directory window horizontally resizable and truncate strings 16 years ago
glx a8e8329d41 (svn r13019) -Fix [FS#1997]: silence some more MSVC x64 warnings (michi_cc) 16 years ago
rubidium fc47683a0b (svn r13018) -Codechange: make a class of the LandInfo Window. 16 years ago
smatz b4968c6bea (svn r13016) -Codechange: unify the detection if rail catenary should be drawn 16 years ago
rubidium 11d36d5e46 (svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used. 16 years ago
glx f492567f66 (svn r13014) -Fix (r13008): mingw revealed some signed/unsigned warnings 16 years ago
rubidium db37b017ef (svn r13013) -Fix: GCC 4.3 warning about a clobbering mask due to longjmp. This can't be solved by using exceptions because the longjmp is needed for PNG (C-code) handling. 16 years ago
rubidium 88e96a5638 (svn r13012) -Fix (r13011): the PlaceProc that was moved depended on another function... 16 years ago
rubidium 2c5db97704 (svn r13011) -Codechange: move PlaceProc_BuyLand out of rail_gui.cpp to the place where it is used and remove some unneeded globalisations of some other PlaceProc functions. 16 years ago
rubidium 0c30e46c9c (svn r13010) -Codechange: move the tree building GUI out of misc_gui.cpp. 16 years ago
rubidium 8b9ffbe158 (svn r13009) -Codechange: move more tile highlighting related functions/types to tilehighlight_*.h. 16 years ago
glx a28ea38653 (svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings 16 years ago
rubidium f3d184aee4 (svn r13006) -Codechange: GetMenuItemIndex is only used for the toolbar, so move it to there. 16 years ago