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

TxqClickListener Class Reference

This class is a listener that can listen and respond to a mouse click. More...

#include <TxqClickListener.h>

Inheritance diagram for TxqClickListener::

QObject List of all members.

Public Slots

void listen (double x, double y)
 The listen method prints the message "Heard the point ( x, y)" where x and y are sent from the signal connected to this slot. More...

void listen (QMouseEvent *mouseEvent)
 The listen method prints the message "Heard the point ( x, y)" where x and y are sent from the signal connected to this slot. More...


Signals

void mouseClick (double, double)
 This mouseClick signal is emitted with the X and Y canvas location value. More...

void mouseClick ()
 The mouseClick signal is emitted whenver a mouse click is heard on the object. More...


Public Methods

 TxqClickListener ()
 The default constructor. More...


Detailed Description

This class is a listener that can listen and respond to a mouse click.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqClickListener.h,v 1.10 2001/10/09 19:15:48 kgl Exp

Definition at line 33 of file TxqClickListener.h.


Constructor & Destructor Documentation

TxqClickListener::TxqClickListener ( ) [inline]
 

The default constructor.

Definition at line 42 of file TxqClickListener.h.


Member Function Documentation

void TxqClickListener::listen ( QMouseEvent * mouseEvent ) [inline, slot]
 

The listen method prints the message "Heard the point ( x, y)" where x and y are sent from the signal connected to this slot.

Parameters:
the   QMouseEvent

Definition at line 81 of file TxqClickListener.h.

void TxqClickListener::listen ( double x,
double y ) [inline, slot]
 

The listen method prints the message "Heard the point ( x, y)" where x and y are sent from the signal connected to this slot.

Parameters:
the   x mouse location
the   y mouse location

Definition at line 69 of file TxqClickListener.h.

void TxqClickListener::mouseClick ( ) [signal]
 

The mouseClick signal is emitted whenver a mouse click is heard on the object.

void TxqClickListener::mouseClick ( double,
double ) [signal]
 

This mouseClick signal is emitted with the X and Y canvas location value.

Parameters:
x   the X location on the canvas.
y   the Y location on the canvas.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.