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

kstars

  • extragear
  • edu
  • kstars
  • kstars
  • options
opssatellites.h
Go to the documentation of this file.
1 /***************************************************************************
2  opssatellites.h - K Desktop Planetarium
3  -------------------
4  begin : Mon 21 Mar 2011
5  copyright : (C) 2011 by Jérôme SONRIER
6  email : [email protected]
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 #pragma once
18 
19 #include "ui_opssatellites.h"
20 
21 #include <kconfigdialog.h>
22 
23 #include <QFrame>
24 #include <QSortFilterProxyModel>
25 
26 class QStandardItem;
27 class QStandardItemModel;
28 class KStars;
29 
30 class SatelliteSortFilterProxyModel : public QSortFilterProxyModel
31 {
32  Q_OBJECT
33 
34  public:
35  explicit SatelliteSortFilterProxyModel(QObject *parent);
36  bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
37 };
38 
48 class OpsSatellites : public QFrame, public Ui::OpsSatellites
49 {
50  Q_OBJECT
51 
52  public:
54  OpsSatellites();
55 
56  virtual ~OpsSatellites() override = default;
57 
58  private:
60  void updateListView();
61 
65  void saveSatellitesList();
66 
67  private slots:
68  void slotUpdateTLEs();
69  void slotShowSatellites(bool on);
70  void slotApply();
71  void slotCancel();
72  void slotFilterReg(const QString &);
73  void slotItemChanged(QStandardItem *);
74 
75 private:
76  KConfigDialog *m_ConfigDialog { nullptr };
77  QStandardItemModel *m_Model { nullptr };
78  QSortFilterProxyModel *m_SortModel { nullptr };
79  bool isDirty { false };
80 };
QModelIndex
QStandardItemModel
SatelliteSortFilterProxyModel::SatelliteSortFilterProxyModel
SatelliteSortFilterProxyModel(QObject *parent)
Definition: opssatellites.cpp:32
KStars
This is the main window for KStars.
Definition: kstars.h:101
SatelliteSortFilterProxyModel::filterAcceptsRow
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
Definition: opssatellites.cpp:36
SatelliteSortFilterProxyModel
Definition: opssatellites.h:30
QObject
OpsSatellites::OpsSatellites
OpsSatellites()
Constructor.
Definition: opssatellites.cpp:51
QString
QSortFilterProxyModel
QFrame
QStandardItem
QObject::parent
QObject * parent() const
OpsSatellites
The Satellites Tab of the Options window.
Definition: opssatellites.h:48
OpsSatellites::~OpsSatellites
virtual ~OpsSatellites() override=default
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 13 2019 02:57:12 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
  • Modules
  • Related Pages

edu API Reference

Skip menu "edu API Reference"
  •     core
  • kstars

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