Andreas Kling
f0349323c4
LibGUI: Don't require passing model to FileSystemModel::Node APIs
...
The Node API was obnoxiously requiring you to pass the model into it
all the time, simply because nodes could not find their way back to
the containing model. This patch adds a back-reference to the model
and simplifies the API.
2020-08-17 22:02:21 +02:00
Andreas Kling
a1e381a0f8
LibGUI: Move GUI::Model::Role to GUI::ModelRole
...
This is preparation for using ModelRole in the ModelIndex API.
2020-08-16 16:44:09 +02:00
Andreas Kling
3dd15da7b1
LibGUI: Move file icon lookup into a separate FileIconProvider
...
Let's get it out of FileSystemModel so you can look up a nice icon for
a path without needing a model.
2020-08-12 20:41:13 +02:00
Andreas Kling
dc696ba85c
LibGUI: Show a special icon for the home directory in FileSystemModel
2020-07-19 21:37:19 +02:00
Andreas Kling
9710c9742c
LibGUI+FileManager: Add setting for showing/hiding dotfiles
...
GUI::FileSystemModel can now be told to display (or not display) files
whose name start with a dot (other than . and ..)
2020-07-19 21:15:00 +02:00
Sergey Bugaev
5fd8dbacb1
LibGUI+FileManager: Fix forgetting to map sorting proxy model indexes
...
Also assert indexes are valid in a few more places.
Finally fixes https://github.com/SerenityOS/serenity/issues/1440 and
https://github.com/SerenityOS/serenity/issues/2787 :^)
2020-07-15 13:41:46 +02:00
thankyouverycool
deceb91c48
FileManager: Show an open folder icon for the selected directory
...
The currently selected directory now displays an open folder icon
in the directory tree.
2020-07-10 19:44:18 +02:00
Andreas Kling
0b9efc04b5
LibGUI: Sort FileSystemModel alphabetically internally
...
This just makes everything nicer.
2020-07-04 20:33:23 +02:00
Sergey Bugaev
0674d9362b
LibGUI: Use Core::File::read_link()
2020-06-17 15:02:03 +02:00
Hüseyin ASLITÜRK
0799835e15
LibGUI: 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
602c3fdb3a
AK: Rename FileSystemPath -> LexicalPath
...
And move canonicalized_path() to a static method on LexicalPath.
This is to make it clear that FileSystemPath/canonicalized_path() only
perform *lexical* canonicalization.
2020-05-26 14:35:10 +02:00
Andreas Kling
2adb0a07e5
LibGUI: Get rid of Model::ColumnMetadata and always use auto-sizing
...
Auto-sizing of view columns is now enabled by default. This removes the
last remaining need for ColumnMetadata, so this patch gets rid of it.
2020-05-21 19:55:44 +02:00
Andreas Kling
c666c251c8
LibGUI: Replace ColumnMetadata::sortable => Model::is_column_sortable()
...
Now there's only one thing left in ColumnMetadata: the initial width.
2020-05-21 19:55:44 +02:00
Andreas Kling
2e03bded43
LibGUI: Add Model::Role::TextAlignment and remove from ColumnMetadata
2020-05-21 19:55:44 +02:00
Andreas Kling
04187576ff
LibGUI: Models should always specify font via Model::Role::Font
...
This gets rid of one field in ColumnData. The goal is to get rid of all
fields and lose ColumnData entirely.
2020-05-21 19:55:44 +02:00
Hüseyin ASLITÜRK
c9c1d1fae0
LibGUI: Create thumnail for gif files
2020-04-26 18:44:20 +02:00
Linus Groh
9de184d883
LibGUI: Use enumerator macros for filetype icons
2020-04-26 01:12:14 +02:00
angel
451b3fa73c
LibGUI: Added error events to FileSystemModel
...
This will allow us to catch errors early on FileManager
2020-04-22 12:12:32 +02:00
VAN BOSSUYT Nicolas
f85aa8462f
LibGUI: Thumbnail keep the aspect ratio of the original file.
2020-04-07 21:27:31 +02:00
VAN BOSSUYT Nicolas
694e4e9168
Resources: Added filetype icon for object, library, text and unknown.
2020-04-07 21:27:31 +02:00
VAN BOSSUYT Nicolas
5d2bfbd20b
LibGUI: Added the new icons to FileSystemModel.
2020-04-06 14:44:09 +02:00
Shannon Booth
6a3b12664a
LibGUI: Move Icon and FontDatabase into the GUI namespace
...
We also clean up some old references to the old G prefixed GUI classes
This also fixes a potential bug with using: C_OBJECT_ABSTRACT(GAbstractButton)
instead of C_OBJECT_ABSTRACT(AbstractButton)
2020-03-07 01:33:53 +01:00
Shannon Booth
57f1c919df
LibCore: Remove all remaining C prefix references
...
LibCore's GZip is also moved into the Core namespace with this change.
2020-03-07 01:33:53 +01:00
Tibor Nagy
c69686f1b2
LibGUI: Fix group name columns in FileSystemModel
2020-03-05 16:36:05 +01:00
Andreas Kling
ceec1a7d38
AK: Make Vector use size_t for its size and capacity
2020-02-25 14:52:35 +01:00
Andreas Kling
814d59f462
LibGUI: Port the drag&drop code to Core::MimeData
2020-02-14 13:18:59 +01:00
Andreas Kling
8b3864c70a
LibGUI: Have FileSystemModel accept url-list drags onto directories
2020-02-13 21:48:32 +01:00
Andreas Kling
6a9cc66b97
LibGUI: Remove leading G from filenames
2020-02-06 20:33:02 +01:00