1<?xml version="1.0" encoding="UTF-8"?> 2<ui version="4.0"> 3 <class>librepcb::library::editor::PackageChooserDialog</class> 4 <widget class="QDialog" name="librepcb::library::editor::PackageChooserDialog"> 5 <property name="windowModality"> 6 <enum>Qt::ApplicationModal</enum> 7 </property> 8 <property name="geometry"> 9 <rect> 10 <x>0</x> 11 <y>0</y> 12 <width>800</width> 13 <height>400</height> 14 </rect> 15 </property> 16 <property name="windowTitle"> 17 <string>Choose Package</string> 18 </property> 19 <property name="modal"> 20 <bool>true</bool> 21 </property> 22 <layout class="QGridLayout" name="gridLayout" rowstretch="0,1,0" columnstretch="1,1,1"> 23 <item row="0" column="0" rowspan="2"> 24 <layout class="QVBoxLayout" name="verticalLayout" stretch="0,1"> 25 <item> 26 <widget class="QLineEdit" name="edtSearch"> 27 <property name="maxLength"> 28 <number>100</number> 29 </property> 30 <property name="placeholderText"> 31 <string>What are you looking for?</string> 32 </property> 33 <property name="clearButtonEnabled"> 34 <bool>true</bool> 35 </property> 36 </widget> 37 </item> 38 <item> 39 <widget class="QTreeView" name="treeCategories"> 40 <property name="editTriggers"> 41 <set>QAbstractItemView::NoEditTriggers</set> 42 </property> 43 <attribute name="headerVisible"> 44 <bool>false</bool> 45 </attribute> 46 </widget> 47 </item> 48 </layout> 49 </item> 50 <item row="0" column="1" rowspan="2"> 51 <widget class="QListWidget" name="listPackages"> 52 <property name="sortingEnabled"> 53 <bool>true</bool> 54 </property> 55 </widget> 56 </item> 57 <item row="0" column="2"> 58 <layout class="QVBoxLayout" name="verticalLayout_2"> 59 <property name="spacing"> 60 <number>3</number> 61 </property> 62 <item> 63 <widget class="QLabel" name="lblPackageName"> 64 <property name="font"> 65 <font> 66 <pointsize>11</pointsize> 67 <weight>75</weight> 68 <bold>true</bold> 69 </font> 70 </property> 71 <property name="text"> 72 <string notr="true">Name</string> 73 </property> 74 <property name="wordWrap"> 75 <bool>true</bool> 76 </property> 77 </widget> 78 </item> 79 <item> 80 <widget class="QLabel" name="lblPackageDescription"> 81 <property name="text"> 82 <string notr="true">Description</string> 83 </property> 84 <property name="wordWrap"> 85 <bool>true</bool> 86 </property> 87 <property name="textInteractionFlags"> 88 <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> 89 </property> 90 </widget> 91 </item> 92 </layout> 93 </item> 94 <item row="1" column="2"> 95 <widget class="GraphicsView" name="graphicsView"> 96 <property name="verticalScrollBarPolicy"> 97 <enum>Qt::ScrollBarAlwaysOff</enum> 98 </property> 99 <property name="horizontalScrollBarPolicy"> 100 <enum>Qt::ScrollBarAlwaysOff</enum> 101 </property> 102 </widget> 103 </item> 104 <item row="2" column="0" colspan="3"> 105 <widget class="QDialogButtonBox" name="buttonBox_2"> 106 <property name="orientation"> 107 <enum>Qt::Horizontal</enum> 108 </property> 109 <property name="standardButtons"> 110 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> 111 </property> 112 </widget> 113 </item> 114 </layout> 115 </widget> 116 <customwidgets> 117 <customwidget> 118 <class>GraphicsView</class> 119 <extends>QGraphicsView</extends> 120 <header location="global">librepcb/common/graphics/graphicsview.h</header> 121 </customwidget> 122 </customwidgets> 123 <resources/> 124 <connections> 125 <connection> 126 <sender>buttonBox_2</sender> 127 <signal>accepted()</signal> 128 <receiver>librepcb::library::editor::PackageChooserDialog</receiver> 129 <slot>accept()</slot> 130 <hints> 131 <hint type="sourcelabel"> 132 <x>810</x> 133 <y>422</y> 134 </hint> 135 <hint type="destinationlabel"> 136 <x>696</x> 137 <y>443</y> 138 </hint> 139 </hints> 140 </connection> 141 <connection> 142 <sender>buttonBox_2</sender> 143 <signal>rejected()</signal> 144 <receiver>librepcb::library::editor::PackageChooserDialog</receiver> 145 <slot>reject()</slot> 146 <hints> 147 <hint type="sourcelabel"> 148 <x>901</x> 149 <y>425</y> 150 </hint> 151 <hint type="destinationlabel"> 152 <x>919</x> 153 <y>443</y> 154 </hint> 155 </hints> 156 </connection> 157 </connections> 158</ui> 159