mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
draft history navigation
This commit is contained in:
parent
ca4f1c5b0e
commit
769ef576f6
3 changed files with 120 additions and 9 deletions
|
|
@ -26,8 +26,13 @@ namespace app::browser::main::tab::page::navbar
|
|||
bool permanent; // save in database (on application close) @TODO
|
||||
};
|
||||
|
||||
// Define navigation history storage
|
||||
std::vector<Memory> memory;
|
||||
std::vector<Memory>::iterator memory_index;
|
||||
int index = 0;
|
||||
|
||||
// Private helpers
|
||||
Memory & get_memory_back();
|
||||
Memory & get_memory_forward();
|
||||
|
||||
// Components
|
||||
history::Back * historyBack;
|
||||
|
|
@ -37,6 +42,7 @@ namespace app::browser::main::tab::page::navbar
|
|||
|
||||
History();
|
||||
|
||||
// Actions
|
||||
void back();
|
||||
void forward();
|
||||
|
||||
|
|
@ -45,6 +51,14 @@ namespace app::browser::main::tab::page::navbar
|
|||
);
|
||||
|
||||
void refresh();
|
||||
|
||||
// Getters
|
||||
bool has_memory_back();
|
||||
bool has_memory_forward();
|
||||
|
||||
// Copying getters (to keep private members encapsulation)
|
||||
Glib::ustring make_memory_back_request();
|
||||
Glib::ustring make_memory_forward_request();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue