src/eric7/Preferences/ConfigurationPages/MimeTypesPage.ui

Fri, 25 Nov 2022 14:15:48 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 25 Nov 2022 14:15:48 +0100
branch
eric7
changeset 9534
5ed8445f3b31
parent 9413
80c06d472826
child 9563
8ee667840224
permissions
-rw-r--r--

Improved the file type determination (i.e. is it text) and added a configurable option to even load files, whose type cannot be determine as being text.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MimeTypesPage</class>
 <widget class="QWidget" name="MimeTypesPage">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>480</width>
    <height>515</height>
   </rect>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <item>
    <widget class="QLabel" name="headerLabel">
     <property name="text">
      <string>&lt;b&gt;Configure Text Mimetypes&lt;/b&gt;</string>
     </property>
    </widget>
   </item>
   <item>
    <widget class="Line" name="line9">
     <property name="frameShape">
      <enum>QFrame::HLine</enum>
     </property>
     <property name="frameShadow">
      <enum>QFrame::Sunken</enum>
     </property>
     <property name="orientation">
      <enum>Qt::Horizontal</enum>
     </property>
    </widget>
   </item>
   <item>
    <widget class="QLabel" name="label">
     <property name="text">
      <string>Files of the mime types configured below are opened in an eric editor (in addition to all 'text' mime types).</string>
     </property>
     <property name="wordWrap">
      <bool>true</bool>
     </property>
    </widget>
   </item>
   <item>
    <widget class="EricStringListEditWidget" name="textMimeTypesList" native="true">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="focusPolicy">
      <enum>Qt::WheelFocus</enum>
     </property>
    </widget>
   </item>
   <item>
    <widget class="QCheckBox" name="loadUnknownCheckBox">
     <property name="toolTip">
      <string>Load files whose type cannot be determined as being text.</string>
     </property>
     <property name="text">
      <string>Load files of unknown type</string>
     </property>
    </widget>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>EricStringListEditWidget</class>
   <extends>QWidget</extends>
   <header>eric7/EricWidgets/EricStringListEditWidget.h</header>
   <container>1</container>
  </customwidget>
 </customwidgets>
 <resources/>
 <connections/>
</ui>

eric ide

mercurial