summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-11LibGfx: Add Rect::operator!=(Rect)Andreas Kling
2020-02-11LibGUI: Add a Widget::did_layout() that gets called after layoutAndreas Kling
This will allow widgets to implement post-layout behaviors.
2020-02-11LibGUI: Factor out Splitter hit testing into a separate functionAndreas Kling
2020-02-11WindowServer: Ensure on a menu key press invalid items are not hoveredShannon Booth
Whenever a new menu item is hovered through a up or down key press, we should always end up hovering a valid item.
2020-02-11LibGfx: Assert that an empty bitmap is not createdShannon Booth
2020-02-11WindowServer: Assert that a window is not being set as emptyShannon Booth
2020-02-11WindowServer: Remove unimplemented header functionShannon Booth
2020-02-11WindowServer: Use early return to reduce nestingShannon Booth
2020-02-10Terminal: Set up a nice $PROMPT for the shell :^)Andreas Kling
2020-02-10Shell: Build prompt based on the PROMPT environment variable if presentAndreas Kling
2020-02-10Kernel: Remove some commented-out code in Scheduler::yield()Andreas Kling
2020-02-10Kernel: Remove outdated FIXME from SchedulerAndreas Kling
2020-02-10Kernel: Add getter and setter for the X86 CR3 registerAndreas Kling
This gets rid of a bunch of inline assembly.
2020-02-10LibGUI: Single-line GUI::TextEditor should not have "go to line" actionAndreas Kling
2020-02-10Kernel+LibC: Merge sys$stat() and sys$lstat()Andreas Kling
There is now only one sys$stat() instead of two separate syscalls.
2020-02-10Calculator: Accept more keyboard input (#1207)ignas-sa
Allow user to clear/remove last numeral from input (Esc/Backspace respectively) and type the decimal point.
2020-02-10WindowServer: Move applet code from MenuManager to AppletManager.asliturk
Move applet logic to the own class. Remove applet code from MenuManager. With new AppletManager applet order is configurable via WindowManager.ini file.
2020-02-10Audio.MenuApplet: Add window title.=
2020-02-10CPUGraph.MenuApplet: Add window title.=
2020-02-10Clock.MenuApplet: Add window title.=
2020-02-10UserName.MenuApplet: Add window title.=
2020-02-10LibCore: TCP and UDP servers should parent Notifiers to themselvesAndreas Kling
This makes things look a little more neat in Inspector. :^)
2020-02-10LibAudio/Piano: Replace floats with doublesWilliam McPherson
We should default to double-precision so that clients can make the choice to use float or double.
2020-02-10LibAudio/aplay: Handle WAV header errors properlyWilliam McPherson
We shouldn't just ASSERT() if the header parse fails. This was crashing Piano completely.
2020-02-10Piano: Draw stereo wavesWilliam McPherson
Draw two waves in different colors.
2020-02-10Piano: Try to be more stereo-orientedWilliam McPherson
2020-02-10Piano: Add nice scale factor to WaveWidgetWilliam McPherson
2020-02-10Piano: Ensure WaveWidget paints in-boundsWilliam McPherson
Letting GUI::Frame::paint_event() cover up your mistakes is tacky :P
2020-02-10Piano: Put reset() with other settersWilliam McPherson
2020-02-10Piano: Add samplerWilliam McPherson
This commit adds basic support for importing, viewing and playing WAV samples at different pitches. Naming issues: - We are using the Sample struct from Music.h, but also the Sample struct from LibAudio (Audio::Sample). This is a little confusing. set_recorded_sample() finds the peak sample and then divides all the samples by that peak to get a guaranteed min/max of -1/1. This is nice because our other waves are also bound between these values and we can just do the same stuff. This is why we're using Audio::Sample, because it uses floats, whereas Music.h's Sample uses i16s. It's a little annoying that we have to use a mixture of floats and doubles though. For playback at lower frequencies, we're calculating in-between samples, rather than just playing samples multiple times. Basically, you get the current sample and add the difference between the current sample and the next sample multiplied by the distance from the current sample. This is like drawing the hypotenuse of a right-angled triangle.
2020-02-10Ports: Disable JACK for SDL2 in `configopts`Jesse Buhagiar
This is causing build errors for myself and a few other people. This config option disables the SDL2 port from trying to compile with the JACK audio server (which we don't need).
2020-02-10Kernel: Remove more <LibBareMetal/Output/kstdio.h> includesAndreas Kling
2020-02-10AK: Remove bitrotted Traits::dump() mechanismAndreas Kling
This was only used by HashTable::dump() which I used when doing the first HashTable implementation. Removing this allows us to also remove most includes of <AK/kstdio.h>.
2020-02-10Userland: Fix segfault in chownWilliam McPherson
chown takes 2 arguments, not 1.
2020-02-10Meta: Integrate Shellcheck into TravisShannon Booth
lint-shell-scripts searches over the repository looking for shell scripts. On those found, shellcheck is run against them. If any linting fails print those warnings and exit with a non-zero exit code. Run this script automatically in Travis.
2020-02-10Meta: Fix shellcheck warnings in various scriptsShannon Booth
Warnings fixed: * SC2086: Double quote to prevent globbing and word splitting. * SC2006: Use $(...) notation instead of legacy backticked `...` * SC2039: In POSIX sh, echo flags are undefined * SC2209: Use var=$(command) to assign output (or quote to assign string) * SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails * SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. * SC2034: i appears unused. Verify use (or export if used externally) * SC2046: Quote this to prevent word splitting. * SC2236: Use -z instead of ! -n. There are still a lot of warnings in Kernel/run about: - SC2086: Double quote to prevent globbing and word splitting. However, splitting on space is intentional in this case, and not trivial to change. Therefore ignore the warning for now - but we should fix this in the future.
2020-02-10Build: clean .d files based on SUFFIXED_OBJS and EXTRA_OBJSjoshua stein
Fixes #1198
2020-02-09Kernel: Use VirtualAddress & PhysicalAddress classes from LibBareMetalLiav A
2020-02-09LibELF: Use VirtualAddress class from LibBareMetalLiav A
2020-02-09LibBareMetal: Add Memory definitionsLiav A
Add classes of VirtualAddress & PhysicalAddress.
2020-02-09LibC: Apply a change for the Bootstrapper environmentLiav A
2020-02-09Build Environment: Add a definition for the Bootstrapper environmentLiav A
2020-02-09AK: Apply changes for the Bootstrapper environmentLiav A
2020-02-09Userland: Use IO helpers from LibBareMetalLiav A
2020-02-09Kernel: Apply changes to use LibBareMetal definitionsLiav A
2020-02-09LibBareMetal: Creating a new library for freestanding environmentsLiav A
2020-02-09WebServer: Add missing space to HTTP error responsesAndreas Kling
Fixes #1200.
2020-02-09Net: Short-circuit routing to the IPv4 address of a local adapterAndreas Kling
This makes it possible to open http://localhost:8000/ in Browser. :^)
2020-02-09WebServer: Send the HTTP response headers in a single packetAndreas Kling
This makes it easier to observe the protocol in packet logs.
2020-02-09WebServer: Tighten things up with pledge() and unveil()Andreas Kling