• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kanagram

  • sources
  • kde-4.12
  • kdeedu
  • kanagram
  • src
  • harmattan
harmattan/main.qml
Go to the documentation of this file.
1 /******************************************************************************
2  * This file is part of the Kanagram project
3  * Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 import QtQuick 1.1
21 import com.nokia.meego 1.0
22 import QtMultimediaKit 1.1
23 
24 PageStackWindow {
25  id: rootWindow;
26 
27  property bool languageSelectionChanged: false;
28 
29  // MainPage is what we see when the app starts, it shows up
30  // the available games on the mobile handset
31  initialPage: mainPage;
32 
33  MainPage {
34  id: mainPage;
35  }
36 
37  HelpPage {
38  id: helpPage;
39  }
40 
41  GamePage {
42  id: gamePage;
43  }
44 
45  MainSettingsPage {
46  id: mainSettingsPage;
47  }
48 
49  // These tools are shared by most sub-pages by assigning the
50  // id to a page's tools property
51  ToolBarLayout {
52  id: commonTools;
53  visible: false;
54  ToolIcon {
55  iconId: "toolbar-back";
56  onClicked: {
57  if (pageStack.currentPage == mainSettingsPage) {
58  kanagramEngineHelper.saveSettings();
59  }
60 
61  pageStack.pop();
62  }
63  }
64  }
65 
66  Component.onCompleted: {
67  // Use the dark theme.
68  theme.inverted = true;
69  }
70 
71  platformStyle: PageStackWindowStyle {
72  // Note: It is needed for being backward compatible with PR1.0 where
73  // "foobar.png" does not work as expected. It was fixed in later
74  // versions though, but the Nokia Ovi Store requires backward
75  // compatibility with PR1.0
76  background: "qrc:/kanagram-chalkboard-landscape.png";
77  landscapeBackground: "qrc:/kanagram-chalkboard-landscape.png";
78  portraitBackground: "qrc:/kanagram-chalkboard-portrait.png";
79  backgroundFillMode: Image.Stretch;
80  }
81 
82  SoundEffect {
83  id: chalkSoundEffect;
84  source: "chalk.wav";
85  }
86 
87  SoundEffect {
88  id: rightSoundEffect;
89  source: "right.wav";
90  }
91 
92  SoundEffect {
93  id: wrongSoundEffect;
94  source: "wrong.wav";
95  }
96 
97  SoundEffect {
98  id: anagramLetterPressSoundEffect;
99  source: "anagram-letter-press.wav";
100  }
101 }
MainPage
Definition: harmattan/MainPage.qml:22
MainSettingsPage
Definition: harmattan/MainSettingsPage.qml:22
GamePage
Definition: harmattan/GamePage.qml:22
HelpPage
Definition: harmattan/HelpPage.qml:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kanagram

Skip menu "kanagram"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal