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
a9f2a407
Commit
a9f2a407
authored
Sep 12, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(home): splitted in tow areas
parent
e015ac75
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
240 additions
and
52 deletions
+240
-52
en.ts
tests/languages/en.ts
+9
-1
fr.ts
tests/languages/fr.ts
+9
-1
linphone.pro
tests/linphone.pro
+2
-1
resources.qrc
tests/resources.qrc
+2
-2
main.cpp
tests/src/main.cpp
+1
-1
DialogDescription.qml
tests/ui/components/dialog/DialogDescription.qml
+1
-1
DialogPlus.qml
tests/ui/components/dialog/DialogPlus.qml
+1
-1
Collapse.qml
tests/ui/components/form/Collapse.qml
+2
-6
DialogButton.qml
tests/ui/components/form/DialogButton.qml
+2
-0
RoundButton.qml
tests/ui/components/form/RoundButton.qml
+0
-12
ToolBarButton.qml
tests/ui/components/form/ToolBarButton.qml
+3
-0
MenuEntry.qml
tests/ui/components/misc/MenuEntry.qml
+37
-0
SelectContact.qml
tests/ui/components/select/SelectContact.qml
+26
-26
home.qml
tests/ui/views/home/home.qml
+145
-0
No files found.
tests/languages/en.ts
View file @
a9f2a407
...
@@ -9,11 +9,19 @@
...
@@ -9,11 +9,19 @@
<
/message
>
<
/message
>
<
/context
>
<
/context
>
<
context
>
<
context
>
<
name
>
mainWindow
<
/name
>
<
name
>
home
<
/name
>
<
message
>
<
message
>
<
source
>
mainSearchBarPlaceholder
<
/source
>
<
source
>
mainSearchBarPlaceholder
<
/source
>
<
translation
>
Search
contact
,
start
call
,
start
chat
...
<
/translation
>
<
translation
>
Search
contact
,
start
call
,
start
chat
...
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
source
>
homeEntry
<
/source
>
<
translation
>
Home
<
/translation
>
<
/message
>
<
message
>
<
source
>
contactsEntry
<
/source
>
<
translation
>
Contacts
<
/translation
>
<
/message
>
<
/context
>
<
/context
>
<
context
>
<
context
>
<
name
>
manageAccounts
<
/name
>
<
name
>
manageAccounts
<
/name
>
...
...
tests/languages/fr.ts
View file @
a9f2a407
...
@@ -9,11 +9,19 @@
...
@@ -9,11 +9,19 @@
<
/message
>
<
/message
>
<
/context
>
<
/context
>
<
context
>
<
context
>
<
name
>
mainWindow
<
/name
>
<
name
>
home
<
/name
>
<
message
>
<
message
>
<
source
>
mainSearchBarPlaceholder
<
/source
>
<
source
>
mainSearchBarPlaceholder
<
/source
>
<
translation
>
Chercher
contact
,
commencer
appel
ou
chat
...
<
/translation
>
<
translation
>
Chercher
contact
,
commencer
appel
ou
chat
...
<
/translation
>
<
/message
>
<
/message
>
<
message
>
<
source
>
homeEntry
<
/source
>
<
translation
>
Accueil
<
/translation
>
<
/message
>
<
message
>
<
source
>
contactsEntry
<
/source
>
<
translation
>
Contacts
<
/translation
>
<
/message
>
<
/context
>
<
/context
>
<
context
>
<
context
>
<
name
>
manageAccounts
<
/name
>
<
name
>
manageAccounts
<
/name
>
...
...
tests/linphone.pro
View file @
a9f2a407
...
@@ -25,7 +25,8 @@ lupdate_only{
...
@@ -25,7 +25,8 @@ lupdate_only{
ui/components/form
/*
.qml \
ui/components/form
/*
.qml \
ui/components/misc
/*
.qml \
ui/components/misc
/*
.qml \
ui/components/select
/*
.qml \
ui/components/select
/*
.qml \
ui/views
/*
.qml
ui/views
/*
.qml \
ui/views/home
/*
.qml
}
}
RESOURCES += \
RESOURCES += \
...
...
tests/resources.qrc
View file @
a9f2a407
...
@@ -9,14 +9,14 @@
...
@@ -9,14 +9,14 @@
<file>
ui/components/dialog/DialogPlus.qml
</file>
<file>
ui/components/dialog/DialogPlus.qml
</file>
<file>
ui/components/form/Collapse.qml
</file>
<file>
ui/components/form/Collapse.qml
</file>
<file>
ui/components/form/DialogButton.qml
</file>
<file>
ui/components/form/DialogButton.qml
</file>
<file>
ui/components/form/RoundButton.qml
</file>
<file>
ui/components/form/ToolBarButton.qml
</file>
<file>
ui/components/form/ToolBarButton.qml
</file>
<file>
ui/components/form/TransparentComboBox.qml
</file>
<file>
ui/components/form/TransparentComboBox.qml
</file>
<file>
ui/components/misc/Contact.qml
</file>
<file>
ui/components/misc/Contact.qml
</file>
<file>
ui/components/misc/MenuEntry.qml
</file>
<file>
ui/components/select/SelectContact.qml
</file>
<file>
ui/components/select/SelectContact.qml
</file>
<!-- UI: Views. -->
<!-- UI: Views. -->
<file>
ui/views/
mainWindow
.qml
</file>
<file>
ui/views/
home/home
.qml
</file>
<file>
ui/views/manageAccounts.qml
</file>
<file>
ui/views/manageAccounts.qml
</file>
<file>
ui/views/newCall.qml
</file>
<file>
ui/views/newCall.qml
</file>
...
...
tests/src/main.cpp
View file @
a9f2a407
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
App
app
(
argc
,
argv
);
App
app
(
argc
,
argv
);
QQmlApplicationEngine
engine
(
QUrl
(
"qrc:/ui/views/
mainWindow
.qml"
));
QQmlApplicationEngine
engine
(
QUrl
(
"qrc:/ui/views/
home/home
.qml"
));
if
(
engine
.
rootObjects
().
isEmpty
())
if
(
engine
.
rootObjects
().
isEmpty
())
return
EXIT_FAILURE
;
return
EXIT_FAILURE
;
...
...
tests/ui/components/dialog/DialogDescription.qml
View file @
a9f2a407
...
@@ -3,8 +3,8 @@ import QtQuick 2.7
...
@@ -3,8 +3,8 @@ import QtQuick 2.7
// ===================================================================
// ===================================================================
Item
{
Item
{
property
alias
text
:
description
.
text
property
alias
fontSize
:
description
.
font
.
pointSize
property
alias
fontSize
:
description
.
font
.
pointSize
property
alias
text
:
description
.
text
height
:
text
?
90
:
25
height
:
text
?
90
:
25
...
...
tests/ui/components/dialog/DialogPlus.qml
View file @
a9f2a407
...
@@ -6,8 +6,8 @@ import QtQuick.Window 2.2
...
@@ -6,8 +6,8 @@ import QtQuick.Window 2.2
Window
{
Window
{
default
property
alias
contents
:
content
.
data
// Required.
default
property
alias
contents
:
content
.
data
// Required.
property
alias
descriptionText
:
description
.
text
// Optionnal.
property
alias
buttons
:
buttons
.
data
// Required.
property
alias
buttons
:
buttons
.
data
// Required.
property
alias
descriptionText
:
description
.
text
// Optionnal.
property
bool
centeredButtons
// Optionnal.
property
bool
centeredButtons
// Optionnal.
modality
:
Qt
.
WindowModal
modality
:
Qt
.
WindowModal
...
...
tests/ui/components/form/Collapse.qml
View file @
a9f2a407
import
QtQuick
2.7
import
QtQuick
2.7
import
QtQuick
.
Controls
2.0
import
QtQuick
.
Controls
2.0
// ===================================================================
Item
{
Item
{
property
bool
enabled
:
false
property
bool
enabled
:
false
property
alias
image
:
backgroundImage
.
source
property
alias
image
:
backgroundImage
.
source
signal
collapsed
(
bool
collapsed
)
signal
collapsed
(
bool
collapsed
)
id
:
collapse
// Default.
height
:
50
width
:
50
function
updateCollapse
()
{
function
updateCollapse
()
{
enabled
=
!
enabled
enabled
=
!
enabled
collapsed
(
enabled
)
collapsed
(
enabled
)
...
...
tests/ui/components/form/DialogButton.qml
View file @
a9f2a407
import
QtQuick
2.7
import
QtQuick
2.7
import
QtQuick
.
Controls
2.0
import
QtQuick
.
Controls
2.0
// ===================================================================
Button
{
Button
{
background
:
Rectangle
{
background
:
Rectangle
{
color
:
button
.
down
?
'
#FE5E00
'
:
'
#434343
'
color
:
button
.
down
?
'
#FE5E00
'
:
'
#434343
'
...
...
tests/ui/components/form/RoundButton.qml
deleted
100644 → 0
View file @
e015ac75
import
QtQuick
2.7
import
QtQuick
.
Controls
2.0
Button
{
property
alias
image
:
backgroundImage
.
source
Image
{
anchors.fill
:
parent
id
:
backgroundImage
fillMode
:
Image
.
PreserveAspectFit
}
}
tests/ui/components/form/ToolBarButton.qml
View file @
a9f2a407
import
QtQuick
2.7
import
QtQuick
2.7
import
QtQuick
.
Controls
2.0
import
QtQuick
.
Controls
2.0
// ===================================================================
ToolButton
{
ToolButton
{
property
alias
image
:
backgroundImage
.
source
property
alias
image
:
backgroundImage
.
source
Image
{
Image
{
anchors.fill
:
parent
anchors.fill
:
parent
fillMode
:
Image
.
PreserveAspectFit
id
:
backgroundImage
id
:
backgroundImage
}
}
}
}
tests/ui/components/misc/MenuEntry.qml
0 → 100644
View file @
a9f2a407
import
QtQuick
2.7
Rectangle
{
property
alias
entryName
:
text
.
text
property
bool
isSelected
color
:
isSelected
?
'
#434343
'
:
'
#8E8E8E
'
Row
{
anchors.fill
:
parent
anchors.leftMargin
:
10
anchors.rightMargin
:
10
spacing
:
10
Image
{
height
:
parent
.
height
width
:
30
}
Text
{
color
:
'
#FFFFFF
'
font.pointSize
:
13
height
:
parent
.
height
id
:
text
verticalAlignment
:
Text
.
AlignVCenter
}
Image
{
height
:
parent
.
height
}
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
{
}
// TODO.
}
}
tests/ui/components/select/SelectContact.qml
View file @
a9f2a407
...
@@ -50,50 +50,50 @@ Item {
...
@@ -50,50 +50,50 @@ Item {
// TODO: Remove, use C++ model instead.
// TODO: Remove, use C++ model instead.
model
:
ListModel
{
model
:
ListModel
{
ListElement
{
ListElement
{
_
presence
:
'
connected
'
$
presence
:
'
connected
'
_
sipAddress
:
'
jim.williams.zzzz.yyyy.kkkk.sip.linphone.org
'
$
sipAddress
:
'
jim.williams.zzzz.yyyy.kkkk.sip.linphone.org
'
_
username
:
'
Toto
'
$
username
:
'
Toto
'
}
}
ListElement
{
ListElement
{
_
presence
:
'
connected
'
$
presence
:
'
connected
'
_
sipAddress
:
'
toto.lala.sip.linphone.org
'
$
sipAddress
:
'
toto.lala.sip.linphone.org
'
_
username
:
'
Toto
'
$
username
:
'
Toto
'
}
}
ListElement
{
ListElement
{
_
presence
:
'
disconnected
'
$
presence
:
'
disconnected
'
_
sipAddress
:
'
machin.truc.sip.linphone.org
'
$
sipAddress
:
'
machin.truc.sip.linphone.org
'
_
username
:
'
Toto
'
$
username
:
'
Toto
'
}
}
ListElement
{
ListElement
{
_
presence
:
'
absent
'
$
presence
:
'
absent
'
_
sipAddress
:
'
hey.listen.sip.linphone.org
'
$
sipAddress
:
'
hey.listen.sip.linphone.org
'
_
username
:
'
Toto
'
$
username
:
'
Toto
'
}
}
ListElement
{
ListElement
{
_presence
:
'
do_not_
disturb
'
$presence
:
'
do$not$
disturb
'
_
sipAddress
:
'
valentin.cognito.sip.linphone.org
'
$
sipAddress
:
'
valentin.cognito.sip.linphone.org
'
_
username
:
'
Toto
'
$
username
:
'
Toto
'
}
}
ListElement
{
ListElement
{
_presence
:
'
do_not_
disturb
'
$presence
:
'
do$not$
disturb
'
_
sipAddress
:
'
charles.henri.sip.linphone.org
'
$
sipAddress
:
'
charles.henri.sip.linphone.org
'
_
username
:
'
Toto
'
$
username
:
'
Toto
'
}
}
ListElement
{
ListElement
{
_
presence
:
'
disconnected
'
$
presence
:
'
disconnected
'
_
sipAddress
:
'
yesyes.nono.sip.linphone.org
'
$
sipAddress
:
'
yesyes.nono.sip.linphone.org
'
_
username
:
'
Toto
'
$
username
:
'
Toto
'
}
}
ListElement
{
ListElement
{
_
presence
:
'
connected
'
$
presence
:
'
connected
'
_
sipAddress
:
'
nsa.sip.linphone.org
'
$
sipAddress
:
'
nsa.sip.linphone.org
'
_
username
:
'
Toto
'
$
username
:
'
Toto
'
}
}
}
}
delegate
:
Contact
{
delegate
:
Contact
{
sipAddress
:
_
sipAddress
sipAddress
:
$
sipAddress
username
:
_
username
username
:
$
username
width
:
parent
.
width
width
:
parent
.
width
}
}
}
}
...
...
tests/ui/views/
mainWindow
.qml
→
tests/ui/views/
home/home
.qml
View file @
a9f2a407
...
@@ -3,6 +3,7 @@ import QtQuick.Controls 2.0
...
@@ -3,6 +3,7 @@ import QtQuick.Controls 2.0
import
QtQuick
.
Layouts
1.3
import
QtQuick
.
Layouts
1.3
import
'
qrc:/ui/components/form
'
import
'
qrc:/ui/components/form
'
import
'
qrc:/ui/components/misc
'
ApplicationWindow
{
ApplicationWindow
{
header
:
ToolBar
{
header
:
ToolBar
{
...
@@ -13,10 +14,14 @@ ApplicationWindow {
...
@@ -13,10 +14,14 @@ ApplicationWindow {
RowLayout
{
RowLayout
{
anchors.fill
:
parent
anchors.fill
:
parent
anchors.rightMargin
:
10
anchors.leftMargin
:
20
anchors.rightMargin
:
20
spacing
:
20
// Collapse.
// Collapse.
Collapse
{
Collapse
{
Layout.preferredWidth
:
25
Layout.fillHeight
:
parent
.
height
image
:
'
qrc:/imgs/collapse.svg
'
image
:
'
qrc:/imgs/collapse.svg
'
onCollapsed
:
{
onCollapsed
:
{
mainWindow
.
height
=
collapsed
?
480
:
70
mainWindow
.
height
=
collapsed
?
480
:
70
...
@@ -24,7 +29,32 @@ ApplicationWindow {
...
@@ -24,7 +29,32 @@ ApplicationWindow {
}
}
// User info.
// User info.
// TODO
Column
{
Layout.preferredWidth
:
200
Layout.fillHeight
:
parent
.
height
// Username.
Text
{
clip
:
true
color
:
'
#5A585B
'
font.weight
:
Font
.
DemiBold
height
:
parent
.
height
/
2
font.pointSize
:
11
text
:
'
Edward Miller
'
verticalAlignment
:
Text
.
AlignBottom
width
:
parent
.
width
}
// Sip address.
Text
{
clip
:
true
color
:
'
#5A585B
'
height
:
parent
.
height
/
2
text
:
'
e.miller@sip-linphone.org
'
verticalAlignment
:
Text
.
AlignTop
width
:
parent
.
width
}
}
// User actions.
// User actions.
ToolBarButton
{
ToolBarButton
{
...
@@ -57,6 +87,8 @@ ApplicationWindow {
...
@@ -57,6 +87,8 @@ ApplicationWindow {
// Start conference.
// Start conference.
ToolBarButton
{
ToolBarButton
{
Layout.fillHeight
:
parent
.
height
Layout.preferredWidth
:
32
image
:
'
qrc:/imgs/start_conference.svg
'
image
:
'
qrc:/imgs/start_conference.svg
'
}
}
}
}
...
@@ -66,4 +98,48 @@ ApplicationWindow {
...
@@ -66,4 +98,48 @@ ApplicationWindow {
minimumWidth
:
640
minimumWidth
:
640
title
:
'
Linphone
'
title
:
'
Linphone
'
visible
:
true
visible
:
true
RowLayout
{
anchors.fill
:
parent
spacing
:
0
// Main menu.
ColumnLayout
{
Layout.fillHeight
:
true
Layout.preferredWidth
:
250
spacing
:
0
MenuEntry
{
Layout.preferredHeight
:
50
Layout.preferredWidth
:
parent
.
width
entryName
:
qsTr
(
'
homeEntry
'
)
}
Item
{
Layout.preferredHeight
:
2
}
MenuEntry
{
Layout.preferredHeight
:
50
Layout.preferredWidth
:
parent
.
width
entryName
:
qsTr
(
'
contactsEntry
'
)
}
Rectangle
{
Layout.fillHeight
:
true
Layout.preferredWidth
:
parent
.
width
}
Rectangle
{
Layout.preferredWidth
:
250
Layout.preferredHeight
:
70
color
:
'
#EAEAEA
'
}
}
// Main content.
Rectangle
{
Layout.fillHeight
:
true
Layout.fillWidth
:
true
color
:
'
blue
'
}
}
}
}
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