summaryrefslogtreecommitdiff
path: root/Userland/DevTools
AgeCommit message (Collapse)Author
2023-03-21LibFileSystem: Move `TempFile` from `LibCore` to `LibFileSystem`Cameron Youell
As suggested in commit de18485
2023-03-21Everywhere: Use `LibFileSystem` where trivialCameron Youell
2023-03-20GMLPlayground: Let WindowServer handle the title's modification symbolSam Atkins
2023-03-20GMLPlayground: Add list of recent files to the File menuSam Atkins
2023-03-16LibGUI+Userland: Port TabWidget set_tab_title to new stringKarol Kosek
2023-03-16LibGUI+Userland: Make TabWidget::*add_tab() take title using new stringKarol Kosek
2023-03-16LibGUI+HackStudio+PixelPaint: Port Widget title to the new StringKarol Kosek
I had to add a set_title(String) helper function for ImageEditor because TabWidget requires it. This is a temporary fix and will be handled in subsequent commit.
2023-03-15Kernel: Merge {get,set}_process_name syscalls to the prctl syscallLiav A
It makes much more sense to have these actions being performed via the prctl syscall, as they both require 2 plain arguments to be passed to the syscall layer, and in contrast to most syscalls, we don't get in these removed syscalls an automatic representation of Userspace<T>, but two FlatPtr(s) to perform casting on them in the prctl syscall which is suited to what has been done in the removed syscalls. Also, it makes sense to have these actions in the prctl syscall, because they are strongly related to the process control concept of the prctl syscall.
2023-03-15LibGfx+Userland: Make TextAttributes::underline_style optionalSam Atkins
Rather than having a style AND a field saying whether to use the style, just make the style Optional.
2023-03-13AK: Rename Stream::write_entire_buffer to Stream::write_until_depletedTim Schumacher
No functional changes.
2023-03-11HackStudio: Use Syntax::Language instead of our own oneSam Atkins
The one behavior difference here is that the statusbar used to display "Unknown" for unknown file types, and "Markdown" for md, but we now display "Plain Text" for all file types without syntax highlighters.
2023-03-10Everywhere: Rename equals_ignoring_case => equals_ignoring_ascii_caseAndreas Kling
Let's make it clear that these functions deal with ASCII case only.
2023-03-08HackStudio: Store correct address in ClassViewModel's ModelIndicesSam Atkins
When 359d6e7b0b0ef7add9eb2015d0dd664a82cf73d7 happened, the return value of `children[row]` went from being `ClassViewNode&` to `NonnullOwnPtr<ClassViewNode>&`, so we were putting the wrong address into the ModelIndex's data.
2023-03-08HackStudio: Enable CMakeCache.txt highlightingSam Atkins
2023-03-06Kernel: Stop using NonnullLockRefPtrVectorAndreas Kling
2023-03-06Everywhere: Remove NonnullOwnPtr.h includesAndreas Kling
2023-03-06Everywhere: Stop using NonnullOwnPtrVectorAndreas Kling
Same as NonnullRefPtrVector: weird semantics, questionable benefits.
2023-03-06Everywhere: Remove NonnullRefPtr.h includesAndreas Kling
2023-03-06Everywhere: Stop using NonnullRefPtrVectorAndreas Kling
This class had slightly confusing semantics and the added weirdness doesn't seem worth it just so we can say "." instead of "->" when iterating over a vector of NNRPs. This patch replaces NonnullRefPtrVector<T> with Vector<NNRP<T>>.
2023-03-05LibCore+Everywhere: Return an Error from DirIterator::error()Sam Atkins
This also removes DirIterator::error_string(), since the same strerror() string will be included when you print the Error itself. Except in `ls` which is still using fprintf() for now.
2023-03-05Kernel: Move process coredump metadata modification to the prctl syscallLiav A
2023-03-04HackStudio: Enable CMake syntax highlightingSam Atkins
2023-03-04Userland: Use Font::pixel_size_rounded_up() instead of glyph_height()Andreas Kling
The only remaining clients of this API are specific to bitmap fonts and editing thereof.
2023-03-03HackStudio: Don't hard-code a default code fontAndreas Kling
If no HackStudio specific code font is set, we fall back to the system default fixed-width font.
2023-03-01LibCore+Everywhere: Remove ArgsParser::add*(char const*&)Ali Mohammad Pur
This is not guaranteed to always work correctly as ArgsParser deals in StringViews and might have a non-properly-null-terminated string as a value. As a bonus, using StringView (and DeprecatedString where necessary) leads to nicer looking code too :^)
2023-02-25Everywhere: Use _{short_,}string to create Strings from literalsLinus Groh
2023-02-24HackStudio: Add 'pause debuggee' buttonItamar
This button sends a SIGSTOP to the debugged process, which pauses it. The debuggee can be resumed with the 'continue' button.
2023-02-24SystemMonitor: Add "Debug In HackStudio" action to process context menuItamar
This action launches HackStudio with its debugger attached to the selected process.
2023-02-24HackStudio: Add progress bar to Debugger initializationItamar
During Debugger initialization, most of the time is spent creating DebugInfo objects for the libraries that the program has loaded.
2023-02-24HackStudio: Add commandline option to debug a running processItamar
2023-02-24HackStudio: Fix event loop usage in debugger callbacksItamar
These callbacks are called from a different thread than the UI thread, so we need to explicitly use the Application's event loop to perform GUI logic.
2023-02-24HackStudio: Add ability to attach debugger to a running processItamar
2023-02-21Userland: Fix remaining smart pointer const-correctness issuesAndreas Kling
2023-02-20LibGUI+HackStudio: Simplify TextEditor gutter & ruler calculationsSam Atkins
- Make gutter/ruler_content_rect() return rectangles relative to the TextEditor widget. - Re-order painting code to translate the Painter after the gutter/ruler has been painted, to use those coordinates. - Consistently put gutter before ruler in code, because that's the order they physically appear.
2023-02-19HackStudio: Make wrapping modes consistentSam Atkins
We were only setting the wrapping mode when triggering the action. So: - Any editors open without triggering a wrapping-mode action would have the default (WrapAtWords) instead of the selected item (NoWrap). - Any editors opened after triggering an action would have the default too. This fixes both situations, by: - Storing the current wrapping mode in `m_wrapping_mode`. Later this could be loaded from the config. - Changing that value any time a wrapping-mode action is triggered. - Setting the wrapping mode on newly-created editors.
2023-02-18LibGUI+Userland: Stop returning Layout from `Widget::(try_)set_layout()`Sam Atkins
Nobody uses this return value any more. It also lets us remove a whole bunch of `(void)` casts. :^)
2023-02-18Userland: Specify margins and spacing in the GUI::Layout constructorSam Atkins
2023-02-15Everywhere: Change all XXX into FIXME or remove as appropriateBen Wiederhake
2023-02-13Everywhere: Remove the `AK::` qualifier from Stream usagesTim Schumacher
2023-02-13LibCore: Remove `Stream.h`Tim Schumacher
2023-02-13LibCore: Move Stream-based file into the `Core` namespaceTim Schumacher
2023-02-13LibCore: Move Stream-based sockets into the `Core` namespaceTim Schumacher
2023-02-13LibCore: Rename `File` to `DeprecatedFile`Tim Schumacher
As usual, this removes many unused includes and moves used includes further down the chain.
2023-02-13Userland: Set Button text using the new String classKarol Kosek
2023-02-12Userland: Use allocation-failure safe functions where it's easyNico Weber
I went through all callers of adopt_own() and replaced them with try_make<>() if possible or adopt_nonnull_own_or_enomem() else in cases where it was easy (i.e. in functions already returning ErrorOr). No intended behavior change.
2023-02-11LibGUI: Base `write_to_file(StringView path)` on the stream overloadLucas CHOLLET
`write_to_file(StringView path)` was based on the `Core::File` overload. The return type also changed from `bool` to `ErrorOr<void>` to ease error propagation.
2023-02-10Everywhere: Remove needless copies of Error / ErrorOr instancesTimothy Flynn
Either take the underlying objects with release_* methods or move() the instances around.
2023-02-03SQLStudio: Display real column names in the results tabTimothy Flynn
2023-02-03SQLStudio: Separate the script and results tabs with a vertical splitterTimothy Flynn
2023-02-03LibSQL+Userland: Pass SQL IPC results to clients in a structureTimothy Flynn
SQLClient exists as a wrapper around SQL IPC to provide a bit friendlier interface for clients to deal with. Though right now, it mostly forwards values as-is from IPC to the clients. This makes it a bit verbose to add values to IPC responses, as we then have to add it to the callbacks used by all clients. It's also a bit confusing seeing a sea of "auto" as the parameter types for these callbacks. This patch moves these response values to named structures instead. This will allow adding values without needing to simultaneously update all clients. We can then separately handle the new values in interested clients only.