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

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • skycomponents
culturelist.h
Go to the documentation of this file.
1 /***************************************************************************
2  culturelist.h - K Desktop Planetarium
3  -------------------
4  begin : 04 Nov. 2008
5  copyright : (C) 2008 by Jerome SONRIER
6  email : jsid@emor3j.fr.eu.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef CULTURELIST_H
19 #define CULTURELIST_H
20 
21 #include <QStringList>
22 
26 class CultureList
27 {
28 public:
30  CultureList();
31 
33  QString current() { return m_CurrentCulture; }
34 
36  void setCurrent( QString newName );
37 
39  QStringList getNames() { return m_CultureList; }
40 
43  QString getName( int index );
44 
45 private:
46  QString m_CurrentCulture;
47  // List of all available cultures. It's assumed that list is sorted.
48  QStringList m_CultureList;
49 };
50 
51 
52 #endif
CultureList::setCurrent
void setCurrent(QString newName)
Set the current culture name.
Definition: culturelist.cpp:42
CultureList::getNames
QStringList getNames()
Return a sorted list of cultures.
Definition: culturelist.h:39
CultureList::getName
QString getName(int index)
Return the name of the culture at index.
Definition: culturelist.cpp:46
CultureList::current
QString current()
Return the current sky culture.
Definition: culturelist.h:33
CultureList::CultureList
CultureList()
Create culture list and load its conternt from file.
Definition: culturelist.cpp:23
CultureList
A list of all cultures.
Definition: culturelist.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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