Commit Graph

120 Commits (60fc36c8526bc0caf09f7fcd452f70f666c1c1a5)

Author SHA1 Message Date
Nefo Fortressia 02e437b76c
style: format source files with cargo fmt 2021-11-09 05:18:23 +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 9569348767 Merge branch 'feat/closable-tabs' into 'main'
feat: make tabs closeable

Closes #17

See merge request EchidnaHQ/Echidna!9
2021-11-07 12:26:37 +00:00
Nefo Fortressia 569db942a0 chore: add Feature Request issue template 2021-11-07 18:53:19 +07:00
Nefo Fortressia b8503b563a chore: add Bug issue template 2021-11-07 18:51:42 +07:00
Nefo Fortressia 2b2e63d809 feat: ClosableTabImplNotebook::append_closable_tab() 2021-11-06 17:02:28 +07:00
Nefo Fortressia 2ec23a35d5 fix: prepend_closable_tab appending tabs
It should prepend the tabs instead of appending it. 🤦
2021-11-06 17:00:14 +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 8eb2e9c66a refactor: move back workspace.rs to src/components/window
I accidentally commited its move to src/lib. 🤦
2021-11-03 18:53:51 +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 70b8a456e5 Merge branch 'ref/rust' into 'main'
refactor: rewrite codebase to Rust

Closes #2 and #7

See merge request EchidnaHQ/Echidna!8
2021-11-03 09:58:47 +00: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 0a13750970 chore: move to EchidnaHQ's own sourceview bindings
https://gitlab.gnome.org/World/Rust/sourceview5-rs has quite some
features we need missing.

We will contribute some code from our
in-house bindings to them, but for now, we have to switch to our own
bindings.
2021-10-28 08:44:56 +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 4d23860806 chore(.ui): remove ui/window.ui
The file had been replaced by EchidnaWindow's ui file.
2021-10-26 12:06:03 +07:00
Nefo Fortressia 211f2330b5 style(.ui): add missing license header to menu.ui 2021-10-26 12:04:07 +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 b68e93c3d4 refactor: change repo url in about dialog to the GitHub one 2021-10-22 20:04:40 +07:00
Nefo Fortressia 48c87b9214 refactor: remove unecessarily getting the notebook in imp.rs 2021-10-22 19:21:31 +07:00
Nefo Fortressia 842044ddde chore(ui): add win.close to menu.ui 2021-10-22 19:20:38 +07:00
Nefo Fortressia 1e1da03c76 feat: implement app.report-issue and app.search-feature-requests actions 2021-10-22 19:19:23 +07:00
Nefo Fortressia d38ad0627c feat: implement win.close action 2021-10-22 13:16:13 +07:00
Nefo Fortressia 67a1f0057e chore(clippy): set "clippy::style" rule to deny 2021-10-22 10:37:12 +07:00
Nefo Fortressia 78fd553104 feat: implement opening a file to a new editor 2021-10-22 10:36:47 +07:00
Nefo Fortressia 5a610f7be5 refactor: put all workspace-related functions to WorkspaceImplementedEditor trait 2021-10-22 10:36:07 +07:00
Nefo Fortressia e4e226fe81 refactor: put all our own imp::EchidnaEditor methods into EchidnaEditorExt trait 2021-10-22 10:35:14 +07:00
Nefo Fortressia d9c91f3431 refactor: replace menubar code from imp.rs with MenubarImplementedEditor::setup_menubar() 2021-10-22 10:30:55 +07:00
Nefo Fortressia 3c7a4b3bbc chore(ui): add more menus to menu.ui 2021-10-22 10:20:04 +07:00
Nefo Fortressia c62d8ae586 deps: add sourceview5 to deps 2021-10-22 10:13:32 +07:00
Nefo Fortressia c3e76bccb2 feat: import menubar from app/mod.rs 2021-10-22 10:13:14 +07:00
Nefo Fortressia d4670be8b4 chore: add a GtkNotebook to window.ui 2021-10-22 10:12:41 +07:00
Nefo Fortressia 6adbdd38f2 refactor: move menubar code to menubar.rs 2021-10-22 09:44:49 +07:00
Nefo Fortressia 9b56dd086b chore: remove metadata.rs 2021-10-22 09:24:00 +07:00