Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

StrucFindDialog Class Reference

The StrucFindDialog class implements the Find dialog. More...

Inheritance diagram for StrucFindDialog:

StrucFindDialogData List of all members.

Signals

void findSignal ()
 This signal is raised when the user clicks the "Find" button.

void findNextSignal ()
 This signal is raised when the user clicks the "Find Next" button.

void cancelSignal ()
 This signal is raised when the user clicks the "Cancel" button.


Public Member Functions

 StrucFindDialog (const QString &title, QWidget *parent=NULL, const char *name=NULL)
 Creates a new find dialog.

 StrucFindDialog (const QString &title, char *searchTerm, QWidget *parent=NULL, const char *name=NULL)
 Creates a new find dialog with a pre-set search term.

virtual ~StrucFindDialog ()
 Destroys the find dialog.

const QString text ()
 Returns the search term.

bool ignoreCaseChecked (void)
 Returns the status of the "Ignore Case" checkbox.


Protected Slots

virtual void reject ()
 Called when the user clicked the "Cancel" button.


Protected Member Functions

virtual void okSlot ()
 Called when the user clicked the "Find" button.

virtual void cancelSlot ()
 Called when the user clicked the "Cancel" button.

virtual void nextSlot ()
 Called when the user clicked the "Find Next" button.

virtual void textChangedSlot (const QString &text)
 Called when the user entered a new search term.

virtual void ignoreCaseToggledSlot (bool on)
 Called when the user checked or unchecked the ignore case checkbox.

void closeEvent (QCloseEvent *ev)
 Called when the dialog is closed.


Private Member Functions

void positionDialog (void)
 Positions the dialog to make sure that it doesn't cover the current view.


Private Attributes

Q_OBJECT QAccel * accel_CtrlG
 The accelerator that handles the CTRL+G key (alternative shortcut for Find Next).


Detailed Description

The StrucFindDialog class implements the Find dialog.

Author:
Holger Wunsch


Constructor & Destructor Documentation

StrucFindDialog::StrucFindDialog const QString &  title,
QWidget *  parent = NULL,
const char *  name = NULL
 

Creates a new find dialog.

The "Find Next" button is initially disabled, "Ignore Case" is checked.

Parameters:
title the dialog title
parent the parent window
name the dialog's name (internal use only)

StrucFindDialog::StrucFindDialog const QString &  title,
char *  searchTerm,
QWidget *  parent = NULL,
const char *  name = NULL
 

Creates a new find dialog with a pre-set search term.

The "Find Next" button is initially enabled, "Ignore Case" is unchecked.

Parameters:
title the dialog title
searchTerm the search term.
parent the parent window
name the dialog's name (internal use only)

StrucFindDialog::~StrucFindDialog  )  [virtual]
 

Destroys the find dialog.


Member Function Documentation

void StrucFindDialog::cancelSignal  )  [signal]
 

This signal is raised when the user clicks the "Cancel" button.

void StrucFindDialog::cancelSlot  )  [protected, virtual]
 

Called when the user clicked the "Cancel" button.

Reimplemented from StrucFindDialogData.

void StrucFindDialog::closeEvent QCloseEvent *  ev  )  [protected]
 

Called when the dialog is closed.

Parameters:
ev the close event.

void StrucFindDialog::findNextSignal  )  [signal]
 

This signal is raised when the user clicks the "Find Next" button.

void StrucFindDialog::findSignal  )  [signal]
 

This signal is raised when the user clicks the "Find" button.

bool StrucFindDialog::ignoreCaseChecked void   ) 
 

Returns the status of the "Ignore Case" checkbox.

Returns:
true if "Ignore Case" is checked, false otherwise.

void StrucFindDialog::ignoreCaseToggledSlot bool  on  )  [protected, virtual]
 

Called when the user checked or unchecked the ignore case checkbox.

Parameters:
on the new value of the check box.

Reimplemented from StrucFindDialogData.

void StrucFindDialog::nextSlot  )  [protected, virtual]
 

Called when the user clicked the "Find Next" button.

Reimplemented from StrucFindDialogData.

void StrucFindDialog::okSlot  )  [protected, virtual]
 

Called when the user clicked the "Find" button.

Reimplemented from StrucFindDialogData.

void StrucFindDialog::positionDialog void   )  [private]
 

Positions the dialog to make sure that it doesn't cover the current view.

void StrucFindDialog::reject  )  [protected, virtual, slot]
 

Called when the user clicked the "Cancel" button.

const QString StrucFindDialog::text  ) 
 

Returns the search term.

void StrucFindDialog::textChangedSlot const QString &  text  )  [protected, virtual]
 

Called when the user entered a new search term.

Parameters:
text the new search term

Reimplemented from StrucFindDialogData.


Member Data Documentation

Q_OBJECT QAccel* StrucFindDialog::accel_CtrlG [private]
 

The accelerator that handles the CTRL+G key (alternative shortcut for Find Next).


Generated on Sun Apr 27 18:26:58 2003 for Grisu by doxygen1.3