Warning, file /education/kstars/kstars/skycomponents/culturelist.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2008 Jerome SONRIER <jsid@emor3j.fr.eu.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QStringList> 0010 0011 /** 0012 * @class CultureList 0013 * A list of all cultures 0014 * FIXME: Why not use a QStringList? 0015 */ 0016 class CultureList 0017 { 0018 public: 0019 /** @short Create culture list and load its content from file */ 0020 CultureList(); 0021 0022 /** @short Return the current sky culture */ 0023 QString current() const { return m_CurrentCulture; } 0024 0025 /** @short Set the current culture name */ 0026 void setCurrent(QString newName); 0027 0028 /** @short Return a sorted list of cultures */ 0029 QStringList getNames() const { return m_CultureList; } 0030 0031 /** 0032 * @short Return the name of the culture at index. 0033 * @return null string if is index is out of range 0034 * */ 0035 QString getName(int index) const; 0036 0037 private: 0038 QString m_CurrentCulture; 0039 // List of all available cultures. It's assumed that list is sorted. 0040 QStringList m_CultureList; 0041 };