2021-10-14 15:46:43 +00:00
|
|
|
class ctrlStatic;
|
|
|
|
class ctrlStaticMulti;
|
|
|
|
class ctrlEditMulti;
|
|
|
|
class ctrlButtonPicture;
|
|
|
|
class ctrlStaticPictureKeepAspect;
|
|
|
|
class ctrlControlsGroupNoScrollbars;
|
|
|
|
|
|
|
|
class GVAR(RscBase): ctrlControlsGroupNoScrollbars {
|
|
|
|
idc = -1;
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(15));
|
|
|
|
h = QUOTE(POS_H(18));
|
2021-10-14 15:46:43 +00:00
|
|
|
class controls {
|
|
|
|
class Border: ctrlStatic {
|
|
|
|
idc = IDC_BORDER;
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(15));
|
|
|
|
h = QUOTE(POS_H(18));
|
2021-10-14 15:46:43 +00:00
|
|
|
colorBackground[] = {0, 0, 0, 1};
|
|
|
|
};
|
|
|
|
class Background: ctrlStatic {
|
|
|
|
idc = IDC_BACKGROUND;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(pixelW);
|
|
|
|
y = QUOTE(pixelH);
|
|
|
|
w = QUOTE(POS_W(15) - 2 * pixelW);
|
|
|
|
h = QUOTE(POS_H(18) - 2 * pixelH);
|
2021-10-14 15:46:43 +00:00
|
|
|
colorBackground[] = {1, 1, 1, 1};
|
|
|
|
};
|
|
|
|
class Header: ctrlStatic {
|
|
|
|
idc = IDC_HEADER;
|
2023-02-02 05:28:55 +00:00
|
|
|
style = QUOTE(ST_MULTI + ST_NO_RECT);
|
2021-10-14 15:46:43 +00:00
|
|
|
x = 0;
|
|
|
|
y = 0;
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(14.3));
|
|
|
|
h = QUOTE(POS_H(0.7));
|
|
|
|
sizeEx = QUOTE(POS_H(0.65));
|
2021-10-14 15:46:43 +00:00
|
|
|
colorBackground[] = {0.1, 0.1, 0.1, 1};
|
|
|
|
};
|
|
|
|
class Close: ctrlButtonPicture {
|
|
|
|
idc = IDC_CLOSE;
|
|
|
|
text = "\a3\3DEN\Data\Displays\Display3DEN\search_end_ca.paa";
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(POS_W(14.3));
|
2021-10-14 15:46:43 +00:00
|
|
|
y = 0;
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(0.7));
|
|
|
|
h = QUOTE(POS_H(0.7));
|
2021-10-14 15:46:43 +00:00
|
|
|
offsetPressedX = 0;
|
|
|
|
offsetPressedY = 0;
|
|
|
|
colorBackground[] = {0.1, 0.1, 0.1, 1};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class GVAR(RscNotepad): GVAR(RscBase) {
|
|
|
|
class controls: controls {
|
|
|
|
class Border: Border {};
|
|
|
|
class Background: Background {
|
|
|
|
colorBackground[] = {0.97, 0.91, 0.77, 1};
|
|
|
|
};
|
|
|
|
class Header: Header {
|
|
|
|
text = CSTRING(Notepad_DisplayName);
|
|
|
|
};
|
|
|
|
class Close: Close {};
|
|
|
|
class Content: ctrlEditMulti {
|
|
|
|
idc = IDC_CONTENT;
|
2023-02-02 05:28:55 +00:00
|
|
|
style = QUOTE(ST_MULTI + ST_NO_RECT);
|
2021-10-14 15:46:43 +00:00
|
|
|
font = "EtelkaMonospaceProBold";
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(pixelW);
|
|
|
|
y = QUOTE(POS_H(0.7));
|
|
|
|
w = QUOTE(POS_W(15) - 2 * pixelW);
|
|
|
|
h = QUOTE(POS_H(17.3) - pixelH);
|
|
|
|
sizeEx = QUOTE(POS_H(0.9));
|
2021-10-14 15:46:43 +00:00
|
|
|
shadow = 0;
|
|
|
|
colorText[] = {0, 0, 0, 1};
|
|
|
|
colorBackground[] = {0, 0, 0, 0};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class GVAR(RscDocument): GVAR(RscBase) {
|
|
|
|
class controls: controls {
|
|
|
|
class Border: Border {};
|
|
|
|
class Background: Background {
|
|
|
|
colorBackground[] = {0.95, 0.95, 0.95, 1};
|
|
|
|
};
|
|
|
|
class Header: Header {
|
|
|
|
text = CSTRING(Document_DisplayName);
|
|
|
|
};
|
|
|
|
class Close: Close {};
|
|
|
|
class Content: ctrlStaticMulti {
|
|
|
|
idc = IDC_CONTENT;
|
|
|
|
font = "EtelkaMonospaceProBold";
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(pixelW);
|
|
|
|
y = QUOTE(POS_H(0.7));
|
|
|
|
w = QUOTE(POS_W(15) - 2 * pixelW);
|
|
|
|
h = QUOTE(POS_H(17.3) - pixelH);
|
|
|
|
sizeEx = QUOTE(POS_H(0.9));
|
2021-10-14 15:46:43 +00:00
|
|
|
shadow = 0;
|
|
|
|
colorText[] = {0, 0, 0, 1};
|
|
|
|
colorBackground[] = {0, 0, 0, 0};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class GVAR(RscPhoto): GVAR(RscBase) {
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(18));
|
2021-10-14 15:46:43 +00:00
|
|
|
class controls: controls {
|
|
|
|
class Border: Border {
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(18));
|
2021-10-14 15:46:43 +00:00
|
|
|
};
|
|
|
|
class Background: Background {
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(18) - 2 * pixelW);
|
2021-10-14 15:46:43 +00:00
|
|
|
};
|
|
|
|
class Header: Header {
|
|
|
|
text = CSTRING(Photo_DisplayName);
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(17.3));
|
2021-10-14 15:46:43 +00:00
|
|
|
};
|
|
|
|
class Close: Close {
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(POS_W(17.3));
|
2021-10-14 15:46:43 +00:00
|
|
|
};
|
|
|
|
class Content: ctrlStaticPictureKeepAspect {
|
|
|
|
idc = IDC_CONTENT;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(pixelW);
|
|
|
|
y = QUOTE(POS_H(0.7));
|
|
|
|
w = QUOTE(POS_W(18) - 2 * pixelW);
|
|
|
|
h = QUOTE(POS_H(17.3) - pixelH);
|
2021-10-14 15:46:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// Zeus Attributes Display
|
|
|
|
class RscText;
|
|
|
|
class RscEditMulti;
|
|
|
|
class RscControlsGroup;
|
|
|
|
class RscControlsGroupNoScrollbars;
|
|
|
|
|
|
|
|
class RscDisplayAttributes {
|
|
|
|
class Controls {
|
|
|
|
class Background;
|
|
|
|
class Title;
|
|
|
|
class Content: RscControlsGroup {
|
|
|
|
class controls;
|
|
|
|
};
|
|
|
|
class ButtonOK;
|
|
|
|
class ButtonCancel;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class GVAR(RscSetData): RscDisplayAttributes {
|
2023-11-05 18:36:00 +00:00
|
|
|
onLoad = QUOTE([ARR_3('onLoad',_this,QQGVAR(RscSetData))] call EFUNC(zeus,zeusAttributes));
|
|
|
|
onUnload = QUOTE([ARR_3('onUnload',_this,QQGVAR(RscSetData))] call EFUNC(zeus,zeusAttributes));
|
2021-10-14 15:46:43 +00:00
|
|
|
class Controls: Controls {
|
|
|
|
class Background: Background {};
|
|
|
|
class Title: Title {};
|
|
|
|
class Content: Content {
|
|
|
|
class Controls {
|
|
|
|
class setData: RscControlsGroupNoScrollbars {
|
|
|
|
onSetFocus = QUOTE(_this call FUNC(attributeFocus));
|
|
|
|
idc = IDC_ATTRIBUTE_GROUP;
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(26));
|
|
|
|
h = QUOTE(POS_H(6));
|
2021-10-14 15:46:43 +00:00
|
|
|
class controls {
|
|
|
|
class Label: RscText {
|
|
|
|
idc = IDC_ATTRIBUTE_LABEL;
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(POS_W(26));
|
|
|
|
h = QUOTE(POS_H(1));
|
2021-10-14 15:46:43 +00:00
|
|
|
colorBackground[] = {0, 0, 0, 0.5};
|
|
|
|
};
|
|
|
|
class Edit: RscEditMulti {
|
|
|
|
idc = IDC_ATTRIBUTE_EDIT;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(pixelW);
|
|
|
|
y = QUOTE(POS_H(1) + pixelH);
|
|
|
|
w = QUOTE(POS_W(26) - pixelW);
|
|
|
|
h = QUOTE(POS_H(5) - pixelH);
|
|
|
|
sizeEx = QUOTE(POS_H(0.9));
|
2021-10-14 15:46:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
class ButtonOK: ButtonOK {};
|
|
|
|
class ButtonCancel: ButtonCancel {};
|
|
|
|
};
|
|
|
|
};
|