• 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
wiview.h
Go to the documentation of this file.
1 /***************************************************************************
2  wiview.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 WIVIEW_H
19 #define WIVIEW_H
20 
21 class QDeclarativeView;
22 
23 #include "QDeclarativeContext"
24 #include "skyobject.h"
25 #include "modelmanager.h"
26 #include "skyobjlistmodel.h"
27 #include "obsconditions.h"
28 
37 class WIView : public QWidget
38 {
39  Q_OBJECT
40 public:
41 
47  WIView(QWidget *parent = 0, ObsConditions *obs = 0);
48 
52  ~WIView();
53 
57  void loadDetailsView(SkyObjItem* soitem, int index);
58 
62  void updateModels(ObsConditions *obs);
63 
64  inline QDeclarativeView *getWIBaseView() const { return m_BaseView; }
65 
66 public slots:
67 
73  void onCategorySelected(int type);
74 
82  void onSoListItemClicked(int type, QString typeName, int index);
83 
87  void onNextObjClicked();
88 
92  void onPrevObjClicked();
93 
97  void onSlewButtonClicked();
98 
102  void onDetailsButtonClicked();
103 
107  void onSettingsIconClicked();
108 
112  void onReloadIconClicked();
113 
114 private:
115  QObject *m_BaseObj, *m_ViewsRowObj, *m_SoListObj, *m_DetailsViewObj,
116  *m_NextObj, *m_PrevObj, *m_SlewButtonObj, *m_DetailsButtonObj;
117  QDeclarativeContext *m_Ctxt;
118  QDeclarativeView *m_BaseView;
119  ObsConditions *m_Obs;
120  ModelManager *m_ModManager;
121  SkyObjItem *m_CurSoItem;
122  int m_CurIndex;
123  int m_CurCategorySelected;
124 };
125 
126 #endif
WIView::onSettingsIconClicked
void onSettingsIconClicked()
public slot - Open WI settings dialog.
Definition: wiview.cpp:138
WIView::WIView
WIView(QWidget *parent=0, ObsConditions *obs=0)
Constructor - Store QML components as QObject pointers.
Definition: wiview.cpp:28
SkyObjItem
Represents an item in the list of interesting sky-objects.
Definition: skyobjitem.h:29
skyobject.h
QWidget
WIView::onSlewButtonClicked
void onSlewButtonClicked()
public slot - Slew map to current sky-object in the details view.
Definition: wiview.cpp:115
WIView
Manages the QML user interface for What's Interesting.
Definition: wiview.h:37
QObject
WIView::loadDetailsView
void loadDetailsView(SkyObjItem *soitem, int index)
Load details-view for selected sky-object.
Definition: wiview.cpp:164
skyobjlistmodel.h
WIView::onCategorySelected
void onCategorySelected(int type)
public slot - Act upon signal emitted when category of sky-object is selected from category selection...
Definition: wiview.cpp:83
WIView::onReloadIconClicked
void onReloadIconClicked()
public slot - Reload list of visible sky-objects.
Definition: wiview.cpp:144
WIView::onDetailsButtonClicked
void onDetailsButtonClicked()
public slot - Open Details Dialog to show more details for current sky-object.
Definition: wiview.cpp:128
WIView::onNextObjClicked
void onNextObjClicked()
public slot - Show details-view for next sky-object from list of current sky-objects's category...
Definition: wiview.cpp:101
modelmanager.h
WIView::onPrevObjClicked
void onPrevObjClicked()
public slot - Show details-view for previous sky-object from list of current sky-objects's category...
Definition: wiview.cpp:108
WIView::onSoListItemClicked
void onSoListItemClicked(int type, QString typeName, int index)
public slot - Act upon signal emitted when an item is selected from list of sky-objects.
Definition: wiview.cpp:89
ModelManager
Manages models for QML listviews of different types of sky-objects.
Definition: modelmanager.h:30
WIView::getWIBaseView
QDeclarativeView * getWIBaseView() const
Definition: wiview.h:64
ObsConditions
This class deals with the observing conditions of the night sky.
Definition: obsconditions.h:31
WIView::~WIView
~WIView()
Destructor.
Definition: wiview.cpp:77
obsconditions.h
WIView::updateModels
void updateModels(ObsConditions *obs)
Updates sky-object list models.
Definition: wiview.cpp:149
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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