Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Bigscreen
Commits
bf024f95
Verified
Commit
bf024f95
authored
Jan 10, 2022
by
Bart Ribbers
Browse files
Merge branch 'integraion'
parents
e5287417
8da17819
Pipeline
#121313
passed with stage
in 59 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
containments/homescreen/package/contents/ui/indicators/KdeConnect.qml
View file @
bf024f95
...
...
@@ -19,12 +19,12 @@ AbstractIndicator {
id
:
connectionIcon
icon.name
:
"
kdeconnect
"
property
var
window
property
bool
mycroftIntegration
:
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegraionActive
()
?
1
:
0
property
bool
mycroftIntegration
:
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegra
t
ionActive
()
?
1
:
0
Connections
{
target
:
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
onEnableMycroftIntegraionChanged
:
{
mycroftIntegration
=
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegraionActive
()
onEnableMycroftIntegra
t
ionChanged
:
{
mycroftIntegration
=
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegra
t
ionActive
()
if
(
mycroftIntegration
)
{
mycroftLoader
.
active
=
true
}
else
{
...
...
containments/homescreen/package/contents/ui/launcher/LauncherHome.qml
View file @
bf024f95
...
...
@@ -22,13 +22,13 @@ import org.kde.private.biglauncher 1.0
import
org
.
kde
.
plasma
.
private
.
kicker
0.1
as
Kicker
FocusScope
{
property
bool
mycroftIntegration
:
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegraionActive
()
?
1
:
0
property
bool
mycroftIntegration
:
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegra
t
ionActive
()
?
1
:
0
Connections
{
target
:
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
onEnableMycroftIntegraionChanged
:
{
mycroftIntegration
=
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegraionActive
()
onEnableMycroftIntegra
t
ionChanged
:
{
mycroftIntegration
=
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegra
t
ionActive
()
if
(
mycroftIntegration
){
voiceAppsView
.
visible
=
voiceAppsView
.
count
>
0
?
1
:
0
}
else
{
...
...
containments/homescreen/package/contents/ui/main.qml
View file @
bf024f95
...
...
@@ -24,14 +24,14 @@ Item {
Layout.minimumWidth
:
Screen
.
desktopAvailableWidth
Layout.minimumHeight
:
Screen
.
desktopAvailableHeight
*
0.6
property
bool
mycroftIntegration
:
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegraionActive
()
?
1
:
0
property
bool
mycroftIntegration
:
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegra
t
ionActive
()
?
1
:
0
property
Item
wallpaper
Connections
{
target
:
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
onEnableMycroftIntegraionChanged
:
{
mycroftIntegration
=
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegraionActive
()
onEnableMycroftIntegra
t
ionChanged
:
{
mycroftIntegration
=
plasmoid
.
nativeInterface
.
bigLauncherDbusAdapterInterface
.
mycroftIntegra
t
ionActive
()
if
(
mycroftIntegration
)
{
mycroftIndicatorLoader
.
active
=
true
mycroftWindowLoader
.
active
=
true
...
...
containments/homescreen/plugin/biglauncher_dbus.cpp
View file @
bf024f95
...
...
@@ -43,10 +43,10 @@ void BigLauncherDbusAdapterInterface::useExpandableTiles(const bool &expandableT
emit
useExpandableTilesChanged
(
expandableTiles
);
}
void
BigLauncherDbusAdapterInterface
::
enableMycroftIntegration
(
const
bool
&
mycroftIntegraion
)
void
BigLauncherDbusAdapterInterface
::
enableMycroftIntegration
(
const
bool
&
mycroftIntegra
t
ion
)
{
Configuration
::
self
().
setMycroftEnabled
(
mycroftIntegraion
);
emit
enableMycroftIntegraionChanged
(
mycroftIntegraion
);
Configuration
::
self
().
setMycroftEnabled
(
mycroftIntegra
t
ion
);
emit
enableMycroftIntegra
t
ionChanged
(
mycroftIntegra
t
ion
);
}
bool
BigLauncherDbusAdapterInterface
::
coloredTilesActive
()
...
...
@@ -67,7 +67,7 @@ bool BigLauncherDbusAdapterInterface::expandableTilesActive()
}
}
bool
BigLauncherDbusAdapterInterface
::
mycroftIntegraionActive
()
bool
BigLauncherDbusAdapterInterface
::
mycroftIntegra
t
ionActive
()
{
return
Configuration
::
self
().
mycroftEnabled
();
}
...
...
containments/homescreen/plugin/biglauncher_dbus.h
View file @
bf024f95
...
...
@@ -37,8 +37,8 @@ class BigLauncherDbusAdapterInterface : public QDBusAbstractAdaptor
" <signal name=
\"
useExpandableTilesChanged
\"
>
\n
"
" <arg direction=
\"
out
\"
type=
\"
b
\"
name=
\"
msgUseExpandableTiles
\"
/>
\n
"
" </signal>
\n
"
" <signal name=
\"
enableMycroftIntegraionChanged
\"
>
\n
"
" <arg direction=
\"
out
\"
type=
\"
b
\"
name=
\"
msgEnableMycroftIntegraion
\"
/>
\n
"
" <signal name=
\"
enableMycroftIntegra
t
ionChanged
\"
>
\n
"
" <arg direction=
\"
out
\"
type=
\"
b
\"
name=
\"
msgEnableMycroftIntegra
t
ion
\"
/>
\n
"
" </signal>
\n
"
" <method name=
\"
useColoredTiles
\"
>
\n
"
" <arg direction=
\"
in
\"
type=
\"
b
\"
name=
\"
coloredTiles
\"
/>
\n
"
...
...
@@ -55,7 +55,7 @@ class BigLauncherDbusAdapterInterface : public QDBusAbstractAdaptor
" <method name=
\"
expandableTilesActive
\"
>
\n
"
" <arg direction=
\"
out
\"
type=
\"
b
\"
/>
\n
"
" </method>
\n
"
" <method name=
\"
mycroftIntegraionActive
\"
>
\n
"
" <method name=
\"
mycroftIntegra
t
ionActive
\"
>
\n
"
" <arg direction=
\"
out
\"
type=
\"
b
\"
/>
\n
"
" </method>
\n
"
" </interface>
\n
"
...
...
@@ -72,7 +72,7 @@ public Q_SLOTS: // METHODS
void
enableMycroftIntegration
(
const
bool
&
mycroftIntegration
);
bool
coloredTilesActive
();
bool
expandableTilesActive
();
bool
mycroftIntegraionActive
();
bool
mycroftIntegra
t
ionActive
();
void
setColoredTilesActive
(
const
bool
&
coloredTilesActive
);
void
setExpandableTilesActive
(
const
bool
&
expandableTilesActive
);
...
...
@@ -80,7 +80,7 @@ public Q_SLOTS: // METHODS
Q_SIGNALS:
// SIGNALS
void
useColoredTilesChanged
(
const
bool
&
msgUseColoredTiles
);
void
useExpandableTilesChanged
(
const
bool
&
msgUseExpandableTiles
);
void
enableMycroftIntegraionChanged
(
const
bool
&
msgEnableMycroftIntegraion
);
void
enableMycroftIntegra
t
ionChanged
(
const
bool
&
msgEnableMycroftIntegra
t
ion
);
void
coloredTilesActiveRequested
();
void
expandableTilesActiveRequested
();
void
enableMycroftIntegrationRequested
();
...
...
kcms/bigscreen-settings/bigscreensettings.cpp
View file @
bf024f95
...
...
@@ -106,7 +106,7 @@ bool BigscreenSettings::useExpandingTiles() const
bool
BigscreenSettings
::
mycroftIntegrationActive
()
const
{
QDBusMessage
msg
=
QDBusMessage
::
createMethodCall
(
"org.kde.biglauncher"
,
"/BigLauncher"
,
""
,
"mycroftIntegraionActive"
);
QDBusMessage
msg
=
QDBusMessage
::
createMethodCall
(
"org.kde.biglauncher"
,
"/BigLauncher"
,
""
,
"mycroftIntegra
t
ionActive"
);
QDBusMessage
response
=
QDBusConnection
::
sessionBus
().
call
(
msg
);
QList
<
QVariant
>
responseArg
=
response
.
arguments
();
return
responseArg
.
at
(
0
).
toBool
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment