libyui
 
Loading...
Searching...
No Matches
YHelpButtonHandler Class Reference
Inheritance diagram for YHelpButtonHandler:
Collaboration diagram for YHelpButtonHandler:

Public Member Functions

 YHelpButtonHandler (YDialog *dialog)
 
YEventfilter (YEvent *event)
 
- Public Member Functions inherited from YEventFilter
virtual ~YEventFilter ()
 
YDialogdialog () const
 

Additional Inherited Members

- Protected Member Functions inherited from YEventFilter
 YEventFilter (YDialog *dialog=0)
 

Detailed Description

Helper class: Event filter that handles "Help" buttons.

Member Function Documentation

◆ filter()

YEvent * YHelpButtonHandler::filter ( YEvent * event)
inlinevirtual

The heart of the matter: The event filter function. Derived classes are required to implement this.

This method can inspect the event it receives. Hint: event->widget() is typically the most interesting information.

This method can react on individual events and

  • consume the event (i.e., return 0)
  • pass the event through unchanged (simply return the event)
  • create a new event (typically based on data in the received event).

If 0 or a new event (another value than 'event') is returned, the old event is deleted. If a value different from 'event' or 0 is returned, that value is assumed to be a pointer to a newly created event. The dialog will assume ownership of that event and delete it when appropriate.

Note: Never delete 'event' in this method! Return 0 or a new event instead; the caller will take care of deleting the old event.

Implements YEventFilter.


The documentation for this class was generated from the following file: