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
d67d8116
Commit
d67d8116
authored
Sep 19, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unstable
parent
b1349b02
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
229 additions
and
16 deletions
+229
-16
en.ts
tests/languages/en.ts
+19
-0
fr.ts
tests/languages/fr.ts
+19
-0
resources.qrc
tests/resources.qrc
+1
-0
Collapse.qml
tests/ui/components/collapse/Collapse.qml
+5
-5
ListForm.qml
tests/ui/components/form/ListForm.qml
+104
-0
Timeline.qml
tests/ui/components/timeline/Timeline.qml
+1
-1
contact.qml
tests/ui/views/mainWindow/contact.qml
+49
-0
conversation.qml
tests/ui/views/mainWindow/conversation.qml
+2
-0
mainWindow.qml
tests/ui/views/mainWindow/mainWindow.qml
+29
-10
No files found.
tests/languages/en.ts
View file @
d67d8116
...
...
@@ -52,6 +52,25 @@
<
translation
>
Previously
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
contact
<
/name
>
<
message
>
<
source
>
sipAccounts
<
/source
>
<
translation
>
SIP
ACCOUNT
(
S
)
<
/translation
>
<
/message
>
<
message
>
<
source
>
address
<
/source
>
<
translation
>
ADDRESS
<
/translation
>
<
/message
>
<
message
>
<
source
>
emails
<
/source
>
<
translation
>
E
-
MAIL
(
S
)
<
/translation
>
<
/message
>
<
message
>
<
source
>
webSites
<
/source
>
<
translation
>
WEB
SITE
(
S
)
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
contacts
<
/name
>
<
message
>
...
...
tests/languages/fr.ts
View file @
d67d8116
...
...
@@ -52,6 +52,25 @@
<
translation
>
Pr
é
c
é
demment
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
contact
<
/name
>
<
message
>
<
source
>
sipAccounts
<
/source
>
<
translation
>
COMPTE
(
S
)
SIP
<
/translation
>
<
/message
>
<
message
>
<
source
>
address
<
/source
>
<
translation
>
ADRESSE
(
S
)
<
/translation
>
<
/message
>
<
message
>
<
source
>
emails
<
/source
>
<
translation
>
EMAIL
(
S
)
<
/translation
>
<
/message
>
<
message
>
<
source
>
webSites
<
/source
>
<
translation
>
SITE
(
S
)
WEB
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
contacts
<
/name
>
<
message
>
...
...
tests/resources.qrc
View file @
d67d8116
...
...
@@ -22,6 +22,7 @@
<file>
ui/components/form/CheckBoxText.qml
</file>
<file>
ui/components/form/DropZone.qml
</file>
<file>
ui/components/form/LightButton.qml
</file>
<file>
ui/components/form/ListForm.qml
</file>
<file>
ui/components/form/ExclusiveButtons.qml
</file>
<file>
ui/components/form/ActionBar.qml
</file>
<file>
ui/components/form/ActionButton.qml
</file>
...
...
tests/ui/components/collapse/Collapse.qml
View file @
d67d8116
...
...
@@ -5,13 +5,13 @@ import 'qrc:/ui/components/image'
// ===================================================================
Item
{
property
bool
enabl
ed
:
false
property
bool
isCollaps
ed
:
false
signal
collapsed
(
bool
collapsed
)
function
updateCollapse
()
{
enabled
=
!
enabl
ed
collapsed
(
enabl
ed
)
isCollapsed
=
!
isCollaps
ed
collapsed
(
isCollaps
ed
)
rotate
.
start
()
}
...
...
@@ -29,10 +29,10 @@ Item {
RotationAnimation
{
direction
:
RotationAnimation
.
Clockwise
duration
:
200
from
:
enabl
ed
?
0
:
180
from
:
isCollaps
ed
?
0
:
180
id
:
rotate
property
:
'
rotation
'
target
:
backgroundImage
to
:
enabl
ed
?
180
:
0
to
:
isCollaps
ed
?
180
:
0
}
}
tests/ui/components/form/ListForm.qml
0 → 100644
View file @
d67d8116
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
RowLayout
{
readonly
property
int
lineHeight
:
30
property
alias
title
:
text
.
text
spacing
:
0
RowLayout
{
Layout.alignment
:
Qt
.
AlignTop
Layout.preferredHeight
:
lineHeight
spacing
:
20
// Add item in list.
ActionButton
{
Layout.preferredHeight
:
16
Layout.preferredWidth
:
16
onClicked
:
{
console
.
log
(
valuesModel
.
get
(
valuesModel
.
count
-
1
).
$value
.
length
)
if
(
valuesModel
.
count
===
0
||
valuesModel
.
get
(
valuesModel
.
count
-
1
).
$value
.
length
!==
0
)
{
valuesModel
.
append
({
$value
:
''
})
}
}
}
// List title.
Text
{
Layout.preferredWidth
:
130
id
:
text
}
}
// Content list.
ListView
{
Layout.fillWidth
:
true
Layout.preferredHeight
:
values
.
count
*
lineHeight
id
:
values
interactive
:
false
model
:
ListModel
{
id
:
valuesModel
ListElement
{
$value
:
'
toto
'
}
ListElement
{
$value
:
'
abc
'
}
ListElement
{
$value
:
'
machin
'
}
ListElement
{
$value
:
'
bidule
'
}
ListElement
{
$value
:
'
truc
'
}
}
delegate
:
Item
{
implicitHeight
:
textEdit
.
height
width
:
parent
.
width
Rectangle
{
color
:
textEdit
.
focus
?
'
#E6E6E6
'
:
'
transparent
'
id
:
background
implicitHeight
:
textEdit
.
height
implicitWidth
:
textEdit
.
contentWidth
+
textEdit
.
padding
*
2
}
Text
{
anchors.fill
:
textEdit
color
:
'
#5A585B
'
font.italic
:
true
padding
:
textEdit
.
padding
text
:
textEdit
.
text
.
length
===
0
&&
!
textEdit
.
focus
?
qsTr
(
'
fillPlaceholder
'
)
:
''
verticalAlignment
:
Text
.
AlignVCenter
}
TextEdit
{
color
:
focus
?
'
#000000
'
:
'
#5A585B
'
font.bold
:
!
focus
height
:
lineHeight
id
:
textEdit
padding
:
10
selectByMouse
:
true
text
:
$value
verticalAlignment
:
TextEdit
.
AlignVCenter
width
:
parent
.
width
// To handle editingFinished, it's necessary to set
// focus on another component.
Keys.onReturnPressed
:
parent
.
forceActiveFocus
()
onEditingFinished
:
{
if
(
text
.
length
===
0
)
{
valuesModel
.
remove
(
index
)
}
// Hack: The edition is finished but the focus
// can be set.
focus
=
false
}
}
}
}
}
tests/ui/components/timeline/Timeline.qml
View file @
d67d8116
...
...
@@ -13,7 +13,7 @@ ColumnLayout {
Image
{
fillMode
:
Image
.
PreserveAspectFit
height
:
parent
.
height
width
:
3
0
width
:
2
0
}
Text
{
...
...
tests/ui/views/mainWindow/contact.qml
0 → 100644
View file @
d67d8116
import
QtQuick
2.7
import
QtQuick
.
Controls
2.0
import
QtQuick
.
Layouts
1.3
import
'
qrc:/ui/components/form
'
import
'
qrc:/ui/components/scrollBar
'
ColumnLayout
{
spacing
:
0
Rectangle
{
Layout.fillWidth
:
true
Layout.preferredHeight
:
102
color
:
'
#D1D1D1
'
}
Flickable
{
Layout.fillHeight
:
true
Layout.fillWidth
:
true
ScrollBar.vertical
:
ForceScrollBar
{
}
boundsBehavior
:
Flickable
.
StopAtBounds
clip
:
true
contentHeight
:
content
.
height
flickableDirection
:
Flickable
.
VerticalFlick
ColumnLayout
{
anchors.left
:
parent
.
left
anchors.margins
:
20
anchors.right
:
parent
.
right
id
:
content
ListForm
{
title
:
qsTr
(
'
sipAccounts
'
)
}
ListForm
{
title
:
qsTr
(
'
address
'
)
}
ListForm
{
title
:
qsTr
(
'
emails
'
)
}
ListForm
{
title
:
qsTr
(
'
webSites
'
)
}
}
}
}
tests/ui/views/mainWindow/conversation.qml
View file @
d67d8116
...
...
@@ -10,6 +10,7 @@ import 'qrc:/ui/components/chat'
ColumnLayout
{
spacing
:
0
// Contact bar.
Rectangle
{
Layout.fillWidth
:
true
Layout.preferredHeight
:
102
...
...
@@ -84,6 +85,7 @@ ColumnLayout {
}
}
// Messages/Calls filter.
Rectangle
{
Layout.fillWidth
:
true
Layout.preferredHeight
:
40
...
...
tests/ui/views/mainWindow/mainWindow.qml
View file @
d67d8116
...
...
@@ -12,8 +12,9 @@ import 'qrc:/ui/scripts/utils.js' as Utils
ApplicationWindow
{
id
:
mainWindow
maximumHeight
:
70
minimumHeight
:
70
minimumWidth
:
7
8
0
minimumWidth
:
7
0
0
title
:
'
Linphone
'
visible
:
true
...
...
@@ -33,9 +34,11 @@ ApplicationWindow {
Collapse
{
Layout.preferredWidth
:
25
Layout.fillHeight
:
parent
.
height
onCollapsed
:
{
mainWindow
.
height
=
collapsed
?
500
:
70
}
id
:
collapse
onCollapsed
:
mainWindowStates
.
state
=
collapsed
?
'
collapsed
'
:
''
}
// User info.
...
...
@@ -85,33 +88,33 @@ ApplicationWindow {
// Main menu.
ColumnLayout
{
Layout.fillHeight
:
true
Layout.preferredWidth
:
250
Layout.maximumWidth
:
250
Layout.preferredWidth
:
250
spacing
:
0
MenuEntry
{
Layout.fillWidth
:
true
Layout.preferredHeight
:
50
Layout.preferredWidth
:
parent
.
width
entryName
:
qsTr
(
'
homeEntry
'
)
}
Item
{
Layout.preferredHeight
:
2
}
MenuEntry
{
Layout.fillWidth
:
true
Layout.preferredHeight
:
50
Layout.preferredWidth
:
parent
.
width
entryName
:
qsTr
(
'
contactsEntry
'
)
}
// History.
Timeline
{
Layout.fillHeight
:
true
Layout.
preferredWidth
:
parent
.
width
Layout.
fillWidth
:
true
}
// Logo.
Rectangle
{
Layout.
preferredWidth
:
parent
.
width
Layout.
fillWidth
:
true
Layout.preferredHeight
:
70
color
:
'
#EAEAEA
'
}
...
...
@@ -121,7 +124,23 @@ ApplicationWindow {
Loader
{
Layout.fillHeight
:
true
Layout.fillWidth
:
true
source
:
'
qrc:/ui/views/mainWindow/home.qml
'
source
:
'
qrc:/ui/views/mainWindow/contact.qml
'
}
}
StateGroup
{
id
:
mainWindowStates
states
:
State
{
name
:
'
collapsed
'
PropertyChanges
{
height
:
480
maximumHeight
:
99999
maximumWidth
:
99999
minimumHeight
:
480
target
:
mainWindow
}
}
}
}
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