| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <!-- Example: KDE-controls.xml -->
- <?xml version="1.0" encoding="UTF-8"?>
- <patterns xmlns="ui-layout-patterns">
-
- <!-- KDE/Qt-specific controls -->
- <control name="KComboBox" type="input" category="kde-specific" inherits="ComboBox">
- <constraints>
- <allowed-parents>Panel,FormField,KMainWindow</allowed-parents>
- <allowed-children>items</allowed-children>
- <container>false</container>
- </constraints>
- <attributes>
- <attribute name="completion-mode" type="enum" values="none,auto,manual,popup,shell" default="popup" />
- <attribute name="case-sensitive-completion" type="bool" default="false" />
- <attribute name="url-completion" type="bool" default="false" />
- </attributes>
- </control>
-
- <control name="KMainWindow" type="container" category="kde-specific">
- <constraints>
- <allowed-parents>window</allowed-parents>
- <allowed-children>any-control</allowed-children>
- <container>true</container>
- </constraints>
- <attributes>
- <attribute name="show-menubar" type="bool" default="true" />
- <attribute name="show-toolbar" type="bool" default="true" />
- <attribute name="show-statusbar" type="bool" default="true" />
- <attribute name="auto-save-settings" type="bool" default="true" />
- </attributes>
- <structure>
- <central-widget required="true" />
- <toolbars max-count="10" />
- <dock-widgets max-count="20" />
- </structure>
- </control>
-
- <control name="KFileDialog" type="dialog" category="kde-specific">
- <constraints>
- <allowed-parents>window</allowed-parents>
- <allowed-children>none</allowed-children>
- <container>false</container>
- </constraints>
- <attributes>
- <attribute name="start-dir" type="string" default="~/" />
- <attribute name="filter" type="string" default="*" />
- <attribute name="mode" type="enum" values="file,files,directory,save" default="file" />
- <attribute name="enable-preview" type="bool" default="true" />
- </attributes>
- <behavior>
- <event name="file-selected" />
- <event name="files-selected" />
- </behavior>
- </control>
- </patterns>
|