From c7cfcbe69e315497c1eca6d75c040d3d6e2cc701 Mon Sep 17 00:00:00 2001 From: Heath Volmer Date: Tue, 3 Oct 2017 17:59:00 -0600 Subject: [PATCH] Short start on directory browsing --- .../UI/JoinConstants/UIBoolJoin.cs | 8 ++++++ .../UI/JoinConstants/UIStringlJoin.cs | 8 ++++++ .../VC/EssentialsVideoCodecUiDriver.cs | 26 ++++++++++++++++--- 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/Essentials/PepperDashEssentials/UI/JoinConstants/UIBoolJoin.cs b/Essentials/PepperDashEssentials/UI/JoinConstants/UIBoolJoin.cs index 4d471a54..8e2dd1a7 100644 --- a/Essentials/PepperDashEssentials/UI/JoinConstants/UIBoolJoin.cs +++ b/Essentials/PepperDashEssentials/UI/JoinConstants/UIBoolJoin.cs @@ -175,6 +175,14 @@ namespace PepperDash.Essentials /// 1239 /// public const uint VCKeypadBackspaceVisible = 1239; + /// + /// 1240 + /// + public const uint VCDirectoryBackPress = 1240; + /// + /// 1241 For touching the text area to bring up keyboard + /// + public const uint VcDirectoryTextEntryPress = 1241; //****************************************************** // Keyboard diff --git a/Essentials/PepperDashEssentials/UI/JoinConstants/UIStringlJoin.cs b/Essentials/PepperDashEssentials/UI/JoinConstants/UIStringlJoin.cs index b3a0839e..24b6524e 100644 --- a/Essentials/PepperDashEssentials/UI/JoinConstants/UIStringlJoin.cs +++ b/Essentials/PepperDashEssentials/UI/JoinConstants/UIStringlJoin.cs @@ -24,7 +24,15 @@ namespace PepperDash.Essentials /// 1201 - 1230 range of joins for recents list /// public const uint VCRecentListTextStart = 1201; + // RANGE IN USE + public const uint VCRecentListTextEnd = 1230; + /// + /// 1301 - 1400 + /// + public const uint VCDirectoryListTextStart = 1301; + // RANGE IN USE + public const uint VCDirectoryListTextEnd = 1400; //****************************************************** // Keyboard diff --git a/Essentials/PepperDashEssentials/UIDrivers/VC/EssentialsVideoCodecUiDriver.cs b/Essentials/PepperDashEssentials/UIDrivers/VC/EssentialsVideoCodecUiDriver.cs index a8c82005..4128d15a 100644 --- a/Essentials/PepperDashEssentials/UIDrivers/VC/EssentialsVideoCodecUiDriver.cs +++ b/Essentials/PepperDashEssentials/UIDrivers/VC/EssentialsVideoCodecUiDriver.cs @@ -60,6 +60,8 @@ namespace PepperDash.Essentials.UIDrivers.VC SmartObjectDynamicList RecentCallsList; + SmartObjectDynamicList DirectoryList; + // These are likely temp until we get a keyboard built StringFeedback DialStringFeedback; StringBuilder DialStringBuilder = new StringBuilder(); @@ -344,11 +346,12 @@ namespace PepperDash.Essentials.UIDrivers.VC void SetupRecentCallsList() { var codec = Codec as IHasCallHistory; - codec.CallHistory.RecentCallsListHasChanged += (o, a) => RefreshRecentCallsList(); if (codec != null) { + codec.CallHistory.RecentCallsListHasChanged += (o, a) => RefreshRecentCallsList(); // EVENT??????????????? Pointed at refresh - RefreshRecentCallsList(); + RecentCallsList = new SmartObjectDynamicList(TriList.SmartObjects[UISmartObjectJoin.VCRecentsList], true, 1200); + RefreshRecentCallsList(); } } @@ -360,7 +363,6 @@ namespace PepperDash.Essentials.UIDrivers.VC var codec = Codec as IHasCallHistory; if (codec != null) { - RecentCallsList = new SmartObjectDynamicList(TriList.SmartObjects[UISmartObjectJoin.VCRecentsList], true, 1200); ushort i = 0; foreach (var c in codec.CallHistory.RecentCalls) { @@ -373,6 +375,24 @@ namespace PepperDash.Essentials.UIDrivers.VC } } + void SetupDirectoryList() + { + var codec = Codec as IHasDirectory; + if (codec != null) + { + codec.CallHistory.RecentCallsListHasChanged += (o, a) => RefreshRecentCallsList(); + // EVENT??????????????? Pointed at refresh + DirectoryList = new SmartObjectDynamicList(TriList.SmartObjects[UISmartObjectJoin.VCDirectoryList], + true, 1300); + RefreshDirectory(); + } + } + + void RefreshDirectory() + { + + } + /// /// ///