Commit Graph

53 Commits

Author SHA1 Message Date
rubidium cc0dae2271 (svn r13130) -Codechange: remove some of the (old) WindowEvent wrapper functions/enums/variables as they are not used anymore. 2008-05-16 23:30:10 +00:00
rubidium 55546ae82c (svn r13129) -Codechange: remove the WP macro and it's related variables. 2008-05-16 23:29:31 +00:00
rubidium b39525581d (svn r13117) -Codechange: make a window class of the PlayerFinancesWindow. 2008-05-16 07:34:48 +00:00
rubidium b08d728ac9 (svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus. 2008-05-15 20:04:10 +00:00
rubidium 5ae795953a (svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows. 2008-05-15 14:41:56 +00:00
rubidium 8fff6e8638 (svn r13103) -Codechange: make a class of the PlayerCompanyWindow. 2008-05-15 14:12:22 +00:00
rubidium dddfaaac7d (svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore. 2008-05-13 14:43:33 +00:00
rubidium 4caa813711 (svn r13051) -Codechange: depot_d belongs in depot_gui.cpp. 2008-05-11 18:17:56 +00:00
glx c708ab3b48 (svn r13047) -Codechange: remove vp_d 2008-05-11 15:08:44 +00:00
rubidium 75e3792aa3 (svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform. 2008-05-11 14:23:45 +00:00
rubidium e63137f47f (svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors. 2008-05-11 11:41:18 +00:00
rubidium 83664c8bc4 (svn r13031) -Codechange: make AssignWidgetToWindow a static function instead of a global one as it should only be used from window.cpp. 2008-05-10 13:54:20 +00:00
rubidium d24442ae8b (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. 2008-05-10 13:46:36 +00:00
rubidium 935434333b (svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing. 2008-05-10 12:30:27 +00:00
rubidium f23026cce8 (svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL. 2008-05-10 08:58:52 +00:00
rubidium 68a1d75d9e (svn r13025) -Codechange: remove the need for two WindowEvents. 2008-05-09 15:27:00 +00:00
rubidium f438700402 (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. 2008-05-09 09:29:27 +00:00
rubidium 4a11ebe76f (svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used. 2008-05-08 14:14:16 +00:00
rubidium cd3dda5c0c (svn r13010) -Codechange: move the tree building GUI out of misc_gui.cpp. 2008-05-08 13:29:35 +00:00
rubidium 9ed36409c5 (svn r13006) -Codechange: GetMenuItemIndex is only used for the toolbar, so move it to there. 2008-05-08 12:59:47 +00:00
rubidium 23fc96c3e8 (svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window. 2008-05-08 11:50:34 +00:00
rubidium 2eef026fe3 (svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor. 2008-05-08 11:31:41 +00:00
rubidium 3d5567ccf7 (svn r12987) -Codechange: split viewport and tile selection. 2008-05-07 13:10:15 +00:00
rubidium 402a1e24ba (svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations. 2008-05-06 22:17:12 +00:00
rubidium e6c944a6c4 (svn r12975) -Codechange: replace DeleteWindow(w) with delete w. 2008-05-06 21:28:30 +00:00
rubidium cb680474c3 (svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth. 2008-05-04 10:05:50 +00:00
rubidium 752c8d8f2e (svn r12790) -Codechange: code style fixes. Patch by Alberth. 2008-04-19 13:28:48 +00:00
rubidium 9d8fa486af (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 2008-04-18 04:37:06 +00:00
rubidium c31287206d (svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport. 2008-04-17 09:42:44 +00:00
rubidium 9a73b698d4 (svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth. 2008-04-13 19:25:14 +00:00
rubidium 2310557716 (svn r12693) -Documentation: add some documentation to some window related stuff. Based on a patch by Albert. 2008-04-13 19:01:26 +00:00
rubidium 00d23c57b3 (svn r12663) -Codechange: move the definition from 'order_d' to a more appropriate place and do not misuse it for the time table GUI. 2008-04-11 21:19:03 +00:00
rubidium ee02dd7dad (svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth. 2008-04-07 20:28:58 +00:00
rubidium 4c63dd074e (svn r12470) -Codechange: split order related types from order.h (and openttd.h) to order_type.h. 2008-03-28 16:36:32 +00:00
rubidium 878489e38d (svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h. 2008-03-28 16:34:50 +00:00
rubidium eeabab4555 (svn r12459) -Codechange: split news.h into news_type.h and news_func.h. 2008-03-28 08:53:36 +00:00
rubidium 327e870962 (svn r12425) -Feature [FS#1846]: On Screen Keyboard for input fields so someone without a keyboard can enter text too. Patch by Dominik. 2008-03-26 10:08:17 +00:00
smatz 8b56e7544e (svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed 2008-02-17 17:00:43 +00:00
peter1138 c99eb9e456 (svn r11988) -Codechange: Add a generic way of changing a widget's size and adjust the widgets around it to suit. 2008-01-26 20:55:04 +00:00
peter1138 68707808c0 (svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel. 2008-01-18 10:36:55 +00:00
peter1138 c313676c66 (svn r11901) -Add: add two widgets for dropdowns, one raised and one inset, to eventually replace use of two widgets for each dropdown control. 2008-01-17 18:09:15 +00:00
peter1138 e4c05f8d78 (svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed. 2008-01-14 16:10:58 +00:00
rubidium 5c4150d304 (svn r11832) -Codechange: get rid of (quite) some VARDEFs. 2008-01-13 13:36:01 +00:00
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 2008-01-13 01:21:35 +00:00
rubidium ac528411df (svn r11818) -Codechange: split player.h into smaller pieces. 2008-01-12 14:10:35 +00:00
rubidium 0e517fe023 (svn r11787) -Codechange: more header rewrites. This time related to viewport.h. 2008-01-09 09:45:45 +00:00
peter1138 931e6ea49d (svn r11786) -Codechange: shuffle more includes 2008-01-09 08:12:10 +00:00
rubidium cd92981e9f (svn r11785) -Codechange: remove some unneeded includes. 2008-01-09 00:59:02 +00:00
rubidium a3ccdcea36 (svn r11777) -Codechange: split the string header and make do not include it when it's not necessary. 2008-01-07 14:23:25 +00:00
rubidium 2786d789a1 (svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h). 2007-12-26 11:45:43 +00:00