aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIListGroup.cpp
diff options
context:
space:
mode:
authorLars Op den Kamp <lars@opdenkamp.eu>2010-10-16 15:07:20 +0200
committerLars Op den Kamp <lars@opdenkamp.eu>2011-01-04 12:19:41 +0100
commit2c81a1063d956cbe49b3460076b1ce3ef6505518 (patch)
treed220a48c74ef86d608bc40d432ce96f046504899 /guilib/GUIListGroup.cpp
parent07db21c48d60933b45c702d333572ed8f4629fdc (diff)
merge pvr-testing2 svn rev 32591 into trunk
Diffstat (limited to 'guilib/GUIListGroup.cpp')
-rw-r--r--guilib/GUIListGroup.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/guilib/GUIListGroup.cpp b/guilib/GUIListGroup.cpp
index 215e2212f2..c27a6dbf62 100644
--- a/guilib/GUIListGroup.cpp
+++ b/guilib/GUIListGroup.cpp
@@ -111,6 +111,50 @@ void CGUIListGroup::UpdateInfo(const CGUIListItem *item)
}
}
+void CGUIListGroup::EnlargeWidth(float difference)
+{
+ // Alters the width of the controls that have an ID of 1
+ for (iControls it = m_children.begin(); it != m_children.end(); it++)
+ {
+ CGUIControl *child = *it;
+ if (child->GetID() >= 1 && child->GetID() <= 14)
+ {
+ if (child->GetID() == 1) // label
+ {
+ child->SetWidth(child->GetWidth() + difference - 10);
+ child->SetVisible(child->GetWidth() > 10); ///
+ }
+ else
+ {
+ child->SetWidth(child->GetWidth() + difference);
+ }
+ }
+ }
+ SetInvalid();
+}
+
+void CGUIListGroup::EnlargeHeight(float difference)
+{
+ // Alters the width of the controls that have an ID of 1
+ for (iControls it = m_children.begin(); it != m_children.end(); it++)
+ {
+ CGUIControl *child = *it;
+ if (child->GetID() >= 1 && child->GetID() <= 14)
+ {
+ if (child->GetID() == 1) // label
+ {
+ child->SetHeight(child->GetHeight() + difference);
+ child->SetVisible(child->GetHeight() > 10); ///
+ }
+ else
+ {
+ child->SetHeight(child->GetHeight() + difference);
+ }
+ }
+ }
+ SetInvalid();
+}
+
void CGUIListGroup::SetFocusedItem(unsigned int focus)
{
for (iControls it = m_children.begin(); it != m_children.end(); it++)