class TQtRootSlot: public QObject


 The TQRootSlot singleton class introduces the global SLOT to invoke
 the  ROOT command line from the GUI signals
 Optionally one can execute TApplication::Terminate method directly

 It provides a Qt slot to attach the the CINT C++ interpreter
 to any Qt signal
 To execute any C++ statement from the GUI oen should connect
 his/her Qt signal with the Qt slot of the global instance of this class

  connect(GUI object, SIGNAL(const char *editedLine),TQtRootSlot::CintSlot(),SLOT(ProcessLine(const char*)))

  To terminate the ROOT from QUI element connect the signal with the Terminate slot.
  For example to terminate ROOT and Qt smootly do

  connect(qApp,SIGNAL(lastWindowClosed()),TQtRootSlot::CintSlot(),SLOT(TerminateAndQuit())


Function Members (Methods)

public:
virtual~TQtRootSlot()
static TQtRootSlot*CintSlot()
voidProcessLine(const char*)
voidTerminate() const
voidTerminate(int status) const
voidTerminateAndQuit() const
protected:
TQtRootSlot()
private:
TQtRootSlot(const TQtRootSlot&)
voidoperator=(const TQtRootSlot&)

Data Members

protected:
static TQtRootSlot*fgTQtRootSlot

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TQtRootSlot * CintSlot()
 create and return the singleton
void ProcessLine(const char* )
 execute the arbitrary ROOT /CINt command via
 CINT C++ interpreter and emit the result
void Terminate(int status) const
 the dedicated slot to terminate the ROOT application
void Terminate(int status) const
 the dedicated slot to terminate the ROOT application
void TerminateAndQuit()
 the dedicated  slot to terminate the ROOT application
 and quit the Qt Application if any
TQtRootSlot(const TQtRootSlot& )
void operator=(const TQtRootSlot& )
TQtRootSlot(const TQtRootSlot& )
{}
virtual ~TQtRootSlot()
{}

Author: Valery Fine 18/01/2007
Last change: root/qt:$Id: TQtRootSlot.h 21429 2007-12-17 18:19:41Z brun $
Last generated: 2008-06-25 08:51
Copyright (C) 2007 by Valeri Fine. Brookhaven National Laboratory.

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.