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
caba6374
Commit
caba6374
authored
Apr 24, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Main/MainWindowMenuBar): supports about window
parent
05b09965
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
229 additions
and
37 deletions
+229
-37
CMakeLists.txt
linphone-desktop/CMakeLists.txt
+1
-1
en.ts
linphone-desktop/assets/languages/en.ts
+7
-8
fr.ts
linphone-desktop/assets/languages/fr.ts
+7
-8
resources.qrc
linphone-desktop/resources.qrc
+2
-0
App.cpp
linphone-desktop/src/app/App.cpp
+10
-0
App.hpp
linphone-desktop/src/app/App.hpp
+4
-0
CoreManager.cpp
linphone-desktop/src/components/core/CoreManager.cpp
+8
-2
CoreManager.hpp
linphone-desktop/src/components/core/CoreManager.hpp
+4
-0
CallStatistics.qml
...hone-desktop/ui/modules/Linphone/Calls/CallStatistics.qml
+2
-2
About.qml
linphone-desktop/ui/views/App/Main/About.qml
+115
-0
MainWindowMenuBar.qml
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
+24
-14
SplashScreen.qml
linphone-desktop/ui/views/App/SplashScreen/SplashScreen.qml
+1
-1
AboutStyle.qml
linphone-desktop/ui/views/App/Styles/Main/AboutStyle.qml
+43
-0
SplashScreenStyle.qml
...op/ui/views/App/Styles/SplashScreen/SplashScreenStyle.qml
+0
-1
qmldir
linphone-desktop/ui/views/App/Styles/qmldir
+1
-0
No files found.
linphone-desktop/CMakeLists.txt
View file @
caba6374
...
...
@@ -60,7 +60,7 @@ if(NOT WIN32)
set
(
CUSTOM_FLAGS
"
${
CUSTOM_FLAGS
}
-Wsuggest-override -Werror=suggest-override"
)
endif
()
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
CUSTOM_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
CUSTOM_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG"
)
# ------------------------------------------------------------------------------
...
...
linphone-desktop/assets/languages/en.ts
View file @
caba6374
<
?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?
>
<!
DOCTYPE
TS
>
<
TS
version
=
"
2.1
"
>
<
context
>
<
name
>
About
<
/name
>
<
message
>
<
source
>
ok
<
/source
>
<
translation
>
OK
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ActivateLinphoneSipAccountWithEmail
<
/name
>
<
message
>
...
...
@@ -760,14 +767,6 @@ to chat or see the conversation history.</translation>
<
source
>
quit
<
/source
>
<
translation
>
Quit
<
/translation
>
<
/message
>
<
message
>
<
source
>
importContacts
<
/source
>
<
translation
>
Import
contacts
from
vCards
<
/translation
>
<
/message
>
<
message
>
<
source
>
exportContacts
<
/source
>
<
translation
>
Export
contacts
as
vCards
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ManageAccounts
<
/name
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
caba6374
<
?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?
>
<!
DOCTYPE
TS
>
<
TS
version
=
"
2.1
"
>
<
context
>
<
name
>
About
<
/name
>
<
message
>
<
source
>
ok
<
/source
>
<
translation
>
OK
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ActivateLinphoneSipAccountWithEmail
<
/name
>
<
message
>
...
...
@@ -759,14 +766,6 @@ chatter ou voir l'historique de conversation.</translation>
<
source
>
quit
<
/source
>
<
translation
>
Quitter
<
/translation
>
<
/message
>
<
message
>
<
source
>
importContacts
<
/source
>
<
translation
>
Importer
des
contacts
depuis
des
vCards
<
/translation
>
<
/message
>
<
message
>
<
source
>
exportContacts
<
/source
>
<
translation
>
Exporter
des
contacts
sous
forme
de
vCards
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ManageAccounts
<
/name
>
...
...
linphone-desktop/resources.qrc
View file @
caba6374
...
...
@@ -343,6 +343,7 @@
<file>
ui/views/App/Calls/Incall.qml
</file>
<file>
ui/views/App/Calls/IncomingCall.qml
</file>
<file>
ui/views/App/Calls/OutgoingCall.qml
</file>
<file>
ui/views/App/Main/About.qml
</file>
<file>
ui/views/App/Main/Assistant/ActivateLinphoneSipAccountWithEmail.qml
</file>
<file>
ui/views/App/Main/Assistant/AssistantAbstractView.qml
</file>
<file>
ui/views/App/Main/Assistant/AssistantHome.qml
</file>
...
...
@@ -383,6 +384,7 @@
<file>
ui/views/App/SplashScreen/SplashScreen.qml
</file>
<file>
ui/views/App/Styles/Calls/CallStyle.qml
</file>
<file>
ui/views/App/Styles/Calls/CallsWindowStyle.qml
</file>
<file>
ui/views/App/Styles/Main/AboutStyle.qml
</file>
<file>
ui/views/App/Styles/Main/Assistant/ActivateLinphoneSipAccountWithEmailStyle.qml
</file>
<file>
ui/views/App/Styles/Main/Assistant/AssistantAbstractViewStyle.qml
</file>
<file>
ui/views/App/Styles/Main/Assistant/AssistantHomeStyle.qml
</file>
...
...
linphone-desktop/src/app/App.cpp
View file @
caba6374
...
...
@@ -50,6 +50,10 @@
#define QML_VIEW_SPLASH_SCREEN "qrc:/ui/views/App/SplashScreen/SplashScreen.qml"
#ifndef LINPHONE_VERSION
#define LINPHONE_VERSION "unknown"
#endif // ifndef LINPHONE_VERSION
using
namespace
std
;
// =============================================================================
...
...
@@ -253,6 +257,12 @@ bool App::hasFocus () const {
// -----------------------------------------------------------------------------
QString
App
::
getVersion
()
const
{
return
::
Utils
::
linphoneStringToQString
(
LINPHONE_VERSION
);
}
// -----------------------------------------------------------------------------
#define registerSharedSingletonType(TYPE, NAME, METHOD) qmlRegisterSingletonType<TYPE>( \
"Linphone", 1, 0, NAME, \
[](QQmlEngine *, QJSEngine *) -> QObject *{ \
...
...
linphone-desktop/src/app/App.hpp
View file @
caba6374
...
...
@@ -37,6 +37,8 @@ class DefaultTranslator;
class
App
:
public
SingleApplication
{
Q_OBJECT
;
Q_PROPERTY
(
QString
version
READ
getVersion
CONSTANT
);
Q_PROPERTY
(
QString
configLocale
READ
getConfigLocale
WRITE
setConfigLocale
NOTIFY
configLocaleChanged
);
Q_PROPERTY
(
QString
locale
READ
getLocale
CONSTANT
);
Q_PROPERTY
(
QVariantList
availableLocales
READ
getAvailableLocales
CONSTANT
);
...
...
@@ -76,6 +78,8 @@ signals:
void
configLocaleChanged
(
const
QString
&
locale
);
private:
QString
getVersion
()
const
;
void
registerTypes
();
void
setTrayIcon
();
...
...
linphone-desktop/src/components/core/CoreManager.cpp
View file @
caba6374
...
...
@@ -79,7 +79,7 @@ VcardModel *CoreManager::createDetachedVcardModel () {
void
CoreManager
::
forceRefreshRegisters
()
{
qInfo
()
<<
QStringLiteral
(
"Refresh registers."
);
m
Instance
->
m
Core
->
refreshRegisters
();
mCore
->
refreshRegisters
();
}
// -----------------------------------------------------------------------------
...
...
@@ -128,8 +128,14 @@ void CoreManager::createLinphoneCore (const QString &configPath) {
// -----------------------------------------------------------------------------
QString
CoreManager
::
getVersion
()
const
{
return
::
Utils
::
linphoneStringToQString
(
mCore
->
getVersion
());
}
// -----------------------------------------------------------------------------
void
CoreManager
::
iterate
()
{
mInstance
->
lockVideoRender
();
m
Instance
->
m
Core
->
iterate
();
mCore
->
iterate
();
mInstance
->
unlockVideoRender
();
}
linphone-desktop/src/components/core/CoreManager.hpp
View file @
caba6374
...
...
@@ -42,6 +42,8 @@ class QTimer;
class
CoreManager
:
public
QObject
{
Q_OBJECT
;
Q_PROPERTY
(
QString
version
READ
getVersion
CONSTANT
);
public:
~
CoreManager
()
=
default
;
...
...
@@ -121,6 +123,8 @@ private:
void
createLinphoneCore
(
const
QString
&
configPath
);
QString
getVersion
()
const
;
void
iterate
();
std
::
shared_ptr
<
linphone
::
Core
>
mCore
;
...
...
linphone-desktop/ui/modules/Linphone/Calls/CallStatistics.qml
View file @
caba6374
...
...
@@ -104,7 +104,7 @@ AbstractDropDownMenu {
}
Loader
{
property
string
$label
:
qsTr
(
"
audioStatsLabel
"
)
property
string
$label
:
qsTr
(
'
audioStatsLabel
'
)
property
var
$data
:
callStatistics
.
call
.
audioStats
sourceComponent
:
media
...
...
@@ -112,7 +112,7 @@ AbstractDropDownMenu {
}
Loader
{
property
string
$label
:
qsTr
(
"
videoStatsLabel
"
)
property
string
$label
:
qsTr
(
'
videoStatsLabel
'
)
property
var
$data
:
callStatistics
.
call
.
videoStats
sourceComponent
:
media
...
...
linphone-desktop/ui/views/App/Main/About.qml
0 → 100644
View file @
caba6374
import
QtQuick
2.7
import
QtQuick
.
Layouts
1.3
import
Common
1.0
import
Linphone
1.0
import
App
.
Styles
1.0
// =============================================================================
DialogPlus
{
buttons
:
[
TextButtonB
{
text
:
qsTr
(
'
ok
'
)
onClicked
:
exit
(
0
)
}
]
centeredButtons
:
true
height
:
AboutStyle
.
height
width
:
AboutStyle
.
width
Column
{
anchors
{
fill
:
parent
leftMargin
:
AboutStyle
.
leftMargin
rightMargin
:
AboutStyle
.
rightMargin
}
spacing
:
AboutStyle
.
spacing
RowLayout
{
spacing
:
AboutStyle
.
versionsBlock
.
spacing
height
:
AboutStyle
.
versionsBlock
.
iconSize
width
:
parent
.
width
Icon
{
icon
:
'
linphone_logo
'
iconSize
:
parent
.
height
}
Column
{
Layout.fillWidth
:
true
Layout.preferredHeight
:
parent
.
height
spacing
:
0
Text
{
color
:
AboutStyle
.
versionsBlock
.
appVersion
.
color
elide
:
Text
.
ElideRight
font.pointSize
:
AboutStyle
.
versionsBlock
.
appVersion
.
fontSize
text
:
'
Linphone Desktop
'
+
App
.
version
height
:
parent
.
height
/
2
width
:
parent
.
width
verticalAlignment
:
Text
.
AlignVCenter
}
Text
{
color
:
AboutStyle
.
versionsBlock
.
coreVersion
.
color
elide
:
Text
.
ElideRight
font.pointSize
:
AboutStyle
.
versionsBlock
.
coreVersion
.
fontSize
text
:
'
Linphone Core
'
+
CoreManager
.
version
height
:
parent
.
heigth
/
2
width
:
parent
.
width
verticalAlignment
:
Text
.
AlignVCenter
}
}
}
Column
{
spacing
:
AboutStyle
.
copyrightBlock
.
spacing
width
:
parent
.
width
Text
{
elide
:
Text
.
ElideRight
font.pointSize
:
AboutStyle
.
copyrightBlock
.
url
.
fontSize
linkColor
:
AboutStyle
.
copyrightBlock
.
url
.
color
text
:
'
<a href="https://www.linphone.org">https://www.linphone.org</a>
'
width
:
parent
.
width
horizontalAlignment
:
Text
.
AlignHCenter
onLinkActivated
:
Qt
.
openUrlExternally
(
link
)
MouseArea
{
anchors.fill
:
parent
acceptedButtons
:
Qt
.
NoButton
cursorShape
:
parent
.
hoveredLink
?
Qt
.
PointingHandCursor
:
Qt
.
IBeamCursor
}
}
Text
{
color
:
AboutStyle
.
copyrightBlock
.
license
.
color
elide
:
Text
.
ElideRight
font.pointSize
:
AboutStyle
.
copyrightBlock
.
license
.
fontSize
text
:
'
GNU General Public License V2
\n\
u00A9 2010-2017 Belledonne Communications
'
width
:
parent
.
width
horizontalAlignment
:
Text
.
AlignHCenter
}
}
}
}
linphone-desktop/ui/views/App/Main/MainWindowMenuBar.qml
View file @
caba6374
...
...
@@ -7,16 +7,16 @@ import Linphone 1.0
import
App
.
Styles
1.0
// ============================================================================
// ============================================================================
=
MenuBar
{
id
:
container
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
-
property
bool
hide
:
false
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
-
// Workaround to hide toolbar.
// Use private properties of MenuBar.
...
...
@@ -29,7 +29,7 @@ MenuBar {
yScale
:
Number
(
!
hide
)
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
-
style
:
MenuBarStyle
{
background
:
Rectangle
{
...
...
@@ -109,9 +109,12 @@ MenuBar {
}
}
// --------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// Options.
// ---------------------------------------------------------------------------
Menu
{
title
:
qsTr
(
'
options
'
)
MenuItem
{
...
...
@@ -138,36 +141,43 @@ MenuBar {
}
}
// ---------------------------------------------------------------------------
// Tools.
// ---------------------------------------------------------------------------
Menu
{
title
:
qsTr
(
'
tools
'
)
MenuItem
{
text
:
qsTr
(
'
audioAssistant
'
)
}
MenuSeparator
{}
MenuItem
{
text
:
qsTr
(
'
importContacts
'
)
}
MenuItem
{
text
:
qsTr
(
'
exportContacts
'
)
onTriggered
:
console
.
log
(
'
TODO
'
)
}
}
// ---------------------------------------------------------------------------
// Help.
// ---------------------------------------------------------------------------
Menu
{
title
:
qsTr
(
'
help
'
)
MenuItem
{
shortcut
:
StandardKey
.
HelpContents
text
:
qsTr
(
'
about
'
)
onTriggered
:
{
window
.
detachVirtualWindow
()
window
.
attachVirtualWindow
(
Qt
.
resolvedUrl
(
'
About.qml
'
))
}
}
MenuSeparator
{}
MenuItem
{
text
:
qsTr
(
'
checkForUpdates
'
)
onTriggered
:
console
.
log
(
'
TODO
'
)
}
}
}
linphone-desktop/ui/views/App/SplashScreen/SplashScreen.qml
View file @
caba6374
...
...
@@ -30,7 +30,7 @@ Window {
fillMode
:
Image
.
PreserveAspectFit
mipmap
:
true
source
:
SplashScreenStyle
.
image
source
:
Constants
.
imagesPath
+
'
splash_screen
'
+
Constants
.
imagesFormat
BusyIndicator
{
height
:
SplashScreenStyle
.
busyIndicator
.
height
...
...
linphone-desktop/ui/views/App/Styles/Main/AboutStyle.qml
0 → 100644
View file @
caba6374
pragma
Singleton
import
QtQuick
2.7
import
Common
1.0
// =============================================================================
QtObject
{
property
int
height
:
225
property
int
leftMargin
:
25
property
int
rightMargin
:
25
property
int
spacing
:
20
property
int
width
:
400
property
QtObject
copyrightBlock
:
QtObject
{
property
int
spacing
:
10
property
QtObject
license
:
QtObject
{
property
color
color
:
Colors
.
d
property
int
fontSize
:
10
}
property
QtObject
url
:
QtObject
{
property
color
color
:
Colors
.
i
property
int
fontSize
:
10
}
}
property
QtObject
versionsBlock
:
QtObject
{
property
int
iconSize
:
48
property
int
spacing
:
10
property
QtObject
appVersion
:
QtObject
{
property
color
color
:
Colors
.
d
property
int
fontSize
:
10
}
property
QtObject
coreVersion
:
QtObject
{
property
color
color
:
Colors
.
d
property
int
fontSize
:
10
}
}
}
linphone-desktop/ui/views/App/Styles/SplashScreen/SplashScreenStyle.qml
View file @
caba6374
...
...
@@ -7,7 +7,6 @@ QtObject {
property
color
color
:
'
#444444
'
// Not a `Common.Color`. Specific case.
property
int
height
:
350
property
int
width
:
620
property
url
image
:
'
qrc:/assets/images/splash_screen.svg
'
property
QtObject
busyIndicator
:
QtObject
{
property
int
bottomMargin
:
25
...
...
linphone-desktop/ui/views/App/Styles/qmldir
View file @
caba6374
...
...
@@ -13,6 +13,7 @@ singleton AssistantHomeStyle 1.0 Main/Assistant/AssistantH
singleton CreateLinphoneSipAccountStyle 1.0 Main/Assistant/CreateLinphoneSipAccountStyle.qml
singleton UseLinphoneSipAccountStyle 1.0 Main/Assistant/UseLinphoneSipAccountStyle.qml
singleton AboutStyle 1.0 Main/AboutStyle.qml
singleton AssistantStyle 1.0 Main/AssistantStyle.qml
singleton AuthenticationRequestStyle 1.0 Main/AuthenticationRequestStyle.qml
singleton ContactEditStyle 1.0 Main/ContactEditStyle.qml
...
...
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