Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CogTool XML Import Checkboxes & Groups #44

Open
justingeeslin opened this issue Jul 19, 2020 · 1 comment
Open

CogTool XML Import Checkboxes & Groups #44

justingeeslin opened this issue Jul 19, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@justingeeslin
Copy link
Member

When importing the following CogTool XML, the import is successful and designs are created. There's a BUT.

<?xml version="1.0" encoding="UTF-8"?>
<cogtoolimport version="1">
  <design name="Design 1">
    <device>keyboard</device>
    <device>mouse</device>
    <frame name="Frame 1">
      <topLeftOrigin x="16.0" y="16.0"/>
      <widget name="Widget 1" type="check box" x="0.0" y="0.0" group="Group [i1]" shape="rectangle" w-is-standard="true">
        <displayLabel><![CDATA[My First Checkbox]]></displayLabel>
        <extent x="22.0" y="50.0" width="163.0" height="47.0"/>
        <transition destinationFrameName="Frame 2" durationInSecs="0.0">
          <action>
            <mouseAction action="downUp" button="left">
            </mouseAction>
          </action>
        </transition>
      </widget>
    </frame>
    <frame name="Frame 2">
      <topLeftOrigin x="168.0" y="176.0"/>
      <widget name="Widget 1" type="check box" x="0.0" y="0.0" group="Group [i1]" shape="rectangle" w-is-standard="true">
        <displayLabel><![CDATA[My First Checkbox]]></displayLabel>
        <extent x="22.0" y="50.0" width="163.0" height="47.0"/>
      </widget>
    </frame>
  </design>
</cogtoolimport>

BUT, when editing one of the designs, when you select the Checkbox element. CogTool crashes with no error message.

@justingeeslin justingeeslin added the bug Something isn't working label Jul 19, 2020
@justingeeslin
Copy link
Member Author

Interestingly, the crash does not occur when the group number is changed on the checkbox on the other frame from [i1] to [i9] like so:

<?xml version="1.0" encoding="UTF-8"?>
<cogtoolimport version="1">
  <design name="Design 1">
    <device>keyboard</device>
    <device>mouse</device>
    <frame name="Frame 1">
      <topLeftOrigin x="16.0" y="16.0"/>
      <widget name="Widget 1" type="check box" x="0.0" y="0.0" group="Group [i1]" shape="rectangle" w-is-standard="true">
        <displayLabel><![CDATA[My First Checkbox]]></displayLabel>
        <extent x="22.0" y="50.0" width="163.0" height="47.0"/>
        <transition destinationFrameName="Frame 2" durationInSecs="0.0">
          <action>
            <mouseAction action="downUp" button="left">
            </mouseAction>
          </action>
        </transition>
      </widget>
    </frame>
    <frame name="Frame 2">
      <topLeftOrigin x="168.0" y="176.0"/>
      <widget name="Widget 1" type="check box" x="0.0" y="0.0" group="Group [i9]" shape="rectangle" w-is-standard="true">
        <displayLabel><![CDATA[My First Checkbox]]></displayLabel>
        <extent x="22.0" y="50.0" width="163.0" height="47.0"/>
      </widget>
    </frame>
  </design>
</cogtoolimport>

It seems that having different group names across frames for the same element is important? Or a least it dodges this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant