From 34fb52591a25c0ee2fd855de970727a4dbd0b3e4 Mon Sep 17 00:00:00 2001 From: Nick Bisby Date: Thu, 14 Mar 2019 12:11:05 -0500 Subject: [PATCH] File restructure and some footer work --- components/ConfigurationData.xml | 8 -- components/ConfigurationItem.xml | 51 ------------- components/ConfigurationList.xml | 78 ------------------- components/ConfigurationScene.brs | 58 -------------- components/ConfigurationScene.xml | 23 ------ components/LibItem.xml | 36 --------- components/LibList.xml | 92 ----------------------- components/Library.xml | 7 -- components/LibraryData.xml | 9 --- components/MovieData.xml | 31 -------- components/MovieItemDetails.brs | 114 ---------------------------- components/MovieItemDetails.xml | 48 ------------ components/MovieItemMinimal.xml | 33 -------- components/MovieList.xml | 104 ------------------------- components/Movies.xml | 15 ---- components/Pager.xml | 7 +- components/TVSeasonData.xml | 26 ------- components/TVSeasonList.xml | 92 ----------------------- components/TVShowData.xml | 30 -------- components/TVShowItemDetails.brs | 121 ------------------------------ components/TVShowItemDetails.xml | 47 ------------ components/TVShowList.xml | 104 ------------------------- components/TVShows.xml | 15 ---- source/HelperUtils.brs | 6 +- 24 files changed, 8 insertions(+), 1147 deletions(-) delete mode 100644 components/ConfigurationData.xml delete mode 100644 components/ConfigurationItem.xml delete mode 100644 components/ConfigurationList.xml delete mode 100644 components/ConfigurationScene.brs delete mode 100644 components/ConfigurationScene.xml delete mode 100644 components/LibItem.xml delete mode 100644 components/LibList.xml delete mode 100644 components/Library.xml delete mode 100644 components/LibraryData.xml delete mode 100644 components/MovieData.xml delete mode 100644 components/MovieItemDetails.brs delete mode 100644 components/MovieItemDetails.xml delete mode 100644 components/MovieItemMinimal.xml delete mode 100644 components/MovieList.xml delete mode 100644 components/Movies.xml delete mode 100644 components/TVSeasonData.xml delete mode 100644 components/TVSeasonList.xml delete mode 100644 components/TVShowData.xml delete mode 100644 components/TVShowItemDetails.brs delete mode 100644 components/TVShowItemDetails.xml delete mode 100644 components/TVShowList.xml delete mode 100644 components/TVShows.xml diff --git a/components/ConfigurationData.xml b/components/ConfigurationData.xml deleted file mode 100644 index 1a798b65..00000000 --- a/components/ConfigurationData.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/components/ConfigurationItem.xml b/components/ConfigurationItem.xml deleted file mode 100644 index bf774eab..00000000 --- a/components/ConfigurationItem.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - diff --git a/components/ConfigurationList.xml b/components/ConfigurationList.xml deleted file mode 100644 index ea5404cb..00000000 --- a/components/ConfigurationList.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - diff --git a/components/ConfigurationScene.brs b/components/ConfigurationScene.brs deleted file mode 100644 index fbd76825..00000000 --- a/components/ConfigurationScene.brs +++ /dev/null @@ -1,58 +0,0 @@ -sub init() - m.top.backgroundColor = "#000b35ff" - m.top.backgroundURI = "" - - m.top.setFocus(true) -end sub - -function onKeyEvent(key as String, press as Boolean) as Boolean - if not press then return false - list = m.top.findNode("configOptions") - button = m.top.findNode("submit") - if key = "down" and button.focusedChild = invalid - limit = list.content.getChildren(-1, 0).count() - 1 - - if limit = list.itemFocused - m.top.setFocus(false) - button.setFocus(true) - return true - end if - else if key = "up" and button.focusedChild <> invalid - list.setFocus(true) - return true - end if - return false -end function - -function onDialogButton() - d = m.top.dialog - button_text = d.buttons[d.buttonSelected] - - if button_text = "OK" - m.focused_item.text = d.text - dismiss_dialog() - return true - else if button_text = "Cancel" - dismiss_dialog() - return false - end if -end function - - -sub show_dialog(title as String) - dialog = createObject("roSGNode", "KeyboardDialog") - dialog.title = "Enter the " + m.focused_item.id - dialog.buttons = ["OK", "Cancel"] - - if m.focused_item.text <> "" then - dialog.text = m.focused_item.text - end if - - m.top.dialog = dialog - - dialog.observeField("buttonSelected", "onDialogButton") -end sub - -sub dismiss_dialog() - m.top.dialog.close = true -end sub diff --git a/components/ConfigurationScene.xml b/components/ConfigurationScene.xml deleted file mode 100644 index 6e4499ca..00000000 --- a/components/ConfigurationScene.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - -