function createToolbarTopFirstRow() {
|
var items = new Array();
|
|
if (dh_darkUI() && AppButtonFileNew != "0") {
|
items.push(new Array("tbv_new", "'Datei neu'", "TbNew()", "s_new", "", "", 34));
|
}
|
if (AppButtonCloud != "0" && DhMcControlObj.StringValueDest(-561, 0).value === "1") {
|
items.push(new Array("tbv_cloudtree", "'Cloud'", "TbCloudTree()", "cloud", "", "", 34));
|
}
|
if (AppButtonPM != "0" && ProjectManagement == "1") {
|
items.push(new Array("tbv_project_options", "'Projektoptionen'", "TbProjectOptions()", "s_projectoptions", "", "", 34));
|
}
|
if (!dh_darkUI() && AppButtonFileNew != "0") {
|
items.push(new Array("tbv_new", "'Datei neu'", "TbNew()", "s_new", "", "", 34));
|
}
|
if (AppButtonFileOpen != "0" && LoadButtonPrevent == false) {
|
items.push(new Array("tbv_load", "'Öffnen'", "TbSaveLoad(0,0)", "s_open", "", "", 34, "TbSaveLoad(0,1)"));
|
}
|
if (AppButtonFileSave != "0" && SaveButtonPrevent == false) {
|
items.push(new Array("tbv_save", "'Speichern'", "TbSaveLoad(1,0)", "s_save", "", "", 34, "TbSaveLoad(1,1)"));
|
}
|
if (AppButtonPrint != "0" && PrintButtonPrevent == false) {
|
items.push(new Array("tbv_printpreview", "'Druckansicht'", "printbutton()", "ac_print", "", "", 34, "redliningWithCloudId()"));
|
}
|
if (!dh_darkUI() && AppButtonUndo != "0") {
|
items.push(new Array("tbv_undo", "'vorerst 1 Schritt zurück'", "TbUndo()", "s_undo", "", "", 34));
|
}
|
if (AppButtonMail != "0" && eMailSupport == "1") {
|
// Email wird nicht mehr direkt generiert. Stattdessen wird erst ein ConfigMenu geoeffnet wo ausgewaehlt wird ob vorschlag oder Bestellung.
|
if (dh_darkUI()) {
|
items.push(new Array("tbv_share", "'E-Mail'", "shareMenu()", "eMail", "", "", 34));
|
} else {
|
items.push(new Array("tbv_email", "'E-Mail'", "emailMenu()", "eMail", "", "", 34));
|
}
|
|
}
|
if (dh_darkUI() && AppButtonUndo != "0") {
|
items.push(new Array("tbv_undo", "'vorerst 1 Schritt zurück'", "TbUndo()", "s_undo", "", "", 34));
|
}
|
if (AppButtonWalls != "0") {
|
items.push(new Array("tbv_wall", "'Waende'", "Wand();", "wall", "", "", 34));
|
}
|
if (ShowHTML5KataButton) {
|
items.push(new Array("HTML5", "'HTML5Katalog'", "HTML5Kata()", "html5", "", "", 34, "HTML5DevTools()"));
|
}
|
if (WaWiInterfaceType == "cogito") {
|
if (AppButtonExtraWawiIwoFurn) //jl20150703
|
{
|
items.push(new Array("COGITO", "WaWi", "Cogito(window.event)", "wawi_cogito", "", "", 34, "CogitoZwischenabgleich()"));//wd20101021
|
}
|
if (WaWiInterfaceName !== "iwofurn" && WaWiInterfaceName !== "bewidata" && WaWiInterfaceName != "zeg") //jl20150703
|
{
|
items.push(new Array("COGITO", "WaWi", "Cogito(window.event)", "wawi_" + WaWiInterfaceName, "", "", 34, "CogitoZwischenabgleich()"));//wd20101021
|
}
|
}
|
if (WaWiInterfaceName == "bewidata") {
|
items.push(new Array("Moebelpilot", "WaWi", "moebelpilot()", "wawi_bewidata", "", "", 34));//wd20140507
|
}
|
if (WaWiInterfaceName == "zeg") {
|
items.push(new Array("Zeg", "Bestellen", "zeg()", "zeg", "", "", 34));//wd20140507
|
}
|
if (WaWiInterfaceName == "iwofurn" || AppButtonExtraWawiIwoFurn) {
|
items.push(new Array("IWOFURN", "IwoFurn", "iwofurn()", "wawi_IwoFurn", "", "", 34));//wd20140507
|
}
|
if (UserDefinedWaWiPath) {
|
items.push(new Array("WaWi", "WaWi", "u_d_wawi()", "u_d_wawi", "", "", 34));//wd20140507
|
}
|
|
var yPosition = 2;
|
if (dh_darkUI()) {
|
yPosition = 5;
|
}
|
var xPosition = -30;
|
|
for (i = 0; i < items.length; i++) {
|
xPosition += items[i][6];
|
var id = items[i][0];
|
var idimg = items[i][0] + "img";
|
var alt = items[i][1];
|
var callback = items[i][2];
|
var imgFile = items[i][3];
|
var RClick = "";
|
if (items[i].length >= 8) {
|
RClick = "oncontextmenu='javascript:return " + items[i][7] + "'";
|
}
|
document.write("<div class='withBorderMarker' ID=" + id + " STYLE='position: absolute; left: " + xPosition + " ; top: " + yPosition + " ' >")
|
var sTmp = "<a class='uiButton' href='#' onclick='" + callback + "; return false;'><img border='0' fileName='" + imgFile + "' ID='" + idimg + "' alt=" + alt + " src='fakePath' onerror='imgOnErrorLevel1(this)' onmouseover='btnOnMouseOverLevel1(this)' onmousedown='btnOnMouseDownLevel1(this)' onmouseout='btnOnMouseOutLevel1(this)' " + RClick + "></a>";
|
document.write(sTmp);
|
document.write("</div>")
|
}
|
}
|
|
function createToolbarTopSecondRow() {
|
var items = new Array();
|
|
if (dh_darkUI()) {
|
items.push(new Array("OPTION_BUTTON_DIV", "'Options'", "onClickOptionsButton()", "optionbutton", "", "", 34));
|
}
|
if (dh_darkUI() && AppButtonHelp != "0") {
|
items.push(new Array("tbac_help", "''", "_help()", "help", "", "", 34, "SwitchReadOnly()"));
|
}
|
if (AppButtonCopy != "0") {
|
items.push(new Array("tbac_copy", "'Kopieren'", "_ac(0)", "ac_copy", "", "", 34));
|
}
|
if (AppButtonMove != "0") {
|
items.push(new Array("tbac_move", "'Schieben'", "_ac(1)", "ac_move", "", "", 34));
|
}
|
if (AppButtonRotate != "0") {
|
items.push(new Array("tbac_rotate", "'Drehen'", "_ac(2)", "ac_rotate", "", "", 34));
|
}
|
if (AppButtonDelete != "0") {
|
items.push(new Array("tbac_delete", "'Lschen'", "_ac(3)", "ac_delete", "", "", 34));
|
}
|
if (AppButtonStretch != "0") {
|
items.push(new Array("tbac_stretch", "'Power Griffe'", "_ac(4,1)", "ac_stretch", "", "", 34));
|
}
|
if (AppButtonFacepicker != "0") {
|
items.push(new Array("tbac_facepicker", "'Facepicker'", "_ac(5)", "ac_facepicker", "", "", 34));
|
}
|
if (!dh_darkUI() && AppButtonHelp != "0") {
|
items.push(new Array("tbac_help", "''", "_help()", "help", "", "", 34, "SwitchReadOnly()"));
|
}
|
if (AppButtonAnyDesk == "1") {
|
items.push(new Array("tbac_anydesk", "'Anydesk'", "_anydesk()", "anydesk", "", "", 34));
|
}
|
|
var yPosition = 35;
|
if (dh_darkUI()) {
|
yPosition = 40;
|
}
|
var xPosition = -30;
|
|
for (i = 0; i < items.length; i++) {
|
xPosition += items[i][6];
|
var id = items[i][0];
|
var idimg = "" + items[i][0] + "img";
|
var alt = items[i][1];
|
var callback = items[i][2];
|
var imgFile = items[i][3];
|
var RClick = "";
|
if (items[i].length >= 8) {
|
RClick = "oncontextmenu='javascript:return " + items[i][7] + "'";
|
}
|
document.write("<div class='withBorderMarker' id='" + id + "' STYLE='position: absolute; left:" + xPosition + "; top:" + yPosition + "' >");
|
var sTmp = "<a class='uiButton' href='#' onclick='" + callback + "'><img border='0' fileName='" + imgFile + "' id='" + idimg + "' alt='" + alt + "' src='fakePath' onerror='imgOnErrorLevel1(this)' onmouseover='btnOnMouseOverLevel1(this)' onmousedown='btnOnMouseDownLevel1(this)' onmouseout='btnOnMouseOutLevel1(this);SSTbMouseOut(\"" + idimg + "\",\"" + imgFile + "\")' " + RClick + "></a>";
|
document.write(sTmp);
|
document.write("</div>");
|
}
|
}
|
|
function createToolbarBottomFirstRowLeft() {
|
var items = [];
|
var yposition = 0;
|
items.push(new Array("tbani_auf", dh_text_global("256"), "startAnimation();", "ani_01", "", "", "AnimationImg", "", "", ""));
|
items.push(new Array("tbani_zu", dh_text_global("257"), "_ac(23);", "aniFree", "", "", "ac_FreeAnimationImg", "", "", ""));
|
items.push(new Array("front_onoff", "Front Ein Aus", "_front()", "st_snap", "", "", "front_onoffimg", "", "", ""));
|
for (i = 0; i < items.length; i++) {
|
yposition += 34;
|
var id = items[i][0];
|
var idimg = items[i][6];
|
var alt = items[i][1];
|
var callback = items[i][2];
|
var imgFile = items[i][3];
|
document.write("<div class='withBorderMarker' id='" + id + "' style='position: absolute; left:" + yposition + " top: 100'>");
|
document.write("<img border='0' src='fakePath' fileName='" + imgFile + "' id='" + idimg + "' src='fakePath' alt='" + alt + "' onclick='javascript:" + callback + "' onerror='imgOnErrorLevel1(this)' onmousedown='btnOnMouseDownLevel1(this)' onmouseout='btnOnMouseOutLevel1(this)' onmouseover='btnOnMouseOverLevel1(this)'>");
|
document.write("</div>");
|
}
|
}
|
|
function createToolbarBottomFirstRowRight() {
|
var items = [];
|
items.push(new Array("tbc_views", "'Kamerapositionen'", "_views()", "ac_views", "", ""));
|
items.push(new Array("tbv_o_top", "'Draufsicht'", "TbViewSetVpoint(4,0,0,0)", "v_ortho_top", "", ""));
|
items.push(new Array("tbv_o_front", "'Vorderansicht'", "TbViewSetVpoint(5,0,0,0)", "v_ortho_front", "", ""));
|
var BitmapGroesse = 26;
|
var yposition = -7
|
for (i = 0; i < items.length; i++) {
|
var id = items[i][0];
|
var idimg = id + "img";
|
var alt = items[i][1];
|
var callback = items[i][2];
|
var imgFile = items[i][3];
|
yposition += BitmapGroesse;
|
document.write("<DIV class='withBorderMarker' ID=" + id + " STYLE='position: absolute; right: " + yposition + " ; top:685' >")
|
document.write("<a class='uiButton' href='javascript:" + callback + "'><img border='0' fileName='" + imgFile + "' ID=" + idimg + " alt=" + alt + " src='fakePath' onerror='imgOnErrorLevel1(this)' onmousedown='btnOnMouseDownLevel1(this)' onmouseout='btnOnMouseOutLevel1(this)' onmouseover='btnOnMouseOverLevel1(this)'></a>")
|
document.write("</DIV>")
|
}
|
}
|
|
function createToolbarBottomSecondRowLeft() {
|
var items = [];
|
if (AppButtonAccessoir != "0") {
|
items.push(new Array("tbv_farbe", "'Accessoires'", "_Accessoires(event)", "deko", "", "", 32));
|
}
|
items.push(new Array("tbv_redbox", "'Redbox Fehler anzeigen'", "_Redbox()", "redbox", "", ""));
|
|
if (dh_darkUI()) {
|
//Messen-Schaltfläche
|
items.push(new Array("MEASURE_BUTTON_DIV", "'Measure'", "onClickMeasureButton()", "measurebutton", "", "", 34));
|
}
|
|
if (tbv_viewquality_zeigen) {
|
items.push(new Array("tbv_viewquality", "furnray", "_ViewQuality(event)", "tb_v3_pfeil_links", "", ""));
|
}
|
|
|
var BitmapGroesse = 32;
|
var yposition = -30
|
for (i = 0; i < items.length; i++) {
|
var id = items[i][0];
|
var idimg = id + "img";
|
var alt = items[i][1];
|
var callback = items[i][2];
|
var imgFile = items[i][3];
|
yposition += BitmapGroesse;
|
document.write("<DIV class='withBorderMarker' ID=" + id + " STYLE='position: absolute; left: " + yposition + " ;'>");
|
document.write("<a class='uiButton' onmouseup='javascript:" + callback + "'><img border='0' fileName='" + imgFile + "' ID=" + idimg + " alt=" + alt + " src='fakePath' onerror='imgOnErrorLevel1(this)' onmousedown='btnOnMouseDownLevel1(this)' onmouseout='btnOnMouseOutLevel1(this)' onmouseover='btnOnMouseOverLevel1(this)'></a>");
|
document.write("</DIV>");
|
}
|
}
|
|
function createToolbarBottomSecondRowRight() {
|
var items = [];
|
items.push(new Array("tbv_topright", "'Perspektive - vorne links oben'", "TbViewSetVpoint(0,-1000109)", "v_topleft", "", ""));
|
items.push(new Array("tbv_topleft", "'Perspektive - vorne rechts oben'", "TbViewSetVpoint(0,-1000110)", "v_topright", "", ""));
|
items.push(new Array("tbv_front", "'Perspektive - vorne'", "TbViewSetVpoint(0,-1000106)", "v_front", "", ""));
|
items.push(new Array("tbv_top", "'Perspektive - oben'", "TbViewSetVpoint(0,-1000103)", "v_top", "", ""));
|
|
var BitmapGroesse = 26;
|
var yposition = -20
|
for (i = 0; i < items.length; i++) {
|
var id = items[i][0];
|
var idimg = id + "img";
|
var alt = items[i][1];
|
var callback = items[i][2];
|
var imgFile = items[i][3];
|
yposition += BitmapGroesse;
|
|
|
document.write("<DIV class='withBorderMarker' ID=" + id + " STYLE='position: absolute; right: " + yposition + ";'>")
|
document.write("<a class='uiButton' href='javascript:" + callback + "'><img border='0' fileName='" + imgFile + "' ID='" + idimg + "' alt='" + alt + "' src='fakePath' onerror='imgOnErrorLevel1(this)' onmousedown='btnOnMouseDownLevel1(this)' onmouseout='btnOnMouseOutLevel1(this)' onmouseover='btnOnMouseOverLevel1(this)'></a>")
|
document.write("</DIV>")
|
}
|
}
|
|
function OrderNumberSet(wert, aufruf) {
|
wert = DH_UTF_FROM(wert);
|
ORDERNUMBER.innerHTML = wert;
|
}
|
|
function Redlining() {
|
//nur dann das Redlining plazieren, wenn ein Objekt markiert wurde
|
DhMcControl.DoActionSimpleCL(106);
|
AnzMarkierteObjekte = DhMcControl.LongValueDest(32, 200000).value;
|
if (AnzMarkierteObjekte == 1) {
|
parent.configdlg.TextLink();
|
} else {
|
alert("Sie muessen vorher ein Objekt auswaehlen!");
|
parent.configdlg.plazieren(parent.configdlg.RedliningTyp, 1)
|
}
|
}
|
|
function ExecuteManufacturerFunction(sManu, sFunctionName, iFunctionId, sParam1_) {
|
var sParam1 = "";
|
if (sParam1_) {
|
sParam1 = sParam1_;
|
}
|
DhMcControl.StringValueDest(32, 3000).value = sManu;
|
DhMcControl.StringValueDest(32, 3001).value = sFunctionName;
|
DhMcControl.LongValueDest(32, 3002).value = iFunctionId;
|
DhMcControl.StringValueDest(32, 3003).value = sParam1;
|
var sRet = DhMcControl.StringValueDest(-18024, 0).value;
|
return sRet;
|
}
|
|
function PrintPreviewDialogClose() {
|
try {
|
if (typeof PrintPreviewDialog == "object") {
|
PrintPreviewDialog.close();
|
}
|
} catch (a) {
|
}
|
}
|
|
function DesignCenterDialogClose() {
|
try {
|
if (typeof DesignCenterDialog == "object") {
|
DesignCenterDialog.close();
|
}
|
} catch (a) {
|
}
|
}
|
|
function WaWiLogoSetzen() {
|
//alert("COGITO.style.display = 'inline'");
|
if (PlanChangeable) {
|
COGITO.style.display = 'inline';
|
}
|
}
|
|
function DHFundes_EventMethod2() {
|
|
|
// Events vom Control - Kernel
|
//EVENT_MOUSEMOVE = -1;
|
//EVENT_LMOUSEDOWN = -2;
|
//EVENT_RMOUSEDOWN = -3;
|
//EVENT_LMOUSEUP = -4;
|
//EVENT_RMOUSEUP = -5;
|
//EVENT_PROPERTYDROP = -6;
|
//EVENT_SUMMELISTNEW = -7;
|
//EVENT_RMOUSEPROPERTY = -8; // wenn die Rechte Taste gedrckt wurde und Pickdropstart nicht aktiv !
|
//EVENT_NEWCOLORCHOOSED = -9; // wenn der benutzer eine neue Farbe gewhlt hat
|
//EVENT_ERROREXCEPTION = -10; //Wenn Fehler aufgetreten, in VarGlobalTemp als String mit -10 ist der Fehlertext
|
|
// window.status = DhMcControl.StatusBarMessage;
|
var EventMode = DhMcControl.SysLong(5).value;
|
window.status = EventMode;
|
|
// JM [2022|March|31] On Post Regen All
|
if (EventMode == 1) {
|
// Verwendung via EventManager vom fp-utils.js...
|
// Hier nur zu Dokuzwecken hinterlegt.
|
} else if (EventMode == 19120) {
|
GlobalEventEmitter.fromFundesEvent();
|
}
|
|
if (EventMode == -11)//Redlining2005
|
{
|
setTimeout("ConfigInlineFrameTop.EventFromDhMc()", 1000);
|
}
|
if (EventMode == -9) // Farbdialog beendet ... Werte verarbeiten
|
{
|
r = DhMcControl.SysLong(40).value;
|
g = DhMcControl.SysLong(41).value;
|
b = DhMcControl.SysLong(42).value;
|
|
DhMcControl.DoActionSimple(2);
|
}
|
if (EventMode == -2)//EVENT_LMOUSEDOWN
|
{
|
if (RedliningStatus == 1) {
|
setTimeout("Redlining()", 200);
|
}
|
RedliningStatus = 0;
|
}
|
if (EventMode == 10) {
|
var datei = DhMcControl.StringValueDest(32, 1000).value;
|
if (datei.length > 0) {
|
parent.OpenConfigMenu(datei);
|
}
|
DhMcControl.StringValueDest(32, 1000).value = "";
|
}
|
|
// verwendung fuer den OTF-User Bereich "Eigene Bilder", damit die Seite nach dem hinzufuegen neu geladen wird.
|
if (EventMode == -13) {
|
try {
|
// Wenn die Seite ueber den Accessoire Bereich aufgerufen wurde:
|
parent.configdlg.ACCESSOIRES_MAIN.Hauptframe.location.reload();
|
} catch (e) {
|
try {
|
// Wenn die Seite ueber den Wand Bereich aufgerufen wurde:
|
parent.configdlg.Hauptframe.Hauptframe.location.reload();
|
} catch (e) {
|
}
|
}
|
}
|
|
if (EventMode == -14) {
|
var T4711_json_data = DhMcControl.TableValueDest(32, -4711, -1, -1).value;
|
var T4711 = $.parseJSON(T4711_json_data);
|
var Type = T4711[0][1];
|
|
var pThis = new Object();
|
pThis.test = window;
|
|
if (Type == "Ellipse") {
|
showModalDialog("modaldialogs/ellipse.html", pThis, "dialogHeight:200px;dialogWidth:250px");
|
}
|
if (Type == "Rechteck") {
|
showModalDialog("modaldialogs/rechteck.html", pThis, "dialogHeight:200px;dialogWidth:250px");
|
}
|
}
|
if (EventMode == 15)//schieben
|
{
|
parent.OpenConfigMenu("move.html");
|
}
|
if (EventMode == 20) {
|
placer_status_check();
|
}
|
if (EventMode == 25)//AdministrationX error message
|
{
|
var errorText = DhMcControlObj.StringValueDest(32, 7373).value;
|
DhMcControl.StringValueDest(32, 7373).value = "";
|
if (errorText) {
|
alert(errorText);
|
}
|
}
|
// Upload der DHP-Datei nach Druck
|
if (EventMode == -30) {
|
uploadFileForCloudId();
|
}
|
// Upload der DHP-Datei nach Druck
|
if (EventMode == -31) //EVENT_FURNVIEW_STARTUPLOAD_FP2GO
|
{
|
uploadFileForCloudId(true);
|
}
|
if (EventMode == -32) //EVENT_FURNVIEW_PMDATA_UP
|
{
|
uploadFilesTOFPPMSync();
|
}
|
if (EventMode == -34) //EVENT_FURNVIEW_PMDATA_UP
|
{
|
downloadDHPFromFC();
|
}
|
if (EventMode == -36) {
|
windowFreezed = true;
|
if (onWindowFreezeChange) onWindowFreezeChange();
|
} else if (EventMode == -37) {
|
windowFreezed = false;
|
if (onWindowFreezeChange) onWindowFreezeChange();
|
}
|
if (EventMode == 31)//AppConfigMenu deaktivieren
|
{
|
//alert("AppConfigMenu deaktivieren");
|
}
|
if (EventMode == 50)//RedlineMen aktivieren
|
{
|
//parent.OpenConfigMenu("redline/redline.html")
|
var bUseOldRedlining = dh_reginfo_get('HKCU', '', 'UseNewRedlining', 0) == 1;
|
if (!bUseOldRedlining) {
|
StartOldRedlining();
|
} else {
|
StartRedlining();
|
}
|
}
|
if (EventMode == 60)//AfterPlanFileLoad
|
{
|
ManufacturerToControl();
|
setTimeout("_gridlevel(0,0)", 600);// WD [2024|12|3]
|
PriceAndLanguageToControl();//wd 20061207 von 10620 nach hier hin verlagert
|
}
|
if (EventMode == 70) {
|
SetPlanChangeable(false/*changeable*/);
|
PlanChangeable = 0;
|
} else if (EventMode == 75) {
|
SetPlanChangeable(true/*changeable*/);
|
PlanChangeable = 1;
|
}
|
if (EventMode == 80)//cogito request bekommen... cogito Button aktivieren
|
{
|
//alert("cogito Button aktivieren 1");
|
if (typeof COGITO == "object") {
|
//alert("cogito Button aktivieren 2");
|
//setTimeout("COGITO.style.display = 'inline'",1000);
|
setTimeout("WaWiLogoSetzen()", 1000);
|
}
|
}
|
if (EventMode == 85) // Save button deaktivieren
|
{
|
if (typeof tbv_saveimg == "object") {
|
tbv_saveimg.style.display = 'none';
|
}
|
}
|
if (EventMode == 86) // Katalog ausblenden
|
{
|
_KataOnOff("0");
|
}
|
if (EventMode == 90)//Verband setzen
|
{
|
var verb = DhMcControl.StringValueDest(32, 1000).value;
|
if (COMPANY_VERBAND_SELECT) {
|
SelectItemInSelect(COMPANY_VERBAND_SELECT, verb);
|
}
|
}
|
if (EventMode == 100) {
|
alert("Die angegebene Artikelnummer ist nicht gueltig");
|
}
|
if (EventMode == 101) {
|
alert("Die angegebene Artikelnummer ist nicht vorhanden oder mehrfach vorhanden");
|
}
|
if (EventMode == 110) {
|
DealerProginfoPdf.style.display = 'inline';
|
}
|
if (EventMode == 111) {
|
Dh_ObjectDisplayNone(DealerProginfoPdf);
|
}
|
if (EventMode == 200) {
|
if (document.all) {
|
var hoehe = screen.availHeight - 34;
|
var breite = screen.availWidth - 8;
|
PrintPreviewDialog = window.open('printpreview/pp-frame.htm', 'PrintPreview', 'width=' + breite + ',height=' + hoehe + 'toolbar=0,' + 'menubar=0,resizable=yes,scrollbars=1,status=0,location=0,left=0,top=0');
|
} else {
|
PrintPreviewDialog = window.open('printpreview/pp-frame.htm', 'neu', 'toolbar=0,' + 'menubar=0,scrollbars=1,status=0,location=0');
|
}
|
if (typeof PrintPreviewDialog == "object") {
|
alert("ja, ist ein object")
|
PrintPreviewDialog.focus();
|
}
|
}
|
if (EventMode == 201)//Handel Druckvorschau
|
{
|
try {
|
if (typeof PrintPreviewDialog == "object") {
|
PrintPreviewDialog.close();
|
}
|
} catch (a) {
|
}
|
|
if (document.all) {
|
var hoehe = screen.availHeight - 34;
|
var breite = screen.availWidth - 8;
|
PrintPreviewDialog = window.open('printpreviewdealer.html', 'PrintPreview', 'width=' + breite + ',height=' + hoehe + 'toolbar=0,' + 'menubar=0,resizable=yes,scrollbars=1,status=0,location=0,left=0,top=0');
|
} else {
|
PrintPreviewDialog = window.open('printpreviewdealer.html', 'neu', 'toolbar=0,' + 'menubar=0,scrollbars=1,status=0,location=0');
|
}
|
if (typeof PrintPreviewDialog == "object") {
|
setTimeout("PrintPreviewDialog.focus()", 500);
|
}
|
}
|
|
if (EventMode == 300) {
|
var TableId = 100;
|
var modus = DhMcControl.TableValueDest(32, TableId, 7, 0).value;//7: 0=inlineframe 1=rechte Html Seite aufbauen
|
if (modus == 0)//inline Frame
|
{
|
FocsStatus = 1;
|
InlineFrameHtml.init()
|
}
|
if (modus == 1)//html auf rechter Seite
|
{
|
var datei = DhMcControl.TableValueDest(32, TableId, 8, 0).value;//8: html Datei, die geladen werden soll
|
parent.OpenConfigMenu(datei);//wd20081015
|
}
|
}
|
if (EventMode == 301)// Fokus wurde gesetzt
|
{
|
|
}
|
if (EventMode == 330)//vom c++ bereit gestelltes script evaluieren.
|
{
|
var a = DhMcControl.StringValueDest(32, 98124735).value;
|
eval(a);
|
}
|
if (EventMode == 400)// Artikel im Zubehör eintragen
|
{
|
var manufacturer = dh_manufacturer_get();
|
DhMcControlObj.DoActionSimpleCL(17024);
|
}
|
if (EventMode == 440)//Hilfeseite anzeigen WD 20080816
|
{
|
setTimeout("_help()", 5000);
|
}
|
if (EventMode == 800) {
|
_ac(-1);//Icons resetten
|
}
|
if (EventMode == 1000)//Catch Meldung vom c++
|
{
|
a = DhMcControl.StringValueDest(32, 1000).value;
|
a = "Es ist ein Fehler aufgetreten\n" + a;
|
}
|
if (EventMode == 1001)//Standard Meldung vom c++
|
{
|
a = DhMcControl.StringValueDest(32, 1000).value;
|
alert(a);
|
}
|
|
if (EventMode == 1020)//// Open Dealer PDF
|
{
|
PrintPreviewDialogClose();
|
|
PdfFile = DhMcControl.StringValueDest(32, 47523).value;
|
HtmlFile = DhMcControl.StringValueDest(32, 47530).value;
|
if (document.all) {
|
var hoehe = screen.availHeight - 34;
|
var breite = screen.availWidth - 8;
|
PrintPreviewDialog = window.open(HtmlFile, 'PrintPreview', 'width=' + breite + ',height=' + hoehe + 'toolbar=0,' + 'menubar=0,resizable=yes,scrollbars=1,status=0,location=0,left=0,top=0');
|
} else {
|
PrintPreviewDialog = window.open(HtmlFile, 'neu', 'toolbar=0,' + 'menubar=0,scrollbars=1,status=0,location=0');
|
}
|
|
//wd20090225
|
if (typeof PrintPreviewDialog == "object") {
|
PrintPreviewDialog.location = PdfFile;
|
}
|
}
|
if (EventMode == 1021) {
|
parent.OpenConfigMenu("tretschalter.html");
|
}
|
if (EventMode == 1100)//Moebelprogramm wechseln
|
{
|
dh_TempSetJSONData("triggeredBySearch", "1");
|
a = DhMcControl.StringValueDest(32, 1100).value; // a ist das Prog, als 4stellige Ordnerkürzel
|
var manufac = DhMcControl.StringValueDest(32, 1101).value;
|
var kataPageID = DhMcControl.StringValueDest(32, 1103).value;
|
var artikelNr = DhMcControl.StringValueDest(32, 1104).value;
|
var modId = DhMcControl.StringValueDest(32, 1105).value;
|
|
COMPANY_SELECT.value = manufac;
|
KataChangeMF(manufac);
|
|
setTimeout(function () {
|
if (artikelNr !== undefined && artikelNr !== "" && modId !== undefined && modId !== "") {
|
processArticleSearch(artikelNr, modId, kataPageID);
|
}
|
|
if (artikelNr === undefined || artikelNr === "") {
|
// Auskommentiert wegen Ticket #82031
|
//parent.kata.level3.location.href = dh_PathManufacturerGet() + "\\_global\\_global\\html\\h\\generic-katatree\\index_legacy_frame.html";
|
}
|
|
setTimeout(function () {
|
dh_TempSetJSONData("triggeredBySearch", "0");
|
}, 2000);
|
}, 2000);
|
// setTimeout("KataSetPRG('" + a + "','" + artikelNr + "','" + modId + "','" + kataPageId + "')", 1000); //GS 20231206
|
}
|
|
if (EventMode == 1102)//Herstellerauswahl neu aufbauen
|
{
|
ManufacturerSelectRenew();
|
}
|
|
//WD 20051109
|
if (EventMode == 1150)//Plazierungsrichtung ist in den Stammdaten eingestellt und wird nun in der Oberflche auch sichtbar gemacht.
|
{
|
var PlazRichtung = DhMcControl.LongValueDest(32, 1150).value;
|
ap(PlazRichtung);
|
if (PlazRichtung == 0) {
|
PLACER_AREA_FREE.click();
|
}
|
setTimeout("LoadPoWithFile('_GLOBAL', 'Prog1', 'SketchUpINSERT')", 100);
|
}
|
if (EventMode == 1151)//Plazierungsrichtung "frei"
|
{
|
PLACER_AREA_FREE.click();
|
}
|
if (EventMode == 1200) {
|
if (typeof tbac_copyimg == "object") {
|
tbac_copyimg.src = ci_path + "ac_copy.gif"
|
}
|
if (typeof tbac_moveimg == "object") {
|
tbac_moveimg.src = ci_path + "ac_move.gif"
|
}
|
if (typeof tbac_rotateimg == "object") {
|
tbac_rotateimg.src = ci_path + "ac_rotate.gif"
|
}
|
if (typeof tbac_deleteimg == "object") {
|
tbac_deleteimg.src = ci_path + "ac_delete.gif"
|
}
|
if (typeof tbac_stretchimg == "object") {
|
tbac_stretchimg.src = ci_path + "ac_stretch.gif"
|
}
|
if (typeof tbac_facepickerimg == "object") {
|
tbac_facepickerimg.src = ci_path + "ac_facepicker.gif"
|
}
|
}
|
if (EventMode == 1300) {
|
var sError = DhMcControl.StringValueDest(32, 6445621).value;
|
if (sError.length) {
|
alert("Sending to furnport failed:\n" + sError);
|
} else {
|
alert("Sending Data to furnport successfully.");
|
}
|
}
|
if (EventMode == 2500) {
|
setTimeout("PromoLogoChange()", 500);
|
}
|
|
if (EventMode == 4000)//Preis anzeigen
|
{
|
var wert = DhMcControl.StringValueDest(32, 45621).value;
|
wert = DH_UTF_FROM(wert);// WD [2016|5|17]
|
PRICE_VIEW.value = wert;
|
PRICE_VIEW.size = 100;
|
}
|
|
//Wand konfigurieren
|
if (EventMode == 10020) {
|
parent.OpenConfigMenu("wall/configwallframe.html");//wd20081015
|
}
|
if (EventMode == 10301) {
|
//WALLDX_DIV.innerHTML = "<h4>" + dhround((DhMcControl.DoubleValueDest(32,10301).value/10)) + " cm</h4>";
|
WALLDX.value = dhround((DhMcControl.DoubleValueDest(32, 10301).value * dh_dimscale_get())) + " " + dh_dimscale_get_dimension_unit();
|
}
|
//Auftragsnummer anzeigen und Raumhöhe anzeigen...immer AfterPlanFileLoad
|
if (EventMode == 10620) {
|
var text = DhMcControl.StringValue(10620).value;
|
setTimeout(function () {
|
OrderNumberSet(text, 2);
|
}, 3000);
|
}
|
|
if (EventMode == 10700)//nach dem Laden einer Planung aus dem Projektmanager
|
{
|
var KurzBez = DhMcControl.TableValueDest(64, 201, 1, 0).value;
|
var InterneAuftNr = DhMcControl.TableValueDest(64, 201, 2, 0).value;
|
//PM2009
|
if (KurzBez.length == 0 && InterneAuftNr.length == 0) {
|
KurzBez = DhMcControl.StringValueDest(32, 7113845).value;
|
InterneAuftNr = DhMcControl.StringValueDest(32, 7113844).value;
|
}
|
var zusammen = InterneAuftNr + " " + KurzBez;
|
var tos = "OrderNumberSet(\"" + zusammen + "\",1)";
|
setTimeout(tos, 500);
|
reloadCloudPage();
|
}
|
|
if (EventMode == 10800)//AlertHtmlKontext_ShowDialog
|
{
|
dh_todo("5", "AlertHtmlKontext.html", "1");
|
}
|
|
if (EventMode == 15100)//RedliningSonderanfertigungCheck
|
{
|
parent.OpenConfigMenuManufac("RedliningSonderanfertigungCheck.html");
|
}
|
|
|
if (EventMode == 17001)//DesignCenter ... ChangeDirektory
|
{
|
if (typeof DesignCenterDialog == "object") {
|
DesignCenterDialog.DCMIDDLE.DCRIGHT.location.reload();
|
}
|
}
|
|
if (EventMode == 18000) {
|
parent.OpenConfigMenu('stairs.html');
|
}
|
|
if (EventMode == 17720)// WD [2015|8|25] #ActivateLastManufacAndProgInKatalog Hersteller und Programm in der letzten Sitzung dieser Planung im Katalog aktivieren
|
{
|
var LastManufacInPlanning = dh_todo("3", "-1", "1", "12022", "S");
|
KataChangeManufacturerDropDownExtern(LastManufacInPlanning);
|
}
|
|
if (EventMode == 17730)// MW [20180130] Eine neue Planung wurde geladen
|
{
|
if (parent.configdlg.MPManager) {
|
parent.CloseConfigMenu();
|
} else {
|
reloadCloudPage();
|
}
|
}
|
|
if (EventMode == 17740)// MW [20180815] Eine PDF-Datei wurde erstellt
|
{
|
reloadCloudPage();
|
}
|
|
// Ticket: #68278
|
if (EventMode == -38) {
|
updateAmpel();
|
} else if (EventMode == -39) {
|
updateAmpel();
|
} else if (EventMode == -40) {
|
updateAmpel();
|
}
|
|
EventManager.dispatchEvent(EventMode);
|
}
|
|
function setPromoLogoVisible() {
|
PromoLogo.style.display = 'inline';
|
}
|
function PromoLogoChange() {
|
var LogoDatName = DhMcControl.StringValueDest(32, 2500).value;
|
if (LogoDatName.length > 0) {
|
PromoLogoImg.src = LogoDatName;
|
} else {
|
if (dh_darkUI()) {
|
PromoLogoImg.src = ci_path + "product_logo.gif";
|
} else {
|
PromoLogoImg.src = ci_path + "promo_logo.gif";
|
}
|
}
|
}
|
|
function CheckFocus() {
|
if (FocsStatus == 1) {
|
DhMcControl.DoActionSimple(1);
|
}
|
}
|
|
function reloadCloudPage() {
|
// lädt die Cloud-Seite neu, falls sie offen ist
|
if (parent.configdlg.CTManager) {
|
parent.configdlg.CTManager.reloadTree();
|
}
|
}
|
|
function DealerProginfoPdfClick() {
|
DhMcControl.DoActionSimpleCL(2520);
|
}
|
|
function Wand() {
|
UiButtonAnalytics(34);
|
DhMcControl.DoActionSimpleCL(9998);
|
}
|
|
function _gridlevel(level, para2) {
|
DhMcControl.LongValue(10025).value = level;//x
|
DhMcControl.LongValue(10026).value = level;//y
|
DhMcControl.LongValue(10027).value = level;//z
|
|
var orange = dh_reginfo_get('HKCU', '', 'darkUIOrange');
|
|
|
if (level == 0) {
|
if (para2 == 1) { UiButtonAnalytics(51) }
|
GRIDLEVEL.src = ci_path + "gridlevel3.gif";
|
if (orange === "1") {
|
GRIDLEVEL.src = ci_path + "gridlevel3_or.gif";
|
}
|
}
|
if (level == 1) {
|
if (para2 == 1) { UiButtonAnalytics(52) }
|
GRIDLEVEL.src = ci_path + "gridlevel2.gif";
|
if (orange === "1") {
|
GRIDLEVEL.src = ci_path + "gridlevel2_or.gif";
|
}
|
}
|
if (level == 2) {
|
if (para2 == 1) { UiButtonAnalytics(53) }
|
GRIDLEVEL.src = ci_path + "gridlevel1.gif";
|
if (orange === "1") {
|
GRIDLEVEL.src = ci_path + "gridlevel1_or.gif";
|
}
|
}
|
}
|
|
function placer_status_check() {
|
if (placer_status == -1) {
|
// JM [2018|05|28] Laut JD soll, wenn ein LO Markiert ist, immer rechts platziert werden.
|
var MarkiertesPO = DhMcControlObj.StringValueDest(-230, 0).value;
|
var GeplantePOs = DhMcControl.StringValueDest(-50, 0).value;
|
if (MarkiertesPO.length > 0 || GeplantePOs !== "1") {
|
ap(2);
|
} else {
|
ap(0);
|
}
|
}
|
if (DhMcControl.SysLong(47).value == 0)//Es ist kein Zeiger auf ein zuletzt gepicktes Objekt da
|
{
|
ap(placer_status);
|
}
|
DhMcControl.LongValue(10520).value = placer_status;//WD20050905
|
}
|
|
|
function placer_pago(programm, type, hoehe, plst) {
|
|
placer_status_check();
|
// DhMcControl.StringValue(10500).value = programmname;//"mufo";//VIH_PLANTYPE_PROGRAMM
|
DhMcControl.StringValue(10500).value = programm;//"mufo";//VIH_PLANTYPE_PROGRAMM
|
DhMcControl.StringValue(10501).value = type;//Type;//VIH_PLANTYPE_TYPE
|
DhMcControl.DoubleValue(10516).value = hoehe;//Höhe;//VIH_PLANTYPE_DZ
|
DhMcControl.LongValue(10520).value = placer_status;//VIH_PLANTYPE_PLACETYPE //Plazierungstyp 0 = frei plazieren etc
|
DhMcControl.LongValue(10521).value = plst;//VIH_PLANTYPE_PLACESTATUS //Plazierungstyp 0 = Konstant oder 1 = Dynamisch, ob sich eine Type noch verändern kann oder immer die Type bleibt!!!
|
|
UserinterfaceManufacturer = KataGetMF();
|
DhMcControl.StringValue(35005).value = UserinterfaceManufacturer;
|
|
if (programmname_altermantiv.length > 0) {
|
DhMcControl.StringValue(10500).value = programmname_altermantiv;
|
}
|
|
DhMcControl.DoActionSimpleCL(101);//Aktion auslösen
|
|
}
|
|
function ap(a) {
|
_ac(6);
|
|
var orange = dh_reginfo_get('HKCU', '', 'darkUIOrange');
|
|
|
switch (a) {
|
case 0://frei plazieren
|
UiButtonAnalytics(46);
|
AutoPlaceImg.src = ci_path + "ap-fr.gif";
|
if (orange === "1") {
|
AutoPlaceImg.src = ci_path + "ap-fr_or.gif";
|
}
|
DhMcControl.SysLong(1).value = 0; //
|
placer_status = 0;
|
//alert("wwwwwwwwwww");
|
break;
|
case 1://links
|
UiButtonAnalytics(47);
|
AutoPlaceImg.src = ci_path + "ap-le.gif";
|
if (orange === "1") {
|
AutoPlaceImg.src = ci_path + "ap-le_or.gif";
|
}
|
DhMcControl.SysLong(1).value = 11;//ActionMode auf Autoplazierung
|
placer_status = 1;
|
break;
|
case 2://rechts
|
UiButtonAnalytics(48);
|
AutoPlaceImg.src = ci_path + "ap-ri.gif";
|
if (orange === "1") {
|
AutoPlaceImg.src = ci_path + "ap-ri_or.gif";
|
}
|
DhMcControl.SysLong(1).value = 11;
|
placer_status = 2;
|
break;
|
case 3://oben
|
UiButtonAnalytics(49);
|
AutoPlaceImg.src = ci_path + "ap-to.gif";
|
if (orange === "1") {
|
AutoPlaceImg.src = ci_path + "ap-to_or.gif";
|
}
|
DhMcControl.SysLong(1).value = 11;
|
placer_status = 3;
|
|
break;
|
case 4://unten
|
UiButtonAnalytics(50);
|
AutoPlaceImg.src = ci_path + "ap-bo.gif";
|
if (orange === "1") {
|
AutoPlaceImg.src = ci_path + "ap-bo_or.gif";
|
}
|
DhMcControl.SysLong(1).value = 11;
|
placer_status = 4;
|
break;
|
}
|
|
DhMcControl.LongValue(10520).value = placer_status;//VIH_PLANTYPE_PLACETYPE //Plazierungstyp 0 = frei plazieren etc
|
if (a != 0) {
|
DhMcControl.DoActionSimpleCL(100); // automatisch Objekt markieren, an dem weitergeplant werden soll
|
}
|
|
}
|
|
function check_configdlg_wall() //Funktion zum Pfadcheck fuer aktualisierung der Wandseite
|
{
|
if (parent.configdlg.Hauptframe) {
|
var pfad1 = parent.configdlg.Hauptframe.location.href;
|
var pfad = pfad1.substr(pfad1.lastIndexOf("/") + 1);
|
|
if (pfad = "2004-indichange-wall.html") {
|
parent.configdlg.Hauptframe.location.reload();
|
}
|
}
|
}
|
|
function TbViewSetVpoint(a, b, c, d) {
|
check_configdlg_wall();
|
//DhMcControl.ZoomAuto(double ax, double ay, double az, long Mode1, long Mode2)
|
if (a == 0) //TbViewSetVpoint(-1000109,0)
|
{
|
this.CamModus = 1;
|
if (b == -1000109) { UiButtonAnalytics(3) }
|
if (b == -1000110) { UiButtonAnalytics(4) }
|
if (b == -1000106) { UiButtonAnalytics(5) }
|
if (b == -1000103) { UiButtonAnalytics(6) }
|
|
DhMcControl.ZoomAuto(2, b, 0, 0.0, 0.0, 0.0);
|
//DhMcControl.DoActionSimple(1);//DrawScene
|
}
|
if (a == 4)//Orthogonale Draufsicht
|
{
|
UiButtonAnalytics(1);
|
this.CamModus = 0;
|
DhMcControl.DoActionSimpleCL(700);
|
//DhMcControl.ZoomAuto(5, 0, 0, 20.0, 0.0, 0.0);//clipdist
|
//DhMcControl.ZoomAuto(19, 3, 0, 0.0, 0.0, 0.0);
|
//DhMcControl.DoActionSimple(1);//DrawScene
|
}
|
if (a == 5)//Orthogonale Ansicht
|
{
|
UiButtonAnalytics(2);
|
this.CamModus = 0;
|
DhMcControl.DoActionSimpleCL(701);
|
//DhMcControl.ZoomAuto(7, 0, 0, 0.0, 0.0, 0.0);
|
//DhMcControl.DoActionSimple(1);//DrawScene
|
}
|
DhMcControl.DoActionSimple(2);//Regen All
|
|
}
|
|
function GesamtpreisAnzeigen() {
|
PriceAndLanguageToControl();
|
DhMcControl.DoActionSimpleCL(1022);
|
}
|
|
function PriceViewClickAndShowPreview() {
|
GesamtpreisAnzeigen();
|
PriceViewClick();
|
}
|
|
function print() {
|
getCloudIdForFurncloudUpload("dhp", { src: "print" })
|
.then(function () {
|
var ProjectManagement = "1";//wd20120629 Altlastenbewaeltigung ... dh_reginfo_get('HKLM','','ProjectManagement');
|
//alert("ProjectManagement = "+ProjectManagement);
|
//ProjectManagement="1";
|
if (ProjectManagement == "1") {
|
// var dx = DhMcControl.width;
|
// var dz = DhMcControl.height;
|
// var dx = document.getElementById("DhmcControlContainer").width;
|
// var dy = topWindow.app.DhMcControl.height;
|
//alert("breite = " + window_width + " höhe = " + window_height);
|
// DhMcControl.LongValueDest(32, 10111).value = DhMcControl.width;
|
// DhMcControl.LongValueDest(32, 10112).value = DhMcControl.height;
|
DhMcControl.LongValueDest(32, 10111).value = window_width;
|
DhMcControl.LongValueDest(32, 10112).value = window_height - sceneMarginTop;
|
PriceAndLanguageToControl();
|
DhMcControl.DoActionSimpleCL(1020);
|
} else {
|
setTimeout("DhMcControl.DoActionSimpleCL(1000)", 500);
|
}
|
});
|
}
|
|
function printbutton() {
|
UiButtonAnalytics(30);
|
var bClose = false;
|
try {
|
if (typeof PrintPreviewDialog == "object") {
|
PrintPreviewDialog.close();
|
bClose = true;
|
}
|
} catch (a) {
|
}
|
if (bClose) {
|
setTimeout("print()", 1000);
|
} else {
|
print();
|
}
|
}
|
|
function _ViewQuality(event) {
|
if (event) {
|
var GraphicEngine = DhMcControlObj.StringValueDest(-17960, 0).value;
|
var viewQualitySwitch = true;
|
//alert("GraphicEngine=["+GraphicEngine+"]");
|
if (GraphicEngine == "ByPass") {
|
viewQualitySwitch = false;
|
}
|
if (event.button === 2 && viewQualitySwitch) {
|
UiButtonAnalytics(23);
|
DhMcControl.DoActionSimpleCL(17711);
|
} else if (event.button === 1) {
|
UiButtonAnalytics(22);
|
parent.OpenConfigMenu("export/fr.html");
|
}
|
} else {
|
UiButtonAnalytics(23);
|
DhMcControl.DoActionSimpleCL(17711);
|
}
|
}
|
|
function iwofurn() {
|
if (window.event.ctrlKey) {
|
DhMcControl.DoActionSimpleCL(114);
|
}
|
else {
|
DhMcControl.DoActionSimpleCL(112);
|
}
|
}
|
|
function HTML5Kata() {
|
DhMcControl.DoActionSimpleCL(17031);
|
}
|
|
function HTML5DevTools() {
|
DhMcControl.DoActionSimpleCL(17032);
|
}
|
|
function moebelpilot() {
|
UiButtonAnalytics(36);
|
parent.OpenConfigMenu("Dialogs/MoebelPilot/mp.html");
|
//DhMcControl.DoActionSimpleCL(113);
|
}
|
|
function zeg() {
|
UiButtonAnalytics(37);
|
var sURL = "";
|
sURL = "../../../../zeg/_global/html/ExternOrder/DlgExternOrder.html";
|
parent.OpenConfigMenu(sURL);
|
}
|
|
function u_d_wawi() {
|
topWindow.app.DhMcControl.StringValueDest(32, 917033001).value = UserDefinedWaWiPath;
|
DhMcControl.DoActionSimpleCL(17034);
|
}
|
|
function redliningWithCloudId() {
|
getCloudIdForFurncloudUpload("dhp", { src: "redliningWithCloudId" }).then(function () {
|
UiButtonAnalytics(31);
|
DhMcControl.DoActionSimpleCL(1000);
|
});
|
}
|
|
function startAnimation() {
|
UiButtonAnalytics(17);
|
DhMcControl.DoActionSimpleCL(19014);
|
document.getElementById("AnimationImg").src = ci_path + "ani_01" + "_mo.gif";
|
|
}
|
|
function switchImgFreeAnim(openClose) {
|
if (openClose) {
|
// Modus aktiv (button clicked)
|
ac_FreeAnimationImg.src = ci_path + "/aniFree_md.gif";
|
situationAniFreeButton = "_md";
|
} else {
|
// modus nicht aktiv (button not clicked)
|
ac_FreeAnimationImg.src = ci_path + "/aniFree.gif";
|
situationAniFreeButton = "";
|
}
|
}
|
|
|
|
function PriceAndLanguageToControl() {
|
//alert("app PriceAndLanguageToControl()");
|
UserinterfaceLanguage = KataGetLG();
|
if (UserinterfaceLanguage.length == 0) {
|
UserinterfaceLanguage = "de"
|
}
|
DhMcControl.StringValue(35001).value = UserinterfaceLanguage;
|
}
|
|
function _anydesk() {
|
UiButtonAnalytics(45);
|
DhMcControlObj.DoActionSimpleCL(17021);
|
}
|
|
function SwitchReadOnly() {
|
DhMcControlObj.DoActionSimpleCL(17035);
|
}
|
|
function _help() {
|
UiButtonAnalytics(44);
|
parent.OpenConfigMenu("help.html");
|
}
|
|
function CloudCheckApp() {
|
var CheckDurchfuehren = DhMcControlObj.StringValueDest(-560, 0).value;
|
if (CheckDurchfuehren == "1") {
|
DhMcControlObj.StringValueDest(32, 560).value = "1";
|
_help();
|
}
|
}
|
|
function DummyOnMouseMoveLoop() {
|
// MW Nur zu Testzwecken
|
var mouseMovePollingTime = parseInt(dh_ApplicationBehaviourGetValue("OnMouseMovePollingTime", "0")); // 0 ist default und bedeutet aussgeschaltet
|
if (mouseMovePollingTime > 0) {
|
var RunIntervalTimer = window.setInterval(function () {
|
try {
|
var sRet = DhMcControl.StringValueDest(-18303, 0).value;
|
} catch (e) {
|
}
|
}, mouseMovePollingTime * 1000);
|
}
|
}
|
|
function TbProjectOptions() {
|
DhMcControl.DoActionSimpleCL(502);
|
}
|
|
function _Redbox() {
|
UiButtonAnalytics(21);
|
parent.OpenConfigMenu("redbox.html")
|
}
|
|
function _explode() {
|
DhMcControl.DoActionSimpleCL(5100);
|
dh_todo('2', '30012', '30012', '1', '0', '7', '', '1000', 'L', '1');
|
|
}
|
|
function TbCloudTree() {
|
UiButtonAnalytics(24);
|
parent.OpenConfigMenu("Dialogs/CloudTree/cloudtree.html");
|
}
|
|
function TbNew() {
|
UiButtonAnalytics(25);
|
parent.OpenConfigMenu("delete.html");
|
}
|
|
function _printpage() {
|
parent.OpenConfigMenu()
|
parent.configdlg.location = "print.html"
|
}
|
|
function _views() {
|
UiButtonAnalytics(7);
|
parent.OpenConfigMenu()
|
parent.configdlg.location = "views.html"
|
}
|
|
function _dimension() {
|
parent.OpenConfigMenu()
|
parent.configdlg.location = "diminfo.html"
|
}
|
|
|
|
function _Accessoires(event) {
|
UiButtonAnalytics(20);
|
parent.OpenConfigMenu("Accessoires/index.html");
|
}
|
|
function _bem() {
|
if (BemStatus == 1) {
|
DhMcControl.SysLong(43).value = 3;
|
} else {
|
DhMcControl.SysLong(43).value = 0;
|
}
|
BemStatus = 1 - BemStatus;
|
DhMcControl.DoActionSimple(1);
|
}
|
|
function emailMenu() {
|
if (window.event.ctrlKey) {
|
DhMcControlObj.DoActionSimpleCL(17036);
|
return;
|
}
|
UiButtonAnalytics(33);
|
parent.OpenConfigMenu("email.html");
|
}
|
|
function shareMenu() {
|
if (window.event.ctrlKey) {
|
DhMcControlObj.DoActionSimpleCL(17036);
|
return;
|
}
|
UiButtonAnalytics(57);
|
parent.OpenConfigMenu("share.html");
|
}
|
|
function TbUndo() {
|
UiButtonAnalytics(32);
|
_ac(4);
|
DhMcControl.DoActionSimpleCL(3800);
|
//DhMcControl.DoActionSimple(100016);
|
//DhMcControl.DoActionSimple(2);
|
}
|
|
function TbSaveLoad(a, b) {
|
|
if (a == 1) {
|
if (DhMcControl.StringValueDest(-18027, 0).value == "0") {
|
// PlanChangeable
|
return;
|
}
|
}
|
DhMcControl.StringValueDest(32, 1000).value = programmname;
|
DhMcControlObj.LongValueDest(32, 25698981).value = window.event.ctrlKey ? 1 : 0;
|
|
if (b == 0) {
|
if (a == 0) //laden
|
{
|
UiButtonAnalytics(26);
|
DhMcControl.DoActionSimpleCL(500);
|
}
|
if (a == 1) //speichern
|
{
|
UiButtonAnalytics(28);
|
DhMcControl.DoActionSimpleCL(501);
|
}
|
}
|
|
if (b == 1) {
|
DhMcControl.LongValueDest(32, 32467).value = 1;
|
if (a == 0)//laden
|
{
|
UiButtonAnalytics(27);
|
DhMcControl.DoActionSimpleCL(500);
|
}
|
if (a == 1)//speichern
|
{
|
UiButtonAnalytics(29);
|
DhMcControl.DoActionSimpleCL(501);
|
}
|
DhMcControl.LongValueDest(32, 32467).value = 0;
|
}
|
}
|
|
function _front() {
|
UiButtonAnalytics(19)
|
dh_front_display(2);
|
}
|
|
function _snap() {
|
if (SnapStatus == 0) {
|
SnapStatus = 1
|
} else {
|
SnapStatus = 0
|
}
|
if (SnapStatus == 0) {
|
DhMcControl.LongValue(10010).value = 0;
|
st_snapimg.src = ci_path + "st_snap.gif"
|
}
|
if (SnapStatus == 1) {
|
DhMcControl.LongValue(10010).value = 1;
|
st_snapimg.src = ci_path + "st_snap_a.gif"
|
}
|
}
|
|
|
|
function SSTbMouseOut(ImageId, Image) {
|
var suffix = "_md";
|
var orange = dh_reginfo_get('HKCU', '', 'darkUIOrange');
|
var darkUI = dh_reginfo_get('HKCU', '', 'darkUI');
|
if (orange === "1" && darkUI === "1") {
|
suffix = "_md_or";
|
}
|
|
var Picklevel = DhMcControl.SysLong(2).value;
|
if (Picklevel != 0) {
|
suffix = ""
|
}
|
|
|
var temp = ImageId + ".src='" + ci_path + "/" + Image + "";
|
if (typeof tbac_copyimg == "object") {
|
if (Action == 0 && ImageId == "tbac_copyimg") {
|
temp += suffix
|
}
|
}
|
if (typeof tbac_moveimg == "object") {
|
if (Action == 1 && ImageId == "tbac_moveimg") {
|
temp += suffix
|
}
|
}
|
if (typeof tbac_rotateimg == "object") {
|
if (Action == 2 && ImageId == "tbac_rotateimg") {
|
temp += suffix
|
}
|
}
|
if (typeof tbac_deleteimg == "object") {
|
if (Action == 3 && ImageId == "tbac_deleteimg") {
|
temp += suffix
|
}
|
}
|
if (typeof tbac_stretchimg == "object") {
|
if (Action == 4 && ImageId == "tbac_stretchimg") {
|
temp += suffix
|
}
|
}
|
if (typeof tbac_facepickerimg == "object") {
|
if (Action == 5 && ImageId == "tbac_facepickerimg") {
|
temp += suffix
|
}
|
}
|
temp += ".gif'";
|
eval(temp);
|
}
|
|
function _ani(a) {
|
if (a == 2) {
|
DhMcControl.DoActionSimple(100027);
|
return;
|
}
|
if (a == 50) {//einzelne Animationselemente oeffnen
|
DhMcControl.DoActionSimpleCL(605);
|
dh_todo("2", "1", "10008", "", "", "7", "", "123456", "L", "1");
|
return;
|
}
|
|
if (a == 0)
|
DhMcControl.DoActionSimple(100002);
|
else
|
DhMcControl.DoActionSimple(100003);
|
}
|
|
function _ac_switchimg(a) {
|
var suffix = "_md";
|
var orange = dh_reginfo_get('HKCU', '', 'darkUIOrange');
|
var darkUI = dh_reginfo_get('HKCU', '', 'darkUI');
|
if (orange === "1" && darkUI === "1") {
|
suffix = "_md_or";
|
}
|
|
if (typeof tbac_copyimg == "object") {
|
if (a == 0) {
|
tbac_copyimg.src = ci_path + "ac_copy" + suffix + ".gif"
|
} else {
|
tbac_copyimg.src = ci_path + "ac_copy.gif"
|
}
|
}
|
if (typeof tbac_moveimg == "object") {
|
if (a == 1) {
|
tbac_moveimg.src = ci_path + "ac_move" + suffix + ".gif"
|
} else {
|
tbac_moveimg.src = ci_path + "ac_move.gif"
|
}
|
}
|
if (typeof tbac_rotateimg == "object") {
|
if (a == 2) {
|
tbac_rotateimg.src = ci_path + "ac_rotate" + suffix + ".gif"
|
} else {
|
tbac_rotateimg.src = ci_path + "ac_rotate.gif"
|
}
|
}
|
if (typeof tbac_deleteimg == "object") {
|
if (a == 3) {
|
tbac_deleteimg.src = ci_path + "ac_delete" + suffix + ".gif"
|
} else {
|
tbac_deleteimg.src = ci_path + "ac_delete.gif"
|
}
|
}
|
if (typeof tbac_stretchimg == "object") {
|
if (a == 4) {
|
tbac_stretchimg.src = ci_path + "ac_stretch" + suffix + ".gif"
|
} else {
|
tbac_stretchimg.src = ci_path + "ac_stretch.gif"
|
}
|
}
|
if (typeof tbac_facepickerimg == "object") {
|
if (a == 5) {
|
tbac_facepickerimg.src = ci_path + "ac_facepicker" + suffix + ".gif"
|
} else {
|
tbac_facepickerimg.src = ci_path + "ac_facepicker.gif"
|
}
|
}
|
if (typeof AutoPlaceImg == "object") {
|
var orange = dh_reginfo_get('HKCU', '', 'darkUIOrange');
|
if (a == 6) {
|
AutoPlaceImg.src = ci_path + "ap.gif"
|
if (orange === "1") {
|
AutoPlaceImg.src = ci_path + "ap_or.gif";
|
}
|
} else {
|
AutoPlaceImg.src = ci_path + "ap.gif"
|
if (orange === "1") {
|
AutoPlaceImg.src = ci_path + "ap_or.gif";
|
}
|
}
|
}
|
if (typeof ac_FreeAnimationImg == "object") {
|
if (a == 23) {
|
switchImgFreeAnim(1);
|
} else {
|
switchImgFreeAnim(0);
|
}
|
}
|
|
|
}
|
|
/** ActionMode */
|
function _ac(a, b) {
|
//alert(a);
|
placer_status = -1;
|
//alert(placer_status);
|
if (DhMcControl.SysLong(2).value == 1) {
|
_ss("uo", "sstb_uoimg");
|
}
|
if (DhMcControl.SysLong(2).value == 2) {
|
_ss("po", "sstb_eimg");
|
}
|
//alert(a);
|
|
|
DhMcControl.LongValueDest(32, 22).value = 0; //CNC Daten rausschreiben deakivieren
|
DhMcControl.DoActionSimple(100026);//Den PickDropBuffer loechen
|
dh_SetMasterActionMode(0);//wd20120924 im Normalfall Pickpolygone aktiv
|
DhMcControlObj.DoActionSimpleCL(17520);// WD [2014|11|5]
|
Action = a;
|
switch (a) {
|
case 0: //kopieren
|
UiButtonAnalytics(38);
|
DhMcControl.SysLong(1).value = 5;
|
DhMcControl.SysLong(4).value = 0;
|
DhMcControl.SysLong(39).value = 1; //copymodus aktiv
|
_ac_switchimg(a);
|
_ss("po", "sstb_eimg"); //Modus PO setzen
|
break;
|
case 1: //schieben
|
UiButtonAnalytics(39);
|
DhMcControl.SysLong(1).value = 5; //SetActionMode
|
DhMcControl.SysLong(4).value = 0; //SetMarkedObjects
|
DhMcControl.SysLong(39).value = 0; //copymodus nicht aktiv
|
_ac_switchimg(a);
|
_ss("po", "sstb_eimg"); //Modus PO setzen
|
break;
|
case 2: //drehen
|
UiButtonAnalytics(40);
|
DhMcControl.SysLong(1).value = 4; //SetActionMode
|
DhMcControl.SysLong(4).value = 0; //SetMarkedObjects
|
_ac_switchimg(a);
|
_ss("po", "sstb_eimg"); //Modus PO setzen
|
break;
|
case 3: //loeschen
|
UiButtonAnalytics(41);
|
//wd20120924 Umschaltung zwischen Loeschen auf Pickpoly bzw. Flaechenebene
|
var DelObjFace = dh_reginfo_get('HKCU', '', 'DeleteObjeWithFacePicker');
|
var DelObjFaceApp = dh_ApplicationBehaviourGetValue('DELETE_OBJECT_WITH_FACE_PICKER');
|
//alert("DelObjFace = " + DelObjFace );
|
if (DelObjFace == "1" || DelObjFaceApp == "1") {
|
//alert("FL Loeschen");
|
DhMcControl.DoActionSimpleCL(17983);
|
}
|
|
DhMcControl.SysLong(4).value = 0; //SetMarkedObjects
|
DhMcControl.DoActionSimple(100001); //ResetMarkers
|
//DhMcControl.DoActionSimple(2);//Regen All
|
DhMcControl.SysLong(1).value = 8; //SetActionMode
|
_ac_switchimg(a);
|
_ss("po", "sstb_eimg"); //Modus PO setzen
|
DhMcControl.DoActionSimple(4);//WD20050609
|
break;
|
case 4: //Powergriffe
|
if (typeof b == 'number') {
|
if (b == 1) {
|
UiButtonAnalytics(42);
|
}
|
}
|
DhMcControl.DoActionSimpleCL(17931);// WD [2014|12|18]
|
DhMcControl.SysLong(4).value = 10000;//Die Anzahl der maximal markierten Objekte auf endlos setzen wd 20081107
|
DhMcControl.SysLong(1).value = 0; //SetActionMode
|
//DhMcControl.SysLong(4).value = 0; //SetMarkedObjects
|
_ac_switchimg(a);
|
//if(DhMcControl.SysLong(2).value == 0){_ss("po","sstb_eimg")}else{_ss("uo","sstb_uoimg")};
|
_ss("po", "sstb_eimg");//WD20020709
|
//alert("Powergriffe");
|
DhMcControl.DoActionSimple(2);//WD20050609
|
break;
|
case 5: //Facepicker
|
UiButtonAnalytics(43);
|
dh_SetMasterActionMode(1);//wd20120924 hier Flaechenpicker aktiv
|
DhMcControl.SysLong(4).value = 0; //SetMarkedObjects
|
_ac_switchimg(a);
|
DhMcControl.DoActionSimpleCL(17981);
|
break;
|
case 6: //placer
|
_ss("po", "sstb_eimg");//WD20020709
|
DhMcControl.SysLong(1).value = 10; //SetActionMode
|
DhMcControl.DoActionSimple(10001); //ResetMarkers
|
_ac_switchimg(a);
|
break;
|
case 22: //Elementweises CNC Daten auswerten
|
_ss('uo', 'sstb_uoimg')
|
DhMcControl.SysLong(1).value = 0; //SetActionMode
|
DhMcControl.LongValueDest(32, 22).value = 1;
|
_ac_switchimg(a);
|
break;
|
case 23: //PH [2018|2|21] Free animation
|
UiButtonAnalytics(18);
|
DhMcControl.SysLong(4).value = 0; //Objektmarkierung ausschalten
|
DhMcControl.SysLong(1).value = 23; //SetActionMode
|
_ac_switchimg(a); //Bild anpassen
|
break;
|
default:
|
_ac_switchimg(a);
|
}
|
}
|
|
function _ss(a, b) {
|
//s = DhMcControl.SelectionState;
|
s = DhMcControl.SysLong(3).value; //SelectionState
|
//alert(a);
|
switch (a) {
|
case "uo":
|
//DhMcControl.PickLevel = 1;
|
DhMcControl.SysLong(2).value = 1;
|
//DhMcControl.SelectionState = 0;
|
DhMcControl.SysLong(3).value = 0;
|
//DhMcControl.SetMarkedObjects(1);
|
DhMcControl.SysLong(4).value = 0;
|
//DhMcControl.ResetMarkers();
|
DhMcControl.DoActionSimple(100001); //ResetMarkers
|
//DhMcControl.DrawScene();
|
DhMcControl.DoActionSimple(1);//DrawScene
|
break;
|
case "po":
|
//alert("case po");
|
DhMcControl.SysLong(2).value = 0; //PickLevel
|
DhMcControl.SysLong(3).value = 1; //SelectionState
|
DhMcControl.SysLong(4).value = 10000; //SetMarkedObjects
|
DhMcControl.DoActionSimple(1);//DrawScene
|
if (s == 0) {
|
DhMcControl.DoActionSimple(100001); //ResetMarkers
|
DhMcControl.DoActionSimple(1);//DrawScene
|
}
|
break;
|
case "mo":
|
//DhMcControl.PickLevel = 0;
|
DhMcControl.SysLong(2).value = 0; //PickLevel
|
//DhMcControl.SelectionState = 4;
|
DhMcControl.SysLong(3).value = 4; //SelectionState
|
//DhMcControl.SetMarkedObjects(0);
|
DhMcControl.SysLong(4).value = 0; //SetMarkedObjects
|
if (s == 0) {
|
DhMcControl.DoActionSimple(100001); //ResetMarkers
|
DhMcControl.DoActionSimple(1);//DrawScene
|
}
|
break;
|
}
|
}
|
|
function changeKataOnOffImage() {
|
if (typeof tbv_kataonoff_img === 'object') {
|
var isClosed = (parent.GetFramesetCols() === "*,0,0");
|
|
if (isClosed) {
|
tbv_kataonoff_img.src = ci_path + "open.gif";
|
} else {
|
tbv_kataonoff_img.src = ci_path + "close.gif";
|
}
|
}
|
}
|
|
function hideKataOnOff(hide) {
|
if (hide === true) {
|
tbv_kataonoff.style.display = "none";
|
} else {
|
tbv_kataonoff.style.display = "inline";
|
}
|
}
|
|
function _KataOnOff(wert) //wd20081016 wert hinzugefuegt "0"=soll aus geschaltet werden
|
{
|
UiButtonAnalytics(54);
|
var isClosed = (parent.GetFramesetCols() === "*,0,0");
|
if (typeof wert === "object") {
|
isClosed = (wert != "0");
|
}
|
|
if (isClosed) {
|
parent.SetFramesetCols("*", 320, 0);
|
parent.var_KataOff = 1;
|
} else {
|
parent.SetFramesetCols("*", 0, 0);
|
parent.var_KataOff = 0;
|
}
|
changeKataOnOffImage();
|
}
|
|
function CalcTheRotateRelativeXY(mx, my) {
|
PosX = mx - dosjslib_getRealLeft(RotateButton);
|
PosY = my - dosjslib_getRealTop(RotateButton);
|
}
|
|
|
|
function RotateButton_onmousedown() {
|
UiButtonAnalytics(16);
|
LMouseDown = 1;
|
LastMouseX = event.screenX;
|
LastMouseY = event.screenY;
|
RotateButtonImg.setCapture();
|
}
|
|
function RotateButton_onmousemove() {
|
if (LMouseDown == 1) {
|
var mx = event.screenX;
|
var my = event.screenY;
|
var dx = mx - LastMouseX;
|
var dy = my - LastMouseY;
|
LastMouseX = mx;
|
LastMouseY = my;
|
var value = ((Math.abs(dx) + Math.abs(dy)) / 2) * 1.0;
|
if (Math.abs(dy) > Math.abs(dx) && dy > 0) {
|
DhMcControl.ZoomAuto(14, 0, 0, value, 0.0, 0.0);
|
}
|
if (Math.abs(dy) > Math.abs(dx) && dy < 0) {
|
DhMcControl.ZoomAuto(14, 0, 0, -value, 0.0, 0.0);
|
}
|
if (Math.abs(dx) > Math.abs(dy) && dx < 0) {
|
DhMcControl.ZoomAuto(13, 0, 0, value, 0.0, 0.0);
|
}
|
if (Math.abs(dx) > Math.abs(dy) && dx > 0) {
|
DhMcControl.ZoomAuto(13, 0, 0, -value, 0.0, 0.0);
|
}
|
}
|
}
|
|
function RotateButton_onmouseup() {
|
LMouseDown = 0;
|
RotateButtonImg.releaseCapture()
|
RotateButtonImg.src = ci_path + "cameralire_fade.gif";
|
}
|
|
function ZoomButton_onmousedown() {
|
UiButtonAnalytics(13);
|
LMouseDown = 1;
|
LastMouseX = event.screenX;
|
LastMouseY = event.screenY;
|
ZoomButtonImg.setCapture();
|
}
|
|
function ZoomButton_onmousemove() {
|
if (LMouseDown == 1) {
|
var mx = event.screenX;
|
var my = event.screenY;
|
var dx = mx - LastMouseX;
|
var dy = my - LastMouseY;
|
LastMouseX = mx;
|
LastMouseY = my;
|
var verschiebeweg = Math.sqrt(dy * dy + dy * dy) * 50;
|
var verschiebewegm = verschiebeweg * -1;
|
window.status = this.CamModus
|
if (dy < 0) {
|
if (this.CamModus == 0)//Ortho Mode
|
{
|
verschiebewegm = verschiebewegm * 0.94;
|
DhMcControl.ZoomAuto(6, 0, 0, 0.94, 0.0, 0.0);
|
// DhMcControl.DoActionSimple(1);
|
} else //Perspektive Mode
|
{
|
DhMcControl.ZoomAuto(17, 0, 0, verschiebewegm, 0.0, 0.0);
|
//DhMcControl.CamMoveAxis3D(verschiebeweg * -1);
|
}
|
} else {
|
if (this.CamModus == 0)//Ortho Mode
|
{
|
//verschiebeweg = verschiebeweg * 0.0001;
|
DhMcControl.ZoomAuto(6, 0, 0, 1.06, 0.0, 0.0);
|
// DhMcControl.DoActionSimple(1);
|
} else //Perspektive Mode
|
{
|
DhMcControl.ZoomAuto(17, 0, 0, verschiebeweg, 0.0, 0.0);
|
//DhMcControl.CamMoveAxis3D(verschiebeweg);
|
}
|
}
|
a = 0; //damits nicht schliiiiert
|
//DhMcControl.DoActionSimple(1);//aktiviert WD RH 20070927 //deaktiviert WD 20071129 ... performance
|
}
|
}
|
|
function ZoomButton_onmouseup() {
|
LMouseDown = 0;
|
ZoomButtonImg.releaseCapture();
|
ZoomButtonImg.src = ci_path + "zoominout_fade.gif";
|
}
|
|
function RotateDestiButton_onmousedown() {
|
UiButtonAnalytics(14);
|
LMouseDown = 1;
|
LastMouseX = event.screenX;
|
LastMouseY = event.screenY;
|
RotateDestiButtonImg.setCapture();
|
}
|
|
function RotateDestiButton_onmousemove() {
|
if (LMouseDown == 1) {
|
var mx = event.screenX;
|
var my = event.screenY;
|
var dx = mx - LastMouseX;
|
var dy = my - LastMouseY;
|
LastMouseX = mx;
|
LastMouseY = my;
|
window.status = dx;
|
//var value = 3.0;
|
var value = ((Math.abs(dx) + Math.abs(dy)) / 2) * 1.0;
|
if (Math.abs(dy) > Math.abs(dx) && dy > 0) {
|
DhMcControl.ZoomAuto(10, 0, 0, value, 0.0, 0.0);
|
}
|
if (Math.abs(dy) > Math.abs(dx) && dy < 0) {
|
DhMcControl.ZoomAuto(10, 0, 0, -value, 0.0, 0.0);
|
}
|
if (Math.abs(dx) > Math.abs(dy) && dx < 0) {
|
DhMcControl.ZoomAuto(11, 0, 0, value, 0.0, 0.0);
|
}
|
if (Math.abs(dx) > Math.abs(dy) && dx > 0) {
|
DhMcControl.ZoomAuto(11, 0, 0, -value, 0.0, 0.0);
|
}
|
}
|
}
|
|
function RotateDestiButton_onmouseup() {
|
LMouseDown = 0;
|
RotateDestiButtonImg.releaseCapture();
|
RotateDestiButtonImg.src = ci_path + "cameraherum_fade.gif";
|
|
}
|
|
function MoveButton_onmousedown() {
|
UiButtonAnalytics(15);
|
LMouseDown = 1;
|
LastMouseX = event.screenX;
|
LastMouseY = event.screenY;
|
MoveButtonImg.setCapture();
|
}
|
|
function MoveButton_onmousemove() {
|
if (LMouseDown == 1) {
|
var mx = event.screenX;
|
var my = event.screenY;
|
var dx = mx - LastMouseX;
|
var dy = my - LastMouseY;
|
LastMouseX = mx;
|
LastMouseY = my;
|
var value = ((Math.abs(dx) + Math.abs(dy)) / 2) * 20.0;
|
if (Math.abs(dy) > Math.abs(dx) && dy > 0) {
|
DhMcControl.ZoomAuto(18, 0, 0, value, 0.0, 0.0);
|
}
|
if (Math.abs(dy) > Math.abs(dx) && dy < 0) {
|
DhMcControl.ZoomAuto(18, 0, 0, -value, 0.0, 0.0);
|
}
|
if (Math.abs(dx) > Math.abs(dy) && dx < 0) {
|
DhMcControl.ZoomAuto(16, 0, 0, value, 0.0, 0.0);
|
}
|
if (Math.abs(dx) > Math.abs(dy) && dx > 0) {
|
DhMcControl.ZoomAuto(16, 0, 0, -value, 0.0, 0.0);
|
}
|
}
|
}
|
|
function MoveButton_onmouseup() {
|
LMouseDown = 0;
|
MoveButtonImg.releaseCapture();
|
MoveButtonImg.src = ci_path + "schieben_fade.gif";
|
}
|
|
function window_dxy() {
|
if (document.all)
|
window_height = document.body.offsetHeight, window_width = document.body.offsetWidth
|
else if (document.layers)
|
window_height = window.innerHeight, window_width = window.innerWidth
|
}
|
|
function window_onresize() {
|
window_dxy();
|
_ss("po", "sstb_eimg"); //Button für "Markierstatus Planungsobjekte"
|
_ac(4) //Action Status auf 4 setzen ... PowerGrips
|
dh_ci_set();
|
}
|
|
function StartOldRedlining() {
|
UiButtonAnalytics(64);
|
parent.var_KataOff = 1;
|
_KataOnOff();
|
|
ConfigInLineFrameTopSpan.style.display = '';
|
|
ConfigInlineFrameTop.initPage();
|
|
PromoLogo.style.display = "none";
|
|
if (dh_darkUI()) {
|
opengl.style.top = "70px";
|
} else {
|
opengl.style.top = "65px";
|
}
|
}
|
|
function StartRedlining() {
|
UiButtonAnalytics(63);
|
DhMcControlObj.DoActionSimpleCL(19037);
|
DhMcControlObj.DoActionSimpleCL(17030);
|
}
|
|
function RedliningEnd() {
|
parent.var_KataOff = 0;
|
_KataOnOff();
|
opengl.style.top = "0px";
|
PromoLogo.style.display = "";
|
ConfigInLineFrameTopSpan.style.display = 'none';
|
DhMcControl.DoActionSimpleCL(-1000);
|
}
|
|
function window_onload() {
|
window_onresize();
|
}
|
|
function window_onUnload() {
|
PrintPreviewDialogClose();
|
DesignCenterDialogClose();
|
}
|
|
function PromoLogoOnClick() {
|
if (dh_developerStatusGet() == 1) {
|
DhMcControl.DoActionSimpleCL(4);
|
} else {
|
DhMcControl.DoActionSimpleCL(3);
|
}
|
}
|
|
function onClickPrintOptionsButton() {
|
UiButtonAnalytics(8);
|
parent.OpenConfigMenu("printoptions.html");
|
}
|
|
function onClickMeasureButton() {
|
UiButtonAnalytics(10);
|
parent.OpenConfigMenu("measure.html");
|
}
|
|
function onClickOptionButton() {
|
UiButtonAnalytics(11);
|
parent.OpenConfigMenu("option.html");
|
}
|
|
function onClickOptionsButton() {
|
UiButtonAnalytics(58);
|
parent.OpenConfigMenu("options.html");
|
}
|
|
function onClickExportButton() {
|
UiButtonAnalytics(12);
|
parent.OpenConfigMenu("export.html");
|
}
|
|
function SAPExchange() {
|
_ac(4)//wd20040709 alle temporaeren Fittingobjekte löschen
|
//SAPLOGO.src = "app-images/sap3030rot.png";
|
getCloudIdForFurncloudUpload("dhp", { src: "SAPExchange" }).then(function () { // WD [2015|12|23]
|
setTimeout("DhMcControl.DoActionSimpleCL(9)", 200);
|
});
|
}
|
|
function Cogito(Event) {
|
UiButtonAnalytics(35);
|
_ac(4)//wd20040709 alle temporaeren Fittingobjekte loeschen
|
var bCtrlPressed = false;
|
if (Event && Event.ctrlKey === true) {
|
bCtrlPressed = true;
|
}
|
|
getCloudIdForFurncloudUpload("dhp", { src: "Cogito" }).then(function () { // WD [2015|12|23]
|
var iCmd = 8000;
|
if (bCtrlPressed) {
|
iCmd = 8001;
|
}
|
setTimeout("DhMcControl.DoActionSimpleCL(" + iCmd + ")", 200);
|
});
|
}
|
|
function CogitoZwischenabgleich() {
|
_ac(4)//wd20040709 alle temporären Fittingobjekte löschen
|
getCloudIdForFurncloudUpload("dhp", { src: "CogitoZwischenabgleich" }).then(function () { // WD [2015|12|23]
|
setTimeout("DhMcControl.DoActionSimpleCL(8004)", 200);
|
});
|
}
|
|
function OpenerTableValueDest(Mode, TableId, col, row) {
|
return DhMcControl.TableValueDest(Mode, TableId, col, row).value;
|
}
|
|
function OpenerTableValueDestRowCount(Mode, TableId) {
|
return DhMcControl.TableValueDestRowCount(Mode, TableId);
|
}
|
|
function OpenerTableValueDestColCount(Mode, TableId, Row) {
|
return DhMcControl.TableValueDestColCount(Mode, TableId, Row);
|
}
|
|
function OpenerStringValueDest(Mode, Id) {
|
return DhMcControl.StringValueDest(Mode, Id).value;
|
}
|
|
function OpenerStringValueDestPut(Mode, Id, value) {
|
DhMcControl.StringValueDest(Mode, Id).value = value;
|
}
|
|
function OpenerDoActionSimpleCL(Id) {
|
return DhMcControl.DoActionSimpleCL(Id);
|
}
|
|
function showDhMcControl() {
|
opengl.style.display = '';
|
}
|
|
function hideDhMcControl() {
|
opengl.style.display = 'none';
|
}
|
|
function LicenseInfoHide() {
|
// opengl.style.display = '';
|
LicenseInfoDiv.style.display = "none";
|
LicenseInfoDiv.innerHTML = "";
|
}
|
|
function setLicenseInfoText() {
|
var text = "";
|
var htmlcode = "<div>";
|
var text = dh_text_global("1822", "app-txt-", 1);//Lizenznehmer
|
var KundenNr = DhOpusDealerInfoGetValues(DhMcControl, "HAUSADRESSE", 1);//KundenNr
|
htmlcode += text + ": "
|
var Firma = DhOpusDealerInfoGetValues(DhMcControl, "HAUSADRESSE", 7);//alternative Firmenbez
|
if (Firma.length == 0) {
|
Firma = DhOpusDealerInfoGetValues(DhMcControl, "HAUSADRESSE", 6);//Firma
|
}
|
htmlcode += Firma + "(" + KundenNr + ")" + "<br>";
|
htmlcode += DhOpusDealerInfoGetValues(DhMcControl, "HAUSADRESSE", 5);//Vorname
|
htmlcode += " ";
|
htmlcode += DhOpusDealerInfoGetValues(DhMcControl, "HAUSADRESSE", 4);//Nachname
|
htmlcode += "<br>";
|
htmlcode += DhOpusDealerInfoGetValues(DhMcControl, "HAUSADRESSE", 9);//PLZ
|
htmlcode += " ";
|
htmlcode += DhOpusDealerInfoGetValues(DhMcControl, "HAUSADRESSE", 10);//Ort
|
htmlcode += "</div>";
|
LicenseInfoDiv.innerHTML = htmlcode;
|
}
|
|
|
function updateAmpel() {
|
if (dh_developerStatusGet() != 1) {
|
return;
|
}
|
|
DoAsyncFPSAction("GetAmpelStatus", {}).then(function (status) {
|
if (console && console.log) console.log(status);
|
if (status.DA) {
|
for (var key in status.DA) {
|
if (console && console.log) console.log(key);
|
if (Object.hasOwnProperty.call(status.DA, key)) {
|
var infoCount = status.DA[key];
|
var element = getElementsByClassName(key, DA_AMPEL)[0];
|
if (!element) {
|
element = DA_AMPEL.appendChild(document.createElement("TD"));
|
element.className = key;
|
}
|
element.innerText = infoCount;
|
element.setAttribute('title', "DA--> " + key + ":" + infoCount);
|
}
|
}
|
|
DA_AMPEL.style.visibility = "visible";
|
DA_AMPEL.onclick = function () {
|
DhMcControl.DoActionSimpleCL(19023);
|
}
|
}
|
if (status.DEV) {
|
DEV_AMPEL.style.visibility = "visible";
|
for (var key in status.DEV) {
|
if (console && console.log) console.log(key);
|
if (Object.hasOwnProperty.call(status.DEV, key)) {
|
var infoCount = status.DEV[key];
|
var element = getElementsByClassName(key, DEV_AMPEL)[0];
|
if (!element) {
|
element = DEV_AMPEL.appendChild(document.createElement("TD"));
|
element.className = key;
|
}
|
element.innerText = infoCount;
|
element.setAttribute('title', "DEV--> " + key + ":" + infoCount);
|
}
|
}
|
DEV_AMPEL.style.visibility = "visible";
|
DEV_AMPEL.onclick = function () {
|
DhMcControl.DoActionSimpleCL(19024);
|
}
|
}
|
|
});
|
}
|