mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-14 04:57:15 +00:00
Progress on header call status label
This commit is contained in:
parent
41b42dbc8f
commit
bff6d9e68d
4 changed files with 63 additions and 45 deletions
|
|
@ -303,7 +303,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||
/// <returns></returns>
|
||||
public override bool CustomActivate()
|
||||
{
|
||||
CrestronConsole.AddNewConsoleCommand(SendText, "send" + Key, "", ConsoleAccessLevelEnum.AccessOperator);
|
||||
//CrestronConsole.AddNewConsoleCommand(SendText, "send" + Key, "", ConsoleAccessLevelEnum.AccessOperator);
|
||||
CrestronConsole.AddNewConsoleCommand(SetCommDebug, "SetCodecCommDebug", "0 for Off, 1 for on", ConsoleAccessLevelEnum.AccessOperator);
|
||||
CrestronConsole.AddNewConsoleCommand(GetPhonebook, "GetCodecPhonebook", "Triggers a refresh of the codec phonebook", ConsoleAccessLevelEnum.AccessOperator);
|
||||
CrestronConsole.AddNewConsoleCommand(GetBookings, "GetCodecBookings", "Triggers a refresh of the booking data for today", ConsoleAccessLevelEnum.AccessOperator);
|
||||
|
|
|
|||
|
|
@ -447,11 +447,11 @@ namespace PepperDash.Essentials
|
|||
/// <summary>
|
||||
/// 15024
|
||||
/// </summary>
|
||||
public const uint HeaderCallRightButtonVisible = 15024;
|
||||
public const uint HeaderCallStatusRightPositionVisible = 15024;
|
||||
/// <summary>
|
||||
/// 15025
|
||||
/// </summary>
|
||||
public const uint HeaderCallLeftButtonVisible = 15025;
|
||||
public const uint HeaderCallStatusLeftPositionVisible = 15025;
|
||||
/// <summary>
|
||||
/// 15026
|
||||
/// </summary>
|
||||
|
|
@ -459,7 +459,7 @@ namespace PepperDash.Essentials
|
|||
/// <summary>[-
|
||||
/// 15027
|
||||
/// </summary>
|
||||
public const uint HeaderCallButtonPress = 15027;
|
||||
public const uint HeaderCallStatusButtonPress = 15027;
|
||||
/// <summary>
|
||||
/// 15028 The gear button in header
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@ namespace PepperDash.Essentials
|
|||
public HeaderListButton HeaderCallButton { get; private set; }
|
||||
public HeaderListButton HeaderGearButton { get; private set; }
|
||||
|
||||
StringFeedback HeaderCallLabelTextFeedback { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// The parent driver for this
|
||||
/// </summary>
|
||||
|
|
@ -961,6 +963,10 @@ namespace PepperDash.Essentials
|
|||
blankBut.ClearIcon();
|
||||
blankBut.OutputSig.SetSigFalseAction(() => { });
|
||||
}
|
||||
|
||||
// Call Status Label/Button
|
||||
|
||||
//HeaderCallLabel = new S
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -508,6 +508,8 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||
|
||||
CurrentDirectoryResult = (Codec as IHasDirectory).DirectoryRoot;
|
||||
|
||||
SearchKeypadClear();
|
||||
|
||||
DirectoryBackButtonVisibleFeedback.FireUpdate();
|
||||
|
||||
RefreshDirectory();
|
||||
|
|
@ -580,51 +582,60 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||
void RefreshDirectory()
|
||||
{
|
||||
Debug.Console(0, "****** RefreshDirectory!");
|
||||
|
||||
ushort i = 0;
|
||||
foreach (var r in CurrentDirectoryResult.DirectoryResults)
|
||||
{
|
||||
if (i == DirectoryList.MaxCount)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
i++;
|
||||
|
||||
if(r is DirectoryContact)
|
||||
{
|
||||
DirectoryList.SetItemMainText(i, r.Name);
|
||||
|
||||
var dc = r as DirectoryContact;
|
||||
|
||||
DirectoryList.SetItemButtonAction(i, b =>
|
||||
if (CurrentDirectoryResult.DirectoryResults.Count > 0)
|
||||
{
|
||||
ushort i = 0;
|
||||
foreach (var r in CurrentDirectoryResult.DirectoryResults)
|
||||
{
|
||||
if (i == DirectoryList.MaxCount)
|
||||
{
|
||||
if (!b)
|
||||
break;
|
||||
}
|
||||
|
||||
i++;
|
||||
|
||||
if (r is DirectoryContact)
|
||||
{
|
||||
DirectoryList.SetItemMainText(i, r.Name);
|
||||
|
||||
var dc = r as DirectoryContact;
|
||||
|
||||
DirectoryList.SetItemButtonAction(i, b =>
|
||||
{
|
||||
// Refresh the contact methods list
|
||||
RefreshContactMethodsModalList(dc);
|
||||
Parent.PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.MeetingsOrContacMethodsListVisible);
|
||||
}
|
||||
});
|
||||
if (!b)
|
||||
{
|
||||
// Refresh the contact methods list
|
||||
RefreshContactMethodsModalList(dc);
|
||||
Parent.PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.MeetingsOrContacMethodsListVisible);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
else // is DirectoryFolder
|
||||
{
|
||||
DirectoryList.SetItemMainText(i, string.Format("[+] {0}", r.Name));
|
||||
}
|
||||
else // is DirectoryFolder
|
||||
{
|
||||
DirectoryList.SetItemMainText(i, string.Format("[+] {0}", r.Name));
|
||||
|
||||
var df = r as DirectoryFolder;
|
||||
var df = r as DirectoryFolder;
|
||||
|
||||
DirectoryList.SetItemButtonAction(i, b =>
|
||||
{
|
||||
if (!b)
|
||||
{
|
||||
GetDirectoryFolderContents(df);
|
||||
// will later call event handler after folder contents retrieved
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
DirectoryList.Count = i;
|
||||
}
|
||||
else // No results in directory, display message to user
|
||||
{
|
||||
DirectoryList.Count = 1;
|
||||
|
||||
DirectoryList.SetItemMainText(1, "No Results Found");
|
||||
}
|
||||
|
||||
DirectoryList.SetItemButtonAction(i, b =>
|
||||
{
|
||||
if (!b)
|
||||
{
|
||||
GetDirectoryFolderContents(df);
|
||||
// will later call event handler after folder contents retrieved
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
DirectoryList.Count = i;
|
||||
}
|
||||
|
||||
void RefreshContactMethodsModalList(DirectoryContact contact)
|
||||
|
|
@ -907,7 +918,8 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||
SearchStringFeedback.FireUpdate();
|
||||
SearchStringKeypadCheckEnables();
|
||||
|
||||
SetCurrentDirectoryToRoot();
|
||||
if(CurrentDirectoryResult != (Codec as IHasDirectory).DirectoryRoot)
|
||||
SetCurrentDirectoryToRoot();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue