Nefo Fortressia
b53915afa0
refactor: set unused parameters in TabLabel as unused
2021-12-18 17:30:28 +07:00
Nefo Fortressia
9b99932fdd
refactor: use match when processing EchidnaCoreEditor's initial file
...
Just like in 8e31be7
.
2021-12-18 17:29:39 +07:00
Nefo Fortressia
8e31be7e47
refactor: don't unwrap tab label' childs and use match when prepending it
...
If statements are for booleans, matches are intended for Options like these.
See: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
2021-12-18 17:21:50 +07:00
Nefo Fortressia
10ae0cf783
feat: implement Default for EchidnaSidebar
...
EchidnaSidebar doesn't take any parameters, thus allowing Default to be easily implemented on it.
2021-12-18 17:17:15 +07:00
Nefo Fortressia
e3b330a57c
fix: activity views not appearing
...
Merge branch 'feat/activitybar' into 'main'
See merge request EchidnaHQ/Echidna!11
2021-12-17 02:38:12 +00:00
Nefo Fortressia
d98266255a
refactor: use gtk::show_uri() instead of webbrowser crate
...
Merge branch 'refactor/gtk_show_uri_on_window' into 'main'
See merge request EchidnaHQ/Echidna!17
2021-12-17 02:32:51 +00:00
Nefo Fortressia
c1193df8a2
refactor: make tab label their own widget
...
Merge branch 'refactor/closable-tabs' into 'main'
See merge request EchidnaHQ/Echidna!15
2021-12-17 02:29:51 +00:00
Nefo Fortressia
4583f993ab
refactor: reexport functionalities to the crate for easier importing
...
Merge branch 'refactor/exports' into 'main'
See merge request EchidnaHQ/Echidna!13
2021-12-17 02:29:11 +00:00
Nefo Fortressia
3c9b665cbf
fix: fix unexpected } in workspace.rs
...
Merge branch 'fix/unexpected-curly-bracket' into 'main'
See merge request EchidnaHQ/Echidna!18
2021-12-17 02:26:44 +00:00
Nefo Fortressia
38f072617f
refactor: use GtkFileChooserNative for file dialogs
...
Merge branch 'refactor/file-chooser-native' into 'main'
Closes #22
See merge request EchidnaHQ/Echidna!19
2021-12-16 10:17:44 +00:00
Nefo Fortressia
cfe8c4dbe4
refactor: use GtkFileChooserNative for file dialogs
...
GtkFileChooserNative uses the platform's APIs, and thus the Portal API.
This is important since we want to integrate this well with Flatpak.
See:
https://docs.flatpak.org/en/latest/portals-gtk.html
2021-12-14 08:45:21 +07:00
Nefo Fortressia
7478d894ea
fix: fix unexpected } in workspace.rs
...
I think this is due to git add -p mistakes when I did 1b9f20b
.
Not affecting anything, as workspace.rs is still WIP.
2021-12-14 08:29:48 +07:00
Nefo Fortressia
92f6770876
refactor: use gtk::show_uri() instead of webbrowser crate
2021-12-13 12:30:43 +07:00
Nefo Fortressia
b9a0719750
refactor: migrate panic!() usage to Rust 2021
...
This commit refactors code to conform to some changes in Rust 2021:
- The panic!() macro now uses format_args!() like println!().
- The usage of panic!(x) is now deprecated if x is not a string literal.
See:
https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html
2021-12-13 11:25:10 +07:00
Nefo Fortressia
0de1d86494
refactor: update all Git links to the GitLab repo
...
Merge branch 'refactor/gitlab' into 'main'
Closes #9
See merge request EchidnaHQ/Echidna!10
2021-11-16 07:56:42 +00:00
Nefo Fortressia
18ac470c47
refactor: make tab label their own widget
...
This helps with downcasting which greatly helps with type safety.
2021-11-15 07:14:59 +07:00
Nefo Fortressia
8a9c414aee
refactor: reexport component preludes
2021-11-12 20:20:48 +07:00
Nefo Fortressia
fb0a4e731d
refactor: reexport components in components/mod.rs
2021-11-12 19:45:19 +07:00
Nefo Fortressia
044414fa06
style: reorder import order in window/mod.rs
2021-11-12 16:56:45 +07:00
Nefo Fortressia
89cc40cdcb
refactor: update all Git links to the GitLab repo
2021-11-10 16:32:40 +07:00
Nefo Fortressia
3f80738855
fix: activity views not appearing
2021-11-09 05:16:37 +07:00
Nefo Fortressia
3a4792cbfe
style: add license headers to source files
2021-11-08 17:43:08 +07:00
Nefo Fortressia
d54f470a76
refactor: remove placeholder Getting Started page
...
Will be replaced in a future MR.
2021-11-04 17:06:19 +07:00
Nefo Fortressia
af347c8962
feat: make tabs closeable
...
Not yet implemented for the placeholder Getting Started page.
2021-11-03 17:06:51 +07:00
Nefo Fortressia
1b9f20b648
refactor: switch to .expect() from match
...
Using .expect() for Options and Results add more readability to the
code.
2021-11-01 13:57:04 +07:00
Nefo Fortressia
9594ed6539
style: format files with Rustfmt
2021-10-31 17:30:19 +07:00
Nefo Fortressia
d68a8a8994
style: format files with Rustfmt
2021-10-31 17:00:56 +07:00
Nefo Fortressia
cc4811b01b
chore: add extensions to the barebone sidebar
2021-10-31 16:59:46 +07:00
Nefo Fortressia
390485b3b1
feat: implement win.save-file-as action
2021-10-31 16:58:20 +07:00
Nefo Fortressia
b54780e45e
feat: implement EchidnaWindow::to_imp()
2021-10-31 16:56:54 +07:00
Nefo Fortressia
1296157638
refactor: split action declarations into separate brackets
...
Add more readability to the code.
2021-10-31 15:33:45 +07:00
Voltrex
5945c06ed8
style: separate @extends and @implements into separate lines
...
This add readability to the code, especially as I'm using a tiling window manager.
2021-10-30 04:45:09 +00:00
Nefo Fortressia
839b3d5bb0
feat: implement scrollbar for editor
2021-10-30 11:33:02 +07:00
Nefo Fortressia
48f63a88ea
style: format codebase with cargo fmt
2021-10-29 09:44:36 +07:00
Nefo Fortressia
5e1de2ec96
refactor: remove unused borrows in menubar.rs
2021-10-28 19:19:34 +07:00
Nefo Fortressia
6ad708cfc1
feat: use EchidnaSidebar in window ui file
2021-10-28 17:20:16 +07:00
Nefo Fortressia
6144feb857
refactor: move editor code to a separate EchidnaCoreEditor widget
...
This allows for a more component-based codebase, like those in web development.
Also added barebone minimap and refactored the file loading.
Should have commited them in a separate commit, but I'm just used to overusing git add -p.
2021-10-28 17:17:27 +07:00
Nefo Fortressia
ffdc612e7e
feat: implement barebone features for Sidebar widget
2021-10-28 17:11:14 +07:00
Nefo Fortressia
fc27583714
fix: open_file listener passing window not as a ref
...
FileImplementedEditor::action_open_file() requires &self as an argument.
2021-10-26 16:52:49 +07:00
Nefo Fortressia
6c6afa740f
style: format source files with Rustfmt tooling
2021-10-26 16:46:41 +07:00
Nefo Fortressia
8c05235e13
refactor: simplify FileImplementedEditor::action_open_file()
...
No need the 'window' parameter as we can just use &self
2021-10-26 16:44:40 +07:00
Nefo Fortressia
52d5b5e486
style: add missing license headers
...
The MPL is a file-based license, rather than a codebase-based license.
Each files need to be marked as MPL.
If we don't do mark them, they may cause confusion.
2021-10-24 16:43:35 +07:00
Nefo Fortressia
385f2dda32
refactor: move all traits to EchidnaWindow struct
...
Before, all the traits are implemented for EchidnaApplication.
This is added to better support using the app with many windows open.
EchidnaApplication may be obsolete now, but I'm not removing it for now.
2021-10-24 14:20:53 +07:00
Nefo Fortressia
3408ad2830
refactor: rewrite in Rust
2021-10-18 15:02:41 +07:00