Peter Nelson
a0dfb76e34
Codechange: Replace mishmash of types for widget index with WidgetID.
...
Indices were stored as int, but often passed around as uint/uint8_t and casts.
Now they should all use WidgetID.
2023-12-30 00:23:57 +00:00
Rubidium
8c742b456f
Codechange: use Textbuf directly, instead via several virtual functions in Window
2023-09-06 23:07:04 +02:00
Rubidium
eaae0bb5e7
Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
...
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
2023-07-19 19:30:14 +02:00
Rubidium
6d1586dd49
Codechange: use std::string instead of char* for original editor strings
2023-05-10 23:15:09 +02:00
Patric Stout
60399e17bd
Codechange: C++-ify the Layouter and related functions
...
They all now access a std::string_view, instead of a "const char *"
or std::string (in some cases).
Additionally, GetCharAtPosition and friends now return an index
instead of a "const char *", as it makes for a more clear interface.
2023-05-08 19:21:42 +02:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
JMcKiern
04f659e768
Fix: Some typos found using codespell
2019-09-29 21:27:32 +01:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
michi_cc
30867c487f
(svn r25691) -Add: [OSX] Support for mouse selection in the IME composition string.
2013-08-05 20:37:53 +00:00
michi_cc
e2ec0ddb03
(svn r25690) -Change: [OSX] Position the candidate window at the caret position.
2013-08-05 20:37:48 +00:00
michi_cc
f5e4131492
(svn r25689) -Add: [OSX] Display the IME composition string ourself.
2013-08-05 20:37:44 +00:00
michi_cc
da09fd3077
(svn r25681) -Change: [Win32] Position the IME composition window at the caret position.
2013-08-05 20:37:14 +00:00
frosch
c2c50b0c50
(svn r25092) -Codechange: Deduplicate keyboard handling between console and editboxes.
2013-03-17 13:05:45 +00:00
frosch
579ee7a592
(svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf.
2013-03-17 13:04:10 +00:00
frosch
5dfd5e58ee
(svn r24774) -Fix: Invert the focus handling of the OSK. Keep the focus at the OSK and close it on losing focus. This makes the editbox in the OSK behave correctly.
2012-11-28 21:14:28 +00:00
frosch
155a9d784c
(svn r24772) -Codechange: Call Window::OnEditboxChanged only when the content changes, not when only moving the cursor.
2012-11-28 20:54:56 +00:00
frosch
c8c040d057
(svn r24744) -Codechange: Handle clicking on editboxed also via QueryString.
2012-11-14 22:50:42 +00:00
frosch
c283a41248
(svn r24743) -Change: Unify the behaviour of ESC in filter editboxes.
2012-11-14 22:50:39 +00:00
frosch
f5d8ba5d7f
(svn r24742) -Codechange: Remove QueryStringBaseWindow and store QueryStrings per widget instead.
2012-11-14 22:50:35 +00:00
frosch
6e6d94a2d1
(svn r24740) -Codechange: Remove duplicate members from QueryStringBaseWindow and directly use QueryString.
2012-11-14 22:50:26 +00:00
frosch
f6d4200f86
(svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor.
2012-11-14 22:50:17 +00:00
frosch
fc2b12acca
(svn r24735) -Codechange: Move HandleEditBoxKey to Window class.
2012-11-13 21:47:13 +00:00
frosch
2c22fe98dd
(svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to Window::OnEditboxChanged.
2012-11-13 21:47:07 +00:00
frosch
c4d7c8dd42
(svn r24733) -Codechange: Move handling of editbox keys to window class.
2012-11-13 21:47:02 +00:00
frosch
fd55399167
(svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and CANCEL buttons via QueryString members.
2012-11-13 21:46:54 +00:00
frosch
137adb3496
(svn r24726) -Codechange: Move editbox mouseloop handling to Window class.
2012-11-13 21:46:33 +00:00
frosch
17025fa6ea
(svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code.
2012-11-13 21:46:19 +00:00
frosch
31eb896143
(svn r24323) -Codechange: Split Textbuf and associated functions to separate files.
2012-06-04 15:29:37 +00:00
rubidium
7fd1e1df81
(svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free
2011-11-12 13:00:29 +00:00
rubidium
944a5cb7aa
(svn r22423) -Document: some network stuff
2011-05-04 20:24:23 +00:00
rubidium
66c7f00b60
(svn r21407) -Codechange: prepare the text buffer code for limiting on number of characters besides the number of bytes
2010-12-05 22:22:54 +00:00
rubidium
bbaa262b0d
(svn r21406) -Codechange: rename some textbuf related names to make them a bit more descriptive
2010-12-05 22:21:37 +00:00
alberth
113f3ef0eb
(svn r19904) -Codechange: Make EventState usable outside Window context.
2010-05-30 12:06:18 +00:00
rubidium
4c06a9e549
(svn r18012) -Codechange: make the world generation windows nested; they'll need some tweaks to use the full potential though
2009-11-08 13:35:45 +00:00
rubidium
40a32bb976
(svn r17811) -Codechange: make HasEditBoxFocus a private function of QueryString because it's not meant to be used for determining whether the given widget actually has focus (it also checks the OSK edit box)
2009-10-18 20:56:38 +00:00
rubidium
4ab569544b
(svn r17752) -Fix [FS#3231]: OSK could reset town name to an already used town name for the 'Generate Town' window
2009-10-10 12:47:04 +00:00
smatz
8a003eb197
(svn r17600) -Cleanup: remove unused variable
2009-09-21 17:06:19 +00:00
alberth
669b7d01ac
(svn r17502) -Codechange [FS#3184]: Extend QueryStringBaseWindow to support windows with nested widgets (by Terkhen with a few tweaks).
2009-09-11 18:52:56 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
861e9cefb3
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
2009-02-09 01:22:29 +00:00
rubidium
ba3d7e70f2
(svn r15370) -Codechange: add a callback to tell the parent of an OSK that the string has changed instead of only marking the text box dirty.
2009-02-06 11:57:25 +00:00
rubidium
fad3519d4f
(svn r14820) -Codechange: use (the correct) enum-type instead of just int (Zuu)
2009-01-03 23:40:29 +00:00
rubidium
e5c1a7b5c3
(svn r14804) -Codechange: unify opening the OSK (Zuu)
2009-01-03 13:59:05 +00:00
glx
a6bfd7f15b
(svn r14534) -Codechange [FS#2382]: Enumify magic return values of HandleEditBox function (Zuu)
2008-10-25 19:59:11 +00:00
smatz
c10f7db576
(svn r14514) -Codechange: use 'size' instead of 'length' for querystring and textbuf, explicitly say it includes the terminating zero
...
-Fix: one couldn't rename things with too long default/automatic name
-Fix: buffer overflow in console when too long (1024 bytes) command was entered
2008-10-22 19:12:10 +00:00
rubidium
d986380169
(svn r14069) -Fix: silence MSVC 64-bits compile warnings.
2008-08-13 14:52:54 +00:00
rubidium
6995365535
(svn r14046) -Codechange: make the size of querystring "widgets" more configurable.
2008-08-11 22:08:56 +00:00
rubidium
f5681547ef
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
2008-05-17 23:11:06 +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
eb2d47b547
(svn r13042) -Codechange: make a class of CreateScenarioWindow, GenerateLandscapeWindow, NetworkChatWindow, NetworkCompanyPasswordWindow, NetworkGameWindow, NetworkStartServerWindow, QueryStringWindow, SaveLoadWindow. All these classes depended on the 'querystr_d' object which is now put into QueryStringBaseWindow. As a side effect this removes quite a lot of WP macro usages and a few global variables.
2008-05-11 12:26:20 +00:00