mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update history actions api
This commit is contained in:
parent
9ef5b169d3
commit
0a09de1fdd
12 changed files with 106 additions and 109 deletions
|
|
@ -74,39 +74,22 @@ void Main::tab_close_all()
|
|||
mainTab->close_all();
|
||||
};
|
||||
|
||||
void Main::tab_page_navigation_update(
|
||||
const bool & ADD_HISTORY
|
||||
) {
|
||||
void Main::tab_page_navigation_update() {
|
||||
mainTab->page_navigation_update(
|
||||
mainTab->get_current_page(), // @TODO
|
||||
ADD_HISTORY
|
||||
mainTab->get_current_page() // @TODO
|
||||
);
|
||||
};
|
||||
|
||||
bool Main::tab_page_navigation_history_try_back()
|
||||
void Main::tab_page_navigation_history_back()
|
||||
{
|
||||
const int & PAGE_NUMBER = mainTab->get_current_page();
|
||||
|
||||
if (PAGE_NUMBER >= 0)
|
||||
{
|
||||
return mainTab->page_navigation_history_try_back(
|
||||
PAGE_NUMBER
|
||||
);
|
||||
}
|
||||
|
||||
return false;
|
||||
mainTab->page_navigation_history_back(
|
||||
mainTab->get_current_page() // @TODO
|
||||
);
|
||||
};
|
||||
|
||||
bool Main::tab_page_navigation_history_try_forward()
|
||||
void Main::tab_page_navigation_history_forward()
|
||||
{
|
||||
const int & PAGE_NUMBER = mainTab->get_current_page();
|
||||
|
||||
if (PAGE_NUMBER >= 0)
|
||||
{
|
||||
return mainTab->page_navigation_history_try_forward(
|
||||
PAGE_NUMBER
|
||||
);
|
||||
}
|
||||
|
||||
return false;
|
||||
mainTab->page_navigation_history_forward(
|
||||
mainTab->get_current_page() // @TODO
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue