21 #ifndef ROOT_TSessionViewer
22 #define ROOT_TSessionViewer
32 #ifndef ROOT_TGTextEntry
36 #ifndef ROOT_TGNumberEntry
44 #ifndef ROOT_TGListView
453 Progress(total, processed, bytesread, initTime, procTime,
454 evtrti, mbrti, -1, -1, -1.); }
593 virtual void Build();
647 void ShowLog(
const char *queryref);
TGTextButton * fBtnRemove
TGPopupMenu * fOptionsMenu
virtual void HideFrame(TGFrame *f)
Hide sub frame.
void OnBtnSubmit()
Submit query.
void OnUploadPackages()
Upload selected package(s) to the current session.
void Build(TSessionViewer *gui)
Build query information frame.
void OnApplyParallel()
Apply selected number of workers on current Proof session.
TGPopupMenu * GetCascadeMenu() const
void CleanupSession()
Clean-up Proof session.
void StartupMessage(char *msg, Bool_t stat, Int_t curr, Int_t total)
Handle startup message (connection progress) coming from Proof session.
void RemoveAll()
Remove all frames from composite frame.
void SetBusy(Bool_t busy=kTRUE)
void OnElementSelected(TObject *obj)
Handle OnElementSelected signal coming from new chain dialog.
TSessionServerFrame(TGWindow *parent, Int_t w, Int_t h)
Constructor.
const char * GetConfigText() const
void OnNewQueryMore()
Show/hide options frame and update button text accordingly.
TGListTree * fSessionHierarchy
void ChangeRightLogo(const char *name)
Change the right logo (used for animation).
TGTextEntry * fTxtAddress
void UpdateInfos()
Update query information (header) text view.
virtual void RemoveAll()
Remove all items from the container.
TGTextEntry * fTxtParFile
void OnStartupEnable(Bool_t on)
Handle multiple selection check button.
TGCompositeFrame * fFrmMore
TSessionServerFrame * GetServerFrame() const
TEditQueryFrame * GetQueryEditFrame() const
void ProofInfos()
Display information on current session.
const TGPicture * GetLocalPict() const
void SetUserName(const char *str)
TGLVContainer * fLVContainer
void OnBtnDownClicked()
Move selected package entry one position down in the list.
void OnBrowseSelector()
Open file browser to choose selector macro.
void ShowLog(const char *queryref)
Display the content of the temporary log file for queryref into a new text window.
TGTextButton * fBtnNewQuery
void OnListTreeDoubleClicked(TGListTreeItem *entry, Int_t btn)
Handle mouse double clicks in list tree (connect to server).
const char * GetUserName() const
void UpdateButtons(TQueryDescription *desc)
Update buttons state for the current query status.
void OnBtnAddClicked()
Open file dialog and add selected package file to the list.
void Update(TSessionDescription *desc)
Update fields with values from session description desc.
void OnBtnAbort()
Abort processing query.
void DeleteQuery()
Delete query from list tree and ask user if they want to delete it also from server.
TGTextButton * fBtnRetrieve
static const char * filename()
void OnBtnStop()
Stop processing query.
TGPopupMenu * fCascadeMenu
void OnBrowseEventList()
Browse event list.
TSessionDescription * GetActDesc() const
The TEnv class reads config files, by default named .rootrc.
TContextMenu * fContextMenu
virtual void ShowFrame(TGFrame *f)
Show sub frame.
virtual ~TSessionQueryFrame()
Destructor.
virtual Bool_t HandleExpose(Event_t *event)
Handle expose event in server frame.
void SetPortNumber(Int_t port)
TGCheckButton * fChkMulti
TSessionServerFrame * fServerFrame
void Build(TSessionViewer *gui)
Build session frame.
Basic time type with millisecond precision.
void OnApplyLogLevel()
Apply selected log level on current session.
void OnBtnRetrieve()
Retrieve query.
void SetLogLevel(Int_t log)
virtual ~TSessionFrame()
Destructor.
void SetLogWindow(TSessionLogView *log)
TGTextButton * fApplyParallel
void OnBtnAddClicked()
Add newly created session configuration in the list of sessions.
const TGPicture * fProofCon
TList * GetSessions() const
void OnBtnRemoveDSet()
Remove dataset from the list and from the cluster.
TGPopupMenu * fSessionMenu
TGTextEntry * fCommandTxt
TSessionOutputFrame(TGWindow *parent, Int_t w, Int_t h)
Constructor.
const TGPicture * fProofDiscon
void OnBtnShowLogClicked()
Show session log.
void OnCommandLine()
Command line handling.
TGNumberEntry * fLogLevel
void OnBtnNewServerClicked()
Reset server configuration fields.
TGTextEntry * fTxtUsrName
const TGPicture * GetProofConPict() const
TGTextButton * fBtnEnable
TGCompositeFrame * fFrmNewServer
TSessionViewer(const char *title="ROOT Session Viewer", UInt_t w=550, UInt_t h=320)
Main Session viewer constructor.
TGTextButton * fBtnDisable
void DisableTimer()
Disable animation timer.
void OnBtnConnectClicked()
Connect to selected server.
const char * GetAddress() const
#define ClassDef(name, id)
void ShowStatus()
Retrieve and display Proof status.
void OnBtnDeleteClicked()
Delete selected session configuration (remove it from the list).
TGCheckButton * fClearCheck
TGTextButton * fBtnShowLog
TQueryDescription * fQuery
void SetLogLevel(Int_t log)
TGTextEntry * fTxtEventList
void ShowEnabledPackages()
Query list of enabled packages from proof and display it into a new text window.
TGStatusBar * GetStatusBar() const
const char * GetText() const
void OnListTreeClicked(TGListTreeItem *entry, Int_t btn, Int_t x, Int_t y)
Handle mouse clicks in list tree.
TRootEmbeddedCanvas * fECanvas
Int_t GetPortNumber() const
void OnBtnGetQueriesClicked()
Get list of queries from current Proof server and populate the list tree.
TGTextButton * fApplyLogLevel
TGNumberEntry * fNumEntries
TSessionInputFrame * GetInputFrame() const
TSessionFrame * GetSessionFrame() const
void OnCascadeMenu()
Handle feedback histograms configuration menu.
const TGPicture * fQueryDiscon
void WriteConfiguration(const char *filename=0)
Save actual configuration in config file "filename".
void UpdatePackages()
Update list of packages.
void UpdateHistos(TList *objs)
Update feedback histograms.
void SetSync(Bool_t sync)
void ShutdownSession()
Shutdown current session.
void EditQuery()
Edit currently selected query.
A container class for query results.
TSessionQueryFrame * GetQueryFrame() const
TGTextButton * fBtnShowLog
TGTextView * fInfoTextView
TGTextButton * fBtnConnect
void OnElementClicked(TGLVEntry *entry, Int_t btn, Int_t x, Int_t y)
Handle mouse clicks on list view items.
void SetConfigText(const char *str)
TGTextBuffer * fCommandBuf
virtual ~TSessionViewer()
Destructor.
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)
Handle messages send to the TSessionViewer object.
virtual ~TSessionOutputFrame()
Destructor.
void Terminate()
Terminate Session : save configuration, clean temporary files and close Proof connections.
void UpdateListOfPackages()
Update the list of packages.
void ResetProgressDialog(const char *selec, Int_t files, Long64_t first, Long64_t entries)
Reset progress frame information fields.
void SetChangePic(Bool_t change)
TGCheckButton * fChkEnable
void SettingsChanged()
Settings have changed, update GUI accordingly.
const char * GetName() const
Returns name of object.
void MyHandleMenu(Int_t)
Handle session viewer custom popup menus.
TGHProgressBar * fConnectProg
TSessionFrame(TGWindow *parent, Int_t w, Int_t h)
Constructor.
TGPicture * fRightIconPicture
void SetAddEnabled(Bool_t on=kTRUE)
TGListTree * fDataSetTree
TQueryDescription * fActQuery
void Build(TSessionViewer *gui)
Build the "new query" dialog.
void OnElementDblClicked(TGLVEntry *entry, Int_t btn, Int_t x, Int_t y)
Handle double-clicks on list view items.
void IndicateStop(Bool_t aborted)
Indicate that Cancel or Stop was clicked.
TGListTree * GetSessionHierarchy() const
TSessionQueryFrame * fQueryFrame
void OnBtnNewQueryClicked()
Call "New Query" Dialog.
void Progress(Long64_t total, Long64_t processed)
Update progress bar and status labels.
void Build(TSessionViewer *gui)
Build server configuration frame.
TGTextEntry * fTxtSelector
TEditQueryFrame(TGWindow *p, Int_t w, Int_t h)
Create a new Query dialog, used by the Session Viewer, to Edit a Query if the editmode flag is set...
const char * GetName() const
Returns name of object.
void OnBtnSave()
Save current settings in main session viewer.
void ProgressLocal(Long64_t total, Long64_t processed)
Update progress bar and status labels.
void OnConfigFileClicked()
Browse configuration files.
TGTextButton * fBtnUpload
const TGPicture * fBaseIcon
Handles synchronous and a-synchronous timer events.
TGPopupMenu * GetPopupQry() const
TSessionDescription * fActDesc
const char * GetName() const
Return unique name, used in SavePrimitive methods.
void OnBtnRemoveClicked()
Remove selected package from the list.
virtual void SetIntNumber(Long_t val)
void SetAddress(const char *str)
TSessionFrame * fSessionFrame
TGPopupMenu * GetOptionsMenu() const
virtual ~TEditQueryFrame()
Delete query dialog.
TContextMenu * GetContextMenu() const
void OnBrowseChain()
Call new chain dialog.
void SetLocal(Bool_t local=kTRUE)
Switch widgets status/visibility for local/remote sessions.
void Progress(Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti)
TSessionOutputFrame * GetOutputFrame() const
void UpdateListOfProofs()
Update list of existing Proof sessions.
const TGPicture * GetBasePict() const
void UpdateFields(TQueryDescription *desc)
Update entry fields with query description values.
TGTextButton * fBtnShowEnabled
void Feedback(TList *objs)
Feedback function connected to Feedback signal.
void ShowInfo(const char *txt)
Display text in status bar.
static unsigned int total
void OnDisablePackages()
Disable selected package(s) in the current session.
void Build(TSessionViewer *gui)
Build query output information frame.
TGTextEntry * fTxtOptions
virtual ~TSessionServerFrame()
Destructor.
TGLVContainer * GetLVContainer()
void Modified(Bool_t mod=kTRUE)
Notify changes in query editor settings.
TQueryDescription * fDesc
void CheckAutoEnPack(Bool_t checked=kTRUE)
TGTextButton * fBtnRemoveDSet
void AddObject(TObject *obj)
Add object to output list view.
TSessionOutputFrame * fOutputFrame
void LogMessage(const char *msg, Bool_t all)
Load/append a log msg in the log frame.
Int_t GetLogLevel() const
void OnBtnShowLog()
Show query log.
void OnBtnUploadDSet()
Open Upload Dataset dialog.
void CloseWindow()
Close main Session Viewer window.
Bool_t IsAutoSave() const
TGNumberEntry * fNumFirstEntry
void OnClearPackages()
Clear (disable) all packages in the current session.
void SetConnectEnabled(Bool_t on=kTRUE)
TGTextButton * fBtnGetQueries
void OnBtnDisconnectClicked()
Disconnect from current Proof session.
void ShowPackages()
Query the list of uploaded packages from proof and display it into a new text window.
virtual void Build()
Build main session viewer frame and subframes.
TSessionInputFrame * fInputFrame
Mother of all ROOT objects.
Int_t GetLogLevel() const
TGListTreeItem * GetSessionItem() const
void UpdateListOfSessions()
Update list of existing Proof sessions.
TGTextButton * fBtnUploadDSet
TGListTreeItem * fSessionItem
TGHProgressBar * GetConnectProg() const
void SetName(const char *str)
const TGPicture * GetQueryDisconPict() const
R__EXTERN TSessionViewer * gSessionViewer
const char * GetName() const
Returns name of object.
A chain is a collection of files containg TTree objects.
TSessionQueryFrame(TGWindow *parent, Int_t w, Int_t h)
Constructor.
TGTextButton * fBtnFinalize
void QueryResultReady(char *query)
Handle signal "query result ready" coming from Proof session.
virtual Long_t GetIntNumber() const
TGPopupMenu * GetPopupSrv() const
TGTextView * fInfoTextView
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages for session server frame.
const TGPicture * GetQueryConPict() const
void ReadConfiguration(const char *filename=0)
Read configuration file and populate list of sessions list of queries and list of packages...
Bool_t HandleTimer(TTimer *)
Handle animation timer.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line...
void OnBtnFinalize()
Finalize query.
void OnBtnUpClicked()
Move selected package entry one position up in the list.
void OnEnablePackages()
Enable selected package(s) in the current session.
TGTextButton * fBtnVerifyDSet
TGTextEntry * fTxtQueryName
TGTextButton * fBtnSubmit
void ResetSession()
Reset Proof session.
ESessionQueryStatus fStatus
const TGPicture * fQueryCon
TGTextButton * fBtnRefresh
void EnableTimer()
Enable animation timer.
TGTextEntry * fTxtParallel
void SettingsChanged()
Settings have changed, update GUI accordingly.
void StartViewer()
Start TreeViewer from selected TChain.
void OnMultipleSelection(Bool_t on)
Handle multiple selection check button.
void UpdateListOfDataSets()
Update list of dataset present on the cluster.
TGNumberEntry * fLogLevel
TCanvas * GetStatsCanvas() const
void OnBtnVerifyDSet()
Verify that the files in the selected dataset are present on the cluster.
const TGPicture * GetProofDisconPict() const
TSessionLogView * fLogWindow