| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<ui version="4.0"> |
| 3 |
<class>OsmServerWidget</class> |
| 4 |
<widget class="QWidget" name="OsmServerWidget"> |
| 5 |
<property name="geometry"> |
| 6 |
<rect> |
| 7 |
<x>0</x> |
| 8 |
<y>0</y> |
| 9 |
<width>552</width> |
| 10 |
<height>195</height> |
| 11 |
</rect> |
| 12 |
</property> |
| 13 |
<property name="windowTitle"> |
| 14 |
<string>Form</string> |
| 15 |
</property> |
| 16 |
<layout class="QVBoxLayout" name="verticalLayout"> |
| 17 |
<property name="leftMargin"> |
| 18 |
<number>0</number> |
| 19 |
</property> |
| 20 |
<property name="topMargin"> |
| 21 |
<number>0</number> |
| 22 |
</property> |
| 23 |
<property name="rightMargin"> |
| 24 |
<number>0</number> |
| 25 |
</property> |
| 26 |
<property name="bottomMargin"> |
| 27 |
<number>0</number> |
| 28 |
</property> |
| 29 |
<item> |
| 30 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
| 31 |
<item> |
| 32 |
<widget class="QRadioButton" name="rbOsmServerSelected"> |
| 33 |
<property name="text"> |
| 34 |
<string>URL:</string> |
| 35 |
</property> |
| 36 |
</widget> |
| 37 |
</item> |
| 38 |
<item> |
| 39 |
<widget class="QComboBox" name="edOsmServerUrl"> |
| 40 |
<property name="sizePolicy"> |
| 41 |
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> |
| 42 |
<horstretch>0</horstretch> |
| 43 |
<verstretch>0</verstretch> |
| 44 |
</sizepolicy> |
| 45 |
</property> |
| 46 |
<property name="cursor"> |
| 47 |
<cursorShape>IBeamCursor</cursorShape> |
| 48 |
</property> |
| 49 |
<property name="mouseTracking"> |
| 50 |
<bool>true</bool> |
| 51 |
</property> |
| 52 |
<property name="acceptDrops"> |
| 53 |
<bool>true</bool> |
| 54 |
</property> |
| 55 |
<property name="editable"> |
| 56 |
<bool>true</bool> |
| 57 |
</property> |
| 58 |
<item> |
| 59 |
<property name="text"> |
| 60 |
<string>https://www.openstreetmap.org/</string> |
| 61 |
</property> |
| 62 |
</item> |
| 63 |
<item> |
| 64 |
<property name="text"> |
| 65 |
<string>https://master.apis.dev.openstreetmap.org/</string> |
| 66 |
</property> |
| 67 |
</item> |
| 68 |
</widget> |
| 69 |
</item> |
| 70 |
<item> |
| 71 |
<widget class="QToolButton" name="tbOsmServerAdd"> |
| 72 |
<property name="text"> |
| 73 |
<string>...</string> |
| 74 |
</property> |
| 75 |
<property name="icon"> |
| 76 |
<iconset resource="../../Icons/AllIcons.qrc"> |
| 77 |
<normaloff>:/Icons/actions/list-add.png</normaloff>:/Icons/actions/list-add.png</iconset> |
| 78 |
</property> |
| 79 |
</widget> |
| 80 |
</item> |
| 81 |
<item> |
| 82 |
<widget class="QToolButton" name="tbOsmServerDel"> |
| 83 |
<property name="text"> |
| 84 |
<string>...</string> |
| 85 |
</property> |
| 86 |
<property name="icon"> |
| 87 |
<iconset resource="../../Icons/AllIcons.qrc"> |
| 88 |
<normaloff>:/Icons/actions/list-remove.png</normaloff>:/Icons/actions/list-remove.png</iconset> |
| 89 |
</property> |
| 90 |
</widget> |
| 91 |
</item> |
| 92 |
</layout> |
| 93 |
</item> |
| 94 |
<item> |
| 95 |
<layout class="QHBoxLayout" name="horizontalLayout_6"> |
| 96 |
<item> |
| 97 |
<widget class="QLabel" name="label"> |
| 98 |
<property name="text"> |
| 99 |
<string>Authentication type</string> |
| 100 |
</property> |
| 101 |
</widget> |
| 102 |
</item> |
| 103 |
<item> |
| 104 |
<widget class="QComboBox" name="authType"> |
| 105 |
<property name="currentIndex"> |
| 106 |
<number>0</number> |
| 107 |
</property> |
| 108 |
<item> |
| 109 |
<property name="text"> |
| 110 |
<string>Username and password (deprecated)</string> |
| 111 |
</property> |
| 112 |
</item> |
| 113 |
<item> |
| 114 |
<property name="text"> |
| 115 |
<string>OAuth2 Redirect (redirect via 127.0.0.1:1337)</string> |
| 116 |
</property> |
| 117 |
</item> |
| 118 |
<item> |
| 119 |
<property name="text"> |
| 120 |
<string>OAuth2 OOB (manually copy code)</string> |
| 121 |
</property> |
| 122 |
</item> |
| 123 |
</widget> |
| 124 |
</item> |
| 125 |
</layout> |
| 126 |
</item> |
| 127 |
<item> |
| 128 |
<widget class="QStackedWidget" name="credentials"> |
| 129 |
<property name="currentIndex"> |
| 130 |
<number>1</number> |
| 131 |
</property> |
| 132 |
<widget class="QWidget" name="Page1"> |
| 133 |
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,5,1,3"> |
| 134 |
<item> |
| 135 |
<widget class="QLabel" name="label_14"> |
| 136 |
<property name="text"> |
| 137 |
<string>User:</string> |
| 138 |
</property> |
| 139 |
</widget> |
| 140 |
</item> |
| 141 |
<item> |
| 142 |
<widget class="QLineEdit" name="edOsmServerUser"/> |
| 143 |
</item> |
| 144 |
<item> |
| 145 |
<widget class="QLabel" name="label_13"> |
| 146 |
<property name="text"> |
| 147 |
<string>Pwd:</string> |
| 148 |
</property> |
| 149 |
</widget> |
| 150 |
</item> |
| 151 |
<item> |
| 152 |
<widget class="QLineEdit" name="edOsmServerPwd"> |
| 153 |
<property name="echoMode"> |
| 154 |
<enum>QLineEdit::Password</enum> |
| 155 |
</property> |
| 156 |
</widget> |
| 157 |
</item> |
| 158 |
</layout> |
| 159 |
</widget> |
| 160 |
<widget class="QWidget" name="page"> |
| 161 |
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
| 162 |
<item> |
| 163 |
<widget class="QLabel" name="lbLoginState"> |
| 164 |
<property name="text"> |
| 165 |
<string>Login state: Unknown</string> |
| 166 |
</property> |
| 167 |
</widget> |
| 168 |
</item> |
| 169 |
<item> |
| 170 |
<spacer name="horizontalSpacer"> |
| 171 |
<property name="orientation"> |
| 172 |
<enum>Qt::Horizontal</enum> |
| 173 |
</property> |
| 174 |
<property name="sizeHint" stdset="0"> |
| 175 |
<size> |
| 176 |
<width>309</width> |
| 177 |
<height>20</height> |
| 178 |
</size> |
| 179 |
</property> |
| 180 |
</spacer> |
| 181 |
</item> |
| 182 |
<item> |
| 183 |
<widget class="QPushButton" name="tbOAuth2Login"> |
| 184 |
<property name="text"> |
| 185 |
<string>Login</string> |
| 186 |
</property> |
| 187 |
</widget> |
| 188 |
</item> |
| 189 |
</layout> |
| 190 |
</widget> |
| 191 |
</widget> |
| 192 |
</item> |
| 193 |
</layout> |
| 194 |
</widget> |
| 195 |
<resources> |
| 196 |
<include location="../../Icons/AllIcons.qrc"/> |
| 197 |
</resources> |
| 198 |
<connections> |
| 199 |
<connection> |
| 200 |
<sender>authType</sender> |
| 201 |
<signal>currentIndexChanged(int)</signal> |
| 202 |
<receiver>credentials</receiver> |
| 203 |
<slot>setCurrentIndex(int)</slot> |
| 204 |
<hints> |
| 205 |
<hint type="sourcelabel"> |
| 206 |
<x>275</x> |
| 207 |
<y>43</y> |
| 208 |
</hint> |
| 209 |
<hint type="destinationlabel"> |
| 210 |
<x>275</x> |
| 211 |
<y>77</y> |
| 212 |
</hint> |
| 213 |
</hints> |
| 214 |
</connection> |
| 215 |
</connections> |
| 216 |
</ui> |