library: libCore
#include "TApplication.h"


class description - header file - source file
viewCVS header - viewCVS source

class TApplication: public TObject, public TQObject

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
TApplication(const char* appClassName, Int_t* argc, char** argv, void* options = 0, Int_t numOptions = 0)
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual const char*ApplicationName() const
Int_tArgc() const
char**Argv() const
char*Argv(Int_t index) const
virtual voidTObject::Browse(TBrowser* b)
virtual voidTQObject::ChangedBy(const char* method)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
virtual voidTObject::Copy(TObject& object) const
static voidCreateApplication()
virtual voidTObject::Delete(Option_t* option = "")
virtual voidTQObject::Destroyed()
Bool_tTQObject::Disconnect(const char* signal = "0", void* receiver = 0, const char* slot = "0")
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = "0", void* receiver = 0, const char* slot = "0")
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = "0")
virtual voidTQObject::Disconnected(const char*)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual TApplicationImp*GetApplicationImp()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
const char*GetIdleCommand() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual voidGetOptions(Int_t* argc, char** argv)
TSignalHandler*GetSignalHandler() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual voidHandleIdleTimer()
virtual Bool_tHandleTermInput()
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual ULong_tTObject::Hash() const
virtual voidHide()
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = "0")
virtual voidIconify()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidInit()
TObjArray*InputFiles() const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tIsCmdThread()
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tIsRunning() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidKeyPressed(Int_t key)
static voidTQObject::LoadRQ_OBJECT()
virtual voidLower()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = "0")
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)
Bool_tNoLogoOpt() const
Bool_tNoLogOpt() const
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
virtual voidOpen()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Long_tProcessFile(const char* line, Int_t* error = 0)
virtual Long_tProcessLine(const char* line, Bool_t sync = kFALSE, Int_t* error = 0)
Bool_tQuitOpt() const
virtual voidRaise()
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidRemoveIdleTimer()
voidTObject::ResetBit(UInt_t f)
Bool_tReturnFromRun() const
virtual voidReturnPressed(char* text)
virtual voidRun(Bool_t retrn = kFALSE)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetEchoMode(Bool_t mode)
virtual voidSetIdleTimer(UInt_t idleTimeInSec, const char* command)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetReturnFromRun(Bool_t ret)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShow()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStartIdleing()
virtual voidStopIdleing()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual voidTerminate(Int_t status = 0)
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual void*TQObject::GetSender()
virtual const char*TQObject::GetSenderClassName() const
virtual voidHelp(const char* line)
virtual voidInitializeColors()
virtual voidLoadGraphicsLibs()
virtual voidMakeBatch()
voidSetSignalHandler(TSignalHandler* sh)
TApplication(const TApplication&)
TApplication&operator=(const TApplication&)

Data Members

enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
TList*TQObject::fListOfSignals! list of signals from this object
TList*TQObject::fListOfConnections! list of connections to this object
Int_tfArgcNumber of com mand line arguments
char**fArgvCommand line arguments
TApplicationImp*fAppImp!Window system specific application implementation
Bool_tfIsRunningTrue when in event loop (Run() has been called)
Bool_tfReturnFromRunWhen true return from Run()
Bool_tfNoLogDo not process logon and logoff macros
Bool_tfNoLogoDo not show splash screen and welcome message
Bool_tfQuitExit after having processed input files
TObjArray*fFilesArray of input files (TObjString's)
TStringfIdleCommandCommand to execute while application is idle
TTimer*fIdleTimerIdle timer
TSignalHandler*fSigHandlerInterrupt handler

Class Description

 This class creates the ROOT Application Environment that interfaces  
 to the windowing system eventloop and eventhandlers.                 
 This class must be instantiated exactly once in any given            
 application. Normally the specific application class inherits from   
 TApplication (see TRint).                                            

 Default ctor. Can be used by classes deriving from TApplication.
TApplication(const char *appClassName, Int_t *argc, char **argv, void *options, Int_t numOptions)
 Create an application environment. The application environment
 provides an interface to the graphics system and eventloop
 (be it X, Windoze, MacOS or BeOS). After creating the application
 object start the eventloop by calling its Run() method. The command
 line options recogized by TApplication are described in the GetOptions()
 method. The recognized options are removed from the argument array.
 The original list of argument options can be retrieved via the Argc()
 and Argv() methods. The appClassName "proofserv" is reserved for the
 PROOF system. The "options" and "numOptions" arguments are not used,
 except if you want to by-pass the argv processing by GetOptions()
 in which case you should specify numOptions<0. All options will
 still be available via the Argv() method for later use.
 TApplication dtor.
void ClearInputFiles()
 Clear list containing macro files passed as program arguments.
 This method is called from TRint::Run() to ensure that the macro
 files are only executed the first time Run() is called.
void GetOptions(Int_t *argc, char **argv)
 Get and handle command line options. Arguments handled are removed
 from the argument array. The following arguments are handled:
    -b : run in batch mode without graphics
    -n : do not execute logon and logoff macros as specified in .rootrc
    -q : exit after processing command line macro files
    -l : do not show splash screen
 The last three options are only relevant in conjunction with TRint.
 The following help and info arguments are supported:
    -?      : print usage
    -h      : print usage
    --help  : print usage
    -config : print ./configure options
void HandleIdleTimer()
 Handle idle timeout. When this timer expires the registered idle command
 will be executed by this routine and a signal will be emitted.
void Help(const char *line)
 Print help on interpreter.
void InitializeColors()
 Initialize colors used by the TCanvas based graphics (via TColor objects).
 This method should be called before the ApplicationImp is created (which
 initializes the GUI colors).
void LoadGraphicsLibs()
 Load shared libs neccesary for graphics. These libraries are only
 loaded when gROOT->IsBatch() is kFALSE.
void MakeBatch()
 Switch to batch mode.
Long_t ProcessLine(const char *line, Bool_t sync, Int_t *err)
 Process a single command line, either a C++ statement or an interpreter
 command starting with a ".".
 Return the return value of the command casted to a long.
Long_t ProcessFile(const char *name, int *error)
 Process a file containing a C++ macro.
void Run(Bool_t retrn)
 Main application eventloop. Calls system dependent eventloop via gSystem.
void SetIdleTimer(UInt_t idleTimeInSec, const char *command)
 Set the command to be executed after the system has been idle for
 idleTimeInSec seconds. Normally called via TROOT::Idle(...).
void RemoveIdleTimer()
 Remove idle timer. Normally called via TROOT::Idle(0).
void StartIdleing()
 Called when system starts idleing.
void StopIdleing()
 Called when system stops idleing.
void Terminate(Int_t status)
 Terminate the application by call TSystem::Exit() unless application has
 been told to return from Run(), by a call to SetReturnFromRun().
void KeyPressed(Int_t key)
 Emit signal when console keyboard key was pressed.
void ReturnPressed(char *text )
 Emit signal when return key was pressed.
void SetEchoMode(Bool_t)
 Set console echo mode:

  mode = kTRUE  - echo input symbols
  mode = kFALSE - noecho input symbols
void CreateApplication()
 Static function used to create a default application environment.
TApplication(const TApplication&)
TApplication& operator=(const TApplication&)
void SetSignalHandler(TSignalHandler *sh)
{ fSigHandler = sh; }
TSignalHandler * GetSignalHandler()
{ return fSigHandler; }
Bool_t HandleTermInput()
{ return kFALSE; }
void Init()
{ fAppImp->Init(); }
const char * GetIdleCommand()
{ return fIdleCommand; }
const char * ApplicationName()
{ return fAppImp->ApplicationName(); }
void Show()
{ fAppImp->Show(); }
void Hide()
{ fAppImp->Hide(); }
TApplicationImp * GetApplicationImp()
{ return fAppImp;}
void Iconify()
{ fAppImp->Iconify(); }
Bool_t IsCmdThread()
{ return fAppImp->IsCmdThread(); }
void Open()
{ fAppImp->Open(); }
void Raise()
{ fAppImp->Raise(); }
void Lower()
{ fAppImp->Lower(); }
Int_t Argc()
{ return fArgc; }
char ** Argv()
{ return fArgv; }
char * Argv(Int_t index)
{ return fArgv ? fArgv[index] : 0; }
Bool_t NoLogOpt()
{ return fNoLog; }
Bool_t NoLogoOpt()
{ return fNoLogo; }
Bool_t QuitOpt()
{ return fQuit; }
TObjArray * InputFiles()
{ return fFiles; }
Bool_t IsRunning()
{ return fIsRunning; }
Bool_t ReturnFromRun()
{ return fReturnFromRun; }
void SetReturnFromRun(Bool_t ret)
{ fReturnFromRun = ret; }

Author: Fons Rademakers 22/12/95
Last update: root/base:$Name: $:$Id: TApplication.cxx,v 1.78 2006/11/16 17:17:37 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

ROOT page - Class index - Class Hierarchy - Top of the page

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.