diff options
| author | Christian <zerov83@gmail.com> | 2016-02-21 20:39:12 +0100 |
|---|---|---|
| committer | Christian <zerov83@gmail.com> | 2016-02-21 20:39:12 +0100 |
| commit | 6b8c8aec4fe01136b3092981e4a9c5d486d098df (patch) | |
| tree | 5df4b2dc84af1e5d58d50dc394fb747ac52888ac /viewGridNavigator.cpp | |
| parent | 96a27aa661e2e5562dd9fac1b8eadf0304f92da1 (diff) | |
| download | vdr-plugin-plex-6b8c8aec4fe01136b3092981e4a9c5d486d098df.tar.gz vdr-plugin-plex-6b8c8aec4fe01136b3092981e4a9c5d486d098df.tar.bz2 | |
libskindesignerapi 0.1.0 support
Diffstat (limited to 'viewGridNavigator.cpp')
| -rw-r--r-- | viewGridNavigator.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/viewGridNavigator.cpp b/viewGridNavigator.cpp index 95de102..33619ba 100644 --- a/viewGridNavigator.cpp +++ b/viewGridNavigator.cpp @@ -2,6 +2,7 @@ #include <iostream> #include "plexSdOsd.h" #include "pictureCache.h" +#include "tokendefinitions.h" unsigned int cGridElement::AbsoluteGridIdCounter = 0; @@ -44,8 +45,8 @@ void cViewGridNavigator::ReDraw(cGridElement* element) double x, y; element->GetPosition(x, y); element->AddTokens(m_pGrid); - m_pGrid->AddIntToken("columns", m_columns); - m_pGrid->AddIntToken("rows", m_rows); + m_pGrid->AddIntToken((int)eTokenGridInt::columns, m_columns); + m_pGrid->AddIntToken((int)eTokenGridInt::rows, m_rows); double width = 1.0 / m_columns; double height = 1.0 / m_rows; m_pGrid->SetGrid(element->GridElementId(), x, y, width, height); @@ -116,10 +117,10 @@ void cViewGridNavigator::SetGridElementData(cGridElement *obj) obj->SetPosition(x, y); obj->AddTokens(m_pGrid, true, std::bind(&cViewGridNavigator::ReDraw, this, std::placeholders::_1)); // set GridDimensions - m_pGrid->AddIntToken("columns", m_columns); - m_pGrid->AddIntToken("rows", m_rows); - m_pGrid->AddIntToken("position", obj->AbsolutePosition); - m_pGrid->AddIntToken("totalcount", m_vElements.size()); + m_pGrid->AddIntToken((int)eTokenGridInt::columns, m_columns); + m_pGrid->AddIntToken((int)eTokenGridInt::rows, m_rows); + m_pGrid->AddIntToken((int)eTokenGridInt::position, obj->AbsolutePosition); + m_pGrid->AddIntToken((int)eTokenGridInt::totalcount, m_vElements.size()); m_pGrid->SetGrid(obj->GridElementId(), x, y, width, height); obj->InitFinished(); } else { |
