Short start on directory browsing

This commit is contained in:
Heath Volmer
2017-10-03 17:59:00 -06:00
parent 01a9503f47
commit c7cfcbe69e
3 changed files with 39 additions and 3 deletions

View File

@@ -175,6 +175,14 @@ namespace PepperDash.Essentials
/// 1239
/// </summary>
public const uint VCKeypadBackspaceVisible = 1239;
/// <summary>
/// 1240
/// </summary>
public const uint VCDirectoryBackPress = 1240;
/// <summary>
/// 1241 For touching the text area to bring up keyboard
/// </summary>
public const uint VcDirectoryTextEntryPress = 1241;
//******************************************************
// Keyboard

View File

@@ -24,7 +24,15 @@ namespace PepperDash.Essentials
/// 1201 - 1230 range of joins for recents list
/// </summary>
public const uint VCRecentListTextStart = 1201;
// RANGE IN USE
public const uint VCRecentListTextEnd = 1230;
/// <summary>
/// 1301 - 1400
/// </summary>
public const uint VCDirectoryListTextStart = 1301;
// RANGE IN USE
public const uint VCDirectoryListTextEnd = 1400;
//******************************************************
// Keyboard

View File

@@ -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()
{
}
/// <summary>
///
/// </summary>