kstars
#include <finddialog.h>

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
- Version
- 1.0
Definition at line 47 of file finddialog.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Creates all widgets and packs them in QLayouts. Connects Signals and Slots. Runs initObjectList().
Definition at line 53 of file finddialog.cpp.
|
virtual |
Destructor.
Definition at line 89 of file finddialog.cpp.
Member Function Documentation
|
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.
|
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
-
e The 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.
|
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:
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.