mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-10 18:34:14 +00:00
draft update action
This commit is contained in:
parent
4486904336
commit
68a97fdc88
@ -17,6 +17,11 @@ impl Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Actions
|
||||||
|
pub fn update(&self) {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
pub fn widget(&self) -> &Button {
|
pub fn widget(&self) -> &Button {
|
||||||
&self.widget
|
&self.widget
|
||||||
|
@ -17,6 +17,11 @@ impl Bookmark {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Actions
|
||||||
|
pub fn update(&self) {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
pub fn widget(&self) -> &Button {
|
pub fn widget(&self) -> &Button {
|
||||||
&self.widget
|
&self.widget
|
||||||
|
@ -17,6 +17,11 @@ impl Back {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Actions
|
||||||
|
pub fn update(&self) {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
pub fn widget(&self) -> &Button {
|
pub fn widget(&self) -> &Button {
|
||||||
&self.widget
|
&self.widget
|
||||||
|
@ -16,6 +16,11 @@ impl Forward {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Actions
|
||||||
|
pub fn update(&self) {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
pub fn widget(&self) -> &Button {
|
pub fn widget(&self) -> &Button {
|
||||||
&self.widget
|
&self.widget
|
||||||
|
@ -8,6 +8,8 @@ use gtk::{Box, Orientation};
|
|||||||
|
|
||||||
pub struct History {
|
pub struct History {
|
||||||
widget: Box,
|
widget: Box,
|
||||||
|
back: Back,
|
||||||
|
forward: Forward,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl History {
|
impl History {
|
||||||
@ -28,7 +30,17 @@ impl History {
|
|||||||
widget.append(back.widget());
|
widget.append(back.widget());
|
||||||
widget.append(forward.widget());
|
widget.append(forward.widget());
|
||||||
|
|
||||||
Self { widget }
|
Self {
|
||||||
|
widget,
|
||||||
|
back,
|
||||||
|
forward,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Actions
|
||||||
|
pub fn update(&self) {
|
||||||
|
self.back.update();
|
||||||
|
self.forward.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
@ -13,7 +13,14 @@ use request::Request;
|
|||||||
use gtk::{prelude::BoxExt, Box, Orientation};
|
use gtk::{prelude::BoxExt, Box, Orientation};
|
||||||
|
|
||||||
pub struct Navigation {
|
pub struct Navigation {
|
||||||
|
// GTK
|
||||||
widget: Box,
|
widget: Box,
|
||||||
|
// Components
|
||||||
|
base: Base,
|
||||||
|
history: History,
|
||||||
|
reload: Reload,
|
||||||
|
request: Request,
|
||||||
|
bookmark: Bookmark,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Navigation {
|
impl Navigation {
|
||||||
@ -42,7 +49,23 @@ impl Navigation {
|
|||||||
widget.append(bookmark.widget());
|
widget.append(bookmark.widget());
|
||||||
|
|
||||||
// Result
|
// 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
|
// Getters
|
||||||
|
@ -17,6 +17,11 @@ impl Reload {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Actions
|
||||||
|
pub fn update(&self) {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
pub fn widget(&self) -> &Button {
|
pub fn widget(&self) -> &Button {
|
||||||
&self.widget
|
&self.widget
|
||||||
|
@ -16,6 +16,11 @@ impl Request {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Actions
|
||||||
|
pub fn update(&self) {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
pub fn widget(&self) -> &Entry {
|
pub fn widget(&self) -> &Entry {
|
||||||
&self.widget
|
&self.widget
|
||||||
|
Loading…
x
Reference in New Issue
Block a user