• 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/MainPage.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 com.nokia.extras 1.0
23 
24 Page {
25 
26  QueryDialog {
27  id: aboutDialog;
28  icon: "hi80-app-kanagram-harmattan.png";
29  message: "Kanagram (Version 0.2.0)<br><br>(C) 2012 Laszlo Papp<br>lpapp@kde.org"
30  acceptButtonText: "OK";
31  }
32 
33  Column {
34  id: mainPageColumn;
35 
36  anchors {
37  centerIn: parent;
38  verticalCenterOffset: -5;
39  }
40 
41  width: 400;
42 
43  spacing: 20;
44 
45  Button {
46  id: playResumeGameButton;
47 
48  text: i18n("Play Game");
49  font.pixelSize: 48;
50 
51  width: parent.width;
52 
53  onClicked: {
54  pageStack.push(gamePage);
55  text = i18n("Resume Game");
56  }
57  }
58 
59  Button {
60  id: settingsButton;
61 
62  text: i18n("Settings");
63  font.pixelSize: 48;
64 
65  width: parent.width;
66 
67  onClicked: {
68  pageStack.push(mainSettingsPage);
69  }
70  }
71 
72  Button {
73  id: helpButton;
74 
75  anchors {
76  horizontalCenter: parent.horizontalCenter;
77  }
78 
79  text: i18n("About");
80  font.pixelSize: 48;
81 
82  width: parent.width;
83 
84  onClicked: {
85  aboutDialog.open();
86  }
87  }
88  }
89 
90  Image {
91  id: kdeEduLogo;
92 
93  anchors {
94  right: parent.right;
95  bottom: parent.bottom;
96  rightMargin: 5;
97  }
98 
99  fillMode: Image.PreserveAspectFit;
100  source: "kde-edu-logo.png";
101  }
102 }
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