mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
Short start on directory browsing
This commit is contained in:
@@ -175,6 +175,14 @@ namespace PepperDash.Essentials
|
|||||||
/// 1239
|
/// 1239
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const uint VCKeypadBackspaceVisible = 1239;
|
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
|
// Keyboard
|
||||||
|
|||||||
@@ -24,7 +24,15 @@ namespace PepperDash.Essentials
|
|||||||
/// 1201 - 1230 range of joins for recents list
|
/// 1201 - 1230 range of joins for recents list
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const uint VCRecentListTextStart = 1201;
|
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
|
// Keyboard
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
|
|
||||||
SmartObjectDynamicList RecentCallsList;
|
SmartObjectDynamicList RecentCallsList;
|
||||||
|
|
||||||
|
SmartObjectDynamicList DirectoryList;
|
||||||
|
|
||||||
// These are likely temp until we get a keyboard built
|
// These are likely temp until we get a keyboard built
|
||||||
StringFeedback DialStringFeedback;
|
StringFeedback DialStringFeedback;
|
||||||
StringBuilder DialStringBuilder = new StringBuilder();
|
StringBuilder DialStringBuilder = new StringBuilder();
|
||||||
@@ -344,11 +346,12 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
void SetupRecentCallsList()
|
void SetupRecentCallsList()
|
||||||
{
|
{
|
||||||
var codec = Codec as IHasCallHistory;
|
var codec = Codec as IHasCallHistory;
|
||||||
codec.CallHistory.RecentCallsListHasChanged += (o, a) => RefreshRecentCallsList();
|
|
||||||
if (codec != null)
|
if (codec != null)
|
||||||
{
|
{
|
||||||
|
codec.CallHistory.RecentCallsListHasChanged += (o, a) => RefreshRecentCallsList();
|
||||||
// EVENT??????????????? Pointed at refresh
|
// 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;
|
var codec = Codec as IHasCallHistory;
|
||||||
if (codec != null)
|
if (codec != null)
|
||||||
{
|
{
|
||||||
RecentCallsList = new SmartObjectDynamicList(TriList.SmartObjects[UISmartObjectJoin.VCRecentsList], true, 1200);
|
|
||||||
ushort i = 0;
|
ushort i = 0;
|
||||||
foreach (var c in codec.CallHistory.RecentCalls)
|
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>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user