• 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
  • dialogs
finddialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  finddialog.h - K Desktop Planetarium
3  -------------------
4  begin : Wed Jul 4 2001
5  copyright : (C) 2001 by Jason Harris
6  email : jharris@30doradus.org
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 FINDDIALOG_H_
19 #define FINDDIALOG_H_
20 
21 #include <QKeyEvent>
22 
23 #include <kdialog.h>
24 
25 #include "ui_finddialog.h"
26 #include "skyobjects/skyobject.h"
27 
28 class QTimer;
29 class QStringListModel;
30 class QSortFilterProxyModel;
31 
32 class FindDialogUI : public QFrame, public Ui::FindDialog {
33  Q_OBJECT
34 public:
35  explicit FindDialogUI( QWidget *parent=0 );
36 };
37 
47 class FindDialog : public KDialog {
48  Q_OBJECT
49 public:
53  explicit FindDialog( QWidget* parent = 0 );
54 
56  virtual ~FindDialog();
57 
59  SkyObject* selectedObject() const;
60 
61 public slots:
65  void filterList();
66 
67  //FIXME: Still valid for KDialog? i.e., does KDialog have a slotOk() ?
73  void slotOk();
74 
75 private slots:
77  void init();
78 
80  void initSelection();
81 
82  void enqueueSearch();
83 
84  void slotDetails();
85 
86 protected:
92  void keyPressEvent( QKeyEvent *e );
93 
94 private:
95 
99  QString processSearchText();
100 
104  void filterByType();
105 
106  FindDialogUI* ui;
107  SkyObject* currentitem;
108  QStringListModel *fModel;
109  QSortFilterProxyModel* sortModel;
110  QTimer* timer;
111  bool listFiltered;
112 };
113 
114 #endif
skyobject.h
FindDialog::FindDialog
FindDialog(QWidget *parent=0)
Constructor.
Definition: finddialog.cpp:53
QWidget
KDialog
FindDialog::~FindDialog
virtual ~FindDialog()
Destructor.
Definition: finddialog.cpp:89
FindDialog::selectedObject
SkyObject * selectedObject() const
Definition: finddialog.cpp:236
FindDialog
Dialog window for finding SkyObjects by name.
Definition: finddialog.h:47
QSortFilterProxyModel
FindDialog::filterList
void filterList()
When Text is entered in the QLineEdit, filter the List of objects so that only objects which start wi...
Definition: finddialog.cpp:208
FindDialogUI
Definition: finddialog.h:32
FindDialog::slotOk
void slotOk()
Overloading the Standard KDialogBase slotOk() to show a "sorry" message box if no object is selected ...
Definition: finddialog.cpp:295
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
QFrame
FindDialog::keyPressEvent
void keyPressEvent(QKeyEvent *e)
Process Keystrokes.
Definition: finddialog.cpp:310
FindDialogUI::FindDialogUI
FindDialogUI(QWidget *parent=0)
Definition: finddialog.cpp:33
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