Definition at line 42 of file videomanager.cpp.
Public Types | |
| enum | ListBehavior { lbNone = 0x0, lbScrollCenter = 0x1, lbWrapList = 0x2 } |
Public Member Functions | |
| ListBehaviorManager (unsigned int window_size=0, int behavior=lbNone, unsigned int item_count=0) | |
| const_iterator | begin () |
| const_iterator | end () |
| void | SetWindowSize (unsigned int window_size) |
| unsigned int | GetWindowSize () const |
| unsigned int | GetWindowIndex () const |
| bool | ItemsAboveWindow () const |
| bool | ItemsBelowWindow () const |
| void | SetItemCount (unsigned int item_count) |
| unsigned int | GetItemCount () const |
| void | SetItemIndex (unsigned int index) |
| unsigned int | GetItemIndex () const |
| void | SetSkipIndex (unsigned int skip=SKIP_MAX) |
| void | Up () |
| void | Down () |
| void | PageUp () |
| void | PageDown () |
Private Member Functions | |
| void | Update (int move_by=0) |
| unsigned int | bounded_index (unsigned int index) |
Private Attributes | |
| unsigned int | m_item_count |
| unsigned int | m_item_index |
| unsigned int | m_skip_index |
| unsigned int | m_window_size |
| unsigned int | m_window_start_index |
| unsigned int | m_window_display_count |
| bool | m_scroll_center |
| bool | m_wrap_list |
Static Private Attributes | |
| static const unsigned int | SKIP_MAX = -1 |
Classes | |
| struct | const_iterator |
| mythvideo_videomanager::ListBehaviorManager::ListBehaviorManager | ( | unsigned int | window_size = 0, |
|
| int | behavior = lbNone, |
|||
| unsigned int | item_count = 0 | |||
| ) | [inline] |
Definition at line 90 of file videomanager.cpp.
| const_iterator mythvideo_videomanager::ListBehaviorManager::begin | ( | ) | [inline] |
Definition at line 101 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::UpdateContents(), and mythvideo_videomanager::SearchListHandler::UpdateContents().
| const_iterator mythvideo_videomanager::ListBehaviorManager::end | ( | ) | [inline] |
Definition at line 106 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::UpdateContents(), and mythvideo_videomanager::SearchListHandler::UpdateContents().
| void mythvideo_videomanager::ListBehaviorManager::SetWindowSize | ( | unsigned int | window_size | ) | [inline] |
Definition at line 112 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::ListHandler(), and mythvideo_videomanager::SearchListHandler::SearchListHandler().
| unsigned int mythvideo_videomanager::ListBehaviorManager::GetWindowSize | ( | ) | const [inline] |
Definition at line 120 of file videomanager.cpp.
| unsigned int mythvideo_videomanager::ListBehaviorManager::GetWindowIndex | ( | ) | const [inline] |
Definition at line 122 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::UpdateContents(), and mythvideo_videomanager::SearchListHandler::UpdateContents().
| bool mythvideo_videomanager::ListBehaviorManager::ItemsAboveWindow | ( | ) | const [inline] |
Definition at line 127 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::UpdateContents(), and mythvideo_videomanager::SearchListHandler::UpdateContents().
| bool mythvideo_videomanager::ListBehaviorManager::ItemsBelowWindow | ( | ) | const [inline] |
Definition at line 132 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::UpdateContents(), and mythvideo_videomanager::SearchListHandler::UpdateContents().
| void mythvideo_videomanager::ListBehaviorManager::SetItemCount | ( | unsigned int | item_count | ) | [inline] |
Definition at line 138 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::OnListChanged(), and mythvideo_videomanager::SearchListHandler::SearchListHandler().
| unsigned int mythvideo_videomanager::ListBehaviorManager::GetItemCount | ( | ) | const [inline] |
Definition at line 147 of file videomanager.cpp.
| void mythvideo_videomanager::ListBehaviorManager::SetItemIndex | ( | unsigned int | index | ) | [inline] |
Definition at line 152 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::SetSelectedItem().
| unsigned int mythvideo_videomanager::ListBehaviorManager::GetItemIndex | ( | ) | const [inline] |
Definition at line 158 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::GetCurrentItem(), mythvideo_videomanager::ListHandler::KeyPress(), and mythvideo_videomanager::SearchListHandler::OnExit().
| void mythvideo_videomanager::ListBehaviorManager::SetSkipIndex | ( | unsigned int | skip = SKIP_MAX |
) | [inline] |
Definition at line 163 of file videomanager.cpp.
Referenced by mythvideo_videomanager::SearchListHandler::SearchListHandler().
| void mythvideo_videomanager::ListBehaviorManager::Up | ( | ) | [inline] |
Definition at line 169 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::KeyPress(), and mythvideo_videomanager::SearchListHandler::KeyPress().
| void mythvideo_videomanager::ListBehaviorManager::Down | ( | ) | [inline] |
Definition at line 174 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::KeyPress(), and mythvideo_videomanager::SearchListHandler::KeyPress().
| void mythvideo_videomanager::ListBehaviorManager::PageUp | ( | ) | [inline] |
Definition at line 179 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::KeyPress(), and mythvideo_videomanager::SearchListHandler::KeyPress().
| void mythvideo_videomanager::ListBehaviorManager::PageDown | ( | ) | [inline] |
Definition at line 184 of file videomanager.cpp.
Referenced by mythvideo_videomanager::ListHandler::KeyPress(), and mythvideo_videomanager::SearchListHandler::KeyPress().
| void mythvideo_videomanager::ListBehaviorManager::Update | ( | int | move_by = 0 |
) | [inline, private] |
Definition at line 190 of file videomanager.cpp.
Referenced by Down(), PageDown(), PageUp(), SetItemCount(), SetItemIndex(), SetSkipIndex(), SetWindowSize(), and Up().
| unsigned int mythvideo_videomanager::ListBehaviorManager::bounded_index | ( | unsigned int | index | ) | [inline, private] |
unsigned int mythvideo_videomanager::ListBehaviorManager::m_item_count [private] |
Definition at line 274 of file videomanager.cpp.
Referenced by bounded_index(), GetItemCount(), ItemsBelowWindow(), SetItemCount(), SetWindowSize(), and Update().
unsigned int mythvideo_videomanager::ListBehaviorManager::m_item_index [private] |
Definition at line 275 of file videomanager.cpp.
Referenced by GetItemIndex(), GetWindowIndex(), SetItemCount(), SetItemIndex(), and Update().
unsigned int mythvideo_videomanager::ListBehaviorManager::m_skip_index [private] |
unsigned int mythvideo_videomanager::ListBehaviorManager::m_window_size [private] |
Definition at line 278 of file videomanager.cpp.
Referenced by GetWindowSize(), PageDown(), PageUp(), SetItemCount(), SetWindowSize(), and Update().
unsigned int mythvideo_videomanager::ListBehaviorManager::m_window_start_index [private] |
Definition at line 279 of file videomanager.cpp.
Referenced by begin(), end(), GetWindowIndex(), ItemsAboveWindow(), ItemsBelowWindow(), SetItemCount(), SetWindowSize(), and Update().
unsigned int mythvideo_videomanager::ListBehaviorManager::m_window_display_count [private] |
Definition at line 280 of file videomanager.cpp.
Referenced by end(), ItemsBelowWindow(), SetItemCount(), SetWindowSize(), and Update().
const unsigned int mythvideo_videomanager::ListBehaviorManager::SKIP_MAX = -1 [static, private] |
1.5.5