Commit Graph

214 Commits

Author SHA1 Message Date
truebrain
aa1a0053b0 (svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC) 2011-12-20 17:57:56 +00:00
truebrain
867b263900 (svn r23631) -Add: ScriptWindow, to manipulate windows on the client (GameScript only) 2011-12-19 21:05:14 +00:00
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
2011-12-15 19:54:23 +00:00
rubidium
7abb74d4a2 (svn r23484) -Fix [FS#4770]: in case you already have orders, ignore the vehicles when adding an extra order 2011-12-10 19:20:30 +00:00
frosch
3b0816c614 (svn r23252) -Codechange: Add WD_BEVEL_xxx constants. 2011-11-18 20:38:30 +00:00
peter1138
cacf7ecf2b (svn r23017) -Codechange: Add support for resized scrollbars. 2011-10-11 08:07:47 +00:00
frosch
335744a1af (svn r22242) -Codechange: Let OnInvalidateData() decide itself what to do immediately in command scope, and what to do asynchronously in GUI-scope. 2011-03-13 21:32:13 +00:00
frosch
4b4a40a72e (svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData(). 2011-03-13 21:31:29 +00:00
frosch
074548f8f3 (svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command. 2011-02-23 20:54:55 +00:00
terkhen
b6148914b0 (svn r21803) -Cleanup: Remove unnecessary semicolons. 2011-01-15 15:36:58 +00:00
alberth
fdf0be0da8 (svn r21665) -Codechange: Make GetCallbackWnd a method of _thd. 2010-12-30 13:16:31 +00:00
rubidium
004b2b6001 (svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed 2010-12-12 14:14:26 +00:00
alberth
0722492c1b (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 2010-11-26 15:22:18 +00:00
smatz
63b8fea69f (svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window 2010-09-06 14:14:09 +00:00
alberth
2b4da1d345 (svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file. 2010-08-29 15:58:43 +00:00
rubidium
360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 2010-08-26 22:01:16 +00:00
frosch
984e555cb4 (svn r20460) -Codechange: Remove WF_SCROLL window flags and store the state directly in the scrollbar widget instead. 2010-08-12 09:14:34 +00:00
frosch
b98eba0fb2 (svn r20459) -Codechange: Remove the Scrollbar members of Window and make NWidgetScrollbar inherit from Scrollbar instead. 2010-08-12 09:13:04 +00:00
frosch
92c34da796 (svn r20458) -Codechange: Move Scrollbar from window.cpp to widget.cpp 2010-08-12 09:11:12 +00:00
frosch
807370d4b8 (svn r20457) -Codechange: Remove _scrolling_scrollbar and WF_SCROLL_MIDDLE and instead store the widget index of the being scrolled scrollbar in the Window. 2010-08-12 09:09:24 +00:00
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.
2010-08-12 08:37:01 +00:00
frosch
d2cd93fee2 (svn r20451) -Codechange: Add helper function Window::GetScrollbar() to get the Scrollbar belonging to a scrollbar widget. 2010-08-12 06:40:28 +00:00
frosch
5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
alberth
6734f083b0 (svn r20222) -Add: Add functions to compute the row in a scrolled widget. 2010-07-26 13:03:40 +00:00
alberth
71aac2192f (svn r20221) -Codechange: Move unscrolled row calculation into a function. 2010-07-26 13:02:28 +00:00
rubidium
5e83d73679 (svn r20145) -Codechange: keep original RMB->tooltip behaviour when hovering is disabled and there is no handled right click event for the widget, i.e. if a widget would handle the right click you won't see the tooltip anymore by right clicking; by enabling hovering you would get access to that tooltip again. 2010-07-14 17:36:27 +00:00
terkhen
010ebadb0a (svn r20121) -Add: OnHover method for windows. 2010-07-11 11:00:09 +00:00
terkhen
840f09ddf0 (svn r20120) -Feature [FS#3913]: Tooltips are shown by hovering the mouse over a widget instead of by right clicking on it. 2010-07-11 10:58:55 +00:00
terkhen
086a424b7a (svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse. 2010-07-11 10:55:57 +00:00
terkhen
90d6003dbb (svn r20118) -Add: Detect if the mouse has been hovering over the same point. 2010-07-11 10:53:07 +00:00
frosch
c973a3cc7b (svn r19943) -Fix [FS#3865]: Disallow moving of vehicle news window. 2010-06-07 19:56:32 +00:00
alberth
b40fc5bab8 (svn r19904) -Codechange: Make EventState usable outside Window context. 2010-05-30 12:06:18 +00:00
alberth
63c3220e1d (svn r19903) -Codechange: Use SpecialMouseMode enum as type of _special_mouse_mode. 2010-05-30 10:36:32 +00:00
alberth
740185febd (svn r19886) -Add [FS#3705]: Perform window callback during mouse dragging for the purpose of highlighting the destination (sbr). 2010-05-23 14:53:39 +00:00
frosch
dccab5b43f (svn r19746) -Fix [FS#3675]: Do not recenter usually centered windows when resizing main window or changing language, if they have been moved/resized before. 2010-05-01 15:32:17 +00:00
rubidium
b32665ebd0 (svn r19706) -Add: support for the (NewGRF) debug box 2010-04-24 13:27:22 +00:00
smatz
d2e99657fa (svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET 2010-03-23 22:25:43 +00:00
frosch
94a5c917a5 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 2010-01-30 18:34:48 +00:00
rubidium
2a0405ecc4 (svn r18900) -Document: that an empty string for OnQueryTextFinished means 'use default' 2010-01-23 19:30:53 +00:00
rubidium
9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 2010-01-15 16:41:15 +00:00
rubidium
d1d6e8fc20 (svn r18675) -Add [FS#3256]: function to remove focus from all widgets in a window 2009-12-31 18:11:03 +00:00
alberth
8e802135d8 (svn r18607) -Fix (r18583): Preserve window width when shading. 2009-12-22 20:53:28 +00:00
alberth
e967f04123 (svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes. 2009-12-22 20:43:25 +00:00
alberth
45a8eb682e (svn r18583) -Codechange: Add WWT_SHADEBOX widget and its functions (heavily based on code by erikjanp). 2009-12-21 16:06:20 +00:00
rubidium
97a6adf9f3 (svn r18582) -Codechange: save 8 bytes from the Window class 2009-12-20 20:49:47 +00:00
alberth
f20e477a02 (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 2009-12-20 20:08:39 +00:00
alberth
05c30d294e (svn r18579) -Codechange: Add orientation to scrollbars. 2009-12-20 20:04:30 +00:00
alberth
2f9f70c295 (svn r18542) -Codechange: Make nested widget parts obligatory in a window description. 2009-12-19 18:03:04 +00:00
alberth
01e17c6828 (svn r18348) -Doc: Doxygen fixes, and removal of an old @note. 2009-11-29 21:27:12 +00:00
alberth
57ea707cc4 (svn r18345) -Codechange: Warn the window that it gets initialized, so it can do some work ahead. 2009-11-29 21:14:34 +00:00