Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
231f4144
Commit
231f4144
authored
Mar 21, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Calls/Incall): video request uses custom Window component
parent
630ec603
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
57 additions
and
25 deletions
+57
-25
en.ts
linphone-desktop/assets/languages/en.ts
+0
-4
fr.ts
linphone-desktop/assets/languages/fr.ts
+0
-4
resources.qrc
linphone-desktop/resources.qrc
+1
-0
VirtualWindow.qml
linphone-desktop/ui/modules/Common/Window/VirtualWindow.qml
+1
-0
Window.js
linphone-desktop/ui/modules/Common/Window/Window.js
+7
-0
Window.qml
linphone-desktop/ui/modules/Common/Window/Window.qml
+36
-0
qmldir
linphone-desktop/ui/modules/Common/qmldir
+1
-0
Incall.js
linphone-desktop/ui/views/App/Calls/Incall.js
+11
-17
No files found.
linphone-desktop/assets/languages/en.ts
View file @
231f4144
...
@@ -458,10 +458,6 @@ Server url not configured.</translation>
...
@@ -458,10 +458,6 @@ Server url not configured.</translation>
<
source
>
acceptVideoDescription
<
/source
>
<
source
>
acceptVideoDescription
<
/source
>
<
translation
>
Your
contact
would
like
to
turn
on
video
.
<
/translation
>
<
translation
>
Your
contact
would
like
to
turn
on
video
.
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
source
>
acceptVideoTitle
<
/source
>
<
translation
>
Video
requested
<
/translation
>
<
/message
>
<
/context
>
<
/context
>
<
context
>
<
context
>
<
name
>
InviteFriends
<
/name
>
<
name
>
InviteFriends
<
/name
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
231f4144
...
@@ -458,10 +458,6 @@ Url du serveur non configurée.</translation>
...
@@ -458,10 +458,6 @@ Url du serveur non configurée.</translation>
<
source
>
acceptVideoDescription
<
/source
>
<
source
>
acceptVideoDescription
<
/source
>
<
translation
>
Votre
correspondant
souhaite
ajouter
la
vid
é
o
.
<
/translation
>
<
translation
>
Votre
correspondant
souhaite
ajouter
la
vid
é
o
.
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
source
>
acceptVideoTitle
<
/source
>
<
translation
>
Demande
de
vid
é
o
<
/translation
>
<
/message
>
<
/context
>
<
/context
>
<
context
>
<
context
>
<
name
>
InviteFriends
<
/name
>
<
name
>
InviteFriends
<
/name
>
...
...
linphone-desktop/resources.qrc
View file @
231f4144
...
@@ -261,6 +261,7 @@
...
@@ -261,6 +261,7 @@
<file>
ui/modules/Common/Window/ApplicationWindow.qml
</file>
<file>
ui/modules/Common/Window/ApplicationWindow.qml
</file>
<file>
ui/modules/Common/Window/VirtualWindow.qml
</file>
<file>
ui/modules/Common/Window/VirtualWindow.qml
</file>
<file>
ui/modules/Common/Window/Window.js
</file>
<file>
ui/modules/Common/Window/Window.js
</file>
<file>
ui/modules/Common/Window/Window.qml
</file>
<file>
ui/modules/Linphone/Account/AccountStatus.qml
</file>
<file>
ui/modules/Linphone/Account/AccountStatus.qml
</file>
<file>
ui/modules/Linphone/Calls/CallControls.qml
</file>
<file>
ui/modules/Linphone/Calls/CallControls.qml
</file>
<file>
ui/modules/Linphone/Calls/Calls.qml
</file>
<file>
ui/modules/Linphone/Calls/Calls.qml
</file>
...
...
linphone-desktop/ui/modules/Common/Window/VirtualWindow.qml
View file @
231f4144
...
@@ -29,6 +29,7 @@ Item {
...
@@ -29,6 +29,7 @@ Item {
MouseArea
{
MouseArea
{
anchors.fill
:
parent
anchors.fill
:
parent
hoverEnabled
:
true
hoverEnabled
:
true
onWheel
:
wheel
.
accepted
=
true
}
}
Rectangle
{
Rectangle
{
...
...
linphone-desktop/ui/modules/Common/Window/Window.js
View file @
231f4144
...
@@ -29,3 +29,10 @@ function attachVirtualWindow (object, properties, exitStatusHandler) {
...
@@ -29,3 +29,10 @@ function attachVirtualWindow (object, properties, exitStatusHandler) {
virtualWindow
.
setContent
(
object
)
virtualWindow
.
setContent
(
object
)
}
}
function
detachVirtualWindow
()
{
var
object
=
virtualWindow
.
unsetContent
()
if
(
object
)
{
object
.
destroy
()
}
}
linphone-desktop/ui/modules/Common/Window/Window.qml
0 → 100644
View file @
231f4144
import
QtQuick
2.7
import
QtQuick
.
Window
2.2
import
'
Window.js
'
as
Logic
// =============================================================================
Window
{
default
property
alias
_content
:
content
.
data
// ---------------------------------------------------------------------------
function
attachVirtualWindow
()
{
Logic
.
attachVirtualWindow
.
apply
(
this
,
arguments
)
}
function
detachVirtualWindow
()
{
Logic
.
detachVirtualWindow
()
}
// ---------------------------------------------------------------------------
Item
{
anchors.fill
:
parent
Rectangle
{
id
:
content
anchors.fill
:
parent
}
VirtualWindow
{
id
:
virtualWindow
}
}
}
linphone-desktop/ui/modules/Common/qmldir
View file @
231f4144
...
@@ -77,3 +77,4 @@ TooltipArea 1.0 Tooltip/TooltipArea.qml
...
@@ -77,3 +77,4 @@ TooltipArea 1.0 Tooltip/TooltipArea.qml
ScrollableListView 1.0 View/ScrollableListView.qml
ScrollableListView 1.0 View/ScrollableListView.qml
ApplicationWindow 1.0 Window/ApplicationWindow.qml
ApplicationWindow 1.0 Window/ApplicationWindow.qml
Window 1.0 Window/Window.qml
linphone-desktop/ui/views/App/Calls/Incall.js
View file @
231f4144
...
@@ -27,12 +27,11 @@ function handleStatusChanged (status) {
...
@@ -27,12 +27,11 @@ function handleStatusChanged (status) {
function
handleVideoRequested
()
{
function
handleVideoRequested
()
{
var
call
=
incall
.
call
var
call
=
incall
.
call
var
dialog
// Close dialog after 10s.
// Close dialog after 10s.
var
timeout
=
Utils
.
setTimeout
(
incall
,
10000
,
function
()
{
var
timeout
=
Utils
.
setTimeout
(
incall
,
10000
,
function
()
{
call
.
statusChanged
.
disconnect
(
endedHandler
)
call
.
statusChanged
.
disconnect
(
endedHandler
)
dialog
.
close
()
window
.
detachVirtualWindow
()
call
.
rejectVideoRequest
()
call
.
rejectVideoRequest
()
})
})
...
@@ -41,16 +40,16 @@ function handleVideoRequested () {
...
@@ -41,16 +40,16 @@ function handleVideoRequested () {
if
(
status
===
Linphone
.
CallModel
.
CallStatusEnded
)
{
if
(
status
===
Linphone
.
CallModel
.
CallStatusEnded
)
{
Utils
.
clearTimeout
(
timeout
)
Utils
.
clearTimeout
(
timeout
)
call
.
statusChanged
.
disconnect
(
endedHandler
)
call
.
statusChanged
.
disconnect
(
endedHandler
)
dialog
.
close
()
window
.
detachVirtualWindow
()
}
}
}
}
call
.
statusChanged
.
connect
(
endedHandler
)
call
.
statusChanged
.
connect
(
endedHandler
)
// Ask video to user.
// Ask video to user.
dialog
=
Utils
.
openConfirmDialog
(
window
,
{
window
.
attachVirtualWindow
(
Utils
.
buildDialogUri
(
'
ConfirmDialog
'
)
,
{
descriptionText
:
qsTr
(
'
acceptVideoDescription
'
),
descriptionText
:
qsTr
(
'
acceptVideoDescription
'
),
exitHandler
:
function
(
status
)
{
},
function
(
status
)
{
Utils
.
clearTimeout
(
timeout
)
Utils
.
clearTimeout
(
timeout
)
call
.
statusChanged
.
disconnect
(
endedHandler
)
call
.
statusChanged
.
disconnect
(
endedHandler
)
...
@@ -59,11 +58,6 @@ function handleVideoRequested () {
...
@@ -59,11 +58,6 @@ function handleVideoRequested () {
}
else
{
}
else
{
call
.
rejectVideoRequest
()
call
.
rejectVideoRequest
()
}
}
},
properties
:
{
modality
:
Qt
.
NonModal
},
title
:
qsTr
(
'
acceptVideoTitle
'
)
})
})
}
}
...
...
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