mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
add page number argument
This commit is contained in:
parent
9be2ba6c32
commit
24ffe358c4
3 changed files with 37 additions and 8 deletions
|
|
@ -98,11 +98,31 @@ void Tab::close_all()
|
|||
}
|
||||
}
|
||||
|
||||
void Tab::history_back()
|
||||
{} // @TODO
|
||||
void Tab::history_back(
|
||||
const int & PAGE_NUMBER
|
||||
) {
|
||||
auto tabPage = get_tabPage(
|
||||
PAGE_NUMBER
|
||||
);
|
||||
|
||||
void Tab::history_forward()
|
||||
{} // @TODO
|
||||
// @TODO tabPage->back()
|
||||
|
||||
// Refresh children widgets
|
||||
tabPage->refresh();
|
||||
}
|
||||
|
||||
void Tab::history_forward(
|
||||
const int & PAGE_NUMBER
|
||||
) {
|
||||
auto tabPage = get_tabPage(
|
||||
PAGE_NUMBER
|
||||
);
|
||||
|
||||
// @TODO tabPage->forward()
|
||||
|
||||
// Refresh children widgets
|
||||
tabPage->refresh();
|
||||
}
|
||||
|
||||
void Tab::refresh(
|
||||
const int & PAGE_NUMBER
|
||||
|
|
|
|||
|
|
@ -54,8 +54,13 @@ namespace app::browser::main
|
|||
void close_right();
|
||||
void close_all();
|
||||
|
||||
void history_back();
|
||||
void history_forward();
|
||||
void history_back(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
||||
void history_forward(
|
||||
const int & PAGE_NUMBER
|
||||
);
|
||||
|
||||
void refresh(
|
||||
const int & PAGE_NUMBER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue