• 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
flagmanager.h
Go to the documentation of this file.
1 /***************************************************************************
2  flagmanager.h - Flag manager
3  -------------------
4  begin : Mon Feb 01 2009
5  copyright : (C) 2009 by Jerome SONRIER
6  email : jsid@emor3j.fr.eu.org
7  ***************************************************************************/
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef FLAGMANAGER_H_
18 #define FLAGMANAGER_H_
19 
20 #include <QAbstractTableModel>
21 
22 #include <kdialog.h>
23 
24 #include "ui_flagmanager.h"
25 
26 class QSortFilterProxyModel;
27 class QStandardItemModel;
28 class KStars;
29 
30 class FlagManagerUI : public QFrame, public Ui::FlagManager
31 {
32  Q_OBJECT
33 
34  public:
37  explicit FlagManagerUI( QWidget *parent );
38 };
39 
40 
49 class FlagManager : public KDialog
50 {
51  Q_OBJECT
52 public:
56  explicit FlagManager( QWidget *ks );
57 
61  ~FlagManager();
62 
63  void setRaDec( const dms &ra, const dms &dec );
64  void clearFields ();
65  void showFlag( const int flagIdx );
66 
67  bool validatePoint();
68 
69  void deleteFlagItem ( int flagIdx );
70 
71 public slots:
75  void slotAddFlag();
76 
80  void slotDeleteFlag();
81 
85  void slotCenterFlag();
86 
87 private slots:
88  void slotSaveChanges();
89  void slotSetShownFlag( QModelIndex idx );
90 
91 private:
92  void insertFlag( bool isNew, int row = 0 );
93 
94  KStars *m_Ks;
95  FlagManagerUI *ui;
96  QStandardItemModel *m_Model;
97  QSortFilterProxyModel *m_SortModel;
98 };
99 
100 #endif
FlagManager::slotDeleteFlag
void slotDeleteFlag()
Delete a flag.
Definition: flagmanager.cpp:203
FlagManager::deleteFlagItem
void deleteFlagItem(int flagIdx)
Definition: flagmanager.cpp:176
QWidget
FlagManager::slotAddFlag
void slotAddFlag()
Verify coordinates and add a flag.
Definition: flagmanager.cpp:182
KDialog
KStars
This is the main window for KStars.
Definition: kstars.h:94
FlagManagerUI
Definition: flagmanager.h:30
FlagManager::slotCenterFlag
void slotCenterFlag()
Center the selected object in the display.
Definition: flagmanager.cpp:222
FlagManagerUI::FlagManagerUI
FlagManagerUI(QWidget *parent)
Constructor.
Definition: flagmanager.cpp:34
FlagManager
Flag manager Dialog box to add and remove flags.
Definition: flagmanager.h:49
FlagManager::setRaDec
void setRaDec(const dms &ra, const dms &dec)
Definition: flagmanager.cpp:107
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
QSortFilterProxyModel
FlagManager::clearFields
void clearFields()
Definition: flagmanager.cpp:113
FlagManager::~FlagManager
~FlagManager()
Destructor.
Definition: flagmanager.cpp:103
FlagManager::FlagManager
FlagManager(QWidget *ks)
Constructor.
Definition: flagmanager.cpp:39
FlagManager::validatePoint
bool validatePoint()
Definition: flagmanager.cpp:150
QFrame
FlagManager::showFlag
void showFlag(const int flagIdx)
Definition: flagmanager.cpp:128
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