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

kstars

Public Slots | Public Member Functions | Protected Member Functions | List of all members
FindDialog Class Reference

#include <finddialog.h>

Inheritance diagram for FindDialog:
Inheritance graph
[legend]

Public Slots

void filterList ()
 
void slotOk ()
 

Public Member Functions

 FindDialog (QWidget *parent=0)
 
virtual ~FindDialog ()
 
SkyObject * selectedObject () const
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
 

Detailed Description

Dialog window for finding SkyObjects by name.

The dialog contains a QListBox showing the list of named objects, a QLineEdit for filtering the list by name, and a QCombobox for filtering the list by object type.

Find Object Dialog

Author
Jason Harris
Version
1.0

Definition at line 47 of file finddialog.h.

Constructor & Destructor Documentation

FindDialog::FindDialog ( QWidget *  parent = 0)
explicit

Constructor.

Creates all widgets and packs them in QLayouts. Connects Signals and Slots. Runs initObjectList().

Definition at line 53 of file finddialog.cpp.

FindDialog::~FindDialog ( )
virtual

Destructor.

Definition at line 89 of file finddialog.cpp.

Member Function Documentation

void FindDialog::filterList ( )
slot

When Text is entered in the QLineEdit, filter the List of objects so that only objects which start with the filter text are shown.

Definition at line 208 of file finddialog.cpp.

void FindDialog::keyPressEvent ( QKeyEvent *  e)
protected

Process Keystrokes.

The Up and Down arrow keys are used to select the Previous/Next item in the listbox of named objects. The Esc key closes the window with no selection, using reject().

Parameters
eThe QKeyEvent pointer

Definition at line 310 of file finddialog.cpp.

SkyObject * FindDialog::selectedObject ( ) const
Returns
the currently-selected item from the listbox of named objects

Definition at line 236 of file finddialog.cpp.

void FindDialog::slotOk ( )
slot

Overloading the Standard KDialogBase slotOk() to show a "sorry" message box if no object is selected when the user presses Ok.

The window is not closed in this case.

Definition at line 295 of file finddialog.cpp.


The documentation for this class was generated from the following files:
  • finddialog.h
  • finddialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 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