rubidium
e750e676c2
(svn r23542) -Codechange: unify and document town related widgets
2011-12-16 17:23:41 +00:00
planetmaker
3f60a3d18a
(svn r23541) -Codechange: Consistent naming of widgets in NewGRF debug window
2011-12-16 17:15:40 +00:00
rubidium
6b404d35b8
(svn r23540) -Codechange: unify and document vehicle widgets
2011-12-16 16:58:55 +00:00
rubidium
5e11e5d77b
(svn r23539) -Codechange: prevent conflict between widget naming of (vehicle) depots and vehicle details
2011-12-16 16:57:56 +00:00
planetmaker
44d6bb55a0
(svn r23538) -Codechange: Consistent naming of widgets in tree plant gui
2011-12-16 16:57:15 +00:00
truebrain
be8bb25e33
(svn r23537) -Fix (r23529): typo in the word 'because' (tnx to Alberth for noticing)
2011-12-16 16:53:16 +00:00
truebrain
c73649512b
(svn r23536) -Codechange: document and rename widgets to be consistent and understandable
2011-12-16 16:49:53 +00:00
planetmaker
7ef670b1fb
(svn r23535) -Codechange: unify widget naming of transparency toolbar
2011-12-16 16:42:04 +00:00
truebrain
733516639d
(svn r23534) -Codechange: document and rename widgets to be consistent and understandable
2011-12-16 16:39:48 +00:00
truebrain
a94fdb08f0
(svn r23533) -Codechange: document and rename widgets to be consistent and understandable
2011-12-16 16:32:48 +00:00
rubidium
cb50af4d10
(svn r23532) -Codechange: unify widget naming of (extra) viewport
2011-12-16 16:29:53 +00:00
truebrain
000ff60e25
(svn r23531) -Codechange: document and rename widgets to be consistent and understandable
2011-12-16 16:27:45 +00:00
rubidium
98e3f0e14d
(svn r23530) -Codechange: begin unify the naming of widgets and add comments to them, in this case the waypoint view widgets
2011-12-16 16:25:34 +00:00
truebrain
d1dc135461
(svn r23529) -Codechange: make all widget enum values unique and make them include the files they need to compile
2011-12-16 16:23:50 +00:00
truebrain
49e88dcbf0
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
2011-12-15 22:22:55 +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
peter1138
927ef7d19c
(svn r23018) -Fix (r14004): Pass bottom of dropdown item rather than bottom of dropdown window.
2011-10-11 13:13:20 +00:00
peter1138
cacf7ecf2b
(svn r23017) -Codechange: Add support for resized scrollbars.
2011-10-11 08:07:47 +00:00
yexo
7196157d2d
(svn r22932) -Fix [FS#4766]: disable the white border on window creation for several windows (based on patch by monoid)
2011-09-15 13:26:27 +00:00
frosch
7b251297c9
(svn r22429) -Add: some constants for specific palette colours used in the GUI.
2011-05-06 21:13:29 +00:00
frosch
7cc3d3e143
(svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices.
2011-05-04 17:45:16 +00:00
rubidium
6cc9a2884d
(svn r22385) -Fix [FS#4603]: strnatcmp is in string.cpp, so it ought to be declared in string_func.h.
2011-04-30 14:24:23 +00:00
frosch
24365f9eac
(svn r22311) -Add: DropDownListStringItem::NatSortFunc() which can be used as comparator function in DropDownList::sort().
2011-04-10 15:01:14 +00:00
frosch
c11930347c
(svn r22310) -Codechange: Derive DropDownListCharStringItem from DropDownListStringItem.
2011-04-10 14:56:14 +00:00
alberth
0722492c1b
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
2010-11-26 15:22:18 +00:00
rubidium
5ec2bcc0d9
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
2010-11-13 09:56:25 +00:00
frosch
728be193ce
(svn r21031) -Fix (r19883): Dropdown menu glitched in small screenshots, when issueing them from the menu.
2010-10-24 20:23:45 +00:00
frosch
2f284b463c
(svn r20466) -Codechange: USe NWID_SELECTION to hide the scrollbar in dropdowns.
2010-08-12 11:53:11 +00:00
frosch
2d5ef5e5a8
(svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR.
2010-08-12 09:16:43 +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
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
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
rubidium
8b074018fc
(svn r19883) -Fix [FS#3812]: dropdowns did affect positioning of new windows because they were not yet removed when the new windows were positioned
2010-05-22 19:04:56 +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
f403166a56
(svn r18932) -Codechange: Don't constantly redraw drop drop list.
2010-01-28 02:30:59 +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
da30e736ca
(svn r18330) -Cleanup: remove some unneeded includes
2009-11-28 20:35:25 +00:00
rubidium
45eb0be570
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
2009-11-28 14:42:35 +00:00
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
2009-11-28 14:36:43 +00:00
frosch
372aa6ff5f
(svn r18305) -Codechange: Replace some 2s with WD_FRAMERECT_(LEFT|RIGHT).
2009-11-27 16:18:03 +00:00
rubidium
f8b79068e6
(svn r18274) -Codechange: remove the unused WDF flags
2009-11-24 17:28:29 +00:00
rubidium
f123ff906f
(svn r18188) -Codechange: s/NWID_BUTTON_DRPDOWN/NWID_BUTTON_DROPDOWN/g
2009-11-19 18:01:24 +00:00
rubidium
487e38dd42
(svn r18164) -Change: make dropdown 'right' align to the opening widget with RTL
2009-11-18 12:31:09 +00:00
rubidium
8e11cd3a42
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
2009-11-17 19:16:48 +00:00
rubidium
1f6f15a126
(svn r18092) -Codechange: remove support for the unnested widgets
2009-11-15 13:36:30 +00:00
rubidium
b01251092e
(svn r18086) -Codechange: remove 'widget' from WindowDesc
2009-11-15 10:26:01 +00:00
alberth
58b6fb8417
(svn r17998) -Fix (r17994): Use a consistent item list width.
2009-11-07 17:45:49 +00:00
alberth
c7ca4691c4
(svn r17997) -Codechange: Introduce functions for querying top and bottom of the main view.
2009-11-07 17:24:04 +00:00
alberth
da20ee30a2
(svn r17994) -Codechange: Make the dropdown menu window use pure nested widgets.
2009-11-07 14:40:37 +00:00
alberth
abe3dc1f34
(svn r17993) -Codechange: Move widget and data initialization into the dropdown menu class.
2009-11-07 11:44:38 +00:00
alberth
2ae6969b49
(svn r17992) -Codechange: Merge some parameters of the dropdown menu.
2009-11-07 11:26:23 +00:00
alberth
55c5565d1f
(svn r17991) -Codechange: Use WD_VSCROLLBAR_WIDTH constant in dropdown menu window.
2009-11-07 10:26:09 +00:00
alberth
46b819bba0
(svn r17990) -Codechange: Add widgets enum for dropdown menu window.
2009-11-07 08:41:34 +00:00
alberth
3fe117133c
(svn r17944) -Codechange (r11848): Removed the second counter variable that ran in sync with the first one.
2009-11-01 21:05:48 +00:00
alberth
f37f2d037c
(svn r17942) -Documentation: Add a few doxygen comments to the dropdown code.
2009-11-01 20:50:00 +00:00
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
alberth
b124f09934
(svn r17575) -Codechange: Adding a new combined button+dropdown widget.
2009-09-19 13:08:37 +00:00
alberth
d54028fde8
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
2009-09-19 11:31:12 +00:00
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
rubidium
7a1ffc6501
(svn r17440) -Fix [FS#3179] (r17375): long scrollbars would scroll when that was not intended. They would also not properly mark the window dirty.
2009-09-07 07:59:26 +00:00
rubidium
62c7948a4f
(svn r17375) -Codechange: remove last direct usage of scrollbar variables
2009-09-02 08:58:20 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
alberth
0cc8cbd40d
(svn r17171) -Doc: Additions and corrections of various doxygen strings.
2009-08-14 18:41:03 +00:00
alberth
aac49ba01c
(svn r16797) -Codechange: Allow drop-down menus for windows with nested widgets.
2009-07-12 10:02:10 +00:00
alberth
a3abbfc204
(svn r16227) -Codechange: Added nested widgets for error windows, tooltip window, and dropdown window.
2009-05-04 18:42:49 +00:00
rubidium
5c5b357043
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
2009-04-21 23:40:56 +00:00
peter1138
a6de3cd932
(svn r15877) -Codechange: Let drop down lists know about font height.
2009-03-28 12:47:29 +00:00
rubidium
303a8f9673
(svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier.
2009-03-21 19:31:47 +00:00
rubidium
66cb1fe1ff
(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.
2009-02-09 01:06:23 +00:00
peter1138
5304330f92
(svn r15387) -Codechange: Add a drop down list item type for char* strings.
2009-02-07 00:37:35 +00:00
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.
2009-02-01 22:32:07 +00:00
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
rubidium
4a204fbf96
(svn r14881) -Fix (r14880): somehow make didn't think that widgets/dropdown.cpp did depend on window_gui.h...
2009-01-06 23:19:59 +00:00
glx
c61674221c
(svn r14840) -Cleanup: remove duplicate includes
2009-01-04 21:02:59 +00:00
peter1138
7b632aa8aa
(svn r14168) -Codechange: Make dropdown 'auto_width' a separate parameter, so that a minimum width can be specified.
2008-08-25 16:07:10 +00:00
peter1138
d6c385a41e
(svn r14015) -Codechange: Add facility for a drop down list to always close (if requested) when the mouse button is released.
2008-08-07 18:26:13 +00:00
peter1138
ad52678d14
(svn r14014) -Codechange: Add support for automatically sizing drop down lists to the widest list item.
2008-08-07 18:11:09 +00:00
peter1138
76b0ffd342
(svn r14004) -Codechange: Clean of drop down lists.
...
Move empty item drawing to base ListItem Draw() function.
Remove String() from base class.
Pass correct width to Draw().
2008-08-06 07:10:40 +00:00
belugas
98d8501278
(svn r13970) -Codechange: Replace numbers with Colours enum on network, toolbar and dropdown guis.
...
Mostly forgotten ones.
2008-08-03 02:18:45 +00:00
frosch
cfdc710104
(svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter.
2008-06-28 15:44:24 +00:00
rubidium
33e18c236d
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
2008-05-27 21:41:00 +00:00
peter1138
855336a1e6
(svn r13278) -Fix: Missing call to FindWindowPlacementAndResize() for drop down lists
2008-05-26 21:40:52 +00:00
rubidium
a21d3fc63b
(svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors.
2008-05-18 20:40:30 +00:00
rubidium
a89b5721a8
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
2008-05-17 12:48:06 +00:00
peter1138
2c02810b3a
(svn r13075) -Codechange: Allow any value for a dropdown item instead of just positive.
2008-05-13 21:11:38 +00:00
rubidium
4525234df4
(svn r13052) -Codechange: make a class of the DropdownWindow.
2008-05-11 18:18:18 +00:00
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.
2008-05-10 13:46:36 +00:00
rubidium
51cda2252c
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
2008-05-08 11:31:41 +00:00
rubidium
8796331d83
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
2008-05-06 21:28:30 +00:00
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.
2008-05-06 15:11:33 +00:00
rubidium
0083ce9e1b
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
2008-05-04 10:05:50 +00:00
peter1138
66783add65
(svn r12675) -Codechange: Add support for custom drawing of drop down list items.
2008-04-12 22:12:27 +00:00
peter1138
9e69877e70
(svn r12672) -Codechange: Add support for variably-sized drop down list items.
2008-04-12 20:32:18 +00:00
peter1138
3badd38914
(svn r12651) -Fix (r12644) [FS#1915]: Dropdown widget width should be one pixel less than window width, not one more.
2008-04-10 11:59:18 +00:00
rubidium
845c5d0a49
(svn r12644) -Codechange: rework the order gui a little to prepare it for some future changes.
2008-04-09 23:00:12 +00:00
rubidium
1dc0af3248
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
2008-04-07 20:28:58 +00:00
peter1138
25f0a890ae
(svn r12121) -Fix [FS#1764]: Drop down item indexes are now an int instead of a byte (Yexo)
2008-02-12 12:54:51 +00:00
peter1138
cc05abf382
(svn r11924) -Codechange: All dropdowns now use the dropdown widget, so compatibility code can be removed
2008-01-19 11:08:06 +00:00
peter1138
9fdb9a82a2
(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
e938855375
(svn r11865) -Feature(tte): Support scrolling of drop down lists when in drag mode by moving the pointer above or below the list.
2008-01-15 16:30:08 +00:00
peter1138
c954ce1b33
(svn r11863) -Fix (r11848): One day I'll learn C++... Delete all items in a drop down list before deleting the list.
2008-01-15 13:20:58 +00:00
peter1138
327ea90331
(svn r11858) -Fix (r1679): Mask and rule colour in drop down lists using wrong source value. (r1679 partially reverted r1368)
2008-01-15 08:14:22 +00:00
rubidium
c7f9705e4a
(svn r11857) -Fix: some compile time warnings.
2008-01-15 00:48:14 +00:00
peter1138
6fa0463d79
(svn r11854) -Fix (r11848): Nightly build farm showed up more compiler warnings... c++ is fun
2008-01-14 20:52:43 +00:00
peter1138
85e49e6290
(svn r11849) -Fix (r11848): Incomplete(?) class broke MSVC/mingw compilation
2008-01-14 16:35:49 +00:00
peter1138
1fa2285327
(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