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
1982234f
Commit
1982234f
authored
May 29, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Calls/ConferenceManager): in progress
parent
d7bd0229
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
135 additions
and
48 deletions
+135
-48
en.ts
linphone-desktop/assets/languages/en.ts
+7
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+7
-0
resources.qrc
linphone-desktop/resources.qrc
+1
-0
CallControls.qml
linphone-desktop/ui/modules/Linphone/Calls/CallControls.qml
+1
-6
Calls.js
linphone-desktop/ui/modules/Linphone/Calls/Calls.js
+3
-5
Calls.qml
linphone-desktop/ui/modules/Linphone/Calls/Calls.qml
+8
-1
ConferenceControls.qml
...-desktop/ui/modules/Linphone/Calls/ConferenceControls.qml
+62
-0
CallControlsStyle.qml
...op/ui/modules/Linphone/Styles/Calls/CallControlsStyle.qml
+0
-1
AbstractStartingCall.qml
linphone-desktop/ui/views/App/Calls/AbstractStartingCall.qml
+2
-2
CallsWindow.js
linphone-desktop/ui/views/App/Calls/CallsWindow.js
+31
-0
CallsWindow.qml
linphone-desktop/ui/views/App/Calls/CallsWindow.qml
+2
-26
Conference.qml
linphone-desktop/ui/views/App/Calls/Conference.qml
+11
-7
No files found.
linphone-desktop/assets/languages/en.ts
View file @
1982234f
...
...
@@ -364,6 +364,13 @@ Server url not configured.</translation>
<
translation
>
CONFERENCE
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ConferenceControls
<
/name
>
<
message
>
<
source
>
conference
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ConferenceManager
<
/name
>
<
message
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
1982234f
...
...
@@ -364,6 +364,13 @@ Url du serveur non configurée.</translation>
<
translation
>
CONF
É
RENCE
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ConferenceControls
<
/name
>
<
message
>
<
source
>
conference
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ConferenceManager
<
/name
>
<
message
>
...
...
linphone-desktop/resources.qrc
View file @
1982234f
...
...
@@ -297,6 +297,7 @@
<file>
ui/modules/Linphone/Calls/Calls.js
</file>
<file>
ui/modules/Linphone/Calls/Calls.qml
</file>
<file>
ui/modules/Linphone/Calls/CallStatistics.qml
</file>
<file>
ui/modules/Linphone/Calls/ConferenceControls.qml
</file>
<file>
ui/modules/Linphone/Chat/Chat.js
</file>
<file>
ui/modules/Linphone/Chat/Chat.qml
</file>
<file>
ui/modules/Linphone/Chat/Event.qml
</file>
...
...
linphone-desktop/ui/modules/Linphone/Calls/CallControls.qml
View file @
1982234f
...
...
@@ -27,7 +27,6 @@ Rectangle {
color
:
CallControlsStyle
.
color
height
:
CallControlsStyle
.
height
width
:
CallControlsStyle
.
width
MouseArea
{
anchors.fill
:
parent
...
...
@@ -70,11 +69,7 @@ Rectangle {
id
:
content
Layout.fillHeight
:
true
Component.onCompleted
:
Layout
.
preferredWidth
=
data
[
0
].
width
Layout.preferredWidth
:
callControls
.
_content
[
0
].
width
}
}
// ---------------------------------------------------------------------------
}
linphone-desktop/ui/modules/Linphone/Calls/Calls.js
View file @
1982234f
...
...
@@ -113,16 +113,14 @@ function setIndexWithCall (call) {
return
}
}
updateSelectedCall
(
call
,
-
1
)
}
// -----------------------------------------------------------------------------
// View handlers.
// -----------------------------------------------------------------------------
function
handleSelectedCall
(
call
)
{
setIndexWithCall
(
call
)
}
function
handleCountChanged
(
count
)
{
if
(
count
===
0
)
{
return
...
...
@@ -144,7 +142,7 @@ function handleCountChanged (count) {
// -----------------------------------------------------------------------------
function
handleCallRunning
(
call
)
{
updateSelected
Call
(
call
)
setIndexWith
Call
(
call
)
}
function
handleRowsAboutToBeRemoved
(
_
,
first
,
last
)
{
...
...
linphone-desktop/ui/modules/Linphone/Calls/Calls.qml
View file @
1982234f
...
...
@@ -26,7 +26,6 @@ ListView {
// ---------------------------------------------------------------------------
onCountChanged
:
Logic
.
handleCountChanged
(
count
)
onSelectedCall
:
Logic
.
handleSelectedCall
(
call
)
Connections
{
target
:
model
...
...
@@ -87,6 +86,14 @@ ListView {
}
}
// ---------------------------------------------------------------------------
// Conference.
// ---------------------------------------------------------------------------
header
:
ConferenceControls
{
width
:
parent
.
width
}
// ---------------------------------------------------------------------------
// Calls.
// ---------------------------------------------------------------------------
...
...
linphone-desktop/ui/modules/Linphone/Calls/ConferenceControls.qml
0 → 100644
View file @
1982234f
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
Common
1.0
import
Linphone
1.0
import
Linphone
.
Styles
1.0
// =============================================================================
Rectangle
{
id
:
callControls
// ---------------------------------------------------------------------------
property
alias
signIcon
:
signIcon
.
icon
property
alias
textColor
:
text
.
color
// ---------------------------------------------------------------------------
signal
clicked
// ---------------------------------------------------------------------------
color
:
CallControlsStyle
.
color
height
:
CallControlsStyle
.
height
MouseArea
{
anchors.fill
:
parent
onClicked
:
callControls
.
clicked
()
}
Icon
{
id
:
signIcon
anchors
{
left
:
parent
.
left
top
:
parent
.
top
}
iconSize
:
CallControlsStyle
.
signSize
}
RowLayout
{
anchors
{
fill
:
parent
leftMargin
:
CallControlsStyle
.
leftMargin
rightMargin
:
CallControlsStyle
.
rightMargin
}
spacing
:
0
Text
{
id
:
text
Layout.fillHeight
:
true
Layout.fillWidth
:
true
text
:
qsTr
(
'
conference
'
)
}
}
}
linphone-desktop/ui/modules/Linphone/Styles/Calls/CallControlsStyle.qml
View file @
1982234f
...
...
@@ -11,5 +11,4 @@ QtObject {
property
int
leftMargin
:
12
property
int
rightMargin
:
12
property
int
signSize
:
40
property
int
width
:
240
}
linphone-desktop/ui/views/App/Calls/AbstractStartingCall.qml
View file @
1982234f
...
...
@@ -74,8 +74,8 @@ Rectangle {
var
width
=
container
.
width
var
size
=
height
<
CallStyle
.
container
.
avatar
.
maxSize
&&
height
>
0
?
height
:
CallStyle
.
container
.
avatar
.
maxSize
?
height
:
CallStyle
.
container
.
avatar
.
maxSize
return
size
<
width
?
size
:
width
}
...
...
linphone-desktop/ui/views/App/Calls/CallsWindow.js
View file @
1982234f
...
...
@@ -33,6 +33,37 @@ function handleClosing (close) {
close
.
accepted
=
false
}
// -----------------------------------------------------------------------------
function
openConferenceManager
()
{
window
.
attachVirtualWindow
(
Qt
.
resolvedUrl
(
'
ConferenceManager.qml
'
))
}
// -----------------------------------------------------------------------------
function
getContent
()
{
var
call
=
window
.
call
if
(
call
==
null
)
{
return
null
}
var
status
=
call
.
status
if
(
status
==
null
)
{
return
null
}
var
CallModel
=
Linphone
.
CallModel
if
(
status
===
CallModel
.
CallStatusIncoming
)
{
return
incomingCall
}
if
(
status
===
CallModel
.
CallStatusOutgoing
)
{
return
outgoingCall
}
if
(
status
===
CallModel
.
CallStatusEnded
)
{
return
endedCall
}
return
incall
}
linphone-desktop/ui/views/App/Calls/CallsWindow.qml
View file @
1982234f
...
...
@@ -18,7 +18,7 @@ Window {
// ---------------------------------------------------------------------------
// `{}` is a workaround to avoid `TypeError: Cannot read property...`.
property
var
call
:
calls
.
selectedCall
||
({
readonly
property
var
call
:
calls
.
selectedCall
||
({
callError
:
''
,
isOutgoing
:
true
,
recording
:
false
,
...
...
@@ -187,31 +187,7 @@ Window {
childA
:
Loader
{
anchors.fill
:
parent
sourceComponent
:
{
if
(
!
window
.
call
)
{
return
null
}
var
status
=
window
.
call
.
status
if
(
status
==
null
)
{
return
null
}
if
(
status
===
CallModel
.
CallStatusIncoming
)
{
return
incomingCall
}
if
(
status
===
CallModel
.
CallStatusOutgoing
)
{
return
outgoingCall
}
if
(
status
===
CallModel
.
CallStatusEnded
)
{
return
endedCall
}
return
incall
}
sourceComponent
:
Logic
.
getContent
()
}
childB
:
Loader
{
...
...
linphone-desktop/ui/views/App/Calls/Conference.qml
View file @
1982234f
...
...
@@ -11,6 +11,12 @@ import App.Styles 1.0
// =============================================================================
Rectangle
{
id
:
conference
property
var
conferenceModel
// ---------------------------------------------------------------------------
color
:
CallStyle
.
backgroundColor
// ---------------------------------------------------------------------------
...
...
@@ -71,13 +77,13 @@ Rectangle {
iconSize
:
CallStyle
.
header
.
iconSize
ActionSwitch
{
enabled
:
conference
.
recording
enabled
:
conference
.
conferenceModel
.
recording
icon
:
'
record
'
useStates
:
false
onClicked
:
!
enabled
?
conference
.
startRecording
()
:
conference
.
stopRecording
()
?
conference
.
conferenceModel
.
startRecording
()
:
conference
.
conferenceModel
.
stopRecording
()
}
}
}
...
...
@@ -101,9 +107,7 @@ Rectangle {
cellHeight
:
ConferenceStyle
.
grid
.
cell
.
height
cellWidth
:
ConferenceStyle
.
grid
.
cell
.
width
model
:
ConferenceModel
{
id
:
conference
}
model
:
conference
.
conferenceModel
delegate
:
Item
{
height
:
grid
.
cellHeight
...
...
@@ -187,7 +191,7 @@ Rectangle {
ActionButton
{
icon
:
'
hangup
'
onClicked
:
conference
.
terminate
()
onClicked
:
conference
.
conferenceModel
.
terminate
()
}
}
}
...
...
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