Commit Graph

455 Commits (3f83546dfc4047032ff712f96820f4214384416a)

Author SHA1 Message Date
peter1138 dec341a963 (svn r18933) -Codechange: Don't constantly redraw a window when moving it unless it actually moves. 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
frosch 64feefa80e (svn r18744) -Fix [FS#3487-ish]: Do not toggle the sticky- and shading-button twice per mouseclick when clicking fast. 15 years ago
rubidium d1d6e8fc20 (svn r18675) -Add [FS#3256]: function to remove focus from all widgets in a window 15 years ago
rubidium af5bd27c73 (svn r18620) -Fix: possible deadlock with SDL and changing the resolution in-game 15 years ago
alberth 8e802135d8 (svn r18607) -Fix (r18583): Preserve window width when shading. 15 years ago
alberth e967f04123 (svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes. 15 years ago
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. 15 years ago
alberth 45a8eb682e (svn r18583) -Codechange: Add WWT_SHADEBOX widget and its functions (heavily based on code by erikjanp). 15 years ago
rubidium 97a6adf9f3 (svn r18582) -Codechange: save 8 bytes from the Window class 15 years ago
alberth f20e477a02 (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 15 years ago
alberth 05c30d294e (svn r18579) -Codechange: Add orientation to scrollbars. 15 years ago
alberth 57ea707cc4 (svn r18345) -Codechange: Warn the window that it gets initialized, so it can do some work ahead. 15 years ago
alberth acf091da8e (svn r18335) -Codechange: Further reduction of nested_root NULL-ness checking. 15 years ago
alberth 30e834860a (svn r18334) -Codechange: No need to test a pointer after using it. 15 years ago
rubidium 55897be79b (svn r18331) -Fix [FS#3334]: news items would with some chat 'bars' not be displayed fully. Fix by erikjanp. 15 years ago
rubidium 45eb0be570 (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 15 years ago
rubidium 877307a0eb (svn r18321) -Fix [FS#3331]: make the toolbars also calculate their top location based on the main toolbar's height instead of hardcoding that 15 years ago
rubidium 0b31433eea (svn r18320) -Codechange: make the terraform and transparency window not use absolute location but manually calculate based on toolbar size etc. 15 years ago
rubidium 46f90bef77 (svn r18273) -Codechange: do not require widget numbers for default widgets (close, sticky, resize buttons and the caption), except when you want to use SetStringParameter for the caption ofcourse. Also remove the requirement for some of the WDF flags; no need to test for both the flag whether a feature is used and whether the feature is in action. 15 years ago
rubidium 13371fa629 (svn r18206) -Fix [FS#3322]: on could 'pan' on the viewports of other windows, like the industry view, too 15 years ago
alberth 75e513d5b5 (svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays. 15 years ago
rubidium 8e11cd3a42 (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 15 years ago
rubidium 266a1d0f7d (svn r18150) -Codechange: make the horizontal scrollbar scroll in the opposite direction with RTL 15 years ago
rubidium 684e63e2b5 (svn r18130) -Codechange: initial steps into making the vehicle/group lists big font and RTL aware 15 years ago
rubidium c63b6887ef (svn r18120) -Fix (r18119): sometimes ReInit didn't dirty the new window 15 years ago
rubidium f3043f2006 (svn r18119) -Codechange/Fix: always call OnResize so the matrices/scrollbars are initialised without the need for duplicating the OnResize code 15 years ago
rubidium 23f0385d65 (svn r18095) -Fix (r18093): a bit too much nested_array != NULL removal 15 years ago
rubidium f20d3a55ec (svn r18093) -Fix: the mouseover handler could crash if there wasn't a widget under the mouse 15 years ago
rubidium 1f6f15a126 (svn r18092) -Codechange: remove support for the unnested widgets 15 years ago
alberth 452946cdad (svn r18090) -Fix: Only allow raising of WWT_* nested widgets. 15 years ago
rubidium c162fa0575 (svn r18088) -Codechange: remove CompareWidgetArrays 15 years ago
rubidium b01251092e (svn r18086) -Codechange: remove 'widget' from WindowDesc 15 years ago
alberth df877e480d (svn r18069) -Codechange: Initialize window flags at the same tme as the other fields instead of afterwards. 15 years ago
rubidium b3394dbeb4 (svn r18030) -Fix: screen jumped a bit for at least SDL and Allegro when right-click-dragging 15 years ago
alberth ade53126b4 (svn r18013) -Codechange: Add possibility to change window size during ReInit(). 15 years ago
rubidium 79a039b0df (svn r18003) -Cleanup: prune some unused functions from Window 15 years ago
alberth c7ca4691c4 (svn r17997) -Codechange: Introduce functions for querying top and bottom of the main view. 15 years ago
alberth 0fa6870eca (svn r17995) -Codechange: PreventHiding() is used in one file, make it static. 15 years ago
rubidium c4c56ea04d (svn r17947) -Codechange: make the statusbar, chat input and news window know of eachothers size so they don't get overlapped and don't get invisible (bottoms) of windows when a larger font is used 15 years ago
rubidium 8742314bb8 (svn r17922) -Fix [FS#3291]: crash when closing NewGRF parameter window with no NewGRF selected 15 years ago
alberth 2a7d0de0b0 (svn r17915) -Codechange: Allow windows to compute their own initial position. 15 years ago
smatz 7921a5c7d0 (svn r17869) -Codechange: don't create OnScroll() event for zero delta 15 years ago
rubidium c1365b3cc1 (svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone. 15 years ago
frosch 9259446b76 (svn r17830) -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately. 15 years ago
rubidium 6ba0dc05a7 (svn r17751) -Fix [FS#3253]: sometimes clicking on a for the user unfocused edit box would show the OSK (Zuu) 15 years ago
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium ed8788d581 (svn r17682) -Codechange: remove erroneous space before some commas 15 years ago
rubidium e3bb9351a4 (svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class 15 years ago
alberth d54028fde8 (svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array. 15 years ago
rubidium 310465da07 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
frosch 0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
frosch 263952f557 (svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already. 15 years ago
alberth 029c711732 (svn r17504) -Codechange: un-inlining SetFocusedWidget() as it is not often used. 15 years ago
rubidium 62c7948a4f (svn r17375) -Codechange: remove last direct usage of scrollbar variables 15 years ago
rubidium fc193fd902 (svn r17374) -Codechange: make the town and vehicle GUIs use the scrollbar wrappers 15 years ago
rubidium f1ba8fb206 (svn r17365) -Codechange: introduce wrapper functions to update the position, capacity and count of scroll bars. This to (eventually) prevent the scrollbar overflowing outside of the window 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
alberth bef94e081d (svn r17175) -Codechange: Only auto-raise push buttons. 15 years ago
smatz d64bdb138c (svn r17168) -Codechange: apply coding style to if and while statements 15 years ago
frosch e44a69b92f (svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them. 15 years ago
alberth eeaa337a21 (svn r17024) -Codechange: Allow InitNested to be done in two parts. 15 years ago
alberth 84507dc358 (svn r16963) -Codechange: Added NWidgetViewport widget. 15 years ago
frosch 1969cbd6e8 (svn r16957) -Fix: Trigger the same window repositioning after changing font/language as it is done after resizing the main OpenTTD window. 15 years ago
alberth 2399f91f62 (svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently. 15 years ago
alberth 05cbe62ba2 (svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used. 15 years ago
alberth 832c116b5b (svn r16848) -Fix: Trying to reduce a nested widget window further than the smallest alowed size should not crash the game. 15 years ago
alberth 62fc8bd6c5 (svn r16838) -Codechange: Fill Window::nested_array in SetupSmallestSize. 15 years ago
rubidium fd980be463 (svn r16815) -Fix: reduce the toolbar's priority for handling keypresses from most important to least important, so e.g. the order windows' 'd' skips to the next order 15 years ago
alberth 95ac767add (svn r16798) -Fix [FS#3016]: Added several new widget distances for better widget size computations. 15 years ago
alberth 99455ffb49 (svn r16779) -Fix: Take real smallest size of nested widgets into account for initial window position. 15 years ago
alberth b417938f74 (svn r16778) -Codechange: Split window initialization in a data part and a size/position part. 15 years ago
alberth 36ce7e09ef (svn r16747) -Fix: Non-resized windows also need a post re-init SetDirty. 15 years ago
alberth 43ee12137b (svn r16740) -Codechange: Self-sizing widgets in intro screen, town directory, and found town windows. 15 years ago
alberth 194701b27a (svn r16687) -Codechange: Perform re-initialization of windows with nested widgets after a language change. 15 years ago
alberth e77b0adb53 (svn r16519) -Add: Prevent hiding of a window titlebar behind the status bar. 15 years ago
alberth e47ca002d2 (svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees. 15 years ago
alberth cbf2d24ebb (svn r16516) -Codechange: Added click and drag handling for nested widgets. 15 years ago
alberth 24b2876cb5 (svn r16515) -Codechange: Added scrollbar handling for nested widgets, and finding widgets by type or position in the tree. 15 years ago
alberth ed0a0a681a (svn r16514) -Codechange: Add widget flags, and drawing and invalidating. 15 years ago
alberth bb075195b9 (svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array. 15 years ago
alberth 53c60be207 (svn r16495) -Codechange: Renamed a few variables. 15 years ago
alberth 580e478e4e (svn r16491) -Codechange: Added parentheses around bitwise operators for code style. 15 years ago
alberth 5207900285 (svn r16484) -Cleanup: Renamed widget variable to widget_index and introduced widget_type variable.
-Fix: Prevented out-of-bounds array access when not clicking at a widget.
15 years ago
alberth 3e78641156 (svn r16467) -Codechange: Unduplicate setting of widget focus (with thanks to Smatz). 15 years ago
alberth c9e3d041fb (svn r16466) -Codechange: Improved wording in comments. 15 years ago
alberth b96e1dc80c (svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once. 15 years ago
alberth feaaf78a63 (svn r16463) -Cleanup: Code style fixes. 15 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
alberth b46d9079ce (svn r16317) -Codechange: Generalized finding a widget by type. 15 years ago
rubidium 241af768f0 (svn r16242) -Codechange: rework pausing
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
15 years ago
alberth adfc9c968c (svn r16226) -Codechange: Separating generation of a widget array from WindowDesc to the InitializeWidgetArrayFromNestedWidgets function. 15 years ago
rubidium e88cb7f70f (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing 15 years ago
alberth bbd546b792 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago
yexo 5fa59bab6f (svn r15867) -Codechange: remove the assumption that the first widgets are the close box/title bar.
Most work already done by r15756.
15 years ago
alberth 4ac600e2cf (svn r15819) -Add: Nested widgets framework 15 years ago
alberth 82a171f175 (svn r15817) -Codechange: Make room for additional widget types (Rubidium) 15 years ago
rubidium 1ba5811024 (svn r15760) -Codechange [FS#2704]: support that the resize box is at the left side of the window too (based on work by Alberth) 16 years ago
rubidium f7155ed34a (svn r15756) -Codechange: remove the assumption that the second windget is always the title bar. Also replace a few magic numbers with a const. 16 years ago
smatz d28895c88b (svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate 16 years ago
rubidium 7f468dc142 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 16 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
yexo fbe159ab9e (svn r15669) -Change: Key presses that are not handles by an input box are no longer marked as handled but given to other OnKeyPress handlers. This makes the global shortcuts like F1 work again when an input box is open. 16 years ago
belugas ef4476d92d (svn r15627) -Documentation: Add two Doxygen strings (Alberth). 16 years ago
rubidium 89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium c7f3daacbf (svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window 16 years ago
rubidium 5080feba0d (svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu). 16 years ago
rubidium 66cb1fe1ff (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. 16 years ago
rubidium 42fe0b65d2 (svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company. 16 years ago
peter1138 bce50498fc (svn r15312) -Codechange: Handle closing of drop down menus when clicking in a window in a single place, instead of in the OnClick event for some windows. This standardises behaviour so that clicking anywhere in a window will close its drop down menu, which happened before for some windows but not all. In addition the dubious feature of hiding a drop down menu by opening the same menu has been removed. This only caused wasted CPU cycles as a whole new list was generated and then destroyed. Breathe. 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
frosch 7014833641 (svn r15065) -Change (r14919): Allow to select a new station location by ctrl-clicking while distant-join window is open. (PhilSophus) 16 years ago
rubidium 054787f082 (svn r14943) -Cleanup: remove some rogue spaces/replace some rogue tabs with spaces 16 years ago
rubidium 7b4fba0f89 (svn r14905) -Fix (r14899): in some corner cases already freed memory could be read. 16 years ago
rubidium 567b262901 (svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
16 years ago
rubidium aa6c7e8574 (svn r14880) -Codechange: make it clear which way the FOR_ALL_WINDOWS goes (from back to front or vice versa) and make it iterate over the Window* instead of Window**. 16 years ago
rubidium 57570c7d7c (svn r14824) -Fix [FS#1725]: mouse events could be treated twice (illogict) 16 years ago
rubidium 72d89337ee (svn r14804) -Codechange: unify opening the OSK (Zuu) 16 years ago
rubidium 1bc6b7a7a5 (svn r14794) -Document: a few functions/variables (Alberth) 16 years ago
rubidium d3144b6f04 (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) 16 years ago
rubidium d91baac764 (svn r14785) -Fix [FS#2132]: vehicle list for station gets closed when station view is closed even when the vehicle list is stickied. Other vehicle lists are not deleted when their 'opening' window gets closed so do the same with the station view. 16 years ago
rubidium 94a5f66427 (svn r14679) -Fix [FS#2431]: opening the OSK on the chatbox did disable map scrolling (with keyboard) until another window with editbox was opened and closed. Just "refcount" the open edit boxes instead of setting/clearing a bit when opening/closing a window. 16 years ago
rubidium e7bb5c63a4 (svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation. 16 years ago
rubidium e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago
rubidium f56e630e5c (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
smatz a000de8418 (svn r14395) -Fix [FS#2285]: crashes and GUI desyncs when order is deleted/modified while the timetable window is open
-Fix: close any dropdown and child windows in the Order and Timetable windows when selected order is deselected, deleted, ...
16 years ago
rubidium f49d5057ee (svn r14390) -Codechange: replace magic constants with symbolic constants. 16 years ago
rubidium 31d69a49e8 (svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support. 16 years ago
rubidium b14d884a0a (svn r13495) -Fix: scrolling the main map with the keys speed was influenced by movement of the mouse. 16 years ago
rubidium 224ca68fb5 (svn r13346) -Fix (r13322): scrolling the main viewport with keyboard when having a build tool selected failed. 16 years ago
rubidium 6efcd64912 (svn r13338) -Doc: add documentation about the window placement. Patch by Alberth. 16 years ago
rubidium e7a501100a (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 16 years ago
rubidium 4151d68480 (svn r13322) -Codechange: _no_scroll belongs more with the window code. 16 years ago
rubidium 4a3dd37582 (svn r13321) -Codechange: move some GUI/viewport related functions out op openttd.cpp to viewport.cpp/window.cpp. 16 years ago
rubidium 3716f4814d (svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to window_gui.h/window.cpp because they belong there. 16 years ago
rubidium dc77647ea4 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
16 years ago
rubidium bf3b61cfa3 (svn r13228) -Codechange: split console.h. 16 years ago
rubidium 162e2e074b (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 16 years ago
rubidium a21d3fc63b (svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors. 16 years ago
rubidium 4d5b9e38d6 (svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent. 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
rubidium ac8f0fdc7b (svn r13141) -Codechange: remove an unused variable from Window. 16 years ago
rubidium 7f6ccdc624 (svn r13138) -Codechange: remove the need for IsWindowOfPrototype. 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
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 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 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
glx dacd2c5de8 (svn r13047) -Codechange: remove vp_d 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 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 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
rubidium f3d184aee4 (svn r13006) -Codechange: GetMenuItemIndex is only used for the toolbar, so move it to there. 16 years ago
rubidium 92aac531c2 (svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window. 16 years ago
rubidium 51cda2252c (svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor. 16 years ago
rubidium 054552a30b (svn r12999) -Fix [FS#1995]: when a Window got deleted on a double click event, we should not send a click event to the now non-existant Window as that causes segfaults. 16 years ago
rubidium c28ce39e3c (svn r12987) -Codechange: split viewport and tile selection. 16 years ago
rubidium 43328ced46 (svn r12984) -Codechange: some coding style in window.cpp. 16 years ago
rubidium c27f3cfa62 (svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations. 16 years ago
rubidium 9db77e3808 (svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL. 16 years ago
rubidium 8796331d83 (svn r12975) -Codechange: replace DeleteWindow(w) with delete w. 16 years ago
rubidium 1ce0b03bf0 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
rubidium 4acb8f3a5e (svn r12942) -Fix [FS#1979]: closing some windows caused recursion in the Window deletion causing the reading invalid/freed data which could cause crashes. 16 years ago
rubidium 0083ce9e1b (svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth. 16 years ago
rubidium ec931ba5c6 (svn r12938) -Codechange: coding style fixes. Patch by Alberth. 16 years ago
rubidium 7c93f3bab8 (svn r12937) -Codechange: split allocating and finding the spot to place a window. Patch by Alberth. 16 years ago
rubidium a9775dfcc9 (svn r12790) -Codechange: code style fixes. Patch by Alberth. 16 years ago
rubidium 081f627018 (svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth. 16 years ago
rubidium 18e64b28e2 (svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location. 16 years ago
rubidium 2752568d61 (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. 16 years ago
rubidium bd3e5d9c43 (svn r12714) -Fix [FS#1904]: do not move windows below the toolbar on resizes unless they would go behind the toolbar. 16 years ago
rubidium 8ab49198b9 (svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth. 16 years ago
rubidium 1fe1b5da80 (svn r12694) -Fix: do not call the mouse over callback on already deleted windows. 16 years ago
rubidium 99b51aa235 (svn r12693) -Documentation: add some documentation to some window related stuff. Based on a patch by Albert. 16 years ago
rubidium c36d613b9b (svn r12692) -Codechange: swap to functions to remove a function declaration. 16 years ago
rubidium 1dc0af3248 (svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth. 16 years ago
smatz 808c03ef8d (svn r12371) -Fix [FS#1823]: do not let window hide behind the main toolbar after resizing the screen 17 years ago
smatz d3d126f999 (svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed 17 years ago
smatz d7a72c7002 (svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard input, depot/group window wasn't updated (original patch by GrimRC) 17 years ago
rubidium 9c0c798dd8 (svn r11834) -Codechange: only include settings_type.h if needed. 17 years ago
rubidium fafab82a31 (svn r11832) -Codechange: get rid of (quite) some VARDEFs. 17 years ago
rubidium 90acd52f22 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 17 years ago
rubidium 2fc62eab05 (svn r11818) -Codechange: split player.h into smaller pieces. 17 years ago
rubidium 64d691bacc (svn r11787) -Codechange: more header rewrites. This time related to viewport.h. 17 years ago
egladil 29812e604f (svn r11740) -Fix [FS#1610]: Modify and possibly discard key events for code points in the unicode private use area. 17 years ago
rubidium 722613f7f3 (svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes. 17 years ago
rubidium f82aeb82c5 (svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h). 17 years ago
rubidium 81bf9f8503 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 17 years ago
rubidium 00c9d3ef20 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 17 years ago
rubidium 507463e420 (svn r11684) -Codechange: split gfx.h in a type and functional header. 17 years ago
rubidium 1f6043458c (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. 17 years ago
rubidium 8bfbfd0031 (svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps. 17 years ago
rubidium 2160338662 (svn r11629) -Fix [FS#1527]: many viewports could crash the scenario editor. 17 years ago
belugas f271038461 (svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function 17 years ago
belugas 902b20263c (svn r11595) -Codechange: add a new member to Window struct, based on its function counterpart HandleButtonClick. 17 years ago
belugas 42d6f195cf (svn r11593) -Cleanup: remove some forgotten pieces of evidence of a mischief 17 years ago
belugas 544325590c (svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function 17 years ago
belugas ecb9382c7e (svn r11591) -Codechange: remove now unused widget accessors. 17 years ago
glx b00f621239 (svn r11588) -Codechange: use the new member introduced in r11551 17 years ago
glx d129a7295c (svn r11586) -Fix: make another widget 'accessor' function const when it should be const. 17 years ago
rubidium 39b1a8302b (svn r11583) -Fix [FS#1484]: windows could get completely missing when one resized the window to something very small. 17 years ago
belugas 1495f6aaf8 (svn r11579) -Revert(r11578): some cases of key propagation are not handled correctly.
A better solution will be deviced, but not now.  Let's not cause a ton of bug reports
17 years ago
belugas cc29d43876 (svn r11578) -Codechange: Introduce the window default flag WDF_TEXTENTRY which specifies that the window holding it is actually one that enables an edit box.
Use this flag when dispatching a key event instead of using some hard coded window IDs.
This should ease a little bit the creation of new edit aware windows.
17 years ago
rubidium 2880047689 (svn r11556) -Feature: allow setting a default password for new companies in network games. 17 years ago
rubidium 92cb0e45ca (svn r11555) -Codechange: use the new members introduced in r11551. 17 years ago
belugas 31cb48b1ad (svn r11551) -Codechange: Introduction of widget control members on struct Window. These "new" members have the exact same functionalities as their pure functions "genitors"
Ex: "Window::SetWidgetLoweredState(byte widget_index, bool lowered_stat)"  is the member corresponding to "SetWindowWidgetLoweredState(Window *w, byte widget_index, bool lowered_stat)"
17 years ago
skidd13 815b8d8df1 (svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style 17 years ago
skidd13 c0a2c0c23e (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 17 years ago
skidd13 98f66552be (svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style 17 years ago
smatz 32802f863b (svn r11471) -Codechange: one more variable retyped to enum ViewportHighlightMode 17 years ago
truelight 8725f2b857 (svn r11405) -Fix: in rare cases OpenTTD could segfault when resizing and scroll the main window (Rafal Rzepecki) 17 years ago
belugas 202b4de279 (svn r11304) -Feature: Control-Clicking the Center Main View button on the vehicle window allows the main viewport to follow the chosen vehicle.(stevenh) 17 years ago
belugas 5a64bb79d8 (svn r11256) -Codechange: Make opening a new toolbar not overlapping its parent one, by locating it under the parent, and aligned with the left side of it.
FS#1310, by BigBB
17 years ago
truelight ec1d0811a4 (svn r10967) -Fix: in case of moving the window on create (because it doesn't fit in the screen), make sure to move the viewport too if we are an extra viewport (spotted by Maedhros) 17 years ago
rubidium 4ef6e75609 (svn r10932) -Codechange: replace "text" with "chat" for the chat related function and variables. 17 years ago
rubidium 2894283a87 (svn r10730) -Codechange: allow (some) arbitrary data to be send to the WE_CREATE event. 17 years ago
rubidium 4b75381d49 (svn r10727) -Codechange: when a window would fall outside of the screen (on the right) when opening it, move it to the left so it stays inside the screen. 17 years ago
rubidium 000b582423 (svn r10726) -Codechange: make it possible that the chat window is less than 640 pixels. 17 years ago
rubidium 17370d5ae7 (svn r10725) -Codechange: move some window related code out of gfx.cpp to windows.cpp 17 years ago
rubidium 06291aaaf1 (svn r10717) -Fix: in-game console had a "transparent" part when opened in a game, while it did not in the menu. 17 years ago
rubidium b15bee6dd5 (svn r10716) -Codechange: not all windows' minimum size is actually their minimum size, so take the size of the window after WE_CREATE has been called as bare minimum size. 17 years ago
rubidium 5769aaa843 (svn r10707) -Codechange: account for the main toolbar and status bar when determining the maximum height for a window. 17 years ago
rubidium eb52479c0a (svn r10705) -Fix (r10704): some windows were not correctly initialized as they resized the window themselves and that should be interfered by making sure the window is resized in the right "step" size.
-Fix (r10704): call the WE_RESIZE when resizing during initialization of the windows.
17 years ago
rubidium 13ab17bca8 (svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size. 17 years ago
peter1138 0c3b6a7285 (svn r10649) -Fix (r9962): autoscroll (pointer near screen edge) didn't work 17 years ago
rubidium 6a5d9e28c1 (svn r10465) -Fix: first run the WE_CREATE callback and then perform the dirtying of the window, so you won't get glitches if you resize a window in the WE_CREATE callback. 17 years ago
rubidium 338b848a29 (svn r10333) -Fix [FS#943]: News messages were shown on top of the endgame screen and high score chart. 17 years ago
truelight 7bfc7d19e8 (svn r10276) -Codechange: made a counter based on milliseconds and independent of the game-state to base double-click and TGP Generation Process on
-Codechange: renamed _timer_counter to _palette_animation_counter, as that is what it is
17 years ago
truelight dc82eeb2ae (svn r10265) -Feature: allow double-clicking on certain places: build-vehicle and town-action 17 years ago
truelight 79cd3f5db0 (svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
-Codechange: introduced a hierachy of blitters to avoid a lot of code duplication
 Note: this allows much easier adding other types of video-drivers, like OpenGL
17 years ago
truelight 0e53fd6d32 (svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
17 years ago
truelight b605f68631 (svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the obvious reasons
-Codechange: introduced ZOOM_LVL_DETAIL to show/remove details
-Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out)
-Fix r9845: missed some int -> ZoomLevel
17 years ago
truelight dc191785db (svn r9844) -Codechange: replace zoomlevel with an enum
-Codechange: use predefined enums for viewport zoomlevels
17 years ago
peter1138 76358226d0 (svn r9720) -Codechange: Remove global var and gotos from window autoplacement 17 years ago
rubidium 2ce514284c (svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting tabs with spaces. 17 years ago
rubidium 7577954ced (svn r9672) -Cleanup: lots of coding style fixes around operands. 17 years ago
belugas 097b3b3c7b (svn r9662) -Documentation: Doxygen corrections and @file omissions 17 years ago
belugas faad091b8f (svn r9580) -Documentation: Correction of doxygen function declarations 17 years ago
belugas 7ad3bb257e (svn r9568) -Documentation: doxygen and comment changes: Root of src is finally done. Now, time to start clearing as much as possible 17 years ago
bjarni e93ace0cfa (svn r9126) -Feature: "Function of scrollwheel" can now be set to off as well
Note: since this can be useful for all platforms, the GUI is no longer OSX specific.
  Note: scrolling lists is still unaffected by this setting
18 years ago
bjarni 49d26fd754 (svn r9112) -Feature r9111: scrollwheel scrolling can now also scroll the smallmap 18 years ago
bjarni 7d498a55de (svn r9111) -Feature: [OSX] mighty mice and touchpads can now scroll the map (in all directions)
It has to be enabled first (in patches->interface) first and this will disable scrollwheel zooming
  Note: patch setting "Map scrollwheel speed" might need to be changed since the "correct" setting
    appears to depend on what kind of mouse is in use (mighty mouse or touchpad)
18 years ago
rubidium 979ccd45ba (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 18 years ago
rubidium 4169bfba06 (svn r9050) -Codechange: Foo(void) -> Foo() 18 years ago
truelight b3b14ac2ad (svn r9034) -Codechange: renamed _pause to _pause_game, as some targets already have
a symbol called _pause (and therefor our variable conflicts with 
 thatone. We shouldn't be using _ as global indicator.....)
18 years ago
belugas b1b5aecae9 (svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style 18 years ago