Browse Source

rename wrapper mod to window

master
yggverse 2 months ago
parent
commit
d5101a6465
  1. 12
      src/app/browser.rs
  2. 4
      src/app/browser/window.rs
  3. 0
      src/app/browser/window/tab.rs
  4. 0
      src/app/browser/window/tab/label.rs
  5. 0
      src/app/browser/window/tab/label/pin.rs
  6. 0
      src/app/browser/window/tab/label/title.rs
  7. 0
      src/app/browser/window/tab/page.rs
  8. 0
      src/app/browser/window/tab/page/content.rs
  9. 0
      src/app/browser/window/tab/page/content/text.rs
  10. 0
      src/app/browser/window/tab/page/content/text/gemini.rs
  11. 0
      src/app/browser/window/tab/page/content/text/gemini/reader.rs
  12. 0
      src/app/browser/window/tab/page/content/text/gemini/reader/default.css
  13. 0
      src/app/browser/window/tab/page/content/text/gemini/reader/parser.rs
  14. 0
      src/app/browser/window/tab/page/content/text/gemini/reader/parser/header.rs
  15. 0
      src/app/browser/window/tab/page/content/text/gemini/reader/parser/link.rs
  16. 0
      src/app/browser/window/tab/page/content/text/gemini/reader/parser/plain.rs
  17. 0
      src/app/browser/window/tab/page/content/text/plain/reader.rs
  18. 0
      src/app/browser/window/tab/page/meta.rs
  19. 0
      src/app/browser/window/tab/page/navigation.rs
  20. 0
      src/app/browser/window/tab/page/navigation/base.rs
  21. 0
      src/app/browser/window/tab/page/navigation/bookmark.rs
  22. 0
      src/app/browser/window/tab/page/navigation/history.rs
  23. 0
      src/app/browser/window/tab/page/navigation/history/back.rs
  24. 0
      src/app/browser/window/tab/page/navigation/history/forward.rs
  25. 0
      src/app/browser/window/tab/page/navigation/reload.rs
  26. 0
      src/app/browser/window/tab/page/navigation/request.rs

12
src/app/browser.rs

@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
mod database;
mod header;
mod widget;
mod wrapper;
mod window;
use database::Database;
use header::Header;
use widget::Widget;
use wrapper::Wrapper;
use window::Window;
use gtk::{
gio::{AppInfo, AppLaunchContext, SimpleAction},
@ -20,7 +20,7 @@ pub struct Browser { @@ -20,7 +20,7 @@ pub struct Browser {
database: Arc<Database>,
// Components
// header: Arc<Header>,
// wrapper: Arc<Wrapper>,
// window: Arc<Window>,
widget: Arc<Widget>,
}
@ -65,7 +65,7 @@ impl Browser { @@ -65,7 +65,7 @@ impl Browser {
action_tab_pin.clone(),
));
let main = Arc::new(Wrapper::new(
let main = Arc::new(Window::new(
action_tab_page_navigation_base.clone(),
action_tab_page_navigation_history_back.clone(),
action_tab_page_navigation_history_forward.clone(),
@ -254,7 +254,7 @@ impl Browser { @@ -254,7 +254,7 @@ impl Browser {
// Delegate restore action to childs
// @TODO
// self.header.restore(record.id);
// self.main.restore(record.id);
// self.window.restore(record.id);
self.widget.restore(&record.id);
}
}
@ -269,7 +269,7 @@ impl Browser { @@ -269,7 +269,7 @@ impl Browser {
let id = self.database.last_insert_id();
// @TODO
// self.header.save(id);
// self.main.save(id);
// self.window.save(id);
self.widget.save(&id);
}
Err(error) => panic!("{error}"), // @TODO

4
src/app/browser/wrapper.rs → src/app/browser/window.rs

@ -6,12 +6,12 @@ use tab::Tab; @@ -6,12 +6,12 @@ use tab::Tab;
use gtk::{gio::SimpleAction, glib::GString, prelude::BoxExt, Box, Orientation};
pub struct Wrapper {
pub struct Window {
tab: Arc<Tab>,
widget: Box,
}
impl Wrapper {
impl Window {
// Construct
pub fn new(
action_tab_page_navigation_base: Arc<SimpleAction>,

0
src/app/browser/wrapper/tab.rs → src/app/browser/window/tab.rs

0
src/app/browser/wrapper/tab/label.rs → src/app/browser/window/tab/label.rs

0
src/app/browser/wrapper/tab/label/pin.rs → src/app/browser/window/tab/label/pin.rs

0
src/app/browser/wrapper/tab/label/title.rs → src/app/browser/window/tab/label/title.rs

0
src/app/browser/wrapper/tab/page.rs → src/app/browser/window/tab/page.rs

0
src/app/browser/wrapper/tab/page/content.rs → src/app/browser/window/tab/page/content.rs

0
src/app/browser/wrapper/tab/page/content/text.rs → src/app/browser/window/tab/page/content/text.rs

0
src/app/browser/wrapper/tab/page/content/text/gemini.rs → src/app/browser/window/tab/page/content/text/gemini.rs

0
src/app/browser/wrapper/tab/page/content/text/gemini/reader.rs → src/app/browser/window/tab/page/content/text/gemini/reader.rs

0
src/app/browser/wrapper/tab/page/content/text/gemini/reader/default.css → src/app/browser/window/tab/page/content/text/gemini/reader/default.css

0
src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser.rs → src/app/browser/window/tab/page/content/text/gemini/reader/parser.rs

0
src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser/header.rs → src/app/browser/window/tab/page/content/text/gemini/reader/parser/header.rs

0
src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser/link.rs → src/app/browser/window/tab/page/content/text/gemini/reader/parser/link.rs

0
src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser/plain.rs → src/app/browser/window/tab/page/content/text/gemini/reader/parser/plain.rs

0
src/app/browser/wrapper/tab/page/content/text/plain/reader.rs → src/app/browser/window/tab/page/content/text/plain/reader.rs

0
src/app/browser/wrapper/tab/page/meta.rs → src/app/browser/window/tab/page/meta.rs

0
src/app/browser/wrapper/tab/page/navigation.rs → src/app/browser/window/tab/page/navigation.rs

0
src/app/browser/wrapper/tab/page/navigation/base.rs → src/app/browser/window/tab/page/navigation/base.rs

0
src/app/browser/wrapper/tab/page/navigation/bookmark.rs → src/app/browser/window/tab/page/navigation/bookmark.rs

0
src/app/browser/wrapper/tab/page/navigation/history.rs → src/app/browser/window/tab/page/navigation/history.rs

0
src/app/browser/wrapper/tab/page/navigation/history/back.rs → src/app/browser/window/tab/page/navigation/history/back.rs

0
src/app/browser/wrapper/tab/page/navigation/history/forward.rs → src/app/browser/window/tab/page/navigation/history/forward.rs

0
src/app/browser/wrapper/tab/page/navigation/reload.rs → src/app/browser/window/tab/page/navigation/reload.rs

0
src/app/browser/wrapper/tab/page/navigation/request.rs → src/app/browser/window/tab/page/navigation/request.rs

Loading…
Cancel
Save