settingsdlg.ui 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>SettingsDialog</class>
  4. <widget class="QDialog" name="SettingsDialog">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>773</width>
  10. <height>609</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Settings</string>
  15. </property>
  16. <property name="windowIcon">
  17. <iconset resource="../resources.qrc">
  18. <normaloff>:/root.png</normaloff>:/root.png</iconset>
  19. </property>
  20. <layout class="QGridLayout" name="gridLayout">
  21. <item row="0" column="0">
  22. <layout class="QVBoxLayout" name="verticalLayout">
  23. <item>
  24. <widget class="QTabWidget" name="tabWidget">
  25. <property name="enabled">
  26. <bool>true</bool>
  27. </property>
  28. <property name="locale">
  29. <locale language="English" country="UnitedStates"/>
  30. </property>
  31. <property name="currentIndex">
  32. <number>1</number>
  33. </property>
  34. <widget class="QWidget" name="basic_tab">
  35. <property name="locale">
  36. <locale language="English" country="UnitedStates"/>
  37. </property>
  38. <attribute name="title">
  39. <string>Basic</string>
  40. </attribute>
  41. <layout class="QGridLayout" name="gridLayout_11">
  42. <item row="2" column="0">
  43. <widget class="QGroupBox" name="groupBox_4">
  44. <property name="enabled">
  45. <bool>true</bool>
  46. </property>
  47. <property name="title">
  48. <string>General</string>
  49. </property>
  50. <layout class="QFormLayout" name="formLayout_4">
  51. <property name="fieldGrowthPolicy">
  52. <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
  53. </property>
  54. <item row="0" column="0">
  55. <widget class="QLabel" name="label_13">
  56. <property name="text">
  57. <string>Type:</string>
  58. </property>
  59. </widget>
  60. </item>
  61. <item row="0" column="1">
  62. <widget class="QLabel" name="type_label">
  63. <property name="font">
  64. <font>
  65. <weight>50</weight>
  66. <bold>false</bold>
  67. </font>
  68. </property>
  69. <property name="text">
  70. <string>---</string>
  71. </property>
  72. </widget>
  73. </item>
  74. <item row="1" column="0">
  75. <widget class="QLabel" name="label_14">
  76. <property name="text">
  77. <string>Installed by RPM:</string>
  78. </property>
  79. </widget>
  80. </item>
  81. <item row="1" column="1">
  82. <widget class="QLabel" name="rpm_label">
  83. <property name="font">
  84. <font>
  85. <weight>50</weight>
  86. <bold>false</bold>
  87. </font>
  88. </property>
  89. <property name="text">
  90. <string>---</string>
  91. </property>
  92. </widget>
  93. </item>
  94. </layout>
  95. </widget>
  96. </item>
  97. <item row="3" column="0" colspan="2">
  98. <widget class="QGroupBox" name="groupBox">
  99. <property name="enabled">
  100. <bool>true</bool>
  101. </property>
  102. <property name="title">
  103. <string>Disk storage</string>
  104. </property>
  105. <layout class="QGridLayout" name="gridLayout_3">
  106. <item row="1" column="1">
  107. <widget class="QSpinBox" name="root_resize">
  108. <property name="enabled">
  109. <bool>true</bool>
  110. </property>
  111. <property name="alignment">
  112. <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  113. </property>
  114. <property name="suffix">
  115. <string>MiB</string>
  116. </property>
  117. <property name="maximum">
  118. <number>1048576</number>
  119. </property>
  120. <property name="singleStep">
  121. <number>1024</number>
  122. </property>
  123. </widget>
  124. </item>
  125. <item row="0" column="1">
  126. <widget class="QSpinBox" name="max_priv_storage">
  127. <property name="enabled">
  128. <bool>true</bool>
  129. </property>
  130. <property name="alignment">
  131. <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  132. </property>
  133. <property name="suffix">
  134. <string>MiB</string>
  135. </property>
  136. <property name="minimum">
  137. <number>0</number>
  138. </property>
  139. <property name="maximum">
  140. <number>1048576</number>
  141. </property>
  142. <property name="singleStep">
  143. <number>1024</number>
  144. </property>
  145. <property name="value">
  146. <number>0</number>
  147. </property>
  148. </widget>
  149. </item>
  150. <item row="0" column="0">
  151. <widget class="QLabel" name="label_3">
  152. <property name="text">
  153. <string>Private storage max. size:</string>
  154. </property>
  155. <property name="buddy">
  156. <cstring>max_priv_storage</cstring>
  157. </property>
  158. </widget>
  159. </item>
  160. <item row="1" column="0">
  161. <widget class="QLabel" name="root_resize_label">
  162. <property name="enabled">
  163. <bool>true</bool>
  164. </property>
  165. <property name="text">
  166. <string>System storage max. size:</string>
  167. </property>
  168. </widget>
  169. </item>
  170. </layout>
  171. </widget>
  172. </item>
  173. <item row="6" column="0">
  174. <spacer name="verticalSpacer">
  175. <property name="orientation">
  176. <enum>Qt::Vertical</enum>
  177. </property>
  178. <property name="sizeHint" stdset="0">
  179. <size>
  180. <width>20</width>
  181. <height>73</height>
  182. </size>
  183. </property>
  184. </spacer>
  185. </item>
  186. <item row="2" column="1">
  187. <widget class="QGroupBox" name="networking_groupbox">
  188. <property name="title">
  189. <string>Networking</string>
  190. </property>
  191. <layout class="QFormLayout" name="formLayout_3">
  192. <property name="fieldGrowthPolicy">
  193. <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
  194. </property>
  195. <item row="0" column="0">
  196. <widget class="QLabel" name="label_10">
  197. <property name="text">
  198. <string>IP:</string>
  199. </property>
  200. </widget>
  201. </item>
  202. <item row="1" column="0">
  203. <widget class="QLabel" name="label_11">
  204. <property name="text">
  205. <string>Netmask:</string>
  206. </property>
  207. </widget>
  208. </item>
  209. <item row="1" column="1">
  210. <widget class="QLabel" name="netmask_label">
  211. <property name="font">
  212. <font>
  213. <weight>50</weight>
  214. <bold>false</bold>
  215. </font>
  216. </property>
  217. <property name="text">
  218. <string>---</string>
  219. </property>
  220. </widget>
  221. </item>
  222. <item row="2" column="0">
  223. <widget class="QLabel" name="label_12">
  224. <property name="text">
  225. <string>Gateway:</string>
  226. </property>
  227. </widget>
  228. </item>
  229. <item row="2" column="1">
  230. <widget class="QLabel" name="gateway_label">
  231. <property name="font">
  232. <font>
  233. <weight>50</weight>
  234. <bold>false</bold>
  235. </font>
  236. </property>
  237. <property name="text">
  238. <string>---</string>
  239. </property>
  240. </widget>
  241. </item>
  242. <item row="0" column="1">
  243. <widget class="QLabel" name="ip_label">
  244. <property name="font">
  245. <font>
  246. <weight>50</weight>
  247. <bold>false</bold>
  248. </font>
  249. </property>
  250. <property name="text">
  251. <string>---</string>
  252. </property>
  253. </widget>
  254. </item>
  255. </layout>
  256. </widget>
  257. </item>
  258. <item row="4" column="0">
  259. <widget class="QLabel" name="label_5">
  260. <property name="text">
  261. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt;* &lt;/span&gt;&lt;span style=&quot; color:#000000;&quot;&gt;Cannot be changed while the VM is running&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  262. </property>
  263. </widget>
  264. </item>
  265. <item row="0" column="0" colspan="2">
  266. <widget class="QGroupBox" name="groupBox_3">
  267. <property name="title">
  268. <string>Settings</string>
  269. </property>
  270. <layout class="QGridLayout" name="gridLayout_2">
  271. <item row="0" column="0">
  272. <widget class="QLabel" name="label">
  273. <property name="text">
  274. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Name &amp;amp;&amp;amp; label&lt;span style=&quot; color:#ff0000;&quot;&gt;*&lt;/span&gt;:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  275. </property>
  276. <property name="buddy">
  277. <cstring>vmname</cstring>
  278. </property>
  279. </widget>
  280. </item>
  281. <item row="1" column="0">
  282. <widget class="QLabel" name="label_2">
  283. <property name="text">
  284. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Template&lt;span style=&quot; color:#ff0000;&quot;&gt;*&lt;/span&gt;:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  285. </property>
  286. <property name="buddy">
  287. <cstring>template_name</cstring>
  288. </property>
  289. </widget>
  290. </item>
  291. <item row="2" column="0">
  292. <widget class="QLabel" name="label_18">
  293. <property name="text">
  294. <string>Networking:</string>
  295. </property>
  296. <property name="buddy">
  297. <cstring>netVM</cstring>
  298. </property>
  299. </widget>
  300. </item>
  301. <item row="0" column="3">
  302. <widget class="QComboBox" name="vmlabel">
  303. <property name="frame">
  304. <bool>true</bool>
  305. </property>
  306. </widget>
  307. </item>
  308. <item row="0" column="1">
  309. <widget class="QLineEdit" name="vmname">
  310. <property name="text">
  311. <string>----</string>
  312. </property>
  313. <property name="maxLength">
  314. <number>32</number>
  315. </property>
  316. </widget>
  317. </item>
  318. <item row="0" column="2">
  319. <widget class="QPushButton" name="rename_vm_button">
  320. <property name="text">
  321. <string>Rename</string>
  322. </property>
  323. </widget>
  324. </item>
  325. <item row="1" column="1" colspan="2">
  326. <widget class="QComboBox" name="template_name"/>
  327. </item>
  328. <item row="2" column="1" colspan="2">
  329. <widget class="QComboBox" name="netVM"/>
  330. </item>
  331. <item row="3" column="0" colspan="3">
  332. <layout class="QHBoxLayout" name="horizontalLayout">
  333. <item>
  334. <widget class="QCheckBox" name="include_in_backups">
  335. <property name="enabled">
  336. <bool>true</bool>
  337. </property>
  338. <property name="text">
  339. <string>Include in backups by default</string>
  340. </property>
  341. <property name="checked">
  342. <bool>true</bool>
  343. </property>
  344. </widget>
  345. </item>
  346. <item>
  347. <widget class="QCheckBox" name="run_in_debug_mode">
  348. <property name="text">
  349. <string>Run in debug mode</string>
  350. </property>
  351. </widget>
  352. </item>
  353. </layout>
  354. </item>
  355. <item row="4" column="0" colspan="3">
  356. <layout class="QHBoxLayout" name="horizontalLayout_3">
  357. <item>
  358. <widget class="QCheckBox" name="autostart_vm">
  359. <property name="text">
  360. <string>Start VM automatically on boot</string>
  361. </property>
  362. </widget>
  363. </item>
  364. <item>
  365. <widget class="QCheckBox" name="seamless_gui">
  366. <property name="text">
  367. <string>Seamless GUI</string>
  368. </property>
  369. </widget>
  370. </item>
  371. </layout>
  372. </item>
  373. </layout>
  374. </widget>
  375. </item>
  376. <item row="4" column="1">
  377. <widget class="QPushButton" name="delete_vm_button">
  378. <property name="styleSheet">
  379. <string notr="true">background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 179, 179, 255), stop:1 rgba(255, 108, 108, 255));
  380. border-color: rgb(170, 0, 0);
  381. border-style: solid;
  382. border-width: 1px;</string>
  383. </property>
  384. <property name="text">
  385. <string>Delete VM</string>
  386. </property>
  387. </widget>
  388. </item>
  389. <item row="5" column="1">
  390. <widget class="QPushButton" name="clone_vm_button">
  391. <property name="text">
  392. <string>Clone VM</string>
  393. </property>
  394. </widget>
  395. </item>
  396. </layout>
  397. </widget>
  398. <widget class="QWidget" name="advanced_tab">
  399. <property name="enabled">
  400. <bool>true</bool>
  401. </property>
  402. <attribute name="title">
  403. <string>Advanced</string>
  404. </attribute>
  405. <layout class="QGridLayout" name="gridLayout_9">
  406. <item row="0" column="1" rowspan="2" colspan="2">
  407. <layout class="QVBoxLayout" name="verticalLayout_4">
  408. <property name="sizeConstraint">
  409. <enum>QLayout::SetDefaultConstraint</enum>
  410. </property>
  411. <property name="bottomMargin">
  412. <number>0</number>
  413. </property>
  414. <item>
  415. <widget class="QGroupBox" name="kernel_groupbox">
  416. <property name="enabled">
  417. <bool>true</bool>
  418. </property>
  419. <property name="sizePolicy">
  420. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  421. <horstretch>0</horstretch>
  422. <verstretch>0</verstretch>
  423. </sizepolicy>
  424. </property>
  425. <property name="title">
  426. <string>Kernel</string>
  427. </property>
  428. <layout class="QFormLayout" name="formLayout_9">
  429. <property name="fieldGrowthPolicy">
  430. <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
  431. </property>
  432. <item row="0" column="0">
  433. <widget class="QLabel" name="label_19">
  434. <property name="text">
  435. <string>Kernel:</string>
  436. </property>
  437. <property name="buddy">
  438. <cstring>kernel</cstring>
  439. </property>
  440. </widget>
  441. </item>
  442. <item row="0" column="1">
  443. <widget class="QComboBox" name="kernel"/>
  444. </item>
  445. <item row="1" column="0">
  446. <widget class="QLabel" name="label_20">
  447. <property name="text">
  448. <string>Kernel opts:</string>
  449. </property>
  450. </widget>
  451. </item>
  452. <item row="1" column="1">
  453. <widget class="QLabel" name="kernel_opts">
  454. <property name="font">
  455. <font>
  456. <weight>50</weight>
  457. <bold>false</bold>
  458. </font>
  459. </property>
  460. <property name="text">
  461. <string>[]</string>
  462. </property>
  463. </widget>
  464. </item>
  465. </layout>
  466. </widget>
  467. </item>
  468. </layout>
  469. </item>
  470. <item row="2" column="0">
  471. <widget class="QGroupBox" name="other_groupbox">
  472. <property name="title">
  473. <string>Other</string>
  474. </property>
  475. <layout class="QFormLayout" name="formLayout_2">
  476. <item row="1" column="0">
  477. <widget class="QLabel" name="label_26">
  478. <property name="text">
  479. <string>Default DispVM:</string>
  480. </property>
  481. <property name="buddy">
  482. <cstring>default_dispvm</cstring>
  483. </property>
  484. </widget>
  485. </item>
  486. <item row="1" column="1">
  487. <widget class="QComboBox" name="default_dispvm"/>
  488. </item>
  489. <item row="2" column="0" colspan="2">
  490. <widget class="QPushButton" name="boot_from_device_button">
  491. <property name="text">
  492. <string>Boot qube from CDROM</string>
  493. </property>
  494. </widget>
  495. </item>
  496. </layout>
  497. </widget>
  498. </item>
  499. <item row="0" column="0" rowspan="2">
  500. <widget class="QGroupBox" name="groupBox_2">
  501. <property name="enabled">
  502. <bool>true</bool>
  503. </property>
  504. <property name="sizePolicy">
  505. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  506. <horstretch>0</horstretch>
  507. <verstretch>0</verstretch>
  508. </sizepolicy>
  509. </property>
  510. <property name="title">
  511. <string>Memory/CPU</string>
  512. </property>
  513. <layout class="QGridLayout" name="gridLayout_4">
  514. <item row="0" column="0">
  515. <widget class="QLabel" name="label_15">
  516. <property name="enabled">
  517. <bool>true</bool>
  518. </property>
  519. <property name="text">
  520. <string>Initial memory:</string>
  521. </property>
  522. <property name="buddy">
  523. <cstring>init_mem</cstring>
  524. </property>
  525. </widget>
  526. </item>
  527. <item row="0" column="1">
  528. <widget class="QSpinBox" name="init_mem">
  529. <property name="enabled">
  530. <bool>true</bool>
  531. </property>
  532. <property name="alignment">
  533. <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  534. </property>
  535. <property name="minimum">
  536. <number>0</number>
  537. </property>
  538. <property name="maximum">
  539. <number>1000000</number>
  540. </property>
  541. <property name="singleStep">
  542. <number>50</number>
  543. </property>
  544. <property name="value">
  545. <number>256</number>
  546. </property>
  547. </widget>
  548. </item>
  549. <item row="0" column="2">
  550. <widget class="QLabel" name="label_16">
  551. <property name="enabled">
  552. <bool>true</bool>
  553. </property>
  554. <property name="text">
  555. <string>MB</string>
  556. </property>
  557. </widget>
  558. </item>
  559. <item row="1" column="0">
  560. <widget class="QLabel" name="label_17">
  561. <property name="text">
  562. <string>Max memory:</string>
  563. </property>
  564. <property name="buddy">
  565. <cstring>max_mem_size</cstring>
  566. </property>
  567. </widget>
  568. </item>
  569. <item row="1" column="1">
  570. <widget class="QSpinBox" name="max_mem_size">
  571. <property name="enabled">
  572. <bool>true</bool>
  573. </property>
  574. <property name="alignment">
  575. <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  576. </property>
  577. <property name="minimum">
  578. <number>0</number>
  579. </property>
  580. <property name="maximum">
  581. <number>10000000</number>
  582. </property>
  583. <property name="singleStep">
  584. <number>50</number>
  585. </property>
  586. <property name="value">
  587. <number>400</number>
  588. </property>
  589. </widget>
  590. </item>
  591. <item row="1" column="2">
  592. <widget class="QLabel" name="label_6">
  593. <property name="text">
  594. <string>MB</string>
  595. </property>
  596. </widget>
  597. </item>
  598. <item row="2" column="0">
  599. <widget class="QLabel" name="label_4">
  600. <property name="text">
  601. <string>VCPUs no.:</string>
  602. </property>
  603. <property name="buddy">
  604. <cstring>vcpus</cstring>
  605. </property>
  606. </widget>
  607. </item>
  608. <item row="2" column="1">
  609. <widget class="QSpinBox" name="vcpus">
  610. <property name="enabled">
  611. <bool>true</bool>
  612. </property>
  613. <property name="alignment">
  614. <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
  615. </property>
  616. <property name="value">
  617. <number>1</number>
  618. </property>
  619. </widget>
  620. </item>
  621. <item row="3" column="0" colspan="2">
  622. <widget class="QCheckBox" name="include_in_balancing">
  623. <property name="enabled">
  624. <bool>true</bool>
  625. </property>
  626. <property name="text">
  627. <string>Include in memory balancing</string>
  628. </property>
  629. </widget>
  630. </item>
  631. <item row="4" column="0" colspan="3">
  632. <widget class="QLabel" name="dmm_warning_adv">
  633. <property name="font">
  634. <font>
  635. <weight>75</weight>
  636. <italic>true</italic>
  637. <bold>true</bold>
  638. </font>
  639. </property>
  640. <property name="styleSheet">
  641. <string notr="true">color:rgb(255, 0, 0)</string>
  642. </property>
  643. <property name="text">
  644. <string>Dynamic memory balancing can result in some devices not working!</string>
  645. </property>
  646. <property name="wordWrap">
  647. <bool>true</bool>
  648. </property>
  649. </widget>
  650. </item>
  651. </layout>
  652. </widget>
  653. </item>
  654. <item row="4" column="0">
  655. <spacer name="verticalSpacer_2">
  656. <property name="orientation">
  657. <enum>Qt::Vertical</enum>
  658. </property>
  659. <property name="sizeHint" stdset="0">
  660. <size>
  661. <width>20</width>
  662. <height>40</height>
  663. </size>
  664. </property>
  665. </spacer>
  666. </item>
  667. </layout>
  668. </widget>
  669. <widget class="QWidget" name="firewall_tab">
  670. <attribute name="icon">
  671. <iconset resource="../resources.qrc">
  672. <normaloff>:/firewall.png</normaloff>:/firewall.png</iconset>
  673. </attribute>
  674. <attribute name="title">
  675. <string>Firewall rules</string>
  676. </attribute>
  677. <layout class="QGridLayout" name="gridLayout_8">
  678. <item row="1" column="0">
  679. <layout class="QHBoxLayout" name="horizontalLayout_5">
  680. <item>
  681. <widget class="QRadioButton" name="policy_allow_radio_button">
  682. <property name="text">
  683. <string>Allow all outgoing Internet connections</string>
  684. </property>
  685. </widget>
  686. </item>
  687. <item>
  688. <widget class="QRadioButton" name="policy_deny_radio_button">
  689. <property name="text">
  690. <string>Limit outgoing Internet connections to ...</string>
  691. </property>
  692. </widget>
  693. </item>
  694. </layout>
  695. </item>
  696. <item row="3" column="0" colspan="2">
  697. <widget class="Line" name="line">
  698. <property name="orientation">
  699. <enum>Qt::Horizontal</enum>
  700. </property>
  701. </widget>
  702. </item>
  703. <item row="7" column="0" colspan="2">
  704. <widget class="QLabel" name="label_22">
  705. <property name="text">
  706. <string>NOTE: To block all network access, set Networking to (none) on the Basic settings tab. This tab provides a very simplified firewall configuration. All DNS requests and ICMP (pings) will be allowed. For more granular control, use the command line tool qvm-firewall.</string>
  707. </property>
  708. <property name="alignment">
  709. <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
  710. </property>
  711. <property name="wordWrap">
  712. <bool>true</bool>
  713. </property>
  714. </widget>
  715. </item>
  716. <item row="4" column="0">
  717. <widget class="QLabel" name="firewal_rules_label">
  718. <property name="text">
  719. <string>List of allowed (whitelisted) addresses:</string>
  720. </property>
  721. </widget>
  722. </item>
  723. <item row="6" column="0">
  724. <widget class="QWidget" name="tempFullAccessWidget" native="true">
  725. <property name="enabled">
  726. <bool>true</bool>
  727. </property>
  728. <layout class="QGridLayout" name="gridLayout_6">
  729. <property name="leftMargin">
  730. <number>0</number>
  731. </property>
  732. <property name="topMargin">
  733. <number>0</number>
  734. </property>
  735. <property name="bottomMargin">
  736. <number>0</number>
  737. </property>
  738. <item row="1" column="0">
  739. <widget class="QCheckBox" name="temp_full_access">
  740. <property name="text">
  741. <string>Allow full access for </string>
  742. </property>
  743. </widget>
  744. </item>
  745. <item row="1" column="1">
  746. <widget class="QSpinBox" name="temp_full_access_time">
  747. <property name="suffix">
  748. <string> min</string>
  749. </property>
  750. <property name="value">
  751. <number>5</number>
  752. </property>
  753. </widget>
  754. </item>
  755. <item row="1" column="2">
  756. <spacer name="horizontalSpacer_2">
  757. <property name="orientation">
  758. <enum>Qt::Horizontal</enum>
  759. </property>
  760. <property name="sizeHint" stdset="0">
  761. <size>
  762. <width>40</width>
  763. <height>20</height>
  764. </size>
  765. </property>
  766. </spacer>
  767. </item>
  768. </layout>
  769. </widget>
  770. </item>
  771. <item row="5" column="0" colspan="2">
  772. <layout class="QHBoxLayout" name="firewallRulesLayout">
  773. <property name="sizeConstraint">
  774. <enum>QLayout::SetMaximumSize</enum>
  775. </property>
  776. <item>
  777. <layout class="QVBoxLayout" name="verticalLayout_5">
  778. <item>
  779. <widget class="QTreeView" name="rulesTreeView">
  780. <property name="rootIsDecorated">
  781. <bool>false</bool>
  782. </property>
  783. <property name="uniformRowHeights">
  784. <bool>false</bool>
  785. </property>
  786. <property name="itemsExpandable">
  787. <bool>false</bool>
  788. </property>
  789. <property name="sortingEnabled">
  790. <bool>true</bool>
  791. </property>
  792. <property name="allColumnsShowFocus">
  793. <bool>true</bool>
  794. </property>
  795. <property name="expandsOnDoubleClick">
  796. <bool>true</bool>
  797. </property>
  798. <attribute name="headerDefaultSectionSize">
  799. <number>40</number>
  800. </attribute>
  801. <attribute name="headerStretchLastSection">
  802. <bool>false</bool>
  803. </attribute>
  804. </widget>
  805. </item>
  806. <item>
  807. <layout class="QHBoxLayout" name="horizontalLayout_4"/>
  808. </item>
  809. </layout>
  810. </item>
  811. <item>
  812. <layout class="QVBoxLayout" name="verticalLayout_6">
  813. <item>
  814. <widget class="QPushButton" name="new_rule_button">
  815. <property name="text">
  816. <string/>
  817. </property>
  818. <property name="icon">
  819. <iconset resource="../resources.qrc">
  820. <normaloff>:/add.png</normaloff>:/add.png</iconset>
  821. </property>
  822. <property name="iconSize">
  823. <size>
  824. <width>24</width>
  825. <height>24</height>
  826. </size>
  827. </property>
  828. </widget>
  829. </item>
  830. <item>
  831. <widget class="QPushButton" name="edit_rule_button">
  832. <property name="text">
  833. <string/>
  834. </property>
  835. <property name="icon">
  836. <iconset resource="../resources.qrc">
  837. <normaloff>:/pencil.png</normaloff>:/pencil.png</iconset>
  838. </property>
  839. <property name="iconSize">
  840. <size>
  841. <width>24</width>
  842. <height>24</height>
  843. </size>
  844. </property>
  845. </widget>
  846. </item>
  847. <item>
  848. <widget class="QPushButton" name="delete_rule_button">
  849. <property name="text">
  850. <string/>
  851. </property>
  852. <property name="icon">
  853. <iconset resource="../resources.qrc">
  854. <normaloff>:/remove.png</normaloff>:/remove.png</iconset>
  855. </property>
  856. <property name="iconSize">
  857. <size>
  858. <width>24</width>
  859. <height>24</height>
  860. </size>
  861. </property>
  862. </widget>
  863. </item>
  864. <item>
  865. <spacer name="verticalSpacer_4">
  866. <property name="orientation">
  867. <enum>Qt::Vertical</enum>
  868. </property>
  869. <property name="sizeHint" stdset="0">
  870. <size>
  871. <width>20</width>
  872. <height>40</height>
  873. </size>
  874. </property>
  875. </spacer>
  876. </item>
  877. </layout>
  878. </item>
  879. </layout>
  880. </item>
  881. <item row="0" column="0">
  882. <widget class="QLabel" name="firewall_modified_outside_label">
  883. <property name="palette">
  884. <palette>
  885. <active>
  886. <colorrole role="WindowText">
  887. <brush brushstyle="SolidPattern">
  888. <color alpha="255">
  889. <red>255</red>
  890. <green>0</green>
  891. <blue>0</blue>
  892. </color>
  893. </brush>
  894. </colorrole>
  895. </active>
  896. <inactive>
  897. <colorrole role="WindowText">
  898. <brush brushstyle="SolidPattern">
  899. <color alpha="255">
  900. <red>255</red>
  901. <green>0</green>
  902. <blue>0</blue>
  903. </color>
  904. </brush>
  905. </colorrole>
  906. </inactive>
  907. <disabled>
  908. <colorrole role="WindowText">
  909. <brush brushstyle="SolidPattern">
  910. <color alpha="255">
  911. <red>139</red>
  912. <green>142</green>
  913. <blue>142</blue>
  914. </color>
  915. </brush>
  916. </colorrole>
  917. </disabled>
  918. </palette>
  919. </property>
  920. <property name="font">
  921. <font>
  922. <weight>75</weight>
  923. <italic>true</italic>
  924. <bold>true</bold>
  925. </font>
  926. </property>
  927. <property name="text">
  928. <string>Firewall has been modified manually - please use qvm-firewall for any further configuration.</string>
  929. </property>
  930. </widget>
  931. </item>
  932. </layout>
  933. </widget>
  934. <widget class="QWidget" name="devices_tab">
  935. <property name="enabled">
  936. <bool>true</bool>
  937. </property>
  938. <attribute name="icon">
  939. <iconset resource="../resources.qrc">
  940. <normaloff>:/storagevm.png</normaloff>:/storagevm.png</iconset>
  941. </attribute>
  942. <attribute name="title">
  943. <string>Devices</string>
  944. </attribute>
  945. <layout class="QVBoxLayout" name="verticalLayout_3">
  946. <item>
  947. <layout class="QVBoxLayout" name="devices_layout">
  948. <item>
  949. <widget class="QLabel" name="dmm_warning_dev">
  950. <property name="font">
  951. <font>
  952. <weight>75</weight>
  953. <italic>true</italic>
  954. <bold>true</bold>
  955. </font>
  956. </property>
  957. <property name="styleSheet">
  958. <string notr="true">color: rgb(255, 0, 0)</string>
  959. </property>
  960. <property name="text">
  961. <string>You've enabled dynamic memory balancing, some devices might not work!</string>
  962. </property>
  963. </widget>
  964. </item>
  965. <item>
  966. <widget class="QLabel" name="turn_off_vm_to_modify_devs">
  967. <property name="font">
  968. <font>
  969. <weight>75</weight>
  970. <italic>true</italic>
  971. <bold>true</bold>
  972. </font>
  973. </property>
  974. <property name="text">
  975. <string>To modify PCI devices you have to turn off the VM.</string>
  976. </property>
  977. </widget>
  978. </item>
  979. </layout>
  980. </item>
  981. </layout>
  982. </widget>
  983. <widget class="QWidget" name="apps_tab">
  984. <attribute name="icon">
  985. <iconset resource="../resources.qrc">
  986. <normaloff>:/apps.png</normaloff>:/apps.png</iconset>
  987. </attribute>
  988. <attribute name="title">
  989. <string>Applications</string>
  990. </attribute>
  991. <layout class="QGridLayout" name="gridLayout_7">
  992. <item row="1" column="0">
  993. <layout class="QVBoxLayout" name="apps_layout"/>
  994. </item>
  995. <item row="0" column="0">
  996. <widget class="QPushButton" name="refresh_apps_button">
  997. <property name="text">
  998. <string>Refresh Applications</string>
  999. </property>
  1000. </widget>
  1001. </item>
  1002. </layout>
  1003. </widget>
  1004. <widget class="QWidget" name="services_tab">
  1005. <property name="enabled">
  1006. <bool>true</bool>
  1007. </property>
  1008. <attribute name="title">
  1009. <string>Services</string>
  1010. </attribute>
  1011. <layout class="QGridLayout" name="gridLayout_5">
  1012. <item row="0" column="0">
  1013. <widget class="QLineEdit" name="service_line_edit"/>
  1014. </item>
  1015. <item row="0" column="1">
  1016. <widget class="QPushButton" name="add_srv_button">
  1017. <property name="text">
  1018. <string/>
  1019. </property>
  1020. <property name="icon">
  1021. <iconset resource="../resources.qrc">
  1022. <normaloff>:/add.png</normaloff>:/add.png</iconset>
  1023. </property>
  1024. <property name="iconSize">
  1025. <size>
  1026. <width>24</width>
  1027. <height>24</height>
  1028. </size>
  1029. </property>
  1030. </widget>
  1031. </item>
  1032. <item row="4" column="0" rowspan="2">
  1033. <widget class="QListWidget" name="services_list"/>
  1034. </item>
  1035. <item row="6" column="0" colspan="2">
  1036. <widget class="QLabel" name="label_7">
  1037. <property name="text">
  1038. <string>Checked services will be turned on.</string>
  1039. </property>
  1040. </widget>
  1041. </item>
  1042. <item row="7" column="0" colspan="2">
  1043. <widget class="QLabel" name="label_8">
  1044. <property name="text">
  1045. <string>Unchecked services will be turned off.</string>
  1046. </property>
  1047. </widget>
  1048. </item>
  1049. <item row="8" column="0" colspan="2">
  1050. <widget class="QLabel" name="label_9">
  1051. <property name="text">
  1052. <string>Unlisted services will follow default settings.</string>
  1053. </property>
  1054. </widget>
  1055. </item>
  1056. <item row="4" column="1">
  1057. <widget class="QPushButton" name="remove_srv_button">
  1058. <property name="text">
  1059. <string/>
  1060. </property>
  1061. <property name="icon">
  1062. <iconset resource="../resources.qrc">
  1063. <normaloff>:/remove.png</normaloff>:/remove.png</iconset>
  1064. </property>
  1065. <property name="iconSize">
  1066. <size>
  1067. <width>24</width>
  1068. <height>24</height>
  1069. </size>
  1070. </property>
  1071. </widget>
  1072. </item>
  1073. <item row="5" column="1">
  1074. <spacer name="verticalSpacer_5">
  1075. <property name="orientation">
  1076. <enum>Qt::Vertical</enum>
  1077. </property>
  1078. <property name="sizeHint" stdset="0">
  1079. <size>
  1080. <width>20</width>
  1081. <height>40</height>
  1082. </size>
  1083. </property>
  1084. </spacer>
  1085. </item>
  1086. </layout>
  1087. </widget>
  1088. </widget>
  1089. </item>
  1090. <item>
  1091. <widget class="QDialogButtonBox" name="buttonBox">
  1092. <property name="orientation">
  1093. <enum>Qt::Horizontal</enum>
  1094. </property>
  1095. <property name="standardButtons">
  1096. <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
  1097. </property>
  1098. </widget>
  1099. </item>
  1100. </layout>
  1101. </item>
  1102. </layout>
  1103. </widget>
  1104. <tabstops>
  1105. <tabstop>tabWidget</tabstop>
  1106. <tabstop>vmname</tabstop>
  1107. <tabstop>vmlabel</tabstop>
  1108. <tabstop>template_name</tabstop>
  1109. <tabstop>netVM</tabstop>
  1110. <tabstop>include_in_backups</tabstop>
  1111. <tabstop>run_in_debug_mode</tabstop>
  1112. <tabstop>autostart_vm</tabstop>
  1113. <tabstop>seamless_gui</tabstop>
  1114. <tabstop>max_priv_storage</tabstop>
  1115. <tabstop>init_mem</tabstop>
  1116. <tabstop>max_mem_size</tabstop>
  1117. <tabstop>vcpus</tabstop>
  1118. <tabstop>include_in_balancing</tabstop>
  1119. <tabstop>kernel</tabstop>
  1120. <tabstop>new_rule_button</tabstop>
  1121. <tabstop>rulesTreeView</tabstop>
  1122. <tabstop>edit_rule_button</tabstop>
  1123. <tabstop>delete_rule_button</tabstop>
  1124. <tabstop>service_line_edit</tabstop>
  1125. <tabstop>add_srv_button</tabstop>
  1126. <tabstop>services_list</tabstop>
  1127. <tabstop>remove_srv_button</tabstop>
  1128. <tabstop>buttonBox</tabstop>
  1129. </tabstops>
  1130. <resources>
  1131. <include location="../resources.qrc"/>
  1132. </resources>
  1133. <connections>
  1134. <connection>
  1135. <sender>buttonBox</sender>
  1136. <signal>accepted()</signal>
  1137. <receiver>SettingsDialog</receiver>
  1138. <slot>accept()</slot>
  1139. <hints>
  1140. <hint type="sourcelabel">
  1141. <x>248</x>
  1142. <y>254</y>
  1143. </hint>
  1144. <hint type="destinationlabel">
  1145. <x>157</x>
  1146. <y>274</y>
  1147. </hint>
  1148. </hints>
  1149. </connection>
  1150. <connection>
  1151. <sender>buttonBox</sender>
  1152. <signal>rejected()</signal>
  1153. <receiver>SettingsDialog</receiver>
  1154. <slot>reject()</slot>
  1155. <hints>
  1156. <hint type="sourcelabel">
  1157. <x>316</x>
  1158. <y>260</y>
  1159. </hint>
  1160. <hint type="destinationlabel">
  1161. <x>286</x>
  1162. <y>274</y>
  1163. </hint>
  1164. </hints>
  1165. </connection>
  1166. </connections>
  1167. </ui>