Andreas Kling
f4b51a63ec
LibCore: Remove CTimer::create() overloads in favor of construct()
2019-09-21 18:13:17 +02:00
Andreas Kling
0c4508c00d
SystemMonitor: Unbreak after ObjectPtr<GWidget> changes
2019-09-21 17:36:52 +02:00
Andreas Kling
bdf23a3d23
LibCore: Make it possible to cancel pending CNetworkJobs
...
Subclasses of CNetworkJob handle this by overriding shutdown().
This patch implements it for CHttpJob by simply tearing down the
underlying socket.
We also automatically call shutdown() after the job finishes,
regardless of success or failure. :^)
2019-09-21 17:32:26 +02:00
Andreas Kling
ff6ce422dd
LibGUI: Convert GWidget to ObjectPtr
2019-09-21 17:05:35 +02:00
Andreas Kling
e4e92980a1
LibGUI: Convert GComboBox to ObjectPtr
2019-09-21 16:35:11 +02:00
Andreas Kling
7aaad27778
LibGUI: Convert GSlider to ObjectPtr
2019-09-21 16:33:53 +02:00
Andreas Kling
ceb5508fea
LibGUI: Convert GProgressBar to ObjectPtr
2019-09-21 16:31:12 +02:00
Andreas Kling
3476a63415
LibGUI: Convert GStatusBar to ObjectPtr
2019-09-21 16:29:47 +02:00
Andreas Kling
f4531c976c
LibGUI: Convert GToolBar to ObjectPtr
2019-09-21 16:27:54 +02:00
Andreas Kling
b78225941d
LibGUI: Convert GSpinBox to ObjectPtr
2019-09-21 16:15:11 +02:00
Andreas Kling
83b5f6c11a
LibGUI: Convert GGroupBox to ObjectPtr
2019-09-21 16:13:33 +02:00
Andreas Kling
4f4438c04c
LibGUI: Convert GSplitter to ObjectPtr
2019-09-21 16:11:02 +02:00
Andreas Kling
efb8f9d538
LibGUI: Convert GTreeView to ObjectPtr
2019-09-21 16:06:43 +02:00
Andreas Kling
e7b55037f4
LibGUI: Convert GTableView to ObjectPtr
2019-09-21 16:03:59 +02:00
Andreas Kling
c13b9e2214
LibGUI: Convert GItemView to ObjectPtr
2019-09-21 15:47:58 +02:00
Andreas Kling
93851c3832
LibGUI: Convert GTextBox, GTextEditor and GResizeCorner to ObjectPtr
2019-09-21 15:46:47 +02:00
Andreas Kling
4ea229accd
LibCore: Convert CTCPServer to ObjectPtr
...
Also get rid of the custom CNotifier::create() in favor of construct().
2019-09-21 15:25:08 +02:00
Andreas Kling
bce58bbbca
LibGUI: Convert GScrollBar to ObjectPtr
2019-09-21 15:25:08 +02:00
Andreas Kling
c7437f9caa
LibGUI: Convert GLabel to ObjectPtr
2019-09-21 15:25:08 +02:00
Andreas Kling
6b347747f2
LibCore: Convert CHttpJob to ObjectPtr
2019-09-21 15:25:08 +02:00
Andreas Kling
4298ba25c3
LibCore: Convert CTCPSocket to ObjectPtr, add construct() helper
...
The C_OBJECT macro now also inserts a static construct(...) helper into
the class. Now we can make the constructor(s) private and instead call:
auto socket = CTCPSocket::construct(arguments);
construct() returns an ObjectPtr<T>, which we'll later switch to being
a NonnullRefPtr<T>, once everything else in in place for ref-counting.
2019-09-21 15:25:08 +02:00
Andreas Kling
74c4e62659
GCommonActions: Add "Open..." action
...
Make use of this in PaintBrush and TextEditor. :^)
2019-09-20 19:36:39 +02:00
Andreas Kling
d1bacb9885
LibCore: Convert CNotifier to ObjectPtr
2019-09-20 15:39:15 +02:00
Andreas Kling
50a6560413
LibCore: Convert CTimer to ObjectPtr
2019-09-20 15:20:10 +02:00
Andreas Kling
482d5295f1
FileManager: Allow deleting without confirmation via Shift+Delete
...
A powerful command for powerful users. :^)
2019-09-18 21:53:47 +02:00
Andreas Kling
33b8c807a6
FileManager: Implement basic file deletion
...
The delete action now actually deletes files (after asking the user for
confirmation, of course.) Deleting directories is not yet supported.
Fixes #541 .
2019-09-18 21:46:14 +02:00
Andreas Kling
101b32236c
SystemMonitor: Use GAboutDialog :^)
2019-09-18 18:43:23 +02:00
Brandon Scott
a4d52b122d
FileManager+LibGUI: Fix two folder-related crashes ( #569 )
...
Fix a crash when opening a folder, and another one when trying to open
a newly created folder.
It was not safe to modify a GModelSelection while it's being iterated over.
Fixes #536 .
2019-09-17 09:26:10 +02:00
Jesse
6557a31049
Terminal: Scroll cursor into view when typing ( #568 )
...
When the user has scrolled up and begins typing, the scrollbar will
automatically return them to the current cursor position so that they
can see what they're typing.
2019-09-16 07:52:27 +02:00
Jesse
444a4e4d39
DisplayProperties: Auto-resolution and graphical fix ( #566 )
...
The program will now automatically select the user's currently
chosen resolution when it is loaded up, however it is not
"visually selected" in the `GListView`
Moved the `resolution_list` list to be on the top to keep it consistent
with the wallpaper tab.
2019-09-16 07:50:47 +02:00
Conrad Pankoff
aa95bd7037
LibGUI: Fix move() of const StringView&
2019-09-16 07:49:43 +02:00
Conrad Pankoff
6fd096999e
Applications: Add "Welcome" application, inspired by Windows 98
2019-09-16 07:49:43 +02:00
Andreas Kling
4463adc0ff
FileManager: Show human-readable file size info in the status bar
...
Fixes #553 .
2019-09-15 17:50:15 +02:00
Andreas Kling
e83390387c
LibGUI: Simplify GCommonActions a bit
...
Use the same callback signature as GAction so we can just forward it
to GAction instead of chaining callbacks.
2019-09-14 22:10:44 +02:00
Jesse Buhagiar
58ceaebd5a
DisplayProperties: Wallpaper tab now has preview
...
As was mentioned in #556 , the `DisplayProperties` Wallpaper tab
contained a lot of "extra space", in which half the tab was taken up
by the list of wallpapers. The rest of that space is now reserved for
a wallpaper preview, so the user can see the selected image before
applying it.
2019-09-14 19:27:16 +02:00
Andreas Kling
31046b18bb
FileManager: Use a special clipboard data type for copied file lists
...
When copying a list of files to the clipboard, we now use the special
data type "file-list".
This allows us to have the paste action's enabled state reflect the
actual ability to paste something. :^)
2019-09-14 09:20:20 +02:00
Andreas Kling
9d2c4d223a
TextEditor+Base: Add an icon for the "Find" action :^)
2019-09-13 23:56:37 +02:00
Andreas Kling
ff72b4d475
FileManager+Base: Add "properties" icon
...
Something to show for the properties action in FileManager. It still
doesn't actually do anything, but at least now it looks neat. :^)
2019-09-13 23:07:59 +02:00
Andreas Kling
11f2e7cd5c
GMenu: Update apps now that you can create a nameless GMenu
...
We had many context menus with names, simply because you were forced
to give them names.
2019-09-13 22:14:07 +02:00
Andreas Kling
5eb2c138e2
FileManager: Update enabled state of the copy and delete actions
...
Based on whether something is selected or not. I added a FIXME about
the paste action, since that will require some more coordination with
the system clipboard.
2019-09-13 22:09:01 +02:00
Andreas Kling
27e1128e6e
FileManager: Assign keyboard shortcuts to the various actions
2019-09-13 22:04:08 +02:00
Andreas Kling
3a02bd40f8
FileManager: Add a basic context menu with copy/paste/delete/...
...
I also added a dummy "Properties..." action just to fill out the menu a
little bit. :^)
Fixes #270 .
2019-09-13 22:00:47 +02:00
MinusGix
ad75b61eca
IRCClient: Fix unneeded conversion to String
2019-09-13 09:22:30 +02:00
Andreas Kling
27321e9c44
PaintBrush: Only send left and right mouse button events to tools
...
Tools don't know what to do with the middle mouse button anyway,
so it's better if we just don't pass it along.
Fixes #546 .
2019-09-12 20:33:05 +02:00
Andreas Kling
d86fb8033e
FileManager: Show info about currently selected items in statusbar
...
When there's a non-zero number of selected items, we now show the
number in the statusbar, along with the total selected file size. :^)
Fixes #271 .
2019-09-12 18:59:13 +02:00
Andreas Kling
1632f6b2dd
FileManager: Add C_OBJECT macro to DirectoryView
2019-09-12 18:26:26 +02:00
Max Thrun
ae060d7450
SoundPlayer: Scale y coordinate to prevent drawing outside clip rect
...
Previously if sample.left amplitude was more than 0.5 we would draw
outside the painters clip rect.
2019-09-11 10:20:08 +02:00
Aaron Malpas
026a8be4e5
File Manager: Implement copy-paste
...
The files to copy are remembered with the clipboard, which stores a
command (e.g. "copy") and files to be copied on different lines.
2019-09-10 19:28:41 +02:00
Aaron Malpas
7841aadb41
FileManager: Create FileUtils
...
This could later be replaced with library-provided utility functions
when/if they exist.
2019-09-10 19:28:41 +02:00
Aaron Malpas
b894803a30
FileManager: Add on_selection event for DirectoryView
...
There needs to be a way to know when a user has selected a file.
file_system_model->on_selection_changed only fires on directory
change.
2019-09-10 19:28:41 +02:00