diff options
author | Dees_Troy <dees_troy@yahoo.com> | 2013-03-24 14:54:55 +0100 |
---|---|---|
committer | Dees_Troy <dees_troy@yahoo.com> | 2013-03-30 14:56:39 +0100 |
commit | a13d74fc95324c4318fcc95956b07fe593669412 (patch) | |
tree | 74654a9fae5e24e346842da733d68a70c5bfb716 /gui/pages.cpp | |
parent | Add search function to libtar (diff) | |
download | android_bootable_recovery-a13d74fc95324c4318fcc95956b07fe593669412.tar android_bootable_recovery-a13d74fc95324c4318fcc95956b07fe593669412.tar.gz android_bootable_recovery-a13d74fc95324c4318fcc95956b07fe593669412.tar.bz2 android_bootable_recovery-a13d74fc95324c4318fcc95956b07fe593669412.tar.lz android_bootable_recovery-a13d74fc95324c4318fcc95956b07fe593669412.tar.xz android_bootable_recovery-a13d74fc95324c4318fcc95956b07fe593669412.tar.zst android_bootable_recovery-a13d74fc95324c4318fcc95956b07fe593669412.zip |
Diffstat (limited to '')
-rw-r--r-- | gui/pages.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp index c4a65b43a..40de44f79 100644 --- a/gui/pages.cpp +++ b/gui/pages.cpp @@ -1,4 +1,21 @@ -// base_objects.cpp - Source to manage GUI base objects +/* + Copyright 2013 bigbiff/Dees_Troy TeamWin + This file is part of TWRP/TeamWin Recovery Project. + + TWRP is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + TWRP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with TWRP. If not, see <http://www.gnu.org/licenses/>. +*/ +// pages.cpp - Source to manage GUI base objects #include <stdarg.h> #include <stdio.h> @@ -276,6 +293,12 @@ bool Page::ProcessNode(xml_node<>* page, xml_node<>* templates /* = NULL */, int mActions.push_back(element); mInputs.push_back(element); } + else if (type == "partitionlist") + { + GUIPartitionList* element = new GUIPartitionList(child); + mRenders.push_back(element); + mActions.push_back(element); + } else if (type == "template") { if (!templates || !child->first_attribute("name")) |