12 #ifndef ROOT_TApplication
13 #define ROOT_TApplication
36 #ifndef ROOT_TApplicationImp
107 void *options = 0,
Int_t numOptions = 0);
virtual void LoadGraphicsLibs()
Load shared libs necessary for graphics.
TApplication * GetAppRemote() const
virtual Long_t ProcessLine(const char *line, Bool_t sync=kFALSE, Int_t *error=0)
Process a single command line, either a C++ statement or an interpreter command starting with a "...
const char * GetIdleCommand() const
static Bool_t fgGraphInit
virtual void MakeBatch()
Switch to batch mode.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
TSignalHandler * fSigHandler
virtual TApplicationImp * GetApplicationImp()
static Bool_t fgGraphNeeded
EExitOnException fExitOnException
virtual void ReturnPressed(char *text)
Emit signal when return key was pressed.
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
R__EXTERN TApplication * gApplication
virtual Long_t ProcessRemote(const char *line, Int_t *error=0)
Process the content of a line starting with ".R" (already stripped-off) The format is [user@]host[:...
TObjArray * InputFiles() const
Bool_t ReturnFromRun() const
TSignalHandler * GetSignalHandler() const
virtual Bool_t HandleTermInput()
ABC describing GUI independent application implementation protocol.
#define ClassDef(name, id)
virtual void SetIdleTimer(UInt_t idleTimeInSec, const char *command)
Set the command to be executed after the system has been idle for idleTimeInSec seconds.
virtual void Run(Bool_t retrn=kFALSE)
Main application eventloop. Calls system dependent eventloop via gSystem.
static Int_t ParseRemoteLine(const char *ln, TString &hostdir, TString &user, Int_t &dbg, TString &script)
Parse the content of a line starting with ".R" (already stripped-off) The format is [user@]host[:di...
virtual ~TApplication()
TApplication dtor.
virtual void GetOptions(Int_t *argc, char **argv)
Get and handle command line options.
virtual Bool_t IsCmdThread()
static TList * GetApplications()
Static method returning the list of available applications.
Bool_t fIsRunning
Window system specific application implementation.
void ClearInputFiles()
Clear list containing macro files passed as program arguments.
virtual void RemoveIdleTimer()
Remove idle timer. Normally called via TROOT::Idle(0).
static void NeedGraphicsLibs()
Static method.
void SetSignalHandler(TSignalHandler *sh)
static Long_t ExecuteFile(const char *file, Int_t *error=0, Bool_t keep=kFALSE)
Execute a file containing a C++ macro (static method).
TApplicationImp * fAppImp
virtual void SetEchoMode(Bool_t mode)
Set console echo mode:
Handles synchronous and a-synchronous timer events.
virtual void StopIdleing()
Called when system stops idleing.
TApplication * fAppRemote
static void Close(TApplication *app)
Static function used to close a remote application.
virtual void Help(const char *line)
Print help on interpreter.
static void CreateApplication()
Static function used to create a default application environment.
void InitializeGraphics()
Initialize the graphics environment.
virtual void StartIdleing()
Called when system starts idleing.
virtual void KeyPressed(Int_t key)
Emit signal when console keyboard key was pressed.
virtual const char * ApplicationName() const
TApplication & operator=(const TApplication &)
virtual void LineProcessed(const char *line)
Emit signal when a line has been processed.
virtual Bool_t IsCmdThread()
virtual Int_t TabCompletionHook(char *buf, int *pLoc, std::ostream &out)
What to do when tab is pressed.
EExitOnException ExitOnException(EExitOnException opt=kExit)
Set the exit on exception option.
Mother of all ROOT objects.
virtual void HandleIdleTimer()
Handle idle timeout.
virtual void HandleException(Int_t sig)
Handle exceptions (kSigBus, kSigSegmentationViolation, kSigIllegalInstruction and kSigFloatingExcepti...
const char * WorkingDirectory() const
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
static TList * fgApplications
void SetReturnFromRun(Bool_t ret)
virtual const char * ApplicationName() const
virtual Long_t ProcessFile(const char *file, Int_t *error=0, Bool_t keep=kFALSE)
Process a file containing a C++ macro.
virtual void ls(Option_t *option="") const
Show available sessions.
TApplication()
Default ctor. Can be used by classes deriving from TApplication.