Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
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
NemoMobile
glacier-home
Commits
2b3be37a
Commit
2b3be37a
authored
Jun 20, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[statusbar] SIM panel for PIN entry
parent
ad97a7f1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
195 additions
and
8 deletions
+195
-8
AppLauncher.qml
src/qml/AppLauncher.qml
+3
-0
AppSwitcher.qml
src/qml/AppSwitcher.qml
+2
-1
MainScreen.qml
src/qml/MainScreen.qml
+0
-1
NumButton.qml
src/qml/NumButton.qml
+42
-0
Pager.qml
src/qml/Pager.qml
+1
-2
SimPanel.qml
src/qml/SimPanel.qml
+136
-0
Statusbar.qml
src/qml/Statusbar.qml
+5
-3
resources-qml.qrc
src/resources-qml.qrc
+2
-0
src.pro
src/src.pro
+4
-1
No files found.
src/qml/AppLauncher.qml
View file @
2b3be37a
...
...
@@ -44,6 +44,9 @@ GridView {
header
:
Item
{
height
:
100
}
footer
:
Item
{
height
:
100
}
Item
{
id
:
deleter
...
...
src/qml/AppSwitcher.qml
View file @
2b3be37a
...
...
@@ -33,6 +33,7 @@ import org.nemomobile.glacier 1.0
Item
{
id
:
switcherRoot
property
bool
closeMode
:
false
property
bool
visibleInHome
:
false
property
alias
runningAppsCount
:
switcherModel
.
itemCount
...
...
@@ -119,7 +120,7 @@ Item {
right
:
parent
.
right
bottom
:
parent
.
bottom
margins
:
-
1
bottomMargin
:
switcherRoot
.
closeMode
?
0
:
-
height
bottomMargin
:
switcherRoot
.
closeMode
?
48
:
-
height
}
Behavior
on
anchors.bottomMargin
{
PropertyAnimation
{
duration
:
100
}
}
...
...
src/qml/MainScreen.qml
View file @
2b3be37a
...
...
@@ -89,7 +89,6 @@ Page {
id
:
pager
anchors.fill
:
parent
model
:
VisualItemModel
{
AppLauncher
{
id
:
launcher
...
...
src/qml/NumButton.qml
0 → 100644
View file @
2b3be37a
/****************************************************************************************
**
** Copyright (C) 2014 Aleksi Suomalainen <suomalainen.aleksi@gmail.com>
** All rights reserved.
**
** You may use this file under the terms of BSD license as follows:
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in the
** documentation and/or other materials provided with the distribution.
** * Neither the name of the author nor the
** names of its contributors may be used to endorse or promote products
** derived from this software without specific prior written permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR
** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
****************************************************************************************/
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
Button
{
id
:
btn
width
:
120
height
:
40
onClicked
:
{
pinquery
.
text
+=
btn
.
text
}
}
src/qml/Pager.qml
View file @
2b3be37a
...
...
@@ -25,13 +25,12 @@ import QtQuick 2.0
PathView
{
id
:
pager
highlightRangeMode
:
PathView
.
StrictlyEnforce
Range
highlightRangeMode
:
PathView
.
Apply
Range
preferredHighlightBegin
:
0.5
preferredHighlightEnd
:
0.5
flickDeceleration
:
10000
highlightMoveDuration
:
100
snapMode
:
PathView
.
SnapOneItem
clip
:
true
path
:
Path
{
startX
:
-
width
*
model
.
count
/
2
+
width
/
2
startY
:
height
/
2
...
...
src/qml/SimPanel.qml
0 → 100644
View file @
2b3be37a
/****************************************************************************************
**
** Copyright (C) 2014 Aleksi Suomalainen <suomalainen.aleksi@gmail.com>
** All rights reserved.
**
** You may use this file under the terms of BSD license as follows:
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in the
** documentation and/or other materials provided with the distribution.
** * Neither the name of the author nor the
** names of its contributors may be used to endorse or promote products
** derived from this software without specific prior written permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR
** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
****************************************************************************************/
import
QtQuick
2.1
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
MeeGo
.
QOfono
0.2
Component
{
Rectangle
{
height
:
240
width
:
root
.
width
color
:
"
#313131
"
opacity
:
0.5
property
bool
_needsPin
:
simManager
.
pinRequired
===
OfonoSimManager
.
SimPin
||
simManager
.
pinRequired
===
OfonoSimManager
.
SimPuk
Component.onCompleted
:
{
simManager
.
modemPath
=
manager
.
modems
}
OfonoManager
{
id
:
manager
}
OfonoSimManager
{
id
:
simManager
}
Column
{
visible
:
_needsPin
spacing
:
10
Row
{
spacing
:
16
TextField
{
id
:
pinquery
width
:
180
height
:
40
}
Button
{
id
:
pinenter
text
:
"
OK
"
width
:
120
height
:
40
onClicked
:
{
simManager
.
enterPin
(
OfonoSimManager
.
SimPin
,
pinquery
.
text
)
pinquery
.
text
=
""
}
}
Button
{
id
:
clearpin
text
:
"
Clear
"
width
:
120
height
:
40
onClicked
:
{
pinquery
.
text
=
""
}
}
}
Row
{
spacing
:
16
NumButton
{
text
:
"
1
"
}
NumButton
{
text
:
"
2
"
}
NumButton
{
text
:
"
3
"
}
}
Row
{
spacing
:
16
NumButton
{
text
:
"
4
"
}
NumButton
{
text
:
"
5
"
}
NumButton
{
text
:
"
6
"
}
}
Row
{
spacing
:
16
NumButton
{
text
:
"
7
"
}
NumButton
{
text
:
"
8
"
}
NumButton
{
text
:
"
9
"
}
}
Row
{
spacing
:
16
NumButton
{
text
:
"
0
"
}
}
}
Label
{
visible
:
!
_needsPin
text
:
"
No pin required!
"
font.pointSize
:
16
}
}
}
src/qml/Statusbar.qml
View file @
2b3be37a
...
...
@@ -112,7 +112,7 @@ Item {
Row
{
spacing
:
16
StatusbarItem
{
source
:
"
image://theme/icon_cell
"
+
cellularSignalBars
.
value
source
:
(
cellularSignalBars
.
value
>
0
)
?
"
image://theme/icon_cell
"
+
cellularSignalBars
.
value
:
"
image://theme/icon_cell1
"
}
StatusbarItem
{
...
...
@@ -122,7 +122,8 @@ Item {
height
:
16
font.pointSize
:
6
font.bold
:
true
text
:
cellularNetworkName
.
value
.
toUpperCase
()
wrapMode
:
Text
.
ElideRight
text
:
(
cellularNetworkName
!==
""
)
?
cellularNetworkName
.
value
.
toUpperCase
()
:
"
N/A
"
}
Label
{
...
...
@@ -132,10 +133,11 @@ Item {
height
:
16
font.pointSize
:
6
text
:
{
var
techToG
=
{
gprs
:
"
2
"
,
egprs
:
"
2.5
"
,
umts
:
"
3
"
,
hspa
:
"
3.5
"
,
lte
:
"
4
"
}
var
techToG
=
{
gprs
:
"
2
"
,
egprs
:
"
2.5
"
,
umts
:
"
3
"
,
hspa
:
"
3.5
"
,
lte
:
"
4
"
,
unknown
:
"
0
"
}
return
techToG
[
cellularDataTechnology
.
value
]
+
"
G
"
}
}
panel
:
SimPanel
{}
}
StatusbarItem
{
...
...
src/resources-qml.qrc
View file @
2b3be37a
...
...
@@ -40,5 +40,7 @@
<file>qml/images/wallpaper-portrait-bubbles.png</file>
<file>qml/StatusbarItem.qml</file>
<file>qml/WifiPanel.qml</file>
<file>qml/SimPanel.qml</file>
<file>qml/NumButton.qml</file>
</qresource>
</RCC>
src/src.pro
View file @
2b3be37a
...
...
@@ -49,5 +49,8 @@ OTHER_FILES += qml/*.qml \
qml/Statusbar.qml \
qml/StatusbarItem.qml \
qml/WifiPanel.qml \
nemovars.conf
nemovars.conf \
qml/SimPanel.qml \
qml/NumButton.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