introduce Debug Ability
parent
ac2ccc1358
commit
169b7d6aae
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright 2020 Michail Vourlakos <mvourlakos@gmail.com>
|
||||
*
|
||||
* This file is part of Latte-Dock
|
||||
*
|
||||
* Latte-Dock is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* Latte-Dock 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.7
|
||||
import org.kde.plasma.plasmoid 2.0
|
||||
|
||||
import org.kde.latte.abilities.containers 0.1 as ContainerAbility
|
||||
import org.kde.latte.abilities.definitions 0.1 as AbilityDefinition
|
||||
|
||||
ContainerAbility.Debug {
|
||||
graphicsEnabled: Qt.application.arguments.indexOf("--graphics")>=0
|
||||
inputMaskEnabled: Qt.application.arguments.indexOf("--input")>=0
|
||||
layouterEnabled: Qt.application.arguments.indexOf("--layouter")>=0
|
||||
localGeometryEnabled: Qt.application.arguments.indexOf("--localgeometry")>=0
|
||||
spacersEnabled: Qt.application.arguments.indexOf("--spacers")>=0
|
||||
timersEnabled: Qt.application.arguments.indexOf("--timers")>=0
|
||||
windowEnabled: Qt.application.arguments.indexOf("--with-window")>=0
|
||||
overloadedIconsEnabled: Qt.application.arguments.indexOf("--overloaded-icons")>=0
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2020 Michail Vourlakos <mvourlakos@gmail.com>
|
||||
*
|
||||
* This file is part of Latte-Dock
|
||||
*
|
||||
* Latte-Dock is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* Latte-Dock 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
|
||||
import org.kde.latte.abilities.definitions 0.1 as AbilityDefinition
|
||||
|
||||
AbilityDefinition.Debug {
|
||||
property Item bridge: null
|
||||
|
||||
graphicsEnabled: ref.debug.graphicsEnabled
|
||||
inputMaskEnabled: ref.debug.inputMaskEnabled
|
||||
layouterEnabled: ref.debug.layouterEnabled
|
||||
localGeometryEnabled: ref.debug.localGeometryEnabled
|
||||
spacersEnabled: ref.debug.spacersEnabled
|
||||
timersEnabled: ref.debug.timersEnabled
|
||||
windowEnabled: ref.debug.windowEnabled
|
||||
overloadedIconsEnabled: ref.debug.overloadedIconsEnabled
|
||||
|
||||
readonly property AbilityDefinition.Debug local: AbilityDefinition.Debug {}
|
||||
|
||||
Item {
|
||||
id: ref
|
||||
readonly property Item debug: bridge ? bridge.debug : local
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2020 Michail Vourlakos <mvourlakos@gmail.com>
|
||||
*
|
||||
* This file is part of Latte-Dock
|
||||
*
|
||||
* Latte-Dock is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* Latte-Dock 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
|
||||
import org.kde.latte.abilities.definitions 0.1 as AbilityDefinition
|
||||
|
||||
AbilityDefinition.Debug {
|
||||
id: apis
|
||||
|
||||
readonly property Item publicApi: Item {
|
||||
readonly property alias graphicsEnabled: apis.graphicsEnabled
|
||||
readonly property alias inputMaskEnabled: apis.inputMaskEnabled
|
||||
readonly property alias layouterEnabled: apis.layouterEnabled
|
||||
readonly property alias localGeometryEnabled: apis.localGeometryEnabled
|
||||
readonly property alias spacersEnabled: apis.spacersEnabled
|
||||
readonly property alias timersEnabled: apis.timersEnabled
|
||||
readonly property alias windowEnabled: apis.windowEnabled
|
||||
readonly property alias overloadedIconsEnabled: apis.overloadedIconsEnabled
|
||||
}
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
module org.kde.latte.abilities.containers
|
||||
|
||||
Animations 0.1 Animations.qml
|
||||
Debug 0.1 Debug.qml
|
||||
Metrics 0.1 Metrics.qml
|
||||
ParabolicEffect 0.1 ParabolicEffect.qml
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2020 Michail Vourlakos <mvourlakos@gmail.com>
|
||||
*
|
||||
* This file is part of Latte-Dock
|
||||
*
|
||||
* Latte-Dock is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* Latte-Dock 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
|
||||
Item {
|
||||
property bool graphicsEnabled: false
|
||||
property bool inputMaskEnabled: false
|
||||
property bool layouterEnabled: false
|
||||
property bool localGeometryEnabled: false
|
||||
property bool spacersEnabled: false
|
||||
property bool timersEnabled: false
|
||||
property bool windowEnabled: false
|
||||
property bool overloadedIconsEnabled: false
|
||||
}
|
Loading…
Reference in New Issue