Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Tomi Leppänen <[email protected]>
  • Loading branch information
Tomin1 committed Jun 21, 2020
0 parents commit 6a4bac9
Show file tree
Hide file tree
Showing 20 changed files with 3,024 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
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
676 changes: 676 additions & 0 deletions COPYING.GPL3

Large diffs are not rendered by default.

Binary file added icons/108x108/mobile-aisleriot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/128x128/mobile-aisleriot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/172x172/mobile-aisleriot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/86x86/mobile-aisleriot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions mobile-aisleriot.desktop
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
36 changes: 36 additions & 0 deletions mobile-aisleriot.pro
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
797 changes: 797 additions & 0 deletions mobile-aisleriot.pro.user

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions qml/cover/CoverPage.qml
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")
}
}
10 changes: 10 additions & 0 deletions qml/mobile-aisleriot.qml
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
}
37 changes: 37 additions & 0 deletions qml/pages/Game.qml
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
}
}
}
}
29 changes: 29 additions & 0 deletions qml/pages/SelectGame.qml
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 {}
}
}
Loading

0 comments on commit 6a4bac9

Please sign in to comment.