mainwindow.ui Example File

can/mainwindow.ui

  <?xml version="1.0" encoding="UTF-8"?>
  <ui version="4.0">
   <class>MainWindow</class>
   <widget class="QMainWindow" name="MainWindow">
    <property name="geometry">
     <rect>
      <x>0</x>
      <y>0</y>
      <width>551</width>
      <height>481</height>
     </rect>
    </property>
    <property name="windowTitle">
     <string>CAN Example</string>
    </property>
    <widget class="QWidget" name="centralWidget">
     <layout class="QGridLayout" name="gridLayout_3">
      <item row="0" column="0">
       <widget class="QGroupBox" name="sendMessagesBox">
        <property name="title">
         <string>Send CAN message</string>
        </property>
        <layout class="QHBoxLayout" name="horizontalLayout">
         <item>
          <layout class="QGridLayout" name="gridLayout">
           <item row="0" column="0">
            <widget class="QLabel" name="label">
             <property name="text">
              <string>&amp;ID (hex)</string>
             </property>
             <property name="buddy">
              <cstring>idEdit</cstring>
             </property>
            </widget>
           </item>
           <item row="0" column="1">
            <widget class="QLineEdit" name="idEdit">
             <property name="placeholderText">
              <string>123</string>
             </property>
            </widget>
           </item>
           <item row="0" column="2" rowspan="3">
            <widget class="QGroupBox" name="groupBox">
             <property name="title">
              <string>Frame Type</string>
             </property>
             <property name="checkable">
              <bool>false</bool>
             </property>
             <layout class="QVBoxLayout" name="verticalLayout">
              <item>
               <widget class="QRadioButton" name="dataFrame">
                <property name="text">
                 <string>D&amp;ata</string>
                </property>
                <property name="checked">
                 <bool>true</bool>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QRadioButton" name="remoteFrame">
                <property name="text">
                 <string>Re&amp;mote Request</string>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QRadioButton" name="errorFrame">
                <property name="text">
                 <string>&amp;Error</string>
                </property>
               </widget>
              </item>
             </layout>
            </widget>
           </item>
           <item row="0" column="3">
            <widget class="QCheckBox" name="fdBox">
             <property name="text">
              <string>&amp;Flexible Data-Rate
  (64 byte payload)</string>
             </property>
            </widget>
           </item>
           <item row="1" column="3">
            <widget class="QCheckBox" name="effBox">
             <property name="toolTip">
              <string>Allow extended frames with 29 bit identifier.
  Otherwise, the standard format with 11 bit idenfier is used.</string>
             </property>
             <property name="text">
              <string>E&amp;xtended Frame
  (29 bit identifier)</string>
             </property>
            </widget>
           </item>
           <item row="2" column="3">
            <widget class="QPushButton" name="sendButton">
             <property name="text">
              <string>&amp;Send</string>
             </property>
            </widget>
           </item>
           <item row="1" column="1">
            <widget class="QLineEdit" name="lineEdit">
             <property name="placeholderText">
              <string>12 34 AB CE</string>
             </property>
            </widget>
           </item>
           <item row="1" column="0">
            <widget class="QLabel" name="label_2">
             <property name="text">
              <string>&amp;Data (hex)</string>
             </property>
             <property name="buddy">
              <cstring>lineEdit</cstring>
             </property>
            </widget>
           </item>
          </layout>
         </item>
        </layout>
       </widget>
      </item>
      <item row="1" column="0">
       <layout class="QGridLayout" name="gridLayout_2">
        <item row="0" column="0">
         <widget class="QLabel" name="label_4">
          <property name="text">
           <string>Messages</string>
          </property>
         </widget>
        </item>
        <item row="0" column="1">
         <widget class="QLabel" name="label_5">
          <property name="text">
           <string>Requests</string>
          </property>
         </widget>
        </item>
        <item row="0" column="2">
         <widget class="QLabel" name="label_6">
          <property name="text">
           <string>Errors</string>
          </property>
         </widget>
        </item>
        <item row="1" column="0">
         <widget class="QListWidget" name="receiveList"/>
        </item>
        <item row="1" column="1">
         <widget class="QListWidget" name="requestList"/>
        </item>
        <item row="1" column="2">
         <widget class="QListWidget" name="errorList"/>
        </item>
       </layout>
      </item>
     </layout>
    </widget>
    <widget class="QMenuBar" name="menuBar">
     <property name="geometry">
      <rect>
       <x>0</x>
       <y>0</y>
       <width>551</width>
       <height>21</height>
      </rect>
     </property>
     <widget class="QMenu" name="menuCalls">
      <property name="title">
       <string>&amp;Calls</string>
      </property>
      <addaction name="actionConnect"/>
      <addaction name="actionDisconnect"/>
      <addaction name="separator"/>
      <addaction name="actionQuit"/>
     </widget>
     <widget class="QMenu" name="menuHelp">
      <property name="title">
       <string>&amp;Help</string>
      </property>
      <addaction name="actionAboutQt"/>
     </widget>
     <addaction name="menuCalls"/>
     <addaction name="menuHelp"/>
    </widget>
    <widget class="QToolBar" name="mainToolBar">
     <attribute name="toolBarArea">
      <enum>TopToolBarArea</enum>
     </attribute>
     <attribute name="toolBarBreak">
      <bool>false</bool>
     </attribute>
     <addaction name="actionConnect"/>
     <addaction name="actionDisconnect"/>
    </widget>
    <widget class="QStatusBar" name="statusBar"/>
    <action name="actionConnect">
     <property name="icon">
      <iconset resource="can.qrc">
       <normaloff>:/images/connect.png</normaloff>:/images/connect.png</iconset>
     </property>
     <property name="text">
      <string>&amp;Connect</string>
     </property>
    </action>
    <action name="actionDisconnect">
     <property name="icon">
      <iconset resource="can.qrc">
       <normaloff>:/images/disconnect.png</normaloff>:/images/disconnect.png</iconset>
     </property>
     <property name="text">
      <string>&amp;Disconnect</string>
     </property>
    </action>
    <action name="actionQuit">
     <property name="icon">
      <iconset resource="can.qrc">
       <normaloff>:/images/application-exit.png</normaloff>:/images/application-exit.png</iconset>
     </property>
     <property name="text">
      <string>&amp;Quit</string>
     </property>
    </action>
    <action name="actionAboutQt">
     <property name="text">
      <string>&amp;About Qt</string>
     </property>
    </action>
   </widget>
   <layoutdefault spacing="6" margin="11"/>
   <resources>
    <include location="can.qrc"/>
   </resources>
   <connections/>
  </ui>