diff --git a/src/browser/main/tab/page/navigation/base/mod.rs b/src/browser/main/tab/page/navigation/base/mod.rs index 0ae47509..ecb2ef1e 100644 --- a/src/browser/main/tab/page/navigation/base/mod.rs +++ b/src/browser/main/tab/page/navigation/base/mod.rs @@ -17,6 +17,11 @@ impl Base { } } + // Actions + pub fn update(&self) { + todo!() + } + // Getters pub fn widget(&self) -> &Button { &self.widget diff --git a/src/browser/main/tab/page/navigation/bookmark/mod.rs b/src/browser/main/tab/page/navigation/bookmark/mod.rs index 0535b338..f469283e 100644 --- a/src/browser/main/tab/page/navigation/bookmark/mod.rs +++ b/src/browser/main/tab/page/navigation/bookmark/mod.rs @@ -17,6 +17,11 @@ impl Bookmark { } } + // Actions + pub fn update(&self) { + todo!() + } + // Getters pub fn widget(&self) -> &Button { &self.widget diff --git a/src/browser/main/tab/page/navigation/history/back/mod.rs b/src/browser/main/tab/page/navigation/history/back/mod.rs index f3f02fb4..0adc72e1 100644 --- a/src/browser/main/tab/page/navigation/history/back/mod.rs +++ b/src/browser/main/tab/page/navigation/history/back/mod.rs @@ -17,6 +17,11 @@ impl Back { } } + // Actions + pub fn update(&self) { + todo!() + } + // Getters pub fn widget(&self) -> &Button { &self.widget diff --git a/src/browser/main/tab/page/navigation/history/forward/mod.rs b/src/browser/main/tab/page/navigation/history/forward/mod.rs index 40233f18..b92ad116 100644 --- a/src/browser/main/tab/page/navigation/history/forward/mod.rs +++ b/src/browser/main/tab/page/navigation/history/forward/mod.rs @@ -16,6 +16,11 @@ impl Forward { } } + // Actions + pub fn update(&self) { + todo!() + } + // Getters pub fn widget(&self) -> &Button { &self.widget diff --git a/src/browser/main/tab/page/navigation/history/mod.rs b/src/browser/main/tab/page/navigation/history/mod.rs index 64c904f9..f1f7e9e9 100644 --- a/src/browser/main/tab/page/navigation/history/mod.rs +++ b/src/browser/main/tab/page/navigation/history/mod.rs @@ -8,6 +8,8 @@ use gtk::{Box, Orientation}; pub struct History { widget: Box, + back: Back, + forward: Forward, } impl History { @@ -28,7 +30,17 @@ impl History { widget.append(back.widget()); widget.append(forward.widget()); - Self { widget } + Self { + widget, + back, + forward, + } + } + + // Actions + pub fn update(&self) { + self.back.update(); + self.forward.update(); } // Getters diff --git a/src/browser/main/tab/page/navigation/mod.rs b/src/browser/main/tab/page/navigation/mod.rs index ea99535d..11e6fc5d 100644 --- a/src/browser/main/tab/page/navigation/mod.rs +++ b/src/browser/main/tab/page/navigation/mod.rs @@ -13,7 +13,14 @@ use request::Request; use gtk::{prelude::BoxExt, Box, Orientation}; pub struct Navigation { + // GTK widget: Box, + // Components + base: Base, + history: History, + reload: Reload, + request: Request, + bookmark: Bookmark, } impl Navigation { @@ -42,7 +49,23 @@ impl Navigation { widget.append(bookmark.widget()); // Result - Self { widget } + Self { + widget, + base, + history, + reload, + request, + bookmark, + } + } + + // Actions + pub fn update(&self) { + self.base.update(); + self.history.update(); + self.reload.update(); + self.request.update(); + self.bookmark.update(); } // Getters diff --git a/src/browser/main/tab/page/navigation/reload/mod.rs b/src/browser/main/tab/page/navigation/reload/mod.rs index b1d6a132..24d111b6 100644 --- a/src/browser/main/tab/page/navigation/reload/mod.rs +++ b/src/browser/main/tab/page/navigation/reload/mod.rs @@ -17,6 +17,11 @@ impl Reload { } } + // Actions + pub fn update(&self) { + todo!() + } + // Getters pub fn widget(&self) -> &Button { &self.widget diff --git a/src/browser/main/tab/page/navigation/request/mod.rs b/src/browser/main/tab/page/navigation/request/mod.rs index 65e0ecda..5f920afd 100644 --- a/src/browser/main/tab/page/navigation/request/mod.rs +++ b/src/browser/main/tab/page/navigation/request/mod.rs @@ -16,6 +16,11 @@ impl Request { } } + // Actions + pub fn update(&self) { + todo!() + } + // Getters pub fn widget(&self) -> &Entry { &self.widget