| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<ui version="4.0"> |
| 3 |
<class>FormDatabaseCleanup</class> |
| 4 |
<widget class="QDialog" name="FormDatabaseCleanup"> |
| 5 |
<property name="geometry"> |
| 6 |
<rect> |
| 7 |
<x>0</x> |
| 8 |
<y>0</y> |
| 9 |
<width>444</width> |
| 10 |
<height>359</height> |
| 11 |
</rect> |
| 12 |
</property> |
| 13 |
<property name="windowTitle"> |
| 14 |
<string>Cleanup database</string> |
| 15 |
</property> |
| 16 |
<layout class="QVBoxLayout" name="verticalLayout"> |
| 17 |
<item> |
| 18 |
<widget class="QGroupBox" name="m_grpCleanupSettings"> |
| 19 |
<property name="title"> |
| 20 |
<string>Cleanup settings</string> |
| 21 |
</property> |
| 22 |
<layout class="QGridLayout" name="gridLayout"> |
| 23 |
<item row="4" column="0" colspan="3"> |
| 24 |
<widget class="QCheckBox" name="m_checkShrink"> |
| 25 |
<property name="text"> |
| 26 |
<string>Optimize database file</string> |
| 27 |
</property> |
| 28 |
<property name="checked"> |
| 29 |
<bool>true</bool> |
| 30 |
</property> |
| 31 |
</widget> |
| 32 |
</item> |
| 33 |
<item row="0" column="0" colspan="3"> |
| 34 |
<widget class="QCheckBox" name="m_checkRemoveReadMessages"> |
| 35 |
<property name="text"> |
| 36 |
<string>Remove all read articles</string> |
| 37 |
</property> |
| 38 |
</widget> |
| 39 |
</item> |
| 40 |
<item row="5" column="1"> |
| 41 |
<widget class="QSpinBox" name="m_spinDays"> |
| 42 |
<property name="maximum"> |
| 43 |
<number>1000</number> |
| 44 |
</property> |
| 45 |
<property name="singleStep"> |
| 46 |
<number>1</number> |
| 47 |
</property> |
| 48 |
</widget> |
| 49 |
</item> |
| 50 |
<item row="2" column="0" colspan="3"> |
| 51 |
<widget class="QCheckBox" name="m_checkRemoveRecycleBin"> |
| 52 |
<property name="text"> |
| 53 |
<string>Remove all articles from recycle bin</string> |
| 54 |
</property> |
| 55 |
<property name="checked"> |
| 56 |
<bool>true</bool> |
| 57 |
</property> |
| 58 |
</widget> |
| 59 |
</item> |
| 60 |
<item row="5" column="0"> |
| 61 |
<widget class="QCheckBox" name="m_checkRemoveOldMessages"> |
| 62 |
<property name="text"> |
| 63 |
<string>Remove all articles older than</string> |
| 64 |
</property> |
| 65 |
<property name="checked"> |
| 66 |
<bool>true</bool> |
| 67 |
</property> |
| 68 |
</widget> |
| 69 |
</item> |
| 70 |
<item row="5" column="2"> |
| 71 |
<spacer name="horizontalSpacer"> |
| 72 |
<property name="orientation"> |
| 73 |
<enum>Qt::Horizontal</enum> |
| 74 |
</property> |
| 75 |
<property name="sizeHint" stdset="0"> |
| 76 |
<size> |
| 77 |
<width>40</width> |
| 78 |
<height>20</height> |
| 79 |
</size> |
| 80 |
</property> |
| 81 |
</spacer> |
| 82 |
</item> |
| 83 |
<item row="1" column="0" colspan="3"> |
| 84 |
<widget class="QCheckBox" name="m_checkRemoveStarredMessages"> |
| 85 |
<property name="text"> |
| 86 |
<string>Remove all starred articles</string> |
| 87 |
</property> |
| 88 |
</widget> |
| 89 |
</item> |
| 90 |
</layout> |
| 91 |
</widget> |
| 92 |
</item> |
| 93 |
<item> |
| 94 |
<widget class="QGroupBox" name="groupBox"> |
| 95 |
<property name="title"> |
| 96 |
<string>Database information</string> |
| 97 |
</property> |
| 98 |
<layout class="QFormLayout" name="formLayout"> |
| 99 |
<item row="0" column="0"> |
| 100 |
<widget class="QLabel" name="m_lblFileSize"> |
| 101 |
<property name="text"> |
| 102 |
<string>Total data size</string> |
| 103 |
</property> |
| 104 |
<property name="buddy"> |
| 105 |
<cstring>m_txtFileSize</cstring> |
| 106 |
</property> |
| 107 |
</widget> |
| 108 |
</item> |
| 109 |
<item row="0" column="1"> |
| 110 |
<widget class="QLineEdit" name="m_txtFileSize"> |
| 111 |
<property name="readOnly"> |
| 112 |
<bool>true</bool> |
| 113 |
</property> |
| 114 |
</widget> |
| 115 |
</item> |
| 116 |
<item row="1" column="0"> |
| 117 |
<widget class="QLabel" name="m_lblDatabaseType"> |
| 118 |
<property name="text"> |
| 119 |
<string>Database type</string> |
| 120 |
</property> |
| 121 |
<property name="buddy"> |
| 122 |
<cstring>m_txtDatabaseType</cstring> |
| 123 |
</property> |
| 124 |
</widget> |
| 125 |
</item> |
| 126 |
<item row="1" column="1"> |
| 127 |
<widget class="QLineEdit" name="m_txtDatabaseType"> |
| 128 |
<property name="readOnly"> |
| 129 |
<bool>true</bool> |
| 130 |
</property> |
| 131 |
</widget> |
| 132 |
</item> |
| 133 |
</layout> |
| 134 |
</widget> |
| 135 |
</item> |
| 136 |
<item> |
| 137 |
<widget class="QGroupBox" name="groupBox_2"> |
| 138 |
<property name="title"> |
| 139 |
<string>Progress</string> |
| 140 |
</property> |
| 141 |
<layout class="QVBoxLayout" name="verticalLayout_2"> |
| 142 |
<item> |
| 143 |
<widget class="LabelWithStatus" name="m_lblResult" native="true"> |
| 144 |
<property name="layoutDirection"> |
| 145 |
<enum>Qt::RightToLeft</enum> |
| 146 |
</property> |
| 147 |
</widget> |
| 148 |
</item> |
| 149 |
<item> |
| 150 |
<widget class="QProgressBar" name="m_progressBar"/> |
| 151 |
</item> |
| 152 |
</layout> |
| 153 |
</widget> |
| 154 |
</item> |
| 155 |
<item> |
| 156 |
<spacer name="verticalSpacer"> |
| 157 |
<property name="orientation"> |
| 158 |
<enum>Qt::Vertical</enum> |
| 159 |
</property> |
| 160 |
<property name="sizeHint" stdset="0"> |
| 161 |
<size> |
| 162 |
<width>20</width> |
| 163 |
<height>40</height> |
| 164 |
</size> |
| 165 |
</property> |
| 166 |
</spacer> |
| 167 |
</item> |
| 168 |
<item> |
| 169 |
<widget class="QDialogButtonBox" name="m_btnBox"> |
| 170 |
<property name="orientation"> |
| 171 |
<enum>Qt::Horizontal</enum> |
| 172 |
</property> |
| 173 |
<property name="standardButtons"> |
| 174 |
<set>QDialogButtonBox::Close|QDialogButtonBox::Ok</set> |
| 175 |
</property> |
| 176 |
</widget> |
| 177 |
</item> |
| 178 |
</layout> |
| 179 |
</widget> |
| 180 |
<customwidgets> |
| 181 |
<customwidget> |
| 182 |
<class>LabelWithStatus</class> |
| 183 |
<extends>QWidget</extends> |
| 184 |
<header>labelwithstatus.h</header> |
| 185 |
<container>1</container> |
| 186 |
</customwidget> |
| 187 |
</customwidgets> |
| 188 |
<tabstops> |
| 189 |
<tabstop>m_checkRemoveReadMessages</tabstop> |
| 190 |
<tabstop>m_checkRemoveRecycleBin</tabstop> |
| 191 |
<tabstop>m_checkShrink</tabstop> |
| 192 |
<tabstop>m_checkRemoveOldMessages</tabstop> |
| 193 |
<tabstop>m_spinDays</tabstop> |
| 194 |
<tabstop>m_txtFileSize</tabstop> |
| 195 |
<tabstop>m_txtDatabaseType</tabstop> |
| 196 |
</tabstops> |
| 197 |
<resources/> |
| 198 |
<connections> |
| 199 |
<connection> |
| 200 |
<sender>m_btnBox</sender> |
| 201 |
<signal>rejected()</signal> |
| 202 |
<receiver>FormDatabaseCleanup</receiver> |
| 203 |
<slot>close()</slot> |
| 204 |
<hints> |
| 205 |
<hint type="sourcelabel"> |
| 206 |
<x>199</x> |
| 207 |
<y>271</y> |
| 208 |
</hint> |
| 209 |
<hint type="destinationlabel"> |
| 210 |
<x>199</x> |
| 211 |
<y>145</y> |
| 212 |
</hint> |
| 213 |
</hints> |
| 214 |
</connection> |
| 215 |
<connection> |
| 216 |
<sender>m_checkRemoveOldMessages</sender> |
| 217 |
<signal>toggled(bool)</signal> |
| 218 |
<receiver>m_spinDays</receiver> |
| 219 |
<slot>setEnabled(bool)</slot> |
| 220 |
<hints> |
| 221 |
<hint type="sourcelabel"> |
| 222 |
<x>107</x> |
| 223 |
<y>87</y> |
| 224 |
</hint> |
| 225 |
<hint type="destinationlabel"> |
| 226 |
<x>226</x> |
| 227 |
<y>87</y> |
| 228 |
</hint> |
| 229 |
</hints> |
| 230 |
</connection> |
| 231 |
</connections> |
| 232 |
</ui> |