From 5211e95218839095e7af5163068b90c5d4f81542 Mon Sep 17 00:00:00 2001 From: Xiaoqiang Wang Date: Thu, 31 Aug 2023 16:49:22 +0200 Subject: [PATCH] fix panel layout to be resizable It basically removes layout and let caqtdm does the resize. --- qt/ecmcAxis_v10.ui | 2800 ++++++++++++++++++++++---------------------- 1 file changed, 1413 insertions(+), 1387 deletions(-) diff --git a/qt/ecmcAxis_v10.ui b/qt/ecmcAxis_v10.ui index b55b55df7..daa3f936e 100644 --- a/qt/ecmcAxis_v10.ui +++ b/qt/ecmcAxis_v10.ui @@ -7,7 +7,7 @@ 0 0 315 - 410 + 488 @@ -18,8 +18,8 @@ 0 30 - 230 - 386 + 231 + 455 @@ -34,12 +34,6 @@ 386 - - - 205 - 385 - - 0 @@ -71,825 +65,66 @@ axis - - - 2 - - - 1 - - - - - - - - 16777215 - 22 - - - - enable - - - $(SYS):$(Axis).CNEN - - - - - - - Qt::Horizontal - - - - 13 - 20 - - - - - - - - - - - 16777215 - 22 - - - - error: - - - - - - - true - - - false - - - 12 - - - 12 - - - $(SYS):$(Axis)-ErrId - - - - 0 - 85 - 0 - - - - - 0 - 0 - 0 - - - - - 255 - 0 - 0 - - - - - - - 0 - - - - - - - - - - - - 220 - 35 - - - - trajectory source - - - true - - - - 2 - - - 0 - - - 2 - - - 1 - - - - - - 0 - 18 - - - - Qt::LeftToRight - - - $(SYS):$(Axis)-TrjSrcTyp-Cmd - - - - - - - - 0 - 18 - - - - $(SYS):$(Axis)-TrjSrcTyp-RB - - - caLineEdit::Channel - - - caLineEdit::User - - - true - - - - - - - - - - - 220 - 70 - - - - - 16777215 - 16777215 - - - - PLC - - - true - - - - 0 - - - 2 - - - 1 - - - - - - 0 - 20 - - - - QFrame::Box - - - - - 10 - 10 - 100 - 16 - - - - enable - - - $(SYS):$(Axis)-PLC-EnaCmd - - - caToggleButton::Default - - - - - - 10 - 30 - 100 - 16 - - - - ext. commands - - - $(SYS):$(Axis)-CmdFrmPLCCmd - - - - - - 130 - 10 - 81 - 16 - - - - Qt::AlignAbsolute|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - $(SYS):$(Axis)-PLC-EnaCmd-RB - - - - 0 - 0 - 0 - - - - - 216 - 216 - 216 - - - - caLineEdit::Default - - - caLineEdit::Channel - - - caLineEdit::Channel - - - 1.000000000000000 - - - 0.000000000000000 - - - caLineEdit::WidthAndHeight - - - true - - - caLineEdit::decimal - - - - - - 130 - 30 - 81 - 16 - - - - Qt::AlignAbsolute|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - $(SYS):$(Axis)-PLC-EnaCmd-RB - - - - 0 - 0 - 0 - - - - - 216 - 216 - 216 - - - - caLineEdit::Default - - - caLineEdit::Channel - - - caLineEdit::Channel - - - 1.000000000000000 - - - 0.000000000000000 - - - caLineEdit::WidthAndHeight - - - true - - - caLineEdit::decimal - - - - - - - - - - - - 220 - 40 - - - - - 16777215 - 16777215 - - - - position - - - true - - - - 1 - - - 0 - - - 1 - - - 0 - - - 2 - - - - - - 0 - 0 - - - - - 215 - 60 - - - - - 16777215 - 16777215 - - - - motorRecord - - - - - 90 - 20 - 100 - 18 - - - - $(SYS):$(Axis).RBV - - - caLineEdit::Channel - - - caLineEdit::User - - - true - - - - - - 5 - 20 - 80 - 18 - - - - readback: - - - - - - 5 - 40 - 80 - 18 - - - - setpoint: - - - - - - 195 - 10 - 18 - 18 - - - - R - - - motorx_all.ui - - - P=$(SYS):,M=$(Axis) - - - - - - 90 - 40 - 101 - 19 - - - - - 2 - - - - - $(SYS):$(Axis).VAL - - - - - - - $(SYS):$(Axis).EGU - - - caLineEdit::Channel - - - caLineEdit::User - - - true - - - - - - - - - - - - 215 - 65 - - - - - 16777215 - 16777215 - - - - ECMC - - - false - - - false - - - - 2 - - - 1 - - - - - actual: - - - - - - - $(SYS):$(Axis)-PosAct - - - caLineEdit::Channel - - - caLineEdit::User - - - true - - - - - - - planned: - - - - - - - $(SYS):$(Axis)-PosSet - - - caLineEdit::Channel - - - caLineEdit::User - - - true - - - - - - - deviation: - - - - - - - $(SYS):$(Axis)-PosErr - - - caLineEdit::Channel - - - caLineEdit::User - - - true - - - - - - - - - - - - - - 220 - 40 - - - - error - - - true - - - - 2 - - - 0 - - - 2 - - - 1 - - - - - - 25 - 18 - - - - $(SYS):$(Axis)-ErrId - - - caLineEdit::User - - - - - - - - 18 - 18 - - - - # - - - - - - - - 50 - 18 - - - - error reset - - - $(SYS):$(Axis)-ErrRst - - - error reset - - - 0 - - - 1 - - - caMessageButton::Default - - - - - - - $(SYS):$(Axis)-MsgTxt - - - caLineEdit::Default - - - caLineEdit::onBackground - - - caLineEdit::User - - - - - - - - - - - - - - Motion - - - - 0 - - - 2 - - - - - Qt::Vertical - - - - 20 - 82 - - - - - - - - - 0 - 160 - - - - QFrame::Box - - + - 0 - 19 - 201 - 21 + 3 + 50 + 221 + 41 - 0 - 20 + 220 + 35 - - QFrame::Box + + trajectory source + + + true - + - 100 - 1 - 99 - 16 + 4 + 21 + 103 + 18 - + - 16777215 + 0 18 + + Qt::LeftToRight + - $(SYS):$(Axis)-VelAct + $(SYS):$(Axis)-TrjSrcTyp-Cmd - - - 192 - 192 - 192 - + + + + + 114 + 21 + 102 + 18 + - - caLineEdit::Static + + + 0 + 18 + + + + $(SYS):$(Axis)-TrjSrcTyp-RB caLineEdit::Channel @@ -901,719 +136,1510 @@ true - - - - 20 - 1 - 80 - 16 - + + + + + 3 + 90 + 220 + 91 + + + + + 220 + 70 + + + + + 16777215 + 16777215 + + + + PLC + + + true + + + + 0 - - - 16777215 - 16 - + + 2 - - VelAct: + + 1 - + + + + + 0 + 20 + + + + QFrame::Box + + + + + 10 + 10 + 100 + 18 + + + + enable + + + $(SYS):$(Axis)-PLC-EnaCmd + + + caToggleButton::Default + + + + + + 10 + 30 + 111 + 18 + + + + ext. commands + + + $(SYS):$(Axis)-CmdFrmPLCCmd + + + + + + 130 + 10 + 81 + 18 + + + + Qt::AlignAbsolute|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + $(SYS):$(Axis)-PLC-EnaCmd-RB + + + + 0 + 0 + 0 + + + + + 216 + 216 + 216 + + + + caLineEdit::Default + + + caLineEdit::Channel + + + caLineEdit::Channel + + + 1.000000000000000 + + + 0.000000000000000 + + + caLineEdit::WidthAndHeight + + + true + + + caLineEdit::decimal + + + + + + 130 + 30 + 81 + 18 + + + + Qt::AlignAbsolute|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + $(SYS):$(Axis)-PLC-EnaCmd-RB + + + + 0 + 0 + 0 + + + + + 216 + 216 + 216 + + + + caLineEdit::Default + + + caLineEdit::Channel + + + caLineEdit::Channel + + + 1.000000000000000 + + + 0.000000000000000 + + + caLineEdit::WidthAndHeight + + + true + + + caLineEdit::decimal + + + + + - + - 0 - 40 - 201 - 21 + 3 + 180 + 221 + 181 - 0 - 20 + 220 + 40 + + + + + 16777215 + 16777215 - - QFrame::Box + + position - + + true + + - 20 - 1 - 80 - 16 + 3 + 19 + 215 + 65 - + + + 0 + 0 + + + - 16777215 - 16 + 215 + 65 - - TgtPos: - - - - - - 100 - 1 - 70 - 15 - - 16777215 - 18 + 16777215 - - false - - - $(SYS):$(Axis)-TgtPosCmd - - - true - + + motorRecord + + + + + 90 + 20 + 100 + 18 + + + + $(SYS):$(Axis).RBV + + + caLineEdit::Channel + + + caLineEdit::User + + + true + + + + + + 5 + 20 + 80 + 18 + + + + readback: + + + + + + 5 + 40 + 80 + 18 + + + + setpoint: + + + + + + 195 + 10 + 18 + 18 + + + + R + + + motorx_all.ui + + + P=$(SYS):,M=$(Axis) + + + + + + 91 + 41 + 65 + 18 + + + + $(SYS):$(Axis).VAL + + + + + + 158 + 43 + 32 + 18 + + + + $(SYS):$(Axis).EGU + + + caLineEdit::Channel + + + caLineEdit::User + + + true + + - + - 170 - 2 - 29 - 16 + 3 + 90 + 215 + 81 + + + 215 + 65 + + 16777215 - 18 + 16777215 - - $(SYS):$(Axis)-TgtPosCmd.EGU - - - - 192 - 192 - 192 - - - - caLineEdit::Static - - - caLineEdit::Channel + + ECMC - - caLineEdit::User + + false - - true + + false - + + + + 3 + 41 + 50 + 18 + + + + planned: + + + + + + 3 + 60 + 60 + 18 + + + + deviation: + + + + + + 76 + 22 + 136 + 17 + + + + $(SYS):$(Axis)-PosAct + + + caLineEdit::Channel + + + caLineEdit::User + + + true + + + + + + 76 + 41 + 136 + 17 + + + + $(SYS):$(Axis)-PosSet + + + caLineEdit::Channel + + + caLineEdit::User + + + true + + + + + + 3 + 22 + 50 + 18 + + + + actual: + + + + + + 76 + 60 + 136 + 17 + + + + $(SYS):$(Axis)-PosErr + + + caLineEdit::Channel + + + caLineEdit::User + + + true + + + - + - 0 - 60 - 201 - 21 + 3 + 353 + 220 + 73 - 0 - 20 + 220 + 40 - - QFrame::Box + + error + + + true - + - 20 - 1 - 80 - 16 + 4 + 21 + 18 + 18 - + - 16777215 - 16 + 18 + 18 - TgtVel: + # - + - 100 - 1 - 70 - 15 + 145 + 21 + 71 + 23 - + - 16777215 + 50 18 - - false + + error reset - $(SYS):$(Axis)-TgtVelCmd + $(SYS):$(Axis)-ErrRst - - true + + error reset + + + 0 + + + 1 + + + caMessageButton::Default - + - 170 - 2 - 29 - 16 + 4 + 50 + 212 + 17 - - - 16777215 - 18 - - - $(SYS):$(Axis)-TgtVelCmd.EGU - - - - 192 - 192 - 192 - + $(SYS):$(Axis)-MsgTxt - caLineEdit::Static + caLineEdit::Default - - caLineEdit::Channel + + caLineEdit::onBackground - + caLineEdit::User - - true - - - - - - - 0 - 80 - 200 - 21 - - - - - 0 - 20 - - - - QFrame::Box - - - - - 20 - 1 - 80 - 16 - - - - - 16777215 - 16 - - - - type: - - + - 100 - 1 - 80 + 27 + 23 + 108 18 - 0 - 18 - - - - - 16777215 + 25 18 - - Qt::LeftToRight - - $(SYS):$(Axis)-MtnCmd + $(SYS):$(Axis)-ErrId + + + caLineEdit::User - + - 0 - 0 - 201 - 21 + 4 + 23 + 70 + 20 - + - 0 - 20 + 16777215 + 22 - - QFrame::Box + + enable + + + $(SYS):$(Axis).CNEN - - - - 100 - 1 - 99 - 16 - - - - - 16777215 - 18 - - - - $(SYS):$(Axis)-PosAct - - - - 192 - 192 - 192 - - - - caLineEdit::Static - - - caLineEdit::Channel - - - caLineEdit::User - - - true - - - - - - 20 - 1 - 80 - 16 - - - - - 16777215 - 16 - - - - PosAct: - - - + - 110 - 100 - 91 - 61 + 138 + 22 + 51 + 20 - + - 0 - 20 + 16777215 + 22 - - QFrame::Box + + error: - - - - 10 - 0 - 51 - 16 - - - - - 16777215 - 18 - - - - enable - - - $(SYS):$(Axis)-EnaCmd - - - - - - 67 - 0 - 18 - 16 - - - - true - - - false - - - $(SYS):$(Axis)-EnaAct - - - - 0 - 85 - 0 - - - - - - true - - - - 50 - 20 - 33 - 20 - - - - stop - - - $(SYS):$(Axis)-StpCmd - - - stop - - - - 255 - 255 - 255 - - - - - 170 - 0 - 0 - - - - - 170 - 0 - 0 - - - - 1 - - - - - - - - true - - - - 10 - 20 - 34 - 21 - - - - exec - - - $(SYS):$(Axis)-ExeCmd - - - exec - - - - 255 - 255 - 255 - - - - - 0 - 0 - 127 - - - - - 170 - 0 - 0 - - - - - - - 1 - - - 0 - - - - - - 10 - 40 - 75 - 20 - - - - $(SYS):$(Axis)-RstCmd - - - reset - - - 1 - - - - - - + - 0 - 110 - 111 - 41 + 200 + 24 + 16 + 16 - - - 255 - 0 - 0 - + + true - - caFrame::Filled + + false - - caFrame::IfNotZero + + 12 + + + 12 $(SYS):$(Axis)-ErrId - - - - - ERROR - - - Qt::AlignCenter - - - - 255 - 255 - 255 - - - - - - - - - - - - - 0 - 50 - - - - QFrame::Box - - - - - 0 - 0 - 18 - 20 - - - - - 18 - 18 - - - - # - - - - - - 149 - 0 - 70 - 20 - - - - - 50 - 18 - + + + 0 + 85 + 0 + - - error reset + + + 0 + 0 + 0 + - - $(SYS):$(Axis)-ErrRst + + + 255 + 0 + 0 + - - error reset + + - + 0 - - 1 - - - caMessageButton::Default - - - - - - 5 - 26 - 190 - 15 - - - - $(SYS):$(Axis)-MsgTxt - - - caLineEdit::Default - - - caLineEdit::onBackground - - - caLineEdit::User - - - - - - 24 - 1 - 119 - 18 - - - - - 25 - 18 - - - - $(SYS):$(Axis)-ErrId - - - caLineEdit::User - + + + Motion + + + + + 0 + 0 + 226 + 160 + + + + + 0 + 160 + + + + QFrame::Box + + + + + 0 + 19 + 201 + 21 + + + + + 0 + 20 + + + + QFrame::Box + + + + + 100 + 1 + 99 + 16 + + + + + 16777215 + 18 + + + + $(SYS):$(Axis)-VelAct + + + + 192 + 192 + 192 + + + + caLineEdit::Static + + + caLineEdit::Channel + + + caLineEdit::User + + + true + + + + + + 20 + 1 + 80 + 16 + + + + + 16777215 + 16 + + + + VelAct: + + + + + + + 0 + 40 + 201 + 21 + + + + + 0 + 20 + + + + QFrame::Box + + + + + 20 + 1 + 80 + 16 + + + + + 16777215 + 16 + + + + TgtPos: + + + + + + 100 + 1 + 70 + 15 + + + + + 16777215 + 18 + + + + false + + + $(SYS):$(Axis)-TgtPosCmd + + + true + + + + + + 170 + 2 + 29 + 16 + + + + + 16777215 + 18 + + + + $(SYS):$(Axis)-TgtPosCmd.EGU + + + + 192 + 192 + 192 + + + + caLineEdit::Static + + + caLineEdit::Channel + + + caLineEdit::User + + + true + + + + + + + 0 + 60 + 201 + 21 + + + + + 0 + 20 + + + + QFrame::Box + + + + + 20 + 1 + 80 + 16 + + + + + 16777215 + 16 + + + + TgtVel: + + + + + + 100 + 1 + 70 + 15 + + + + + 16777215 + 18 + + + + false + + + $(SYS):$(Axis)-TgtVelCmd + + + true + + + + + + 170 + 2 + 29 + 16 + + + + + 16777215 + 18 + + + + $(SYS):$(Axis)-TgtVelCmd.EGU + + + + 192 + 192 + 192 + + + + caLineEdit::Static + + + caLineEdit::Channel + + + caLineEdit::User + + + true + + + + + + + 0 + 80 + 201 + 21 + + + + + 0 + 20 + + + + QFrame::Box + + + + + 20 + 1 + 80 + 16 + + + + + 16777215 + 16 + + + + type: + + + + + + 100 + 1 + 80 + 18 + + + + + 0 + 18 + + + + + 16777215 + 18 + + + + Qt::LeftToRight + + + $(SYS):$(Axis)-MtnCmd + + + + + + + 0 + 0 + 201 + 21 + + + + + 0 + 20 + + + + QFrame::Box + + + + + 100 + 1 + 99 + 16 + + + + + 16777215 + 18 + + + + $(SYS):$(Axis)-PosAct + + + + 192 + 192 + 192 + + + + caLineEdit::Static + + + caLineEdit::Channel + + + caLineEdit::User + + + true + + + + + + 20 + 1 + 80 + 16 + + + + + 16777215 + 16 + + + + PosAct: + + + + + + + 110 + 100 + 91 + 61 + + + + + 0 + 20 + + + + QFrame::Box + + + + + 10 + 1 + 51 + 16 + + + + + 16777215 + 18 + + + + enable + + + $(SYS):$(Axis)-EnaCmd + + + + + + 67 + 1 + 18 + 16 + + + + true + + + false + + + $(SYS):$(Axis)-EnaAct + + + + 0 + 85 + 0 + + + + + + true + + + + 50 + 20 + 33 + 20 + + + + stop + + + $(SYS):$(Axis)-StpCmd + + + stop + + + + 255 + 255 + 255 + + + + + 170 + 0 + 0 + + + + + 170 + 0 + 0 + + + + 1 + + + + + + + + true + + + + 10 + 20 + 34 + 21 + + + + exec + + + $(SYS):$(Axis)-ExeCmd + + + exec + + + + 255 + 255 + 255 + + + + + 0 + 0 + 127 + + + + + 170 + 0 + 0 + + + + + + + 1 + + + 0 + + + + + + 10 + 40 + 75 + 20 + + + + $(SYS):$(Axis)-RstCmd + + + reset + + + 1 + + + + + + + + + + 0 + 110 + 111 + 41 + + + + + 255 + 0 + 0 + + + + caFrame::Filled + + + caFrame::IfNotZero + + + $(SYS):$(Axis)-ErrId + + + + + + ERROR + + + Qt::AlignCenter + + + + 255 + 255 + 255 + + + + + + + + + + + 0 + 162 + 226 + 50 + + + + + 0 + 50 + + + + QFrame::Box + + + + + 0 + 0 + 18 + 20 + + + + + 18 + 18 + + + + # + + + + + + 149 + 1 + 70 + 20 + + + + + 50 + 18 + + + + error reset + + + $(SYS):$(Axis)-ErrRst + + + error reset + + + 0 + + + 1 + + + caMessageButton::Default + + + + + + 5 + 26 + 190 + 15 + + + + $(SYS):$(Axis)-MsgTxt + + + caLineEdit::Default + + + caLineEdit::onBackground + + + caLineEdit::User + + + + + + 24 + 1 + 119 + 18 + + + + + 25 + 18 + + + + $(SYS):$(Axis)-ErrId + + + caLineEdit::User + + + + Tuning @@ -2724,7 +2750,7 @@ 232 30 82 - 381 + 231 @@ -2849,7 +2875,7 @@ - 12 + 9