summaryrefslogtreecommitdiffstats
path: root/gui/pages.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-12-26 20:53:51 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-12-29 22:39:57 +0100
commit10ae24ff94396c67e773e3ce967bce82cdb9b4f6 (patch)
tree8f8ee4bf0fcc61b3df78a5b39b3893defd189f53 /gui/pages.cpp
parentdo not include stlport headers unless link to it (diff)
downloadandroid_bootable_recovery-10ae24ff94396c67e773e3ce967bce82cdb9b4f6.tar
android_bootable_recovery-10ae24ff94396c67e773e3ce967bce82cdb9b4f6.tar.gz
android_bootable_recovery-10ae24ff94396c67e773e3ce967bce82cdb9b4f6.tar.bz2
android_bootable_recovery-10ae24ff94396c67e773e3ce967bce82cdb9b4f6.tar.lz
android_bootable_recovery-10ae24ff94396c67e773e3ce967bce82cdb9b4f6.tar.xz
android_bootable_recovery-10ae24ff94396c67e773e3ce967bce82cdb9b4f6.tar.zst
android_bootable_recovery-10ae24ff94396c67e773e3ce967bce82cdb9b4f6.zip
Diffstat (limited to '')
-rw-r--r--gui/pages.cpp28
1 files changed, 10 insertions, 18 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp
index 13f3bd7b5..4a65c69e4 100644
--- a/gui/pages.cpp
+++ b/gui/pages.cpp
@@ -1098,6 +1098,11 @@ int PageSet::IsCurrentPage(Page* page)
return ((mCurrentPage && mCurrentPage == page) ? 1 : 0);
}
+std::string PageSet::GetCurrentPage() const
+{
+ return mCurrentPage ? mCurrentPage->GetName() : "";
+}
+
int PageSet::Render(void)
{
int ret;
@@ -1544,6 +1549,11 @@ int PageManager::ChangePage(std::string name)
return ret;
}
+std::string PageManager::GetCurrentPage()
+{
+ return mCurrentSet ? mCurrentSet->GetCurrentPage() : "";
+}
+
int PageManager::ChangeOverlay(std::string name)
{
if (name.empty())
@@ -1560,24 +1570,6 @@ const ResourceManager* PageManager::GetResources()
return (mCurrentSet ? mCurrentSet->GetResources() : NULL);
}
-int PageManager::SwitchToConsole(void)
-{
- PageSet* console = new PageSet(NULL);
-
- mCurrentSet = console;
- return 0;
-}
-
-int PageManager::EndConsole(void)
-{
- if (mCurrentSet && mBaseSet) {
- delete mCurrentSet;
- mCurrentSet = mBaseSet;
- return 0;
- }
- return -1;
-}
-
int PageManager::IsCurrentPage(Page* page)
{
return (mCurrentSet ? mCurrentSet->IsCurrentPage(page) : 0);