Warning, /maui/mauikit/demo.6/src/controls/BarsPage.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick
0002 import QtQuick.Controls
0003 import QtQuick.Layouts
0004
0005 import org.mauikit.controls as Maui
0006
0007 DemoPage
0008 {
0009 id: control
0010 title: i18n("Bars")
0011
0012 Maui.SectionGroup
0013 {
0014 title: control.title
0015 spacing: control.spacing
0016
0017 DemoSection
0018 {
0019 title: i18n("ToolBar")
0020 body: i18n("MauiKit ToolBar is split into five sections: farLeftContent, leftContent, middleContent, rightContent and farRightContent. The content is flickable when there is not enought space to fit them all. Also the window can be dragged from the toolbar itself.")
0021
0022 sampleText: 'import org.mauikit.controls as Maui
0023 Maui.ToolBar
0024 {
0025 Layout.fillWidth: true
0026 position: ToolBar.Header
0027
0028 leftContent: [
0029 ToolButton
0030 {
0031 icon.name: "love"
0032 },
0033
0034 ToolButton
0035 {
0036 icon.name: "love"
0037 }
0038 ]
0039
0040 middleContent: Maui.SearchField
0041 {
0042 Layout.fillWidth: true
0043 Layout.alignment: Qt.AlignHCenter
0044 Layout.maximumWidth: 500
0045 }
0046
0047 rightContent: [
0048 ToolButton
0049 {
0050 icon.name: "love"
0051 },
0052
0053 ToolButton
0054 {
0055 icon.name: "love"
0056 }
0057 ]
0058 }'
0059 column: Maui.ToolBar
0060 {
0061 Layout.fillWidth: true
0062 position: ToolBar.Header
0063
0064 leftContent: [
0065 ToolButton
0066 {
0067 icon.name: "love"
0068 },
0069
0070 ToolButton
0071 {
0072 icon.name: "love"
0073 },
0074
0075 ToolButton
0076 {
0077 icon.name: "love"
0078 },
0079
0080 ToolButton
0081 {
0082 icon.name: "love"
0083 }
0084 ]
0085
0086 middleContent: Maui.SearchField
0087 {
0088 Layout.fillWidth: true
0089 Layout.alignment: Qt.AlignHCenter
0090 Layout.maximumWidth: 500
0091 }
0092
0093 rightContent: [
0094 ToolButton
0095 {
0096 icon.name: "love"
0097 },
0098
0099 ToolButton
0100 {
0101 icon.name: "love"
0102 },
0103
0104 ToolButton
0105 {
0106 icon.name: "love"
0107 },
0108
0109 ToolButton
0110 {
0111 icon.name: "love"
0112 }
0113 ]
0114 }
0115 }
0116
0117 DemoSection
0118 {
0119 title: i18n("QQC ToolBar")
0120 body: i18n("QQC control places child items in a row layout.")
0121
0122 column: ToolBar
0123 {
0124 Layout.fillWidth: true
0125
0126 ToolButton
0127 {
0128 icon.name: "love"
0129 }
0130 }
0131
0132 }
0133
0134 DemoSection
0135 {
0136 title: i18n("TabBar")
0137 body: i18n("MauiKit TabBar is split into three sections: leftContent, main content, and rightContent. The content becomes flickable when there is not enought space to fit them all. Also the window can be dragged from the bar itself. This allows to use tab bars as merged toolbars.")
0138
0139 sampleText: 'import org.mauikit.controls as Maui
0140 Maui.TabBar
0141 {
0142 Layout.fillWidth: true
0143
0144 leftContent: ToolButton
0145 {
0146 icon.name: "overflow-menu"
0147 }
0148
0149 rightContent: ToolButton
0150 {
0151 icon.name: "folder-new"
0152 }
0153
0154 Maui.TabButton
0155 {
0156 text: i18n("Tab 1")
0157 width: implicitWidth
0158 }
0159 }'
0160 column: Maui.TabBar
0161 {
0162 Layout.fillWidth: true
0163
0164 leftContent: ToolButton
0165 {
0166 icon.name: "overflow-menu"
0167 }
0168
0169 rightContent: ToolButton
0170 {
0171 icon.name: "folder-new"
0172 }
0173
0174 Maui.TabButton
0175 {
0176 text: i18n("Tab 1")
0177 width: implicitWidth
0178 }
0179
0180 Maui.TabButton
0181 {
0182 text: i18n("Tab 2")
0183 width: implicitWidth
0184 }
0185
0186 Maui.TabButton
0187 {
0188 text: i18n("Tab 3")
0189 width: implicitWidth
0190 }
0191
0192 Maui.TabButton
0193 {
0194 text: i18n("Tab 4")
0195 width: implicitWidth
0196 }
0197 }
0198 }
0199
0200 DemoSection
0201 {
0202 title: i18n("QQC TabBar")
0203 body: i18n("MauiKit control for a place holder message with optional list of actions.")
0204
0205 column: TabBar
0206 {
0207 Layout.fillWidth: true
0208
0209 TabButton
0210 {
0211 text: i18n("Tab 1")
0212 }
0213
0214 TabButton
0215 {
0216 text: i18n("Tab 2")
0217 }
0218
0219 TabButton
0220 {
0221 text: i18n("Tab 3")
0222 }
0223
0224 TabButton
0225 {
0226 text: i18n("Tab 4")
0227 }
0228 }
0229 }
0230 }
0231 }