7 property variant items: []
8 property variant path: ""
9 property variant action: ""
15 color: "#" + config.background
22 height: root.height - config.button_height - config.button_border_width - config.font_size + 4
23 model: filechooserArea.items
26 header: Item { height: config.font_size }
27 footer: Item { height: config.font_size }
29 highlight: Rectangle { color: "#" + config.progress_color
30 width: filechooserView.width
31 height: config.font_size * 3
32 y: filechooserView.currentItem?filechooserView.currentItem.y:root.height
34 highlightFollowsCurrentItem: false
36 delegate: FilechooserItem {
37 property variant item: modelData
40 source: modelData.directory ? "folder.png" : "file.png"
42 verticalCenter: parent.verticalCenter
49 verticalCenter: parent.verticalCenter
52 color: "#" + config.foreground
53 font.pixelSize: config.font_size
54 text: modelData.caption
57 filechooserView.currentIndex = index
58 filechooserArea.path = modelData.path + "/" + modelData.caption
59 if (modelData.directory == true) {
60 filechooserView.currentIndex = -1
61 main.filechooser_callback("open", filechooserArea.path)
69 height: config.font_size * 1.1
71 y: root.height - config.button_height - textinput.height - config.button_border_width
72 color: "#" + config.progress_bg_color
78 y: root.height - config.button_height - textinput.height - config.button_border_width
79 color: "#" + config.foreground
80 font.pixelSize: config.font_size
81 text: filechooserArea.path
85 y: root.height - config.button_height
86 color: "#" + config.button_color
87 width: config.button_width
88 height: config.button_height
89 border.color: "#" + config.button_border_color
90 border.width: config.button_border_width
91 radius: config.button_radius
95 anchors.centerIn: parent
101 onClicked: { filechooserView.currentIndex = -1
102 main.filechooser_callback("open", "~")
107 x: (config.button_width + config.button_border_width + 2)
108 y: root.height - config.button_height
109 color: "#" + config.button_color
110 width: config.button_width
111 height: config.button_height
112 border.color: "#" + config.button_border_color
113 border.width: config.button_border_width
114 radius: config.button_radius
118 anchors.centerIn: parent
127 x: (config.button_width + config.button_border_width + 2) * 2
128 y: root.height - config.button_height
129 color: "#" + config.button_color
130 width: config.button_width
131 height: config.button_height
132 border.color: "#" + config.button_border_color
133 border.width: config.button_border_width
134 radius: config.button_radius
138 anchors.centerIn: parent
147 x: (config.button_width + config.button_border_width + 2) * 3
148 y: root.height - config.button_height
149 color: "#" + config.button_color
150 width: config.button_width
151 height: config.button_height
152 border.color: "#" + config.button_border_color
153 border.width: config.button_border_width
154 radius: config.button_radius
158 anchors.centerIn: parent
164 onClicked: { filechooserView.currentIndex = -1
165 if (filechooserView.currentItem)
166 main.filechooser_callback("up", filechooserView.currentItem.item.path)
168 main.filechooser_callback("up", filechooserArea.path)
173 x: (config.button_width + config.button_border_width + 2) * 4
174 y: root.height - config.button_height
175 color: "#" + config.button_color
176 width: config.button_width
177 height: config.button_height
178 border.color: "#" + config.button_border_color
179 border.width: config.button_border_width
180 radius: config.button_radius
184 anchors.centerIn: parent
190 onClicked: { filechooserView.currentIndex = -1
191 filechooserArea.close()
196 x: (config.button_width + config.button_border_width + 2) * 5
197 y: root.height - config.button_height
198 color: "#" + config.button_color
199 width: config.button_width
200 height: config.button_height
201 border.color: "#" + config.button_border_color
202 border.width: config.button_border_width
203 radius: config.button_radius
207 anchors.centerIn: parent
213 onClicked: { filechooserArea.close()
214 filechooserView.currentIndex = -1
215 main.filechooser_callback(filechooserArea.action, textinput.text)