eric6/MicroPython/MicroPythonReplWidget.ui

Mon, 29 Jul 2019 20:20:18 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 29 Jul 2019 20:20:18 +0200
branch
micropython
changeset 7095
8e10acb1cd85
parent 7082
ec199ef0cfc6
child 7103
aea236dc8002
permissions
-rw-r--r--

Refactored and improved the MicroPython code to be able to show the file manager and the REPL simultaneously.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MicroPythonReplWidget</class>
 <widget class="QWidget" name="MicroPythonReplWidget">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>456</width>
    <height>548</height>
   </rect>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <item>
    <layout class="QHBoxLayout" name="horizontalLayout">
     <item>
      <widget class="QLabel" name="deviceIconLabel">
       <property name="sizePolicy">
        <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
         <horstretch>0</horstretch>
         <verstretch>0</verstretch>
        </sizepolicy>
       </property>
       <property name="minimumSize">
        <size>
         <width>48</width>
         <height>48</height>
        </size>
       </property>
      </widget>
     </item>
     <item>
      <layout class="QGridLayout" name="gridLayout">
       <item row="1" column="0" colspan="3">
        <widget class="QLabel" name="deviceInfoLabel">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="wordWrap">
          <bool>true</bool>
         </property>
        </widget>
       </item>
       <item row="0" column="0">
        <widget class="QComboBox" name="deviceTypeComboBox">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
        </widget>
       </item>
       <item row="0" column="2">
        <widget class="E5Led" name="deviceConnectedLed" native="true"/>
       </item>
       <item row="0" column="1">
        <widget class="QToolButton" name="checkButton">
         <property name="toolTip">
          <string>Press to check for connected devices</string>
         </property>
        </widget>
       </item>
      </layout>
     </item>
    </layout>
   </item>
   <item>
    <layout class="QHBoxLayout" name="horizontalLayout_2">
     <item>
      <widget class="QToolButton" name="openButton">
       <property name="toolTip">
        <string>Press to open a file of the connected device</string>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QToolButton" name="saveButton">
       <property name="toolTip">
        <string>Press to save the current editor to the connected device</string>
       </property>
      </widget>
     </item>
     <item>
      <widget class="Line" name="line">
       <property name="lineWidth">
        <number>2</number>
       </property>
       <property name="orientation">
        <enum>Qt::Vertical</enum>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QToolButton" name="runButton">
       <property name="toolTip">
        <string>Press to run the current script on the selected device</string>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QToolButton" name="replButton">
       <property name="toolTip">
        <string>Press to open a terminal (REPL) on the selected device</string>
       </property>
       <property name="checkable">
        <bool>true</bool>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QToolButton" name="filesButton">
       <property name="toolTip">
        <string>Press to open a file manager on the selected device (REPL must be disconnected first)</string>
       </property>
       <property name="checkable">
        <bool>true</bool>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QToolButton" name="chartButton">
       <property name="toolTip">
        <string>Press to open a chart window to display data receive from the selected device</string>
       </property>
       <property name="checkable">
        <bool>true</bool>
       </property>
      </widget>
     </item>
     <item>
      <spacer name="horizontalSpacer">
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
       <property name="sizeHint" stdset="0">
        <size>
         <width>40</width>
         <height>20</height>
        </size>
       </property>
      </spacer>
     </item>
     <item>
      <widget class="QToolButton" name="disconnectButton">
       <property name="toolTip">
        <string>Press to disconnect the selected device</string>
       </property>
      </widget>
     </item>
    </layout>
   </item>
   <item>
    <widget class="QTextEdit" name="replEdit">
     <property name="contextMenuPolicy">
      <enum>Qt::CustomContextMenu</enum>
     </property>
     <property name="undoRedoEnabled">
      <bool>false</bool>
     </property>
     <property name="lineWrapMode">
      <enum>QTextEdit::NoWrap</enum>
     </property>
     <property name="acceptRichText">
      <bool>false</bool>
     </property>
    </widget>
   </item>
   <item>
    <widget class="QLabel" name="statusLabel"/>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>E5Led</class>
   <extends>QWidget</extends>
   <header>E5Gui/E5Led.h</header>
   <container>1</container>
  </customwidget>
 </customwidgets>
 <tabstops>
  <tabstop>deviceTypeComboBox</tabstop>
  <tabstop>checkButton</tabstop>
  <tabstop>openButton</tabstop>
  <tabstop>saveButton</tabstop>
  <tabstop>runButton</tabstop>
  <tabstop>replButton</tabstop>
  <tabstop>filesButton</tabstop>
  <tabstop>chartButton</tabstop>
  <tabstop>disconnectButton</tabstop>
  <tabstop>replEdit</tabstop>
 </tabstops>
 <resources/>
 <connections/>
</ui>

eric ide

mercurial