mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
rename refresh method to update
This commit is contained in:
parent
63da1b1e76
commit
c574d6e8bf
21 changed files with 31 additions and 31 deletions
|
|
@ -13,9 +13,9 @@ Browser::Browser(
|
||||||
"refresh",
|
"refresh",
|
||||||
[this]
|
[this]
|
||||||
{
|
{
|
||||||
browserMain->refresh();
|
browserMain->update();
|
||||||
|
|
||||||
browserHeader->refresh(
|
browserHeader->update(
|
||||||
browserMain->get_current_tab_page_title(),
|
browserMain->get_current_tab_page_title(),
|
||||||
browserMain->get_current_tab_page_description()
|
browserMain->get_current_tab_page_description()
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ Header::Header(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Header::refresh(
|
void Header::update(
|
||||||
const Glib::ustring & TITLE,
|
const Glib::ustring & TITLE,
|
||||||
const Glib::ustring & SUBTITLE
|
const Glib::ustring & SUBTITLE
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace app::browser
|
||||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE
|
||||||
);
|
);
|
||||||
|
|
||||||
void refresh(
|
void update(
|
||||||
const Glib::ustring & TITLE,
|
const Glib::ustring & TITLE,
|
||||||
const Glib::ustring & SUBTITLE
|
const Glib::ustring & SUBTITLE
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,9 @@ Main::Main(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void Main::refresh()
|
void Main::update()
|
||||||
{
|
{
|
||||||
mainTab->refresh(
|
mainTab->update(
|
||||||
mainTab->get_current_page()
|
mainTab->get_current_page()
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ namespace app::browser
|
||||||
);
|
);
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void refresh();
|
void update();
|
||||||
void restore();
|
void restore();
|
||||||
void save();
|
void save();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ void Tab::save()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void Tab::refresh(
|
void Tab::update(
|
||||||
const int & PAGE_NUMBER
|
const int & PAGE_NUMBER
|
||||||
) {
|
) {
|
||||||
const auto TAB_PAGE = get_tabPage(
|
const auto TAB_PAGE = get_tabPage(
|
||||||
|
|
@ -144,7 +144,7 @@ void Tab::refresh(
|
||||||
TAB_PAGE->get_title()
|
TAB_PAGE->get_title()
|
||||||
);
|
);
|
||||||
|
|
||||||
TAB_PAGE->refresh();
|
TAB_PAGE->update();
|
||||||
|
|
||||||
action__tab_close_active->set_enabled(
|
action__tab_close_active->set_enabled(
|
||||||
get_n_pages() > 0
|
get_n_pages() > 0
|
||||||
|
|
@ -192,7 +192,7 @@ int Tab::append(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
refresh(
|
update(
|
||||||
PAGE_NUMBER
|
PAGE_NUMBER
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ namespace app::browser::main
|
||||||
const int & PAGE_NUMBER
|
const int & PAGE_NUMBER
|
||||||
);
|
);
|
||||||
|
|
||||||
void refresh(
|
void update(
|
||||||
const int & PAGE_NUMBER
|
const int & PAGE_NUMBER
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,9 @@ Page::Page(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void Page::refresh()
|
void Page::update()
|
||||||
{
|
{
|
||||||
pageNavigation->refresh(
|
pageNavigation->update(
|
||||||
progress_fraction
|
progress_fraction
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ namespace app::browser::main::tab
|
||||||
);
|
);
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void refresh();
|
void update();
|
||||||
|
|
||||||
int save(
|
int save(
|
||||||
const sqlite3_int64 & APP_BROWSER_MAIN_TAB__SESSION__ID
|
const sqlite3_int64 & APP_BROWSER_MAIN_TAB__SESSION__ID
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ Navigation::Navigation(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void Navigation::refresh(
|
void Navigation::update(
|
||||||
const double & PROGRESS_FRACTION
|
const double & PROGRESS_FRACTION
|
||||||
) {
|
) {
|
||||||
// Toggle base button sensibility
|
// Toggle base button sensibility
|
||||||
|
|
@ -95,15 +95,15 @@ void Navigation::refresh(
|
||||||
);
|
);
|
||||||
|
|
||||||
// Refresh history widget
|
// Refresh history widget
|
||||||
navigationHistory->refresh();
|
navigationHistory->update();
|
||||||
|
|
||||||
// Toggle update button sensibility
|
// Toggle update button sensibility
|
||||||
navigationUpdate->refresh(
|
navigationUpdate->update(
|
||||||
navigationRequest->get_text_length() > 0
|
navigationRequest->get_text_length() > 0
|
||||||
);
|
);
|
||||||
|
|
||||||
// Refresh request area (with progressbar)
|
// Refresh request area (with progressbar)
|
||||||
navigationRequest->refresh(
|
navigationRequest->update(
|
||||||
PROGRESS_FRACTION
|
PROGRESS_FRACTION
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ namespace app::browser::main::tab::page
|
||||||
);
|
);
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void refresh(
|
void update(
|
||||||
const double & PROGRESS_FRACTION
|
const double & PROGRESS_FRACTION
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,18 +30,18 @@ History::History(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void History::refresh()
|
void History::update()
|
||||||
{
|
{
|
||||||
Memory match;
|
Memory match;
|
||||||
|
|
||||||
historyBack->refresh(
|
historyBack->update(
|
||||||
try_back(
|
try_back(
|
||||||
match,
|
match,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
historyForward->refresh(
|
historyForward->update(
|
||||||
try_forward(
|
try_forward(
|
||||||
match,
|
match,
|
||||||
false
|
false
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ namespace app::browser::main::tab::page::navigation
|
||||||
const bool & UPDATE_MEMORY_INDEX
|
const bool & UPDATE_MEMORY_INDEX
|
||||||
);
|
);
|
||||||
|
|
||||||
void refresh();
|
void update();
|
||||||
|
|
||||||
void save(); // @TODO save history to the permanent storage
|
void save(); // @TODO save history to the permanent storage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ Back::Back(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Back::refresh(
|
void Back::update(
|
||||||
const bool & ENABLED
|
const bool & ENABLED
|
||||||
) {
|
) {
|
||||||
set_sensitive(
|
set_sensitive(
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace app::browser::main::tab::page::navigation::history
|
||||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__BACK
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__BACK
|
||||||
);
|
);
|
||||||
|
|
||||||
void refresh(
|
void update(
|
||||||
const bool & ENABLED
|
const bool & ENABLED
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ Forward::Forward(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Forward::refresh(
|
void Forward::update(
|
||||||
const bool & ENABLED
|
const bool & ENABLED
|
||||||
) {
|
) {
|
||||||
set_sensitive(
|
set_sensitive(
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace app::browser::main::tab::page::navigation::history
|
||||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__FORWARD
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__FORWARD
|
||||||
);
|
);
|
||||||
|
|
||||||
void refresh(
|
void update(
|
||||||
const bool & ENABLED
|
const bool & ENABLED
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ Request::Request(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void Request::refresh(
|
void Request::update(
|
||||||
const double & PROGRESS_FRACTION
|
const double & PROGRESS_FRACTION
|
||||||
) {
|
) {
|
||||||
// Update progress
|
// Update progress
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ namespace app::browser::main::tab::page::navigation
|
||||||
);
|
);
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
void refresh(
|
void update(
|
||||||
const double & PROGRESS_FRACTION
|
const double & PROGRESS_FRACTION
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ Update::Update(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update::refresh(
|
void Update::update(
|
||||||
const bool & ENABLED
|
const bool & ENABLED
|
||||||
) {
|
) {
|
||||||
set_sensitive(
|
set_sensitive(
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ namespace app::browser::main::tab::page::navigation
|
||||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE
|
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE
|
||||||
);
|
);
|
||||||
|
|
||||||
void refresh(
|
void update(
|
||||||
const bool & ENABLED
|
const bool & ENABLED
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue