Commit Graph

444 Commits

Author SHA1 Message Date
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
341f41e347 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 2010-08-12 06:44:45 +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
terkhen
04134c1e51 (svn r20289) -Codechange: Unify fall through coding style. 2010-08-01 20:52:11 +00:00
frosch
c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
frosch
5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
rubidium
8c85b4ce3d (svn r20281) -Codechange: unify case scope closure + break coding style 2010-08-01 18:53:30 +00:00
alberth
603c33efc1 (svn r20269) -Codechange: Use IsLocalCompany() everywhere, document the function and two company globals. 2010-07-31 21:43:07 +00:00
alberth
1743c86610 (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 2010-07-31 21:02:56 +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
9fd2afb147 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 2010-07-19 17:28:27 +00:00
frosch
ca8a953395 (svn r20152) -Fix: Silence a gcc warning. 2010-07-14 20:24:45 +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
6154b346e3 (svn r20144) -Feature: Allow to configure the delay of hover events, or to disable them completely. 2010-07-14 15:08:31 +00:00
frosch
2db785bfff (svn r20124) -Fix (r20118): Don't bring windows to front by hovering over them. 2010-07-11 14:35:53 +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
90d6003dbb (svn r20118) -Add: Detect if the mouse has been hovering over the same point. 2010-07-11 10:53:07 +00:00
terkhen
ff26bed701 (svn r20117) -Codechange: Use a Point struct to store double click position. 2010-07-11 10:50:47 +00:00
yexo
d96aa7abfa (svn r20070) -Feature: when none of the open windows handles a keypress, try all toolbars for global hotkeys
Users that have run a version between r20056 and r20068 should delete their hotkeys.cfg to reset the terraform toolbar hotkeys to default
2010-07-03 21:43:44 +00:00
frosch
65d058723e (svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in sync during GUI operation. 2010-06-05 13:32:42 +00:00
alberth
6a2af1cd29 (svn r19910) -Doc: Doxygen additions. 2010-05-30 13:16:51 +00:00
alberth
29fd6ce0e4 (svn r19909) -Doc: Typo fixes, small doxygen improvements. 2010-05-30 13:05:36 +00:00
alberth
d0a999bd5b (svn r19908) -Codechange: Use a boolean value to assign to a boolean variable. 2010-05-30 12:40:40 +00:00
alberth
1417c52725 (svn r19906) -Codechange: HandleMouseOver() never ends, so don't return an event handling state. 2010-05-30 12:18:49 +00:00
alberth
ee390ab713 (svn r19905) -Codechange: Use EventState for mouse handling routines. 2010-05-30 12:15:28 +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
frosch
efdc25bb73 (svn r19731) -Add: Spritepicker to sprite alignment tool. 2010-04-26 20:35:27 +00:00
rubidium
b32665ebd0 (svn r19706) -Add: support for the (NewGRF) debug box 2010-04-24 13:27:22 +00:00
rubidium
8a4bfe10cb (svn r19563) -Fix [FS#3733] (r19558): OnResize wasn't called often enough so scrollbars were in some cases not properly updated causing division by zero 2010-04-04 20:47:51 +00:00
alberth
7f9a771a8b (svn r19558) -Fix [FS#3730]: Window::OnResize() was not always called while resizing a window. 2010-04-04 11:21:56 +00:00
rubidium
59e767b1bf (svn r19250) -Fix [FS#3643]: with RTL languages clicking a horizontal scrollbar that could not scroll could cause a crash 2010-02-25 14:53:22 +00:00
rubidium
970842e4a2 (svn r19089) -Codechange: some minor coding style 2010-02-10 20:53:23 +00:00
rubidium
d966b3655f (svn r19002) -Fix [FS#1140]: [OSX] Problems with scrolling touchpad (Peter Thorson). I can/have not test(ed) it, it cannot break non OSX builds. 2010-02-04 14:21:20 +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
peter1138
dec341a963 (svn r18933) -Codechange: Don't constantly redraw a window when moving it unless it actually moves. 2010-01-28 02:31:37 +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
frosch
64feefa80e (svn r18744) -Fix [FS#3487-ish]: Do not toggle the sticky- and shading-button twice per mouseclick when clicking fast. 2010-01-06 20:17:46 +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
rubidium
af5bd27c73 (svn r18620) -Fix: possible deadlock with SDL and changing the resolution in-game 2009-12-23 22:41:47 +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
40ab9eeeba (svn r18587) -Codechange: Insert a shade selection widget in the widget tree when the window starts with a title bar with a shade box. 2009-12-21 16:16:40 +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