<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>ScratchPad</class> <widget class="QDialog" name="ScratchPad"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>574</width> <height>600</height> </rect> </property> <property name="windowTitle"> <string>Scratchpad</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="label_sourcecode"> <property name="text"> <string>Copy or write some C/C++ code here:</string> </property> </widget> </item> <item> <widget class="CodeEditor" name="plainTextEdit"> <property name="font"> <font> <family>Courier New</family> <pointsize>10</pointsize> </font> </property> </widget> </item> <item> <widget class="QLabel" name="label_filename"> <property name="text"> <string>Optionally enter a filename (mainly for automatic language detection) and click on "Check":</string> </property> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <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="QLineEdit" name="lineEdit"> <property name="placeholderText"> <string>filename</string> </property> </widget> </item> <item> <widget class="QPushButton" name="mCheckButton"> <property name="text"> <string>Check</string> </property> </widget> </item> <item> <widget class="QDialogButtonBox" name="mButtonBox"> <property name="sizePolicy"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Close</set> </property> </widget> </item> </layout> </item> </layout> </widget> <customwidgets> <customwidget> <class>CodeEditor</class> <extends>QPlainTextEdit</extends> <header>codeeditor.h</header> </customwidget> </customwidgets> <resources/> <connections> <connection> <sender>mButtonBox</sender> <signal>rejected()</signal> <receiver>ScratchPad</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>20</x> <y>20</y> </hint> <hint type="destinationlabel"> <x>20</x> <y>20</y> </hint> </hints> </connection> </connections> </ui>