Emanuele Torre
2e92c2e5e1
LibJS: Start implementing a Console class for the interpreter
...
The goal is to start factoring out core ConsoleObject functionality and
to make ConsoleObject only a JS wrapper around Console.
2020-05-02 11:41:35 +02:00
Andreas Kling
745b0b27fd
WindowServer+LibGUI: Automatically close child windows with parent
...
If a window has child windows when it's destroyed, WindowServer will
now automatically tear down all of its children as well.
This is communicated to the client program through a vector of window
ID's included with the response to WindowServer::DestroyWindow.
This does feel a little bit awkward, but managing it on the client side
also seems a bit awkward.
2020-05-02 01:29:55 +02:00
Andreas Kling
a726fda546
IPCCompiler: Add support for Vector<i32>
...
It would be a lot nicer to support arbitrary Vector<T> but for now I'm
only adding Vector<i32> since I need it for something..
2020-05-02 01:29:55 +02:00
Andreas Kling
828aee9932
LibGUI: Make ComboBox list pop-up windows frameless
...
This is much better than the hack we had of making them Tooltip windows
since frameless windows end up at the right layer in the window stack
automatically, and always get yanked above the parent window simply by
being child windows.
2020-05-02 01:29:55 +02:00
Andreas Kling
d847304cb9
WindowServer+LibGUI: Add "frameless" window flag
...
This allows you to create windows with no title bar or window frame.
2020-05-02 01:29:55 +02:00
Andreas Kling
bb7eb3e104
WindowServer+LibGUI: Remove unused Window::show_titlebar() flag
...
Nobody was using this flag, so let's stop maintaining it. It's easy to
add it back if we ever want the behavior.
2020-05-02 01:29:55 +02:00
Andreas Kling
2ac1fbef4f
WindowServer: Don't allow parent windows to go above their children
...
Whenever a parent window is moved to front, we now follow up by
immediately moving its children to front as well.
2020-05-02 01:29:55 +02:00
Andreas Kling
c6899b0910
WindowServer: Move child windows together with their parents
...
When moving a window, we will now move any child windows by the same
position delta as the parent. This makes ComboBox popup list windows
follow the window they were opened by, which looks nice. :^)
2020-05-02 01:29:55 +02:00
Andreas Kling
6228f72b87
LibGUI+WindowServer: Inform WindowServer about parent/child windows
...
If a window has another window in its Core::Object ancestor chain,
we now communicate that relationship to WindowServer so that it can
act with awareness of parent/child windows.
2020-05-02 01:29:55 +02:00
Andreas Kling
e9b7a51a9a
Base: Tweak MessageBox icons a tiny bit
2020-05-02 01:29:55 +02:00
LepkoQQ
c7f0de14b5
LibGfx: Decode paletted and grayscale images with 1/2/4 bit depth
...
When dealing with png data that has less than 8 bits per pixel, round
up to the next byte when allocating per row buffers and streamers. This
fixes decoding odd sized PNGs with less than 8 bits per pixel.
Also added a test page with some odd sized palleted PNGs.
2020-05-02 01:28:18 +02:00
Linus Groh
e37065cc8b
Base: Update js(1) manpage
...
Syntax highlighting is now enabled by default!
2020-05-02 01:23:50 +02:00
Valtteri Koskivuori
61cea6a29d
LibM: Implement fmodf()
2020-05-02 01:23:30 +02:00
Linus Groh
43c1fa9965
LibJS: Implement (no-op) debugger statement
2020-05-01 22:07:13 +02:00
Andreas Kling
ea839861e5
AK: Make Checked.h work with Clang
...
Apparently Clang does not have __builtin_foo_overflow_p()
Fixes #2044 .
2020-05-01 17:30:47 +02:00
Andreas Kling
b5039a047f
Base: Adjust filetype icons to be right-aligned for consistency
...
Established convention is for the flavor icon to go on the right side.
2020-05-01 17:23:41 +02:00
Andres Vieira
15aedc6866
Userland: "touch" can now handle multiple paths as arguments
...
You can now do:
touch a.txt b.txt c.txt d.txt
Also now you can't do:
touch --test # This created a "./--test" file
Also adds ArgsParser to the mix to better handle arguments :)
2020-05-01 17:08:46 +02:00
Hüseyin ASLITÜRK
8551c10918
Applications: TextEditor INI file syntax highlighter
2020-05-01 16:58:18 +02:00
Hüseyin ASLITÜRK
5c022ac939
LibGUI: INI file syntax highlighter
2020-05-01 16:58:18 +02:00
Hüseyin ASLITÜRK
5267ccbc22
LibGUI: Icon for INI file type
2020-05-01 16:58:18 +02:00
Hüseyin ASLITÜRK
d8477074b9
Base: Icons for INI, Object and Library file types
2020-05-01 16:58:18 +02:00
Linus Groh
79b829637e
LibJS: Implement most of the Reflect object
2020-05-01 16:54:01 +02:00
Linus Groh
1ba2e6768d
LibJS: Implement indexed access for StringObject
2020-05-01 16:54:01 +02:00
Linus Groh
a81bce8c2a
LibJS: Make Array.length non-configurable
...
This was incorrect, it's only writable.
2020-05-01 16:54:01 +02:00
Linus Groh
65dbe17dd7
LibJS: Add Value::to_size_t()
2020-05-01 16:54:01 +02:00
Linus Groh
62671bea68
LibJS: Add Object::has_property()
...
Like Object::has_own_property() but going down the prototype chain.
2020-05-01 16:54:01 +02:00
Linus Groh
4cdd802927
LibJS: Return a bool from Object::put* to indicate success
2020-05-01 16:54:01 +02:00
Kesse Jones
6dbb5df81f
LibJS: Add String.prototype.lastIndexOf
2020-05-01 16:50:37 +02:00
Emanuele Torre
46b79eaad9
LibJS: Implement console.countReset()
...
I chose to also make it print "<counter_name>: 0\n" when a counter gets
reset, similarly to how firefox behaves.
2020-05-01 13:02:01 +02:00
Emanuele Torre
8c60ba1e42
LibJS: Implement console.count()
2020-05-01 13:02:01 +02:00
Matthew Olsson
28ef654d13
LibJS: Add object literal method shorthand
2020-05-01 12:28:40 +02:00
Andreas Kling
88f7f9712d
TextEditor: Use document path as base URL for markdown preview HTML
2020-04-30 23:43:17 +02:00
Andreas Kling
770dedcc23
LibGUI: Remove some ancient unused debug logging
2020-04-30 22:42:02 +02:00
Andreas Kling
68513abf39
Terminal: Tweak default prompt color slightly :^)
2020-04-30 22:38:40 +02:00
Andreas Kling
06c478852a
FileManager: Realize the initial path when opened from the command line
2020-04-30 22:38:28 +02:00
Andreas Kling
b2b30567ab
js: Turn on live syntax highlighting by default
2020-04-30 22:37:50 +02:00
Andreas Kling
fec52fa94b
LibX86: Disassemble BSWAP
2020-04-30 22:15:16 +02:00
Andreas Kling
a40aa80df1
Debugger: Add missing newline in "help" output
2020-04-30 22:15:16 +02:00
Andreas Kling
2822b1035f
WindowServer: Fix some pixels in menus after window border changes
2020-04-30 22:15:16 +02:00
Andreas Kling
c3a2dffe29
WindowServer: Tweak window icon menu popup location
2020-04-30 22:15:16 +02:00
Andreas Kling
5bdd05024f
DisplaySettings: Tweak label "Color Name" => "Color"
2020-04-30 22:15:16 +02:00
AnotherTest
977aa3968c
LibLine: Reset inline_search_cursor along with cursor
...
This fixes the issue where the editor would only scroll up one command
and then 'search' for it
2020-04-30 22:14:59 +02:00
Andreas Kling
23d99e92b9
WindowServer: Add action icons to the window menus
2020-04-30 12:58:38 +02:00
Andreas Kling
6c0fed3866
TextEditor: Pledge "unix" so we can load images in Markdown preview
...
We should think a bit more about how we want preview content to
interact with the outside world, but for now let's just make it run.
2020-04-30 12:32:41 +02:00
Andreas Kling
e8a5c10382
Base: Add back the OG grid wallpaper from back in the day, now as a PNG
2020-04-30 12:31:02 +02:00
Andreas Kling
888e35f0fe
AK: Add ALWAYS_INLINE, NEVER_INLINE and FLATTEN macros
...
It's tedious to write (and look at) [[gnu::always_inline]] etc. :^)
2020-04-30 11:43:25 +02:00
Sergey Bugaev
f1a8fb1e88
LibMarkdown: Add support for images :^)
2020-04-30 11:30:27 +02:00
Sergey Bugaev
b8aab5fdc3
LibMarkdown: Handle broken link markup better
...
Let's output *something* instead of crashing on a failed assertion.
2020-04-30 11:30:27 +02:00
Sergey Bugaev
279cf9294a
AK: Always inline trivial StringView constructors
2020-04-30 11:30:27 +02:00
Sergey Bugaev
135d29b498
AK: Assert that we don't create StringViews of negative length
...
Due to us using size_t for the length, the actual value will always be positive.
If, for example, we calculate the length as "0 - 1", we'll get SIZE_T_MAX. What
we can do is check that adding the characters pointer and the length together
doesn't overflow.
2020-04-30 11:30:27 +02:00