kde-controls.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!-- Example: KDE-controls.xml -->
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <patterns xmlns="ui-layout-patterns">
  4. <!-- KDE/Qt-specific controls -->
  5. <control name="KComboBox" type="input" category="kde-specific" inherits="ComboBox">
  6. <constraints>
  7. <allowed-parents>Panel,FormField,KMainWindow</allowed-parents>
  8. <allowed-children>items</allowed-children>
  9. <container>false</container>
  10. </constraints>
  11. <attributes>
  12. <attribute name="completion-mode" type="enum" values="none,auto,manual,popup,shell" default="popup" />
  13. <attribute name="case-sensitive-completion" type="bool" default="false" />
  14. <attribute name="url-completion" type="bool" default="false" />
  15. </attributes>
  16. </control>
  17. <control name="KMainWindow" type="container" category="kde-specific">
  18. <constraints>
  19. <allowed-parents>window</allowed-parents>
  20. <allowed-children>any-control</allowed-children>
  21. <container>true</container>
  22. </constraints>
  23. <attributes>
  24. <attribute name="show-menubar" type="bool" default="true" />
  25. <attribute name="show-toolbar" type="bool" default="true" />
  26. <attribute name="show-statusbar" type="bool" default="true" />
  27. <attribute name="auto-save-settings" type="bool" default="true" />
  28. </attributes>
  29. <structure>
  30. <central-widget required="true" />
  31. <toolbars max-count="10" />
  32. <dock-widgets max-count="20" />
  33. </structure>
  34. </control>
  35. <control name="KFileDialog" type="dialog" category="kde-specific">
  36. <constraints>
  37. <allowed-parents>window</allowed-parents>
  38. <allowed-children>none</allowed-children>
  39. <container>false</container>
  40. </constraints>
  41. <attributes>
  42. <attribute name="start-dir" type="string" default="~/" />
  43. <attribute name="filter" type="string" default="*" />
  44. <attribute name="mode" type="enum" values="file,files,directory,save" default="file" />
  45. <attribute name="enable-preview" type="bool" default="true" />
  46. </attributes>
  47. <behavior>
  48. <event name="file-selected" />
  49. <event name="files-selected" />
  50. </behavior>
  51. </control>
  52. </patterns>