kstars
FindDialog Class Reference
Dialog window for finding SkyObjects by name. More...
#include <finddialog.h>

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
- 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 | ( | ) |
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: