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
c9d27e37
Commit
c9d27e37
authored
Feb 15, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(app): toolbar in progress
parent
2b46a4c5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
261 additions
and
99 deletions
+261
-99
en.ts
linphone-desktop/assets/languages/en.ts
+35
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+35
-0
resources.qrc
linphone-desktop/resources.qrc
+1
-0
TimelineStyle.qml
...hone-desktop/ui/modules/Linphone/Styles/TimelineStyle.qml
+2
-0
Timeline.qml
linphone-desktop/ui/modules/Linphone/Timeline.qml
+5
-0
MainWindow.qml
linphone-desktop/ui/views/App/Main/MainWindow.qml
+117
-99
MainWindowMenuBar.qml
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
+66
-0
No files found.
linphone-desktop/assets/languages/en.ts
View file @
c9d27e37
...
...
@@ -394,6 +394,41 @@ Server url not configured.</translation>
<
translation
>
auto
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
MainWindowMenuBar
<
/name
>
<
message
>
<
source
>
tools
<
/source
>
<
translation
>
Tools
<
/translation
>
<
/message
>
<
message
>
<
source
>
help
<
/source
>
<
translation
>
Help
<
/translation
>
<
/message
>
<
message
>
<
source
>
options
<
/source
>
<
translation
>
Options
<
/translation
>
<
/message
>
<
message
>
<
source
>
settings
<
/source
>
<
translation
>
Settings
<
/translation
>
<
/message
>
<
message
>
<
source
>
accountAssistant
<
/source
>
<
translation
>
Account
assistant
<
/translation
>
<
/message
>
<
message
>
<
source
>
audioAssistant
<
/source
>
<
translation
>
Audio
Assistant
<
/translation
>
<
/message
>
<
message
>
<
source
>
debugWindow
<
/source
>
<
translation
>
Debug
window
<
/translation
>
<
/message
>
<
message
>
<
source
>
about
<
/source
>
<
translation
>
About
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ManageAccounts
<
/name
>
<
message
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
c9d27e37
...
...
@@ -393,6 +393,41 @@ Url du serveur non configurée.</translation>
<
translation
>
auto
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
MainWindowMenuBar
<
/name
>
<
message
>
<
source
>
tools
<
/source
>
<
translation
>
Outils
<
/translation
>
<
/message
>
<
message
>
<
source
>
help
<
/source
>
<
translation
>
Aide
<
/translation
>
<
/message
>
<
message
>
<
source
>
options
<
/source
>
<
translation
>
Options
<
/translation
>
<
/message
>
<
message
>
<
source
>
settings
<
/source
>
<
translation
>
Param
è
tres
<
/translation
>
<
/message
>
<
message
>
<
source
>
accountAssistant
<
/source
>
<
translation
>
Assistant
de
compte
<
/translation
>
<
/message
>
<
message
>
<
source
>
audioAssistant
<
/source
>
<
translation
>
Assistant
audio
<
/translation
>
<
/message
>
<
message
>
<
source
>
debugWindow
<
/source
>
<
translation
>
Fen
ê
tre
de
debug
<
/translation
>
<
/message
>
<
message
>
<
source
>
about
<
/source
>
<
translation
>
À
propos
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ManageAccounts
<
/name
>
<
message
>
...
...
linphone-desktop/resources.qrc
View file @
c9d27e37
...
...
@@ -303,6 +303,7 @@
<file>
ui/views/App/Main/Contacts.qml
</file>
<file>
ui/views/App/Main/Conversation.qml
</file>
<file>
ui/views/App/Main/Home.qml
</file>
<file>
ui/views/App/Main/MainWindowMenuBar.qml
</file>
<file>
ui/views/App/Main/MainWindow.qml
</file>
<file>
ui/views/App/ManageAccounts.qml
</file>
<file>
ui/views/App/qmldir
</file>
...
...
linphone-desktop/ui/modules/Linphone/Styles/TimelineStyle.qml
View file @
c9d27e37
...
...
@@ -6,6 +6,8 @@ import Common 1.0
// =============================================================================
QtObject
{
property
color
color
:
Colors
.
k
property
QtObject
contact
:
QtObject
{
property
int
height
:
60
...
...
linphone-desktop/ui/modules/Linphone/Timeline.qml
View file @
c9d27e37
...
...
@@ -45,6 +45,11 @@ ColumnLayout {
spacing
:
0
Rectangle
{
anchors.fill
:
parent
color
:
TimelineStyle
.
color
}
SmartConnect
{
Component.onCompleted
:
{
// Handle if current entry was moved in timeline.
...
...
linphone-desktop/ui/views/App/Main/MainWindow.qml
View file @
c9d27e37
...
...
@@ -2,6 +2,9 @@ import QtQuick 2.7
import
QtQuick
.
Controls
2.0
import
QtQuick
.
Layouts
1.3
// Explicit import to support Toolbar.
import
QtQuick
.
Controls
1.4
as
Controls1
import
Common
1.0
import
Linphone
1.0
import
Utils
1.0
...
...
@@ -10,7 +13,7 @@ import App.Styles 1.0
// =============================================================================
ApplicationWindow
{
Controls1.
ApplicationWindow
{
id
:
window
property
string
_currentView
:
''
...
...
@@ -84,145 +87,160 @@ ApplicationWindow {
onActiveFocusItemChanged
:
activeFocusItem
==
null
&&
smartSearchBar
.
hideMenu
()
// ---------------------------------------------------------------------------
//
Toolbar properties
.
//
Mernu bar
.
// ---------------------------------------------------------------------------
header
:
ToolBar
{
background
:
MainWindowStyle
.
toolBar
.
background
height
:
MainWindowStyle
.
toolBar
.
height
menuBar
:
MainWindowMenuBar
{}
RowLayout
{
anchors
{
fill
:
parent
leftMargin
:
MainWindowStyle
.
toolBar
.
leftMargin
rightMargin
:
MainWindowStyle
.
toolBar
.
rightMargin
}
spacing
:
MainWindowStyle
.
toolBar
.
spacing
ColumnLayout
{
anchors.fill
:
parent
spacing
:
0
Collapse
{
id
:
collapse
// -------------------------------------------------------------------------
// Toolbar properties.
// -------------------------------------------------------------------------
Layout.fillHeight
:
parent
.
height
target
:
window
targetHeight
:
MainWindowStyle
.
minimumHeight
}
ToolBar
{
Layout.fillWidth
:
true
Layout.preferredHeight
:
MainWindowStyle
.
toolBar
.
height
AccountStatus
{
id
:
accountStatus
background
:
MainWindowStyle
.
toolBar
.
background
Layout.fillHeight
:
parent
.
height
Layout.preferredWidth
:
MainWindowStyle
.
accountStatus
.
width
RowLayout
{
anchors
{
fill
:
parent
leftMargin
:
MainWindowStyle
.
toolBar
.
leftMargin
rightMargin
:
MainWindowStyle
.
toolBar
.
rightMargin
}
spacing
:
MainWindowStyle
.
toolBar
.
spacing
account
:
AccountSettingsModel
Collapse
{
id
:
collapse
TooltipArea
{
text
:
AccountSettingsModel
.
sipAddress
Layout.fillHeight
:
parent
.
height
target
:
window
targetHeight
:
MainWindowStyle
.
minimumHeight
}
onClicked
:
Utils
.
openWindow
(
'
ManageAccounts
'
,
window
)
}
AccountStatus
{
id
:
accountStatus
Layout.fillHeight
:
parent
.
height
Layout.preferredWidth
:
MainWindowStyle
.
accountStatus
.
width
Column
{
width
:
MainWindowStyle
.
autoAnswerStatus
.
width
account
:
AccountSettingsModel
Icon
{
icon
:
SettingsModel
.
autoAnswerStatu
s
?
'
auto_answer
'
:
''
iconSize
:
MainWindowStyle
.
autoAnswerStatus
.
iconSize
TooltipArea
{
text
:
AccountSettingsModel
.
sipAddres
s
}
onClicked
:
Utils
.
openWindow
(
'
ManageAccounts
'
,
window
)
}
Text
{
clip
:
true
font
{
pointSize
:
MainWindowStyle
.
autoAnswerStatus
.
text
.
fontSize
Column
{
width
:
MainWindowStyle
.
autoAnswerStatus
.
width
Icon
{
icon
:
SettingsModel
.
autoAnswerStatus
?
'
auto_answer
'
:
''
iconSize
:
MainWindowStyle
.
autoAnswerStatus
.
iconSize
}
Text
{
clip
:
true
font
{
pointSize
:
MainWindowStyle
.
autoAnswerStatus
.
text
.
fontSize
}
text
:
qsTr
(
'
autoAnswerStatus
'
)
width
:
parent
.
width
color
:
MainWindowStyle
.
autoAnswerStatus
.
text
.
color
}
text
:
qsTr
(
'
autoAnswerStatus
'
)
width
:
parent
.
width
color
:
MainWindowStyle
.
autoAnswerStatus
.
text
.
color
}
}
SmartSearchBar
{
id
:
smartSearchBar
SmartSearchBar
{
id
:
smartSearchBar
Layout.fillWidth
:
true
entryHeight
:
MainWindowStyle
.
searchBox
.
entryHeight
maxMenuHeight
:
MainWindowStyle
.
searchBox
.
maxHeight
placeholderText
:
qsTr
(
'
mainSearchBarPlaceholder
'
)
Layout.fillWidth
:
true
entryHeight
:
MainWindowStyle
.
searchBox
.
entryHeight
maxMenuHeight
:
MainWindowStyle
.
searchBox
.
maxHeight
placeholderText
:
qsTr
(
'
mainSearchBarPlaceholder
'
)
model
:
SmartSearchBarModel
{}
model
:
SmartSearchBarModel
{}
onAddContact
:
window
.
setView
(
'
ContactEdit
'
,
{
sipAddress
:
sipAddress
})
onAddContact
:
window
.
setView
(
'
ContactEdit
'
,
{
sipAddress
:
sipAddress
})
onLaunchCall
:
CallsListModel
.
launchAudioCall
(
sipAddress
)
onLaunchChat
:
window
.
setView
(
'
Conversation
'
,
{
sipAddress
:
sipAddress
})
onLaunchCall
:
CallsListModel
.
launchAudioCall
(
sipAddress
)
onLaunchChat
:
window
.
setView
(
'
Conversation
'
,
{
sipAddress
:
sipAddress
})
onLaunchVideoCall
:
CallsListModel
.
launchVideoCall
(
sipAddress
)
onLaunchVideoCall
:
CallsListModel
.
launchVideoCall
(
sipAddress
)
onEntryClicked
:
window
.
setView
(
entry
.
contact
?
'
ContactEdit
'
:
'
Conversation
'
,
{
sipAddress
:
entry
.
sipAddress
})
onEntryClicked
:
window
.
setView
(
entry
.
contact
?
'
ContactEdit
'
:
'
Conversation
'
,
{
sipAddress
:
entry
.
sipAddress
})
}
}
}
}
// ---------------------------------------------------------------------------
// Content.
// ---------------------------------------------------------------------------
RowLayout
{
anchors.fill
:
parent
spacing
:
0
// -------------------------------------------------------------------------
// Content.
// -------------------------------------------------------------------------
// Main menu.
ColumnLayout
{
RowLayout
{
Layout.fillHeight
:
true
Layout.
maximumWidth
:
MainWindowStyle
.
menu
.
width
Layout.preferredWidth
:
MainWindowStyle
.
menu
.
width
Layout.
fillWidth
:
true
spacing
:
0
Menu
{
id
:
menu
// Main menu.
ColumnLayout
{
Layout.maximumWidth
:
MainWindowStyle
.
menu
.
width
Layout.preferredWidth
:
MainWindowStyle
.
menu
.
width
entryHeight
:
MainWindowStyle
.
menu
.
entryHeight
entryWidth
:
MainWindowStyle
.
menu
.
width
spacing
:
0
entries
:
[{
entryName
:
qsTr
(
'
homeEntry
'
),
icon
:
'
home
'
},
{
entryName
:
qsTr
(
'
contactsEntry
'
),
icon
:
'
contact
'
}]
Menu
{
id
:
menu
onEntrySelected
:
!
entry
?
setView
(
'
Home
'
)
:
setView
(
'
Contacts
'
)
}
entryHeight
:
MainWindowStyle
.
menu
.
entryHeight
entryWidth
:
MainWindowStyle
.
menu
.
width
// History.
Timeline
{
id
:
timeline
entries
:
[{
entryName
:
qsTr
(
'
homeEntry
'
),
icon
:
'
home
'
},
{
entryName
:
qsTr
(
'
contactsEntry
'
),
icon
:
'
contact
'
}]
Layout.fillHeight
:
true
Layout.fillWidth
:
true
model
:
TimelineModel
onEntrySelected
:
!
entry
?
setView
(
'
Home
'
)
:
setView
(
'
Contacts
'
)
}
// History.
Timeline
{
id
:
timeline
Layout.fillHeight
:
true
Layout.fillWidth
:
true
model
:
TimelineModel
onEntrySelected
:
setView
(
'
Conversation
'
,
{
sipAddress
:
entry
})
onEntrySelected
:
setView
(
'
Conversation
'
,
{
sipAddress
:
entry
})
}
}
}
// Main content.
Loader
{
id
:
contentLoader
// Main content.
Loader
{
id
:
contentLoader
Layout.fillHeight
:
true
Layout.fillWidth
:
true
Layout.fillHeight
:
true
Layout.fillWidth
:
true
Component.onCompleted
:
setView
(
'
Home
'
)
Component.onCompleted
:
setView
(
'
Home
'
)
}
}
}
}
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
0 → 100644
View file @
c9d27e37
import
QtQuick
2.7
import
QtQuick
.
Controls
1.4
import
QtQuick
.
Controls
.
Styles
1.4
// ============================================================================
MenuBar
{
style
:
MenuBarStyle
{
background
:
Rectangle
{
anchors.fill
:
parent
color
:
'
#E8E8E7
'
}
itemDelegate
:
Rectangle
{
implicitHeight
:
text
.
height
+
8
implicitWidth
:
text
.
width
+
18
color
:
'
transparent
'
Text
{
id
:
text
anchors.centerIn
:
parent
font
:
root
.
font
text
:
formatMnemonic
(
styleData
.
text
,
styleData
.
underlineMnemonic
)
color
:
styleData
.
open
?
'
#FE5E00
'
:
'
#515557
'
}
}
}
// --------------------------------------------------------------------------
Menu
{
title
:
qsTr
(
'
options
'
)
MenuItem
{
text
:
qsTr
(
'
settings
'
)
}
}
Menu
{
title
:
qsTr
(
'
tools
'
)
MenuItem
{
text
:
qsTr
(
'
accountAssistant
'
)
}
MenuItem
{
text
:
qsTr
(
'
audioAssistant
'
)
}
MenuSeparator
{}
MenuItem
{
text
:
qsTr
(
'
debugWindow
'
)
}
}
Menu
{
title
:
qsTr
(
'
help
'
)
MenuItem
{
text
:
qsTr
(
'
about
'
)
}
}
}
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