12 #ifndef ROOT_TApplication 13 #define ROOT_TApplication 101 void *options = 0,
Int_t numOptions = 0);
virtual void LoadGraphicsLibs()
Load shared libs necessary for graphics.
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 "...
virtual void ls(Option_t *option="") const
Show available sessions.
static Bool_t fgGraphInit
const char * WorkingDirectory() const
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
virtual const char * ApplicationName() const
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[:di...
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[:dir]...
virtual ~TApplication()
TApplication dtor.
TApplication * GetAppRemote() const
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.
TObjArray * InputFiles() const
Bool_t fIsRunning
Window system specific application implementation.
void ClearInputFiles()
Clear list containing macro files passed as program arguments.
virtual const char * ApplicationName() const
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.
TSignalHandler * GetSignalHandler() const
virtual void KeyPressed(Int_t key)
Emit signal when console keyboard key was pressed.
const char * GetIdleCommand() 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...
Bool_t ReturnFromRun() const
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
static TList * fgApplications
void SetReturnFromRun(Bool_t ret)
virtual Long_t ProcessFile(const char *file, Int_t *error=0, Bool_t keep=kFALSE)
Process a file containing a C++ macro.
TApplication()
Default ctor. Can be used by classes deriving from TApplication.