• 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
  • tools
  • whatsinteresting
modelmanager.h
Go to the documentation of this file.
1 /***************************************************************************
2  modelmanager.h - K Desktop Planetarium
3  -------------------
4  begin : 2012/26/05
5  copyright : (C) 2012 by Samikshan Bairagya
6  email : samikshan@gmail.com
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 MODEL_MANAGER_H
19 #define MODEL_MANAGER_H
20 
21 #include "skyobjlistmodel.h"
22 #include "kstarsdata.h"
23 #include "obsconditions.h"
24 
30 class ModelManager
31 {
32 public:
37  enum ModelType {Planet_Model, Star_Model, Constellation_Model, Galaxy_Model, Cluster_Model, Nebula_Model};
38 
43  ModelManager(ObsConditions *obs);
44 
48  ~ModelManager();
49 
53  void updateModels(ObsConditions *obs);
54 
58  void resetModels();
59 
65  SkyObjListModel *returnModel(int type);
66 
67 private:
68  ObsConditions *m_ObsConditions;
69  SkyObjListModel *m_PlanetsModel, *m_StarsModel, *m_GalModel, *m_ConModel, *m_ClustModel, *m_NebModel;
70  QHash< ModelType, QList <SkyObject *> > m_InitObjects;
71 };
72 
73 #endif
ModelManager::Star_Model
Definition: modelmanager.h:37
SkyObjListModel
Represents a model for the list of interesting sky-objects to be displayed in the QML interface...
Definition: skyobjlistmodel.h:30
skyobjlistmodel.h
ModelManager::~ModelManager
~ModelManager()
Destructor.
Definition: modelmanager.cpp:42
ModelManager::returnModel
SkyObjListModel * returnModel(int type)
Returns model of given type.
Definition: modelmanager.cpp:163
ModelManager::ModelManager
ModelManager(ObsConditions *obs)
Constructor - Creates models for different sky-object types.
Definition: modelmanager.cpp:24
ModelManager::Planet_Model
Definition: modelmanager.h:37
ModelManager::updateModels
void updateModels(ObsConditions *obs)
Updates sky-object list models.
Definition: modelmanager.cpp:52
ModelManager::resetModels
void resetModels()
Clears all sky-objects list models.
Definition: modelmanager.cpp:153
ModelManager::Galaxy_Model
Definition: modelmanager.h:37
ModelManager
Manages models for QML listviews of different types of sky-objects.
Definition: modelmanager.h:30
ModelManager::ModelType
ModelType
Model type for different types of sky-objects.
Definition: modelmanager.h:37
ObsConditions
This class deals with the observing conditions of the night sky.
Definition: obsconditions.h:31
kstarsdata.h
ModelManager::Cluster_Model
Definition: modelmanager.h:37
ModelManager::Constellation_Model
Definition: modelmanager.h:37
obsconditions.h
ModelManager::Nebula_Model
Definition: modelmanager.h:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 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