kde-extraapps/kdeplasma-addons/applets/lancelot/application/LancelotWindowBase.xml

259 lines
11 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<!--
* Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* or (at your option) any later version, as published by the Free
* Software Foundation
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<pui
xmlns:item = "http://nonexistant"
xmlns:code = "http://nonexistant"
xmlns:Lancelot__FullBorderLayout = "http://nonexistant"
xmlns:Lancelot__NodeLayout = "http://nonexistant"
xmlns:Lancelot__CardLayout = "http://nonexistant"
>
<defines>
<!-- These values will be converted to #define statements -->
<define name="SYSTEM_HEIGHT" value="28" />
<define name="SYSTEM_PADDING" value="8" />
<define name="SEARCH_HEIGHT" value="30" />
<define name="SECTIONS_WIDTH" value="128" />
</defines>
<ui
className="LancelotWindowBase"
rootObjectType="QGraphicsWidget"
>
<item:layout
name="layoutMain" type="Lancelot::FlipLayout"
realLayout="Lancelot::FullBorderLayout"
margin="0" spacing="0"
leftSize="SECTIONS_WIDTH"
topSize="SEARCH_HEIGHT"
bottomSize="SYSTEM_HEIGHT + 2 * SYSTEM_PADDING"
rightSize="0"
>
<item:widget
name="tabbarSections" type="Lancelot::TabBar"
tabIconSize="48, 48"
Lancelot__FullBorderLayout:position="Left">
</item:widget>
<item:layout
name="layoutSearch" type="Lancelot::NodeLayout"
margin="0" spacing="0"
Lancelot__FullBorderLayout:position="Top"
>
</item:layout>
<item:layout
name="layoutCenter" type="Lancelot::CardLayout"
margin="0" spacing="0"
Lancelot__FullBorderLayout:position="Center"
>
<item:widget
name="passagewayApplications" type="Lancelot::PassagewayView"
entranceTitle="Favorite"
entranceIcon="favorite"
atlasTitle="Applications"
atlasIcon="applications-other"
Lancelot__CardLayout:cardName="applications"
>
</item:widget>
<item:widget
name="panelComputer" type="Lancelot::Panel"
title="Computer"
icon="computer-laptop"
iconSize="22, 22"
group="InnerPanel"
showingTitle="false"
Lancelot__CardLayout:cardName="computer"
>
<item:layout name="layoutPanelComputer" type="Lancelot::NodeLayout">
<item:widget
name="listComputerLeft" type="Lancelot::ActionListView"
extenderPosition="Lancelot::LeftExtender"
group="ActionListView-Left"
itemsGroup="ActionListView-Items"
Lancelot__NodeLayout:topLeft = "0, 0"
Lancelot__NodeLayout:bottomRight = "0.5, 1, -2, 0"
/>
<item:widget
name="listComputerRight" type="Lancelot::ActionListView"
extenderPosition="Lancelot::RightExtender"
group="ActionListView-Right"
itemsGroup="ActionListView-Items"
Lancelot__NodeLayout:topLeft = "0.5, 0"
Lancelot__NodeLayout:bottomRight = "1, 1, 2, 0"
/>
</item:layout>
</item:widget>
<item:widget
name="panelContacts" type="Lancelot::Panel"
title="Contacts"
icon="kontact"
iconSize="22, 22"
group="InnerPanel"
showingTitle="false"
Lancelot__CardLayout:cardName="contacts"
>
<item:layout name="layoutPanelContacts" type="Lancelot::NodeLayout">
<item:widget
name="listContactsLeft" type="Lancelot::ActionListView"
extenderPosition="Lancelot::LeftExtender"
group="ActionListView-Left"
itemsGroup="ActionListView-Items"
Lancelot__NodeLayout:topLeft = "0, 0"
Lancelot__NodeLayout:bottomRight = "0.5, 1, -2, 0"
/>
<item:widget
name="listContactsRight" type="Lancelot::ActionListView"
extenderPosition="Lancelot::RightExtender"
group="ActionListView-Right"
itemsGroup="ActionListView-Items"
Lancelot__NodeLayout:topLeft = "0.5, 0"
Lancelot__NodeLayout:bottomRight = "1, 1, 2, 0"
/>
</item:layout>
</item:widget>
<item:widget
name="panelDocuments" type="Lancelot::Panel"
title="Documents"
icon="applications-office"
iconSize="22, 22"
group="InnerPanel"
showingTitle="false"
Lancelot__CardLayout:cardName="documents"
>
<item:layout name="layoutPanelDocuments" type="Lancelot::NodeLayout">
<item:widget
name="listDocumentsLeft" type="Lancelot::ActionListView"
extenderPosition="Lancelot::LeftExtender"
group="ActionListView-Left"
itemsGroup="ActionListView-Items"
Lancelot__NodeLayout:topLeft = "0, 0"
Lancelot__NodeLayout:bottomRight = "0.5, 1, -2, 0"
/>
<item:widget
name="listDocumentsRight" type="Lancelot::ActionListView"
extenderPosition="Lancelot::RightExtender"
group="ActionListView-Right"
itemsGroup="ActionListView-Items"
Lancelot__NodeLayout:topLeft = "0.5, 0"
Lancelot__NodeLayout:bottomRight = "1, 1, 2, 0"
/>
</item:layout>
</item:widget>
<item:widget
name="panelSearch" type="Lancelot::Panel"
title="Search"
icon="edit-find"
iconSize="22, 22"
group="InnerPanel"
showingTitle="false"
Lancelot__CardLayout:cardName="search"
>
<item:layout name="layoutPanelSearch" type="Lancelot::NodeLayout">
<item:widget
name="listSearchLeft" type="Lancelot::ActionListView"
extenderPosition="Lancelot::LeftExtender"
group="ActionListView-Left"
itemsGroup="ActionListView-Items"
Lancelot__NodeLayout:topLeft = "0, 0"
Lancelot__NodeLayout:bottomRight = "1.0, 1, 0, 0"
/>
</item:layout>
</item:widget>
</item:layout>
<item:layout
name="layoutSystem" type="Lancelot::NodeLayout"
margin="0" spacing="0"
Lancelot__FullBorderLayout:position="Bottom"
>
<item:widget
name="buttonSystem1" type="Lancelot::ExtenderButton"
title="Lock Session"
icon="system-lock-screen"
group="SystemButtons"
activationMethod="Lancelot::ExtenderActivate"
extenderPosition="Lancelot::BottomExtender"
iconSize="24, 24"
Lancelot__NodeLayout:topLeft = "0, 0, 0, SYSTEM_PADDING / 2"
Lancelot__NodeLayout:bottomRight = "1.0 / 3.0, 1, - SYSTEM_HEIGHT * (1.0 / 3.0), - SYSTEM_PADDING"
/>
<item:widget
name="buttonSystem2" type="Lancelot::ExtenderButton"
title="Log Out"
icon="system-log-out"
group="SystemButtons"
activationMethod="Lancelot::ExtenderActivate"
extenderPosition="Lancelot::BottomExtender"
iconSize="24, 24"
Lancelot__NodeLayout:topLeft = "1.0 / 3.0, 0, - SYSTEM_HEIGHT * (1.0 / 3.0), SYSTEM_PADDING / 2"
Lancelot__NodeLayout:bottomRight = "2.0 / 3.0, 1, - SYSTEM_HEIGHT * (2.0 / 3.0), - SYSTEM_PADDING"
/>
<item:widget
name="buttonSystem3" type="Lancelot::ExtenderButton"
title="Switch User"
icon="system-switch-user"
group="SystemButtons"
activationMethod="Lancelot::ExtenderActivate"
extenderPosition="Lancelot::BottomExtender"
iconSize="24, 24"
Lancelot__NodeLayout:topLeft = "2.0 / 3.0, 0, - SYSTEM_HEIGHT * (2.0 / 3.0), SYSTEM_PADDING / 2"
Lancelot__NodeLayout:bottomRight = "1, 1, - SYSTEM_HEIGHT, - SYSTEM_PADDING"
/>
<item:widget
name="buttonLancelotContext" type="Lancelot::ExtenderButton"
icon="lancelot"
group="LancelotContext"
activationMethod="Lancelot::ExtenderActivate"
extenderPosition="Lancelot::BottomExtender"
iconSize="24, 24"
Lancelot__NodeLayout:topLeft = "1, 0, 2 - SYSTEM_HEIGHT - SYSTEM_PADDING, SYSTEM_PADDING / 2"
Lancelot__NodeLayout:bottomRight = "1, 1, 0, - SYSTEM_PADDING"
/>
</item:layout>
</item:layout>
</ui>
</pui>