-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tomi Leppänen <[email protected]>
- Loading branch information
0 parents
commit 6a4bac9
Showing
20 changed files
with
3,024 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.o | ||
*.pro.user | ||
Makefile | ||
moc_*.cpp | ||
translations/ | ||
documentation.list | ||
RPMS/ | ||
mobile-aisleriot |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
X-Nemo-Application-Type=silica-qt5 | ||
Icon=mobile-aisleriot | ||
Exec=mobile-aisleriot | ||
Name=mobile-aisleriot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# NOTICE: | ||
# | ||
# Application name defined in TARGET has a corresponding QML filename. | ||
# If name defined in TARGET is changed, the following needs to be done | ||
# to match new name: | ||
# - corresponding QML filename must be changed | ||
# - desktop icon filename must be changed | ||
# - desktop filename must be changed | ||
# - icon definition filename in desktop file must be changed | ||
# - translation filenames have to be changed | ||
|
||
# The name of your application | ||
TARGET = mobile-aisleriot | ||
|
||
CONFIG += link_pkgconfig | ||
PKGCONFIG += guile-2.2 | ||
|
||
CONFIG += sailfishapp | ||
|
||
SOURCES += src/mobile-aisleriot.cpp \ | ||
src/aisleriot.cpp | ||
|
||
HEADERS += src/aisleriot.h | ||
|
||
DISTFILES += qml/mobile-aisleriot.qml \ | ||
qml/cover/CoverPage.qml \ | ||
qml/pages/FirstPage.qml \ | ||
qml/pages/SecondPage.qml \ | ||
rpm/mobile-aisleriot.spec \ | ||
translations/*.ts \ | ||
mobile-aisleriot.desktop | ||
|
||
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172 | ||
|
||
#CONFIG += sailfishapp_i18n | ||
#TRANSLATIONS += translations/mobile-aisleriot-de.ts |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
|
||
CoverBackground { | ||
Label { | ||
anchors.centerIn: parent | ||
text: qsTr("Aisleriot") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
import "pages" | ||
|
||
ApplicationWindow | ||
{ | ||
initialPage: Component { Game { } } | ||
cover: Qt.resolvedUrl("cover/CoverPage.qml") | ||
allowedOrientations: defaultAllowedOrientations | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
|
||
Page { | ||
id: page | ||
|
||
allowedOrientations: Orientation.All | ||
|
||
SilicaFlickable { | ||
anchors.fill: parent | ||
|
||
PullDownMenu { | ||
MenuItem { | ||
text: qsTr("Select game") | ||
onClicked: pageStack.push(Qt.resolvedUrl("SelectGame.qml")) | ||
} | ||
} | ||
|
||
contentHeight: column.height | ||
|
||
Column { | ||
id: column | ||
|
||
width: page.width | ||
spacing: Theme.paddingLarge | ||
PageHeader { | ||
title: qsTr("Aisleriot") | ||
} | ||
Label { | ||
x: Theme.horizontalPageMargin | ||
text: qsTr("To be done") | ||
color: Theme.secondaryHighlightColor | ||
font.pixelSize: Theme.fontSizeExtraLarge | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
|
||
Page { | ||
id: page | ||
|
||
allowedOrientations: Orientation.All | ||
|
||
SilicaListView { | ||
id: listView | ||
model: 20 | ||
anchors.fill: parent | ||
header: PageHeader { | ||
title: qsTr("Games") | ||
} | ||
delegate: BackgroundItem { | ||
id: delegate | ||
|
||
Label { | ||
x: Theme.horizontalPageMargin | ||
text: qsTr("Game") + " " + index | ||
anchors.verticalCenter: parent.verticalCenter | ||
color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor | ||
} | ||
onClicked: console.log("Selected " + index) | ||
} | ||
VerticalScrollDecorator {} | ||
} | ||
} |
Oops, something went wrong.