asynts
21de20825a
LibCore: Change the signature of Socket::send() to use Span.
2020-07-27 19:58:09 +02:00
Matthew Olsson
335916d8db
LibGfx: Templatize Point, Size, and Rect
2020-07-27 01:06:26 +02:00
Andreas Kling
1f008c95b6
LibWeb: Move CSS classes into the Web::CSS namespace
2020-07-26 20:05:15 +02:00
Andreas Kling
11ff9d0f17
LibWeb: Move DOM classes into the Web::DOM namespace
...
LibWeb keeps growing and the Web namespace is filling up fast.
Let's put DOM stuff into Web::DOM, just like we already started doing
with SVG stuff in Web::SVG.
2020-07-26 20:05:15 +02:00
Andreas Kling
e0b8b4ac67
LibCore+LibGUI: Switch to using AK::is and AK::downcast
2020-07-26 17:51:00 +02:00
Andreas Kling
a565121793
LibWeb: Move HTML object model stuff into LibWeb/HTML/
...
Take a hint from SVG and more all the HTML classes into HTML instead of
mixing them with the DOM classes.
2020-07-26 17:51:00 +02:00
AnotherTest
9685080bd4
PixelPaint: Add a bunch of spatial filters
...
This patchset adds a generic convolution matrix spatial filter, and a
few named derivatives such as BoxBlur, Laplacian, Sharpen and
GaussianBlur.
2020-07-25 02:13:43 +02:00
Nico Weber
c4d9d5cc54
Browser: Escape JS source operators for HTML display in console
...
Console inputs to try before and after this patch:
- `0xffff & 0xff`
- `"a & b"`
- `"<div>"`
- `a &` (to see the escaping in the error hint)
2020-07-23 23:01:16 +02:00
Andreas Kling
65ec655b0d
PixelPaint: Add GUI for editing layer names :^)
2020-07-23 20:48:28 +02:00
Andreas Kling
955d3c22c7
PixelPaint: Tidy up the LayerPropertiesWidget GUI layout a bit :^)
2020-07-23 20:43:52 +02:00
Andreas Kling
3a4351b2b5
PixelPaint: Don't hit test non-visible layers
2020-07-23 20:36:07 +02:00
Andreas Kling
b560445c84
PixelPaint: Add a GUI for editing opacity and visibility of layers
...
Also, make the layer stack rendering respect opacity and visibility.
2020-07-23 20:33:38 +02:00
Andreas Kling
7973f76790
PixelPaint: Scope tool actions to the containing window
...
We achieve this by deferring the construction of the tool buttons until
the toolbox widget has been added to a window.
2020-07-23 19:53:48 +02:00
Andreas Kling
299824de73
LibGUI: Rename GUI::Image => GUI::ImageWidget
...
"Image" was a bit too vague, "ImageWidget" is obviously a widget of
some sort.
2020-07-23 17:31:08 +02:00
Nico Weber
107db38a51
Browser: Focus input text field in JS console by default
2020-07-23 13:07:30 +02:00
Sahan Fernando
ccc929dcf9
TextEditor: Preserve preview scroll position across page refreshes
2020-07-20 21:04:19 +02:00
Andreas Kling
f286eb7fcd
FileManager: Show a special icon for the home directory
...
The home-directory icon now shows up in the FileManager title bar,
and alongside the path in the location textbox. Very nice. :^)
2020-07-19 21:37:25 +02:00
Andreas Kling
9710c9742c
LibGUI+FileManager: Add setting for showing/hiding dotfiles
...
GUI::FileSystemModel can now be told to display (or not display) files
whose name start with a dot (other than . and ..)
2020-07-19 21:15:00 +02:00
Andreas Kling
ad57a2f18b
FileManager: Use new TextBox::DisplayOnly mode in the properties dialog
...
Use this instead of disabling the name TextBox. This looks a little bit
nicer than the grayed-out appearance. :^)
2020-07-19 21:15:00 +02:00
Nico Weber
b5565b478f
System Monitor: Sort Address column in memory map numerically
2020-07-18 15:52:08 +02:00
Nico Weber
629410b3d6
TextEditor: Auto-select C++ syntax highlighting for more extensions
2020-07-18 15:19:58 +02:00
Tom
65a11fb5f9
LibGUI: Add InputBox::show with required parent window argument
...
Similar to MessageBox::show, this encourages passing in a window.
2020-07-16 16:10:21 +02:00
Tom
27bd2eab22
LibWeb: Require parent window argument for MessageBox
...
Since the vast majority of message boxes should be modal, require
the parent window to be passed in, which can be nullptr for the
rare case that they don't. By it being the first argument, the
default arguments also don't need to be explicitly stated in most
cases, and it encourages passing in a parent window handle.
Fix up several message boxes that should have been modal.
2020-07-16 16:10:21 +02:00
Tom
6568765e8f
LibGUI: Add parent window argument to FilePicker functions
...
Since FilePicker almost always should be modal, add the parent
window as mandatory first argument.
2020-07-16 16:10:21 +02:00
Nico Weber
6e0af349a2
FileManager: Make Ctrl-L focus location bar, and change shortcuts for changing view
...
Ctrl-L focuses the location bar in all file managers I know of,
and does so in SerenityOS's browser too. It should work in
SerenityOS's file manager as well.
Unfortunately, Ctrl-L was already "View List", so change the
shortcuts of all the view modes to Ctrl-1/2/3 which is what
several other file managers use. (I tried Ctrl-Shift-1/2/3
which is what Windows Explorer uses after 8.1, but it didn't
Just Work, and Ctrl-1/2/3 are currently free anyways. If
we ever want to use them for tabs or whatever, we can
change the view shortcuts then.)
2020-07-15 18:30:26 +02:00
Sergey Bugaev
5fd8dbacb1
LibGUI+FileManager: Fix forgetting to map sorting proxy model indexes
...
Also assert indexes are valid in a few more places.
Finally fixes https://github.com/SerenityOS/serenity/issues/1440 and
https://github.com/SerenityOS/serenity/issues/2787 :^)
2020-07-15 13:41:46 +02:00
Stijn
633301323b
FileManager: Add a new file action to FileManager GUI
...
This action was already present when running FileManager in desktop mode, but now it's also available in windowed mode. :)
2020-07-15 13:26:38 +02:00
thankyouverycool
b2783a234a
LibGUI: Use enum for TextEditor modes & add new DisplayOnly mode
...
Adds a new, more restrictive read-only state to TextEditor which
forbids copying, selecting, editor cursors, and context menus.
Provides a unique appearance on focus which accomodates ComboBox
widgets. All TextEditor modes are now accessed by enum and
set_mode() which sets the editor to Editable, ReadOnly or
DisplayOnly. Updates applications still using set_readonly().
2020-07-15 13:19:44 +02:00
Tom
7739497e34
FileManager: Allow double-clicking applications again
...
By adding a special LauncherType::Application we can still
get meta data for the application, but also know that we should
consider executing that binary as the default action. LaunchServer
will not do this for us, as it should probably not be allowed to
run arbitrary binaries that haven't been registered as handlers.
2020-07-15 00:11:30 +02:00
Tom
50903fd88c
FileManager: Add "Open with" menu if alternative applications are available
2020-07-15 00:11:30 +02:00
Tom
b778804d20
LibGUI: Add ModelClient abstract class and allow registering clients
...
This solves a problem where the SortingProxyModel doesn't
receive the on_update call because other code overwrote
the handler later on.
2020-07-13 19:49:34 +02:00
Nico Weber
ac2470e66e
FontEditor: Don't add duplicate extension in Save As dialog
2020-07-13 15:00:14 +02:00
Andreas Kling
7f394435da
Debugger: Add some pledges required by LibLine
...
These are a bit unfortunate. We should reorganize LibLine so it sets
up the RPC server earlier, then we can drop these pledges later on.
2020-07-12 01:36:45 +02:00
Linus Groh
858f6dc1d1
SystemMonitor: Parse /proc/cpuinfo as JSON
2020-07-11 23:16:16 +02:00
Linus Groh
caa11503b1
DisplaySettings: Fix a typo
2020-07-11 20:24:02 +02:00
Peter Elliott
e650be98a1
Piano: Fix cliping of bottom notes when scrolling in RollWidget
...
fixes #2577
2020-07-11 18:51:41 +02:00
Peter Elliott
b8cf07166f
Piano: Handle octave slider jumps of greater than 1
...
The previous slider handler relied on the new value being 1 different
than the previous.
fixes #1163 .
2020-07-11 18:51:41 +02:00
Tom
8d5fde440a
FileManager: Specify "Open in Text Editor" action as default in context menu
...
Since double-clicking the item would trigger the "Open in Text Editor"
action, specify it as the default action when displaying the
context menu.
2020-07-11 11:45:49 +02:00
Nico Weber
97aaf95265
FontEditor: Add a "Save" menu item
2020-07-11 11:34:38 +02:00
Nico Weber
315dc8d81b
FontEditor: Add a "Save as..." menu item
2020-07-11 11:34:38 +02:00
Nico Weber
03e722f664
FontEditor: Add an "Open..." menu item
2020-07-11 11:34:38 +02:00
thankyouverycool
deceb91c48
FileManager: Show an open folder icon for the selected directory
...
The currently selected directory now displays an open folder icon
in the directory tree.
2020-07-10 19:44:18 +02:00
Nico Weber
2dd40aac4d
Piano: Make menu bar consistent with other apps
...
"Help" should be after "Edit".
The "Quit" menu item should be at the end of the app menu, and
after a separator.
2020-07-07 23:11:08 +02:00
Linus Groh
87465f7c54
Help: Handle external links
...
Links which do not have the "file" protocol (most commonly links to
external websites - http and https) are now not treated as file paths
anymore but instead handled by Desktop::Launcher.
The same applies to files outside of /usr/share/man.
Fixes #2727 .
2020-07-07 17:42:50 +02:00
Andreas Kling
1493dd9dc6
Browser: Simplify the History class and fix back/forward history push
...
This code was previously relying on the PageView::on_load_start hook
firing synchronously when calling PageView::load(). This was not
happening with WebContentView, so it broke the back/forward history.
Instead, we now differentiate between history navigations and normal
loads in Tab::load(). History navigations don't push new entries into
history, but instead just move the history pointer.
2020-07-07 15:09:26 +02:00
thankyouverycool
d86dbfe9e8
Help: Make section books open and close when toggled
...
Much more satisfying!
2020-07-07 13:38:35 +02:00
thankyouverycool
27109c3467
Base+Help: Add new Help app icons
...
This adds a new 32x32 Help application icon, a new open book icon,
copies the current book icon as Help's 16x16 icon, and updates
the Help application file to reflect these changes.
2020-07-07 13:38:35 +02:00
AnotherTest
a163ee8b3b
TextEditor: Use ArgsParser and allow the user to specify preview mode
...
This makes looking at HTML files that somehow fail a little less
painful by allowing the user to actually _see_ the html.
2020-07-06 22:40:38 +02:00
Andreas Kling
a94ef9e021
Browser: Add a way to start Browser in multi-process mode :^)
...
You can enable the new multi-process mode by using "Browser -m".
2020-07-06 21:50:45 +02:00
Andreas Kling
d8be535579
Browser+LibWeb: Pave the way for using WebContentView in Browser
...
This commit sets everything up, but we still always instantiate a plain
Web::PageView in Browser::Tab..
2020-07-06 21:46:37 +02:00