• 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
  • plasma-active
  • package
  • contents
  • ui
plasma-active/package/contents/ui/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 QtMultimediaKit 1.1
22 
23 import org.kde.plasma.components 0.1
24 
25 Rectangle {
26  id: rootRectangle;
27 
28  property bool languageSelectionChanged: false;
29 
30  // MainPage is what we see when the app starts, it shows up
31  // the available games on the mobile handset
32  initialPage: mainPage;
33 
34  MainPage {
35  id: mainPage;
36  }
37 
38  HelpPage {
39  id: helpPage;
40  }
41 
42  GamePage {
43  id: gamePage;
44  }
45 
46  MainSettingsPage {
47  id: mainSettingsPage;
48  }
49 
50  // These tools are shared by most sub-pages by assigning the
51  // id to a page's tools property
52 
53  ToolBarLayout {
54  id: commonTools;
55  visible: false;
56  ToolIcon {
57  iconId: "toolbar-back";
58  onClicked: {
59  if (pageStack.currentPage == mainSettingsPage) {
60  kanagramEngineHelper.saveSettings();
61  }
62 
63  pageStack.pop();
64  }
65  }
66  }
67 
68  Component.onCompleted: {
69  // Use the dark theme.
70  theme.inverted = true;
71  }
72 
73  /* platformStyle: PageStackWindowStyle {
74  // Note: It is needed for being backward compatible with PR1.0 where
75  // "foobar.png" does not work as expected. It was fixed in later
76  // versions though, but the Nokia Ovi Store requires backward
77  // compatibility with PR1.0
78 
79  background: "qrc:/kanagram-chalkboard-landscape.png";
80  landscapeBackground: "qrc:/kanagram-chalkboard-landscape.png";
81  portraitBackground: "qrc:/kanagram-chalkboard-portrait.png";
82  backgroundFillMode: Image.Stretch;
83  } */
84 
85  SoundEffect {
86  id: chalkSoundEffect;
87  source: "chalk.wav";
88  }
89 
90  SoundEffect {
91  id: rightSoundEffect;
92  source: "right.wav";
93  }
94 
95  SoundEffect {
96  id: wrongSoundEffect;
97  source: "wrong.wav";
98  }
99 
100  SoundEffect {
101  id: anagramLetterPressSoundEffect;
102  source: "anagram-letter-press.wav";
103  }
104 }
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