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.
9 months ago
Rubidium
8c742b456f
Codechange: use Textbuf directly, instead via several virtual functions in Window
1 year ago
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
1 year ago
Rubidium
6d1586dd49
Codechange: use std::string instead of char* for original editor strings
1 year ago
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.
1 year ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
JMcKiern
04f659e768
Fix: Some typos found using codespell
5 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
michi_cc
30867c487f
(svn r25691) -Add: [OSX] Support for mouse selection in the IME composition string.
11 years ago
michi_cc
e2ec0ddb03
(svn r25690) -Change: [OSX] Position the candidate window at the caret position.
11 years ago
michi_cc
f5e4131492
(svn r25689) -Add: [OSX] Display the IME composition string ourself.
11 years ago
michi_cc
da09fd3077
(svn r25681) -Change: [Win32] Position the IME composition window at the caret position.
11 years ago
frosch
c2c50b0c50
(svn r25092) -Codechange: Deduplicate keyboard handling between console and editboxes.
12 years ago
frosch
579ee7a592
(svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf.
12 years ago
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.
12 years ago
frosch
155a9d784c
(svn r24772) -Codechange: Call Window::OnEditboxChanged only when the content changes, not when only moving the cursor.
12 years ago
frosch
c8c040d057
(svn r24744) -Codechange: Handle clicking on editboxed also via QueryString.
12 years ago
frosch
c283a41248
(svn r24743) -Change: Unify the behaviour of ESC in filter editboxes.
12 years ago
frosch
f5d8ba5d7f
(svn r24742) -Codechange: Remove QueryStringBaseWindow and store QueryStrings per widget instead.
12 years ago
frosch
6e6d94a2d1
(svn r24740) -Codechange: Remove duplicate members from QueryStringBaseWindow and directly use QueryString.
12 years ago
frosch
f6d4200f86
(svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor.
12 years ago
frosch
fc2b12acca
(svn r24735) -Codechange: Move HandleEditBoxKey to Window class.
12 years ago
frosch
2c22fe98dd
(svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to Window::OnEditboxChanged.
12 years ago
frosch
c4d7c8dd42
(svn r24733) -Codechange: Move handling of editbox keys to window class.
12 years ago
frosch
fd55399167
(svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and CANCEL buttons via QueryString members.
12 years ago
frosch
137adb3496
(svn r24726) -Codechange: Move editbox mouseloop handling to Window class.
12 years ago
frosch
17025fa6ea
(svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code.
12 years ago
frosch
31eb896143
(svn r24323) -Codechange: Split Textbuf and associated functions to separate files.
12 years ago
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
13 years ago
rubidium
944a5cb7aa
(svn r22423) -Document: some network stuff
14 years ago
rubidium
66c7f00b60
(svn r21407) -Codechange: prepare the text buffer code for limiting on number of characters besides the number of bytes
14 years ago
rubidium
bbaa262b0d
(svn r21406) -Codechange: rename some textbuf related names to make them a bit more descriptive
14 years ago
alberth
113f3ef0eb
(svn r19904) -Codechange: Make EventState usable outside Window context.
15 years ago
rubidium
4c06a9e549
(svn r18012) -Codechange: make the world generation windows nested; they'll need some tweaks to use the full potential though
15 years ago
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)
15 years ago
rubidium
4ab569544b
(svn r17752) -Fix [FS#3231]: OSK could reset town name to an already used town name for the 'Generate Town' window
15 years ago
smatz
8a003eb197
(svn r17600) -Cleanup: remove unused variable
15 years ago
alberth
669b7d01ac
(svn r17502) -Codechange [FS#3184]: Extend QueryStringBaseWindow to support windows with nested widgets (by Terkhen with a few tweaks).
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
861e9cefb3
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
16 years ago
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.
16 years ago
rubidium
fad3519d4f
(svn r14820) -Codechange: use (the correct) enum-type instead of just int (Zuu)
16 years ago
rubidium
e5c1a7b5c3
(svn r14804) -Codechange: unify opening the OSK (Zuu)
16 years ago
glx
a6bfd7f15b
(svn r14534) -Codechange [FS#2382]: Enumify magic return values of HandleEditBox function (Zuu)
16 years ago
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
16 years ago
rubidium
d986380169
(svn r14069) -Fix: silence MSVC 64-bits compile warnings.
16 years ago
rubidium
6995365535
(svn r14046) -Codechange: make the size of querystring "widgets" more configurable.
16 years ago
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.
17 years ago
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.
17 years ago
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.
17 years ago