• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

FindDialog Class Reference

Dialog window for finding SkyObjects by name. More...

#include <finddialog.h>

Inheritance diagram for FindDialog:

Inheritance graph
[legend]

List of all members.


Public Slots

void filter ()
void filterByType ()
void slotOk ()

Public Member Functions

SkyObjectNameListItem * currentItem () const
 FindDialog (QWidget *parent=0)
 ~FindDialog ()

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  ) 

Constructor.

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

Definition at line 36 of file finddialog.cpp.

FindDialog::~FindDialog (  ) 

Destructor.

Definition at line 106 of file finddialog.cpp.


Member Function Documentation

SkyObjectNameListItem* FindDialog::currentItem (  )  const [inline]

Returns:
the currently-selected item from the listbox of named objects

Definition at line 62 of file finddialog.h.

void FindDialog::filter (  )  [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 116 of file finddialog.cpp.

void FindDialog::filterByType (  )  [slot]

When the selection of the object type QComboBox is changed, filter the List of objects so that only objects of the selected Type are shown.

Definition at line 138 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.

Parameters:
e The QKeyEvent pointer

Definition at line 208 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 198 of file finddialog.cpp.


The documentation for this class was generated from the following files:
  • finddialog.h
  • finddialog.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal