Added minimal functionality for Robot teaching
- Added minimal HMI - Added possibility to open and close all chamber doors
This commit is contained in:
@@ -0,0 +1,369 @@
|
||||
import { TcHmiControl } from 'Beckhoff.TwinCAT.HMI.Framework/index.esm.js';
|
||||
export declare enum ScrollMode {
|
||||
Never = 0,
|
||||
Always = 1,
|
||||
Auto = 2
|
||||
}
|
||||
declare class TcHmiTextblock extends TcHmiControl.Control {
|
||||
#private;
|
||||
constructor(element: JQuery, pcElement: JQuery, attrs: TcHmi.Controls.ControlAttributeList);
|
||||
/** Reference to the root dom element of the current control template as jquery object. */
|
||||
protected __elementTemplateRoot: JQuery;
|
||||
protected __elementTextContainer: JQuery;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-horizontal-text-alignment"
|
||||
*/
|
||||
protected __textHorizontalAlignment: TcHmi.HorizontalAlignment | null | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-vertical-text-alignment"
|
||||
*/
|
||||
protected __textVerticalAlignment: TcHmi.VerticalAlignment | null | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-text-font-size"
|
||||
*/
|
||||
protected __textFontSize: number | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-text-font-size-unit"
|
||||
*/
|
||||
protected __textFontSizeUnit: TcHmi.FontSizeUnit | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-text-font-family"
|
||||
*/
|
||||
protected __textFontFamily: TcHmi.FontFamily | null | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-text-font-style"
|
||||
*/
|
||||
protected __textFontStyle: TcHmi.FontStyle | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-text-font-style"
|
||||
*/
|
||||
protected __textFontWeight: TcHmi.FontWeight | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-text-color"
|
||||
*/
|
||||
protected __textColor: TcHmi.SolidColor | null | undefined;
|
||||
/** Internal reference to the attribute "data-tchmi-text" */
|
||||
protected __text: string | undefined;
|
||||
/** Internal reference to the attribute "data-tchmi-ignore-escape-sequences" */
|
||||
protected __ignoreEscapeSequences: boolean | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-word-wrap"
|
||||
*/
|
||||
protected __wordWrap: boolean | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-horizontal-scroll"
|
||||
*/
|
||||
protected __horizontalScroll: ScrollMode | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-vertical-scroll"
|
||||
*/
|
||||
protected __verticalScroll: ScrollMode | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-horizontal-scroll-position"
|
||||
*/
|
||||
protected __horizontalScrollPosition: number | null | undefined;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-vertical-scroll-position"
|
||||
*/
|
||||
protected __verticalScrollPosition: number | null | undefined;
|
||||
protected __scrollEventDestroyer: TcHmi.DestroyFunction | null;
|
||||
/**
|
||||
* Internal reference to the attribute "data-tchmi-content-padding"
|
||||
*/
|
||||
protected __contentPadding: TcHmi.FourSidedCss | null | undefined;
|
||||
protected __asyncWorkData: IControlSpecificData;
|
||||
/**
|
||||
* If raised, the control object exists in control cache and constructor of each inheritation level was called.
|
||||
* This function is only to be used by the System. Other function calls are not intended.
|
||||
*/
|
||||
__previnit(): void;
|
||||
/**
|
||||
* If raised, all attributes have been set to it's default or dom values.
|
||||
* This function is only to be used by the System. Other function calls are not intended.
|
||||
*/
|
||||
__init(): void;
|
||||
/**
|
||||
* Is called by the system after the control instance gets part of the current DOM.
|
||||
* This function is only to be used by the System. Other function calls are not intended.
|
||||
*/
|
||||
__attach(): void;
|
||||
/**
|
||||
* Is called by the system after the control instance is no longer part of the current DOM.
|
||||
* This function is only to be used by the System. Other function calls are not intended.
|
||||
*/
|
||||
__detach(): void;
|
||||
/**
|
||||
* Destroy the current control instance.
|
||||
* Will be called automatically if system destroys control!
|
||||
*/
|
||||
destroy(): void;
|
||||
/**
|
||||
* Sets the value of the width mode attribute.
|
||||
* @param valueNew The new width mode value..
|
||||
*/
|
||||
setWidthMode(valueNew: TcHmi.SizeModeWithContent | null): void;
|
||||
/**
|
||||
* Processes the current width and width unit.
|
||||
*/
|
||||
__processWidth(): void;
|
||||
/**
|
||||
* Returns the calculated width in pixel if self defined (not percent based) or based on the children.
|
||||
*/
|
||||
__getContentWidth(): number | null;
|
||||
/**
|
||||
* Sets the value of the height mode attribute.
|
||||
* @param valueNew The new height mode value..
|
||||
*/
|
||||
setHeightMode(valueNew: TcHmi.SizeModeWithContent | null): void;
|
||||
/**
|
||||
* Processes the current height and height unit.
|
||||
*/
|
||||
__processHeight(): void;
|
||||
/**
|
||||
* Returns the calculated height in pixel if self defined (not percent based) or based on the children.
|
||||
*/
|
||||
__getContentHeight(): number | null;
|
||||
/**
|
||||
* Sets the value of the member variable "text" if the new value is not equal to the current value
|
||||
* or the current control instance is locked and calls the associated process function (processText) after that.
|
||||
* @param valueNew The new value for text.
|
||||
*/
|
||||
setText(valueNew: string | null): void;
|
||||
/**
|
||||
* Returns the current value of the member variable text.
|
||||
*/
|
||||
getText(): string | undefined;
|
||||
/**
|
||||
* Processes the current value of text.
|
||||
* The current value of text is only forwarded if it is no binding expression.
|
||||
*/
|
||||
protected __processText(): void;
|
||||
/**
|
||||
* Sets the value of the member variable IgnoreEscapeSequences.
|
||||
* @param valueNew The new value for IgnoreEscapeSequences
|
||||
*/
|
||||
setIgnoreEscapeSequences(valueNew: boolean | null | undefined): void;
|
||||
/**
|
||||
* Returns the current value of IgnoreEscapeSequences.
|
||||
* @returns The current value of IgnoreEscapeSequences.
|
||||
*/
|
||||
getIgnoreEscapeSequences(): boolean | undefined;
|
||||
/**
|
||||
* Sets the textHorizontalAlignment value and calls the associated process function (processTextHorizontalAlignment).
|
||||
* @param valueNew The new value for textHorizontalAlignment.
|
||||
*/
|
||||
setTextHorizontalAlignment(valueNew: TcHmi.HorizontalAlignment | null): void;
|
||||
/**
|
||||
* Returns the current value of horizontalTextAligment.
|
||||
*/
|
||||
getTextHorizontalAlignment(): TcHmi.HorizontalAlignment | null | undefined;
|
||||
/**
|
||||
* Processes the current textHorizontalAlignment attribute value.
|
||||
*/
|
||||
protected __processTextHorizontalAlignment(): void;
|
||||
/**
|
||||
* Sets the textVerticalAlignment value and calls the associated process function (processTextVerticalAlignment).
|
||||
* @param valueNew The new value for textVerticalAlignment.
|
||||
*/
|
||||
setTextVerticalAlignment(valueNew: TcHmi.VerticalAlignment | null): void;
|
||||
/**
|
||||
* Returns the current value of textVerticalAlignment.
|
||||
*/
|
||||
getTextVerticalAlignment(): TcHmi.VerticalAlignment | null | undefined;
|
||||
/**
|
||||
* Processes the current textVerticalAlignment attribute value.
|
||||
*/
|
||||
protected __processTextVerticalAlignment(): void;
|
||||
/**
|
||||
* Sets the font size and calls the associated process function (processTextFontSize).
|
||||
* @param valueNew The new value for textFontSize.
|
||||
*/
|
||||
setTextFontSize(valueNew: number | null): void;
|
||||
/**
|
||||
* Returns the current value of textFontSize.
|
||||
*/
|
||||
getTextFontSize(): number | undefined;
|
||||
/**
|
||||
* Processes the current textFontSize attribute value.
|
||||
*/
|
||||
protected __processTextFontSize(): void;
|
||||
/**
|
||||
* Sets the font size and calls the associated process function (processTextFontSizeUnit).
|
||||
* @param valueNew The new value for textFontSizeUnit.
|
||||
*/
|
||||
setTextFontSizeUnit(valueNew: TcHmi.FontSizeUnit | null): void;
|
||||
/**
|
||||
* Returns the current value of textFontSizeUnit.
|
||||
*/
|
||||
getTextFontSizeUnit(): TcHmi.FontSizeUnit | undefined;
|
||||
/**
|
||||
* Processes the current textFontSizeUnit attribute value.
|
||||
*/
|
||||
protected __processTextFontSizeUnit(): void;
|
||||
/**
|
||||
* Sets the font family and calls the associated process function (processTextFontFamily).
|
||||
* @param valueNew The new value for textFontFamily.
|
||||
*/
|
||||
setTextFontFamily(valueNew: TcHmi.FontFamily | null): void;
|
||||
/**
|
||||
* Returns the current value of textFontFamily.
|
||||
*/
|
||||
getTextFontFamily(): string | null | undefined;
|
||||
/**
|
||||
* Processes the current textFontFamily attribute value.
|
||||
*/
|
||||
protected __processTextFontFamily(): void;
|
||||
/**
|
||||
* Sets the font style and calls the associated process function (processTextFontStyle).
|
||||
* @param valueNew The new value for textFontStyle.
|
||||
*/
|
||||
setTextFontStyle(valueNew: TcHmi.FontStyle | null): void;
|
||||
/**
|
||||
* Returns the current value of textFontStyle.
|
||||
*/
|
||||
getTextFontStyle(): TcHmi.FontStyle | undefined;
|
||||
/**
|
||||
* Processes the current textFontStyle attribute value.
|
||||
*/
|
||||
protected __processTextFontStyle(): void;
|
||||
/**
|
||||
* Sets the font weight and calls the associated process function (processTextFontWeight).
|
||||
* @param valueNew The new value for textFontWeight.
|
||||
*/
|
||||
setTextFontWeight(valueNew: TcHmi.FontWeight | null): void;
|
||||
/**
|
||||
* Returns the current value of textFontWeight.
|
||||
*/
|
||||
getTextFontWeight(): TcHmi.FontWeight | undefined;
|
||||
/**
|
||||
* Processes the current textFontWeight attribute value.
|
||||
*/
|
||||
protected __processTextFontWeight(): void;
|
||||
/**
|
||||
* Sets the contentPadding value and calls the associated process function (processContentPadding) after it.
|
||||
* @param valueNew The new value for the contentPadding attribute as object.
|
||||
*/
|
||||
setContentPadding(valueNew: TcHmi.FourSidedCss | null): void;
|
||||
/**
|
||||
* The watch callback for the contentPadding object resolver.
|
||||
*/
|
||||
protected __onResolverForContentPaddingWatchCallback(data: TcHmi.Symbol.ObjectResolver.IWatchResultObject<TcHmi.FourSidedCss>): void;
|
||||
/**
|
||||
* Returns the current contentPadding value.
|
||||
* @returns The current value of the contentPadding member variable as json in string format.
|
||||
*/
|
||||
getContentPadding(): TcHmi.FourSidedCss | null | undefined;
|
||||
/**
|
||||
* Processes the current contentPadding attribute.
|
||||
*/
|
||||
protected __processContentPadding(): void;
|
||||
/**
|
||||
* Sets the text color and calls the associated process function (processTextColor).
|
||||
* @param valueNew The new value for textFColor.
|
||||
*/
|
||||
setTextColor(valueNew: TcHmi.SolidColor | null): void;
|
||||
/**
|
||||
* The watch callback for the textColor object resolver.
|
||||
*/
|
||||
protected __onResolverForTextColorWatchCallback(data: TcHmi.Symbol.ObjectResolver.IWatchResultObject<TcHmi.SolidColor>): void;
|
||||
/**
|
||||
* Returns the current value of textColor.
|
||||
* @returns The current value of textColor.
|
||||
*/
|
||||
getTextColor(): TcHmi.SolidColor | null | undefined;
|
||||
/**
|
||||
* Processes the current textColor attribute value.
|
||||
*/
|
||||
protected __processTextColor(): void;
|
||||
/**
|
||||
* Sets the wordWrap value and calls the associated process function (processWordWrap).
|
||||
* @param valueNew The new value for wordWrap.
|
||||
*/
|
||||
setWordWrap(valueNew: boolean | null): void;
|
||||
/**
|
||||
* Returns the current value of wordWrap.
|
||||
* @returns The current value of wordWrap.
|
||||
*/
|
||||
getWordWrap(): boolean | undefined;
|
||||
/**
|
||||
* Processes the current wordWrap attribute value.
|
||||
*/
|
||||
protected __processWordWrap(): void;
|
||||
/**
|
||||
* On scroll event callback.
|
||||
*/
|
||||
protected __onScroll(): void;
|
||||
/**
|
||||
* Sets the horizontal scroll attribute and calls the associated process function (processHorizontalScroll).
|
||||
* @param valueNew The new value for horizontalScroll.
|
||||
*/
|
||||
setHorizontalScroll(valueNew: ScrollMode | keyof typeof ScrollMode | null): void;
|
||||
/**
|
||||
* Returns the current value of horizontalScroll.
|
||||
* @returns The current value of horizontalScroll.
|
||||
*/
|
||||
getHorizontalScroll(): "Auto" | "Never" | "Always" | undefined;
|
||||
/**
|
||||
* Processes the current horizontalScroll attribute value.
|
||||
*/
|
||||
protected __processHorizontalScroll(): void;
|
||||
/**
|
||||
* Sets the vertical scroll attribute and calls the associated process function (processVerticalScroll).
|
||||
* @param valueNew The new value for verticalScroll.
|
||||
*/
|
||||
setVerticalScroll(valueNew: ScrollMode | keyof typeof ScrollMode | null): void;
|
||||
/**
|
||||
* Returns the current value of verticalScroll.
|
||||
* @returns The current value of verticalScroll.
|
||||
*/
|
||||
getVerticalScroll(): "Auto" | "Never" | "Always" | undefined;
|
||||
/**
|
||||
* Processes the current verticalScroll attribute value.
|
||||
*/
|
||||
protected __processVerticalScroll(): void;
|
||||
/**
|
||||
* Check if the scroll evnent is needed and add/remove it.
|
||||
*/
|
||||
protected __checkScrollEvent(): void;
|
||||
/**
|
||||
* Sets the horiizontal scroll position attribute and calls the associated process function (processHorizontalScrollPosition).
|
||||
* @param valueNew The new value for horizontalScrollPosition.
|
||||
*/
|
||||
setHorizontalScrollPosition(valueNew: number | null): void;
|
||||
/**
|
||||
* Return the current horizontal scroll position.
|
||||
*/
|
||||
getHorizontalScrollPosition(): number | null | undefined;
|
||||
protected __processHorizontalScrollPosition(): void;
|
||||
/**
|
||||
* Sets the vertical scroll position attribute and calls the associated process function (processVerticalScrollPosition).
|
||||
* @param valueNew The new value for verticalScrollPosition.
|
||||
*/
|
||||
setVerticalScrollPosition(valueNew: number | null): void;
|
||||
/**
|
||||
* Return the current vertical scroll position.
|
||||
*/
|
||||
getVerticalScrollPosition(): number | null | undefined;
|
||||
protected __processVerticalScrollPosition(): void;
|
||||
static ScrollMode: typeof ScrollMode;
|
||||
}
|
||||
export interface IControlSpecificData extends TcHmiControl.IControlSpecificData {
|
||||
'Beckhoff.TcHmiTextblock.triggerRebuildHeight': boolean;
|
||||
'Beckhoff.TcHmiTextblock.triggerRebuildWidth': boolean;
|
||||
}
|
||||
export { TcHmiTextblock as Control };
|
||||
declare const _TcHmiTextblock: typeof TcHmiTextblock;
|
||||
type tTcHmiTextblock = TcHmiTextblock;
|
||||
type tScrollMode = ScrollMode;
|
||||
type tIControlSpecificData = IControlSpecificData;
|
||||
declare global {
|
||||
namespace TcHmi.Controls.Beckhoff {
|
||||
const TcHmiTextblock: typeof _TcHmiTextblock;
|
||||
type TcHmiTextblock = tTcHmiTextblock;
|
||||
namespace TcHmiTextblock {
|
||||
type ScrollMode = tScrollMode;
|
||||
type IControlSpecificData = tIControlSpecificData;
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=TcHmiTextblock.esm.d.ts.map
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user