blob: 2a8579a86395984ee9b2809c1821210e008a49ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
//===========================================
// Lumina-desktop source code
// Copyright (c) 2017, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
import QtQuick 2.2
import QtQuick.Window 2.2
import QtQuick.Controls 1
import QtQuick.Layouts 1.3
import Lumina.Backend.PanelObject 2.0
import "./plugins" as PLUGINS
Rectangle {
//C++ backend object
property string panel_id
property PanelObject object
//Normal geometries/placements
color: object.background
x: object.x
y: object.y
width: object.width
height: object.height
GridLayout{
id: layout
anchors.fill: parent;
columns: parent.object.isVertical ? 1 : -1
rows: parent.object.isVertical ? -1 : 1
//hardcode some plugins for the moment
//PLUGINS.Spacer{}
PLUGINS.StatusTray{
id: "statustray"
vertical: layout.parent.object.isVertical
//Layout.fillWidth: layout.parent.object.isVertical ? true : false
//Layout.fillHeight: layout.parent.object.isVertical ? false : true
}
//PLUGINS.Spacer{}
PLUGINS.Clock_Digital{
id: "clock"
vertical: layout.parent.object.isVertical
//Layout.fillWidth: layout.parent.object.isVertical ? true : false
//Layout.fillHeight: layout.parent.object.isVertical ? false : true
}
//PLUGINS.Spacer{}
} //end of grid layout
}
|