Skip to content

Commit

Permalink
update for HB-RC-6-PBU-LED
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Apr 2, 2021
1 parent b170c40 commit f2ebcf2
Show file tree
Hide file tree
Showing 75 changed files with 3,597 additions and 1,047 deletions.
8 changes: 7 additions & 1 deletion patchsource/www/rega/esp/side.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
string hm_oucfmTW = "HM-OU-CFM-TW";
string hm_oucmpcb = "HM-OU-CM-PCB";
string hb_oump3led = "HB-OU-MP3-LED";
string hb_rc6led = "HB-RC-6-PBU-LED";
string hm_partyDialog = "HM-CC-RT-DN HM-TC-IT-WM-W-EU HM-CC-VG-1";
string hm_statusDisplay = "HM-Dis-WM55";
string hm_statusDisplayEPaper = "HM-Dis-EP-WM55";
Expand Down Expand Up @@ -457,6 +458,7 @@
integer oucfmTW = chLabel.Find(hm_oucfmTW);
integer oucmpcb = chLabel.Find(hm_oucmpcb);
integer oump3led = chLabel.Find(hb_oump3led);
integer rc6led = chLabel.Find(hb_rc6led);
integer partyDialogDevice = hm_partyDialog.Find(chLabel);
integer statusDisplayDevice = hm_statusDisplay.Find(chLabel);
integer statusDisplayEPaperDevice = hm_statusDisplayEPaper.Find(chLabel);
Expand Down Expand Up @@ -559,6 +561,7 @@
&& (oucfmTW == -1)
&& (oucmpcb == -1)
&& (oump3led == -1)
&& (rc6led == -1)
&& (partyDialogDevice == -1)
&& (statusDisplayDevice == -1)
&& (statusDisplayEPaperDevice == -1)
Expand All @@ -582,7 +585,10 @@
}
if(oump3led != -1) {
Write( '<span class="CLASS02401" onclick="ChangeHBOUCFMValue('#oSD.ID()#');"><img src="/ise/img/notepad.png" /></span>' );
}
}
if(rc6led != -1) {
Write( '<span class="CLASS02401" onclick="ChangeHBRC6LEDValue('#oSD.ID()#');"><img src="/ise/img/notepad.png" /></span>' );
}
if (partyDialogDevice != -1) {
Write( '<span id="setPartyMode" class="CLASS02401" onclick="SetPartyMode(this);"><img src="/ise/img/notepad.png" /></span>' );
}
Expand Down
6 changes: 6 additions & 0 deletions patchsource/www/rega/esp/side.inc-3.45
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
integer iVPT = oSD.DestinationValueParamType();

string hb_oump3led = "HB-OU-MP3-LED";
string hb_rc6led = "HB-RC-6-PBU-LED";
string hb_statusDisplayEPaper = "HB-DIS-EP-42BW";
string hb_statusDisplayEPaperMains = "HB-DIS-EP-42BW-MAINS";
string hb_statusDisplayEPaper75 = "HB-DIS-EP-75BW";
Expand Down Expand Up @@ -467,6 +468,7 @@
string chLabel = oCH.Label();

integer oump3led = chLabel.Find(hb_oump3led);
integer rc6led = chLabel.Find(hb_rc6led);
integer statusHbDisplayEPaperDevice = hb_statusDisplayEPaper.Find(chLabel);
integer statusHbDisplayEPaperDeviceMains = hb_statusDisplayEPaperMains.Find(chLabel);
integer statusHbDisplayEPaperDevice75 = hb_statusDisplayEPaper75.Find(chLabel);
Expand Down Expand Up @@ -581,6 +583,7 @@

if((ouled16 == -1)
&& (oump3led == -1)
&& (rc6led == -1)
&& (statusHbDisplayEPaperDevice == -1)
&& (statusHbDisplayEPaperDeviceMains == -1)
&& (statusHbDisplayEPaperDevice75 == -1)
Expand Down Expand Up @@ -609,6 +612,9 @@
if(oump3led != -1) {
Write( '<span class="CLASS02401" onclick="ChangeHBOUCFMValue('#oSD.ID()#');"><img src="/ise/img/notepad.png" /></span>' );
}
if(rc6led != -1) {
Write( '<span class="CLASS02401" onclick="ChangeHBRC6LEDValue('#oSD.ID()#');"><img src="/ise/img/notepad.png" /></span>' );
}
if (partyDialogDevice != -1) {
Write( '<span id="setPartyMode" class="CLASS02401" onclick="SetPartyMode(this);"><img src="/ise/img/notepad.png" /></span>' );
}
Expand Down
12 changes: 12 additions & 0 deletions patchsource/www/rega/pages/tabs/admin/views/programs.htm
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@
};
};

// HB-RC-6-PBU-LED
ChangeHBRC6LEDValue = function(sdid)
{
iseSingleDestination.reload = false;
dlgResult = "";
CreatePopup(ID_SET_HBRC6LED_MODE, "X:"+sdid);
PopupClose = function()
{
dlgPopup.hide();
ReloadSingleDestination(sdid);
};
};
// MP3 HB Funkgong
ChangeHBOUCFMValue = function(sdid)
{
Expand Down
12 changes: 12 additions & 0 deletions patchsource/www/rega/pages/tabs/admin/views/programs.htm-3.45
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@
};
};

// HB-RC-6-PBU-LED
ChangeHBRC6LEDValue = function(sdid)
{
iseSingleDestination.reload = false;
dlgResult = "";
CreatePopup(ID_SET_HBRC6LED_MODE, "X:"+sdid);
PopupClose = function()
{
dlgPopup.hide();
ReloadSingleDestination(sdid);
};
};
// MP3 HB Funkgong
ChangeHBOUCFMValue = function(sdid)
{
Expand Down
7 changes: 7 additions & 0 deletions patchsource/www/webui/webui.js
Original file line number Diff line number Diff line change
Expand Up @@ -23566,6 +23566,12 @@ iseMessageBox.prototype =
this.setWidth(400);
this.setFile( "/pages/msg/setHBOUCFMMode.htm" );
break;
case ID_SET_HBRC6LED_MODE:
this.setTitle( translateKey("dialogEnterValue") /*"Wert eingeben" */);
this.addToPostBody( 'string type = "'+this.type+'";' );
this.setWidth(400);
this.setFile( "/pages/msg/setHBRC6LEDMode.htm" );
break;
case ID_SET_STATUS_DISPLAY:
this.setTitle( translateKey("dialogEnterValue") /*"Wert eingeben" */);
this.addToPostBody( 'string type = "'+this.type+'";' );
Expand Down Expand Up @@ -24370,6 +24376,7 @@ ID_AUTO_LOGIN_CONFIG = 1018;
ID_PROGRAM_CHOOSER = 1019;
ID_EDIT_SYSVAR = 1021;
ID_SET_HBOUCFM_MODE = 1923;
ID_SET_HBRC6LED_MODE = 1924;
ID_CHOOSE_LED = 1022;
ID_SET_OUCFM_MODE = 1023;
ID_SET_STATUS_DISPLAY = 1024;
Expand Down
Loading

0 comments on commit f2ebcf2

Please sign in to comment.