summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-27LibDraw: Tweak the hover highlight color.Andreas Kling
It was a tad too bright. Also make sure we're using the same color in all the different places. At some point it would be nice to improve global color settings, etc.
2019-07-27ProcessManager: Oops, the process-specific view should not be global.Andreas Kling
It should only be visible when we have the process table open.
2019-07-27Piano: Add an (empty) menubar so the app looks a little more complete.Andreas Kling
2019-07-27LibCore: Remove CSocket's bind() and listen().Andreas Kling
We're going to be using dedicated server socket classes instead. This was only implemented for CLocalSocket, and clients have been switched over to using CLocalServer.
2019-07-27LibCore: Port CoreIPCServer to using CLocalServer.Andreas Kling
Use CLocalServer to listen for connections in WindowServer and AudioServer. This allows us to accept incoming CLocalSocket objects from the CLocalServer and construct client connections based on those. Removed COpenedSocket since it's replaced by CLocalSocket.
2019-07-27LibCore: Use clang-format on CoreIPC{Client,Server}.Andreas Kling
2019-07-27CSocket: Add an on_ready_to_read callback.Andreas Kling
This callback uses a CNotifier internally and will fire whenever there's something to be read from the socket.
2019-07-27CIODevice: Add a virtual did_update_fd() no notify subclasses of fd change.Andreas Kling
This will allow subclasses to react when the file descriptor changes.
2019-07-27WindowServer: Add missing WSAPITypes.h include in WSClientConnection.hAndreas Kling
2019-07-27LibCore: Add CLocalServer, a server-only local socket class.Andreas Kling
Instead of trying to support both client and server in CLocalSocket, let's have a specialized server class. The basic usage is: CLocalServer server; server.listen("/tmp/name-of-portal"); server.on_ready_to_accept = [&] { CLocalSocket* client = server.accept(); ... }; This will make things a lot simpler, since an accepting socket doesn't need half of the stuff that a regular CIODevice provides. :^)
2019-07-27ProcessManager: Add a process-specific tab view below the process table.Andreas Kling
To start out, add a "Stacks" view where we see what the selected process is currently doing (via /proc/PID/stack) :^)
2019-07-27ProcessManager: Add ProcessTableView::on_process_selected() callback.Andreas Kling
This will be useful for doing something in response to the user selecting a different process.
2019-07-27GSplitter: Explicitly set the size policies when resizing.Andreas Kling
If we don't have the fixed size policy for the first resizee, the layout system will just ignore the preferred sizes that we're giving it.
2019-07-27GWidget: Remove unused is_widget() virtual.Andreas Kling
This is implemented as a bool member in CObject, not a virtual.
2019-07-27GWidget: Add set_size_policy(Orientation, Policy).Andreas Kling
This allows you to set the policy for a single orientation rather than both at the same time.
2019-07-27LibCore: Add comment about child events for partially-constructed children.Andreas Kling
Since ChildAdded events originate from the CObject constructor, they are not fully constructed when their parent learns that they were added. Added a little comment about this to the child_event() declaration.
2019-07-27ProcessManager: Move the memory stats widget under "Graphs" instead.Andreas Kling
Making space for some new thingy under the process table view.
2019-07-27ProcessManager: Rename "widget" to "process_table_container".Andreas Kling
2019-07-26FormCompiler: Add some more LibCore object files to host build.Andreas Kling
2019-07-26LibCore: Add CSocket::bind() (virtual) and CSocket::listen().Andreas Kling
These will be useful for implementing server sockets.
2019-07-26AK: Add RELEASE_ASSERT in non-Serenity builds.Andreas Kling
2019-07-26LibGUI: GDialog should close its nested event loop on window close.Andreas Kling
Make GWindow::close() so we can override it in GDialog and quit from the internal event loop when the window manager tells us to close ourselves. The dialog will return GDialog::ExecCancel in these situations.
2019-07-26CEventLoop: Convert dbgprintf() to dbg().Andreas Kling
2019-07-26Meta: Minor tweak to Contributing.mdAndreas Kling
2019-07-26Meta: Add some basic contribution guidelines.Andreas Kling
2019-07-26Lagom: Let's not hard-code the compiler. Add compiler-relevant flags though.Andreas Kling
I'm still getting the hang of this CMake thing.
2019-07-26LibHTML: A tiny bit of work towards block layout.Andreas Kling
2019-07-26AK: Fix NonnullRefPtr<T>::operator=(NonnullRefPtr<U>).Andreas Kling
2019-07-26TextEditor: Fix nullptr refrence to save action & m_path (#364)Rhin
We forgot to persist our actions in the constructor for later reference, whoops. Also use the correct path in the "open" action.
2019-07-25Kernel: Dump backtrace to debugger for DefaultSignalAction::DumpCore.Andreas Kling
This makes assertion failures generate backtraces again. Sorry to everyone who suffered from the lack of backtraces lately. :^) We share code with the /proc/PID/stack implementation. You can now get the current backtrace for a Thread via Thread::backtrace(), and all the traces for a Process via Process::backtrace().
2019-07-25LibCore: Introduce a C_OBJECT macro.Andreas Kling
This macro goes at the top of every CObject-derived class like so: class SomeClass : public CObject { C_OBJECT(SomeClass) public: ... At the moment, all it does is create an override for the class_name() getter but in the future this will be used to automatically insert member functions into these classes.
2019-07-25CEventLoop: Don't re-process already processed events when un-nesting.Andreas Kling
If we had already processed a couple of queued events by the time we were told to un-nest the event loop, we'd put the entire current batch at the head of the outer queue. This meant that we might end up trying to process the same events multiple times. Let's not do that. :^)
2019-07-25Shell: Put failed command exit statuses in the debug output instead.Andreas Kling
It was kinda unpleasant to always see "So-and-so exited with status 123."
2019-07-25LibC: Don't clobber errno in free().Andreas Kling
This one is a bit mysterious. I can't find any authoritative answer on what the correct behavior is, but it seems reasonable to me that free() doesn't step on errno, since it returns "void" and thus the caller won't know to inspect errno anyway.
2019-07-25LibC: Make sure we always return the intended errno from execvpe().Andreas Kling
2019-07-25AK: Add ScopedValueRollback::set_override_rollback_value().Andreas Kling
This can be used if you change your mind about what value we should roll back to. :^)
2019-07-25Lagom: Build with -fPIC for now.Andreas Kling
2019-07-25AK: Rename ValueRestorer => ScopedValueRollback.Andreas Kling
Qt had a pretty good name for this concept, so let's steal it. :^)
2019-07-25Lagom: Simplify the CMakeLists.txt a bit.Andreas Kling
Now that everything in AK is buildable, we can just build all of it. :^)
2019-07-25AK: Shim open_with_path_length() for non-Serenity builds.Andreas Kling
This is pretty ugly but I don't want to *not* use open_with_path_length() so let's just shim it.
2019-07-25AK: Don't compile mmx_memcpy() outside of ARCH(I386).Andreas Kling
2019-07-25Lagom: Add a tiny test program so we can see that something works. :^)Andreas Kling
2019-07-25Lagom: Let's build liblagom as a static library.Andreas Kling
2019-07-25Lagom: Import the beginnings of a "port" of Serenity libs for the outside.Andreas Kling
The C++ facilities of Serenity are getting pretty comfortable, and I'd like to take them with me to projects outside the system. Let's make it a bit easier to do that by bundling AK and LibCore (for now) into a portable library called "Lagom". :^)
2019-07-25AK: Allow NonnullRefPtr::ptr() when in "unknown" typestate.Andreas Kling
Clang loses the typestate when passing NonnullRefPtr's via lambda captures. This is unfortunate, but not much we can do about it. Allowing ptr() makes it possible to use captured NonnullRefPtrs as you'd expect.
2019-07-25CSocket: Add missing <sys/un.h> include to fix host build.Andreas Kling
2019-07-25CSocket: Fix Clang warning about unused private member m_type.Andreas Kling
2019-07-25LibCore: Only build CThread on Serenity platforms.Andreas Kling
2019-07-25AK: Simplify NonnullPtrVector template a bit.Andreas Kling
Add an "ElementType" typedef to NonnullOwnPtr and NonnullRefPtr to allow clients to easily find the pointee type. Then use this to remove a template argument from NonnullPtrVector. :^)
2019-07-25AK: Share code between NonnullOwnPtrVector and NonnullRefPtrVector.Andreas Kling
These can just inherit from a shared base template. Thanks to Robin for the sweet idea :^)