William Marlow
39364bdda4
Build: Embed application icons directly in the executables.
...
New serenity_app() targets can be defined which allows application
icons to be emedded directly into the executable. The embedded
icons will then be used when creating an icon for that file in
LibGUI.
2020-12-21 00:12:59 +01:00
Lenny Maiorani
765936ebae
Everywhere: Switch from (void) to [[maybe_unused]] ( #4473 )
...
Problem:
- `(void)` simply casts the expression to void. This is understood to
indicate that it is ignored, but this is really a compiler trick to
get the compiler to not generate a warning.
Solution:
- Use the `[[maybe_unused]]` attribute to indicate the value is unused.
Note:
- Functions taking a `(void)` argument list have also been changed to
`()` because this is not needed and shows up in the same grep
command.
2020-12-21 00:09:48 +01:00
Brendan Coles
5ed7ca3627
Applications: Use GUI::Icon::default_icon to set application icon
2020-11-02 21:06:17 +01:00
asynts
97660ad46c
QuickShow: Use new format functions.
2020-10-06 15:28:39 +02:00
Tibor Nagy
59a0e5ba1e
Applications: Paint transparency grids through StylePainter
2020-09-26 00:00:08 +02:00
Andreas Kling
00bdb74c84
QuickShow: Allow copying the current bitmap to the clipboard :^)
2020-09-05 16:53:30 +02:00
Andreas Kling
27d3971ba6
QuickShow: Disown child process after spawning
2020-08-04 18:17:16 +02:00
Peter Elliott
4bf4a071a6
Applications: Stop setting initial window location
...
This will let the WindowManager choose the location of the window
2020-08-01 08:06:48 +02:00
Matthew Olsson
335916d8db
LibGfx: Templatize Point, Size, and Rect
2020-07-27 01:06:26 +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
Andreas Kling
1dd1595043
LibGUI: Make GUI::Application a Core::Object
...
Having this on the stack makes whole-program teardown iffy. Turning it
into a Core::Object allows anyone who needs it to extends its lifetime.
2020-07-04 14:05:57 +02:00
Nico Weber
12cbc4ad0d
Everywhere: Replace some uses of fork/exec with posix_spawn
...
It's less code, and it's potentially more efficient once
posix_spawn is a real syscall.
2020-06-29 12:04:27 +02:00
Hüseyin ASLITÜRK
d28a824d4c
QuickShow: Fix for zooming with mouse wheel ( #2650 )
...
Fixes #2648 .
2020-06-28 00:04:11 +02:00
Hüseyin ASLITÜRK
0001bbf182
QuickShow:If image is larger then window size resize it to fit the image
2020-06-18 23:18:11 +02:00
Hüseyin ASLITÜRK
79de1a33cf
QuickShow: Add a new "Set as desktop wallpaper" action under Image menu
2020-06-18 23:18:11 +02:00
Hüseyin ASLITÜRK
ea1ebe8662
QuickShow: Add reset zoom action to toolbar
...
When zoom reset also reset pan origin
2020-06-16 14:42:18 +02:00
Hüseyin ASLITÜRK
bf3d98012a
QuickShow: Switch to full screen mode on double click
...
More respect to user behavior on image viewers :)
2020-06-16 14:42:18 +02:00
Hüseyin ASLITÜRK
3a903babee
QuickShow: Use new Bitmap::is_path_a_supported_image_format method
2020-06-15 22:42:23 +02:00
Andreas Kling
116cf92156
LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize
...
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much
better visual clue about what type of metric is being used.
2020-06-10 10:59:04 +02:00
Sergey Bugaev
450a2a0f9c
Build: Switch to CMake :^)
...
Closes https://github.com/SerenityOS/serenity/issues/2080
2020-05-14 20:15:18 +02:00
Hüseyin ASLITÜRK
679702045d
QuickShow: Add gif files to navigation file list
2020-04-26 18:44:20 +02:00
Linus Groh
fd5f05079d
QuickShow: Properly hide toolbar on toggle action
...
Similar to fullscreen mode we need to hide the toolbar's container.
2020-04-24 17:00:00 +02:00
Linus Groh
d86d73f6e8
QuickShow: Hide toolbar container in fullscreen mode
...
If we just hide the toolbar itself, its container is still visible and
taking up space at the top of the screen.
2020-04-24 17:00:00 +02:00
Andreas Kling
2921793c01
QuickShow: Draw GUI::Frame parts of QSWidget
...
We were forgetting to draw the frame. :^)
2020-04-23 19:12:50 +02:00
Andreas Kling
0af5e0b9f8
Applications: Tweak main layout spacing and background
2020-04-23 18:30:59 +02:00
Andreas Kling
ab336e895f
LibGUI: Add a ToolBarContainer widget and put most ToolBars in one
...
This mimics the Explorer toolbar container from Windows 2000 and looks
pretty neat! :^)
2020-04-23 17:44:49 +02:00
Andreas Kling
52a250cb61
LibGUI: Make MenuBar a Core::Object
...
This makes it show up in Inspector with all the menus inside it. :^)
2020-04-21 16:19:18 +02:00
Hüseyin ASLITÜRK
b1e8cc22bd
QuickShow: Small code edits to fit standards
2020-04-12 18:08:11 +02:00
Hüseyin ASLITÜRK
70873fdf02
QuickShow: Toolbar for who love to use mouse
2020-04-12 18:08:11 +02:00
Hüseyin ASLITÜRK
6c1af174a1
QuickShow: Add Delete action
...
Delete current file from file system.
2020-04-12 18:08:11 +02:00
Hüseyin ASLITÜRK
f88ceb872a
QuickShow: Use Core::ArgsParser to handle parameters
2020-04-12 18:08:11 +02:00
Hüseyin ASLITÜRK
e0bf57d81f
QuickShow: Add Fullscreen, Zoom options to View menu
2020-04-12 18:08:11 +02:00
Hüseyin ASLITÜRK
d79c81a179
QuickShow: Rotate image left and right, flip vertical and horizontal
2020-04-12 18:08:11 +02:00
Hüseyin ASLITÜRK
2689fdf1d8
QuickShow: Browse the files in the same folder
2020-04-12 18:08:11 +02:00
Tibor Nagy
63b11e094d
QuickShow: Miscellaneous improvements
...
Major changes are:
The layout and mouse handling has been rewritten to always center
images in the window.
QuickShow now accepts multiple images on drag and drop. The first
image gets opened in the current window, further images are opened in
new processes.
QSWidget now loads images on its own with QSWidget::load_from_file().
An on_drop callback has been introduced for QSWidget.
Added an open menu.
Added an about box and placeholder icons to the application.
QuickShow now starts without loading the sunset-retro wallpaper.
2020-04-06 09:04:15 +02:00
Tibor Nagy
a4f6f8e0e7
QuickShow: Use checkerboard background to show transparency
2020-04-05 15:30:53 +02:00
Tibor Nagy
192513ec33
QuickShow: Fix crash on startup
...
QSWidget::relayout get triggered before setting a bitmap to display
while setting the widget as the main widget of the window.
I've added a null check to the paint event too to make sure the
widget works with no bitmap set.
2020-04-05 09:36:46 +02:00
Andreas Kling
26eeaef0a8
LibGUI: Add MenuBar::add_menu(name)
...
This allows us to construct menus in a more natural way:
auto& file_menu = menubar->add_menu("File");
file_menu.add_action(...);
Instead of the old way:
auto file_menu = GUI::Menu::construct();
file_menu->add_action(...);
menubar->add_menu(file_menu);
2020-04-04 12:58:05 +02:00
Tibor Nagy
f347dd5c5e
Applications: Use "Document - AppName" window title format
...
Fixes #1444
2020-03-13 23:30:12 +01:00
Andreas Kling
0f3e57a6fb
LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clients
2020-03-04 14:26:16 +01:00
Andreas Kling
c5d913970a
LibGUI: Remove parent parameter to GUI::Widget constructor
2020-02-23 12:27:53 +01:00
Andreas Kling
bfd86c4631
LibGUI: Make GUI::Frame have the 2px sunken container look by default
...
The overwhelming majority of GUI::Frame users set the same appearance,
so let's just make it the default.
2020-02-23 11:10:52 +01:00
Andreas Kling
3fe2640c8c
LibGfx: Add forward declaration header
...
This patch adds <LibGfx/Forward.h> with forward declarations for Gfx.
2020-02-14 23:31:18 +01:00
Andreas Kling
814d59f462
LibGUI: Port the drag&drop code to Core::MimeData
2020-02-14 13:18:59 +01:00
Andreas Kling
6a9cc66b97
LibGUI: Remove leading G from filenames
2020-02-06 20:33:02 +01:00
Andreas Kling
5c06c32df4
LibGfx: Prefer using Gfx::Bitmap::load_from_file instead of load_png()
...
Code that just wants to open a Gfx::Bitmap from a file should not be
calling the PNG codec directly.
2020-02-06 13:39:17 +01:00
Andreas Kling
f8b00aa290
LibGfx: Unpublish Gfx::Size from the global namespace
2020-02-06 13:32:14 +01:00
Andreas Kling
9b87843af1
LibGfx: Unpublish Gfx::Point from global namespace
2020-02-06 13:08:32 +01:00
Andreas Kling
c39d44fc2e
LibGfx: Rename GraphicsBitmap.{cpp,h} => Bitmap.{cpp,h}
2020-02-06 12:07:05 +01:00