13#ifndef ROOT_TSessionViewer
14#define ROOT_TSessionViewer
432 evtrti, mbrti, -1, -1, -1.); }
571 virtual void Build();
625 void ShowLog(
const char *queryref);
#define ClassDefOverride(name, id)
static unsigned int total
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
@ kMenuRemoveFromFeedback
R__EXTERN TSessionViewer * gSessionViewer
A chain is a collection of files containing TTree objects.
This class implements a data set to be used for PROOF processing.
void UpdateFields(TQueryDescription *desc)
Update entry fields with query description values.
TGTextEntry * fTxtParFile
TGNumberEntry * fNumEntries
TGTextEntry * fTxtQueryName
void OnNewQueryMore()
Show/hide options frame and update button text accordingly.
TGNumberEntry * fNumFirstEntry
void SettingsChanged()
Settings have changed, update GUI accordingly.
TQueryDescription * fQuery
void OnBrowseEventList()
Browse event list.
TGTextEntry * fTxtEventList
void Build(TSessionViewer *gui)
Build the "new query" dialog.
~TEditQueryFrame() override
Delete query dialog.
void OnElementSelected(TObject *obj)
Handle OnElementSelected signal coming from new chain dialog.
TGCompositeFrame * fFrmMore
TGTextEntry * fTxtSelector
void OnBrowseSelector()
Open file browser to choose selector macro.
void OnBtnSave()
Save current settings in main session viewer.
void OnBrowseChain()
Call new chain dialog.
TGTextEntry * fTxtOptions
The TEnv class reads config files, by default named .rootrc.
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void ShowFrame(TGFrame *f)
Show sub frame.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
void RemoveAll() override
Remove all items from the container.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
A composite frame that layout their children in horizontal way.
This class handles GUI icons.
This class handles GUI labels.
A listbox is a box, possibly with scrollbar, containing entries.
A list tree is a widget that can contain a number of items arranged in a tree structure.
A list view is a widget that can contain a number of items arranged in a grid or list.
Defines top level windows that interact with the system Window Manager.
TGNumberEntry is a number entry input widget with up/down buttons.
virtual void SetIntNumber(Long_t val, Bool_t emit=kTRUE)
virtual Long_t GetIntNumber() const
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Provides a StatusBar widget.
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
A layout manager, which places child frames in a table arranged in rows and columns,...
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
const char * GetText() const
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.
A TGTextView is a text viewer widget.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.
Mother of all ROOT objects.
const char * GetName() const override
Returns name of object.
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session,...
This class controls a Parallel ROOT Facility, PROOF, cluster.
ESessionQueryStatus fStatus
const char * GetName() const override
Returns name of object.
A container class for query results.
This class creates a TGCanvas in which a TCanvas is created.
const char * GetName() const override
Returns name of object.
TQueryDescription * fActQuery
TGTextButton * fBtnShowLog
TGTextButton * fBtnUploadDSet
TGCheckButton * fChkEnable
TGTextButton * fBtnEnable
TGNumberEntry * fLogLevel
void OnBtnShowLogClicked()
Show session log.
void OnBtnDisconnectClicked()
Disconnect from current Proof session.
void OnBtnRemoveClicked()
Remove selected package from the list.
void UpdatePackages()
Update list of packages.
TGTextButton * fBtnDisable
TGTextButton * fBtnShowEnabled
void OnUploadPackages()
Upload selected package(s) to the current session.
TGTextButton * fBtnUpload
TGTextButton * fBtnRefresh
void OnBtnAddClicked()
Open file dialog and add selected package file to the list.
Int_t GetLogLevel() const
TGTextEntry * fCommandTxt
TGTextButton * fBtnRemoveDSet
~TSessionFrame() override
Destructor.
void OnBtnRemoveDSet()
Remove dataset from the list and from the cluster.
void OnCommandLine()
Command line handling.
void OnDisablePackages()
Disable selected package(s) in the current session.
void OnBtnNewQueryClicked()
Call "New Query" Dialog.
void OnApplyLogLevel()
Apply selected log level on current session.
TGCheckButton * fClearCheck
void Build(TSessionViewer *gui)
Build session frame.
TGTextButton * fBtnNewQuery
TGTextButton * fApplyLogLevel
void OnBtnVerifyDSet()
Verify that the files in the selected dataset are present on the cluster.
void OnBtnUploadDSet()
Open Upload Dataset dialog.
TGTextBuffer * fCommandBuf
void OnBtnDownClicked()
Move selected package entry one position down in the list.
void OnBtnUpClicked()
Move selected package entry one position up in the list.
void OnStartupEnable(Bool_t on)
Handle multiple selection check button.
void OnBtnGetQueriesClicked()
Get list of queries from current Proof server and populate the list tree.
TGTextView * fInfoTextView
TGCheckButton * fChkMulti
void OnMultipleSelection(Bool_t on)
Handle multiple selection check button.
void UpdateListOfDataSets()
Update list of dataset present on the cluster.
TGTextEntry * fTxtParallel
TGTextButton * fBtnRemove
void OnClearPackages()
Clear (disable) all packages in the current session.
void ShutdownSession()
Shutdown current session.
TGTextButton * fBtnVerifyDSet
TGListTree * fDataSetTree
void ProofInfos()
Display information on current session.
TGTextButton * fBtnGetQueries
void SetLocal(Bool_t local=kTRUE)
Switch widgets status/visibility for local/remote sessions.
void OnApplyParallel()
Apply selected number of workers on current Proof session.
TGTextButton * fApplyParallel
void CheckAutoEnPack(Bool_t checked=kTRUE)
void SetLogLevel(Int_t log)
void OnEnablePackages()
Enable selected package(s) in the current session.
Dialog used to display session logs from the session viewer.
~TSessionOutputFrame() override
Destructor.
TGLVContainer * fLVContainer
void Build(TSessionViewer *gui)
Build query output information frame.
void RemoveAll() override
Remove all frames from composite frame.
void OnElementDblClicked(TGLVEntry *entry, Int_t btn, Int_t x, Int_t y)
Handle double-clicks on list view items.
TGLVContainer * GetLVContainer()
void OnElementClicked(TGLVEntry *entry, Int_t btn, Int_t x, Int_t y)
Handle mouse clicks on list view items.
void AddObject(TObject *obj)
Add object to output list view.
void UpdateInfos()
Update query information (header) text view.
TGTextButton * fBtnShowLog
void Progress(Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti)
void Build(TSessionViewer *gui)
Build query information frame.
TRootEmbeddedCanvas * fECanvas
void UpdateHistos(TList *objs)
Update feedback histograms.
void Progress(Long64_t total, Long64_t processed)
Update progress bar and status labels.
void Feedback(TList *objs)
Feedback function connected to Feedback signal.
void OnBtnSubmit()
Submit query.
void ProgressLocal(Long64_t total, Long64_t processed)
Update progress bar and status labels.
TEditQueryFrame * GetQueryEditFrame() const
TGTextButton * fBtnSubmit
void OnBtnFinalize()
Finalize query.
void OnBtnStop()
Stop processing query.
void Modified(Bool_t mod=kTRUE)
Notify changes in query editor settings.
void IndicateStop(Bool_t aborted)
Indicate that Cancel or Stop was clicked.
~TSessionQueryFrame() override
Destructor.
TGTextButton * fBtnRetrieve
void ResetProgressDialog(const char *selec, Int_t files, Long64_t first, Long64_t entries)
Reset progress frame information fields.
TQueryDescription * fDesc
TGTextView * fInfoTextView
void UpdateButtons(TQueryDescription *desc)
Update buttons state for the current query status.
void OnBtnShowLog()
Show query log.
TCanvas * GetStatsCanvas() const
void OnBtnAbort()
Abort processing query.
TGTextButton * fBtnFinalize
void OnBtnRetrieve()
Retrieve query.
void SetUserName(const char *str)
const char * GetConfigText() const
TGTextButton * fBtnConnect
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process messages for session server frame.
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
void SetSync(Bool_t sync)
const char * GetAddress() const
void OnBtnAddClicked()
Add newly created session configuration in the list of sessions.
void OnBtnDeleteClicked()
Delete selected session configuration (remove it from the list).
~TSessionServerFrame() override
Destructor.
void SetConfigText(const char *str)
void SetAddEnabled(Bool_t on=kTRUE)
void SetPortNumber(Int_t port)
const char * GetUserName() const
void SetLogLevel(Int_t log)
TGNumberEntry * fLogLevel
void SetConnectEnabled(Bool_t on=kTRUE)
Int_t GetLogLevel() const
void OnBtnNewServerClicked()
Reset server configuration fields.
TGTextEntry * fTxtAddress
void OnConfigFileClicked()
Browse configuration files.
TGCompositeFrame * fFrmNewServer
void Build(TSessionViewer *gui)
Build server configuration frame.
void SettingsChanged()
Settings have changed, update GUI accordingly.
void OnBtnConnectClicked()
Connect to selected server.
void SetName(const char *str) override
TGTextEntry * fTxtUsrName
void SetAddress(const char *str)
Bool_t HandleExpose(Event_t *event) override
Handle expose event in server frame.
Int_t GetPortNumber() const
void Update(TSessionDescription *desc)
Update fields with values from session description desc.
Widget used to manage PROOF or local sessions, PROOF connections, queries construction and results ha...
void EditQuery()
Edit currently selected query.
TSessionQueryFrame * GetQueryFrame() const
void ShowPackages()
Query the list of uploaded packages from proof and display it into a new text window.
TSessionOutputFrame * fOutputFrame
TGListTree * GetSessionHierarchy() const
const TGPicture * GetBasePict() const
const TGPicture * GetLocalPict() const
const TGPicture * fQueryDiscon
void SetBusy(Bool_t busy=kTRUE)
const TGPicture * GetProofConPict() const
const TGPicture * GetQueryDisconPict() const
TGPopupMenu * fCascadeMenu
TGPopupMenu * GetOptionsMenu() const
void StartViewer()
Start TreeViewer from selected TChain.
TGHProgressBar * fConnectProg
TGPopupMenu * GetPopupSrv() const
void LogMessage(const char *msg, Bool_t all)
Load/append a log msg in the log frame.
void UpdateListOfProofs()
Update list of existing Proof sessions.
const TGPicture * fQueryCon
TGListTreeItem * fSessionItem
void UpdateListOfPackages()
Update the list of packages.
void SetLogWindow(TSessionLogView *log)
void OnListTreeClicked(TGListTreeItem *entry, Int_t btn, Int_t x, Int_t y)
Handle mouse clicks in list tree.
TSessionFrame * GetSessionFrame() const
virtual void Build()
Build main session viewer frame and subframes.
TContextMenu * GetContextMenu() const
void MyHandleMenu(Int_t)
Handle session viewer custom popup menus.
TSessionDescription * fActDesc
Bool_t HandleTimer(TTimer *) override
Handle animation timer.
void ReadConfiguration(const char *filename=nullptr)
Read configuration file and populate list of sessions list of queries and list of packages.
void ShowInfo(const char *txt)
Display text in status bar.
TSessionOutputFrame * GetOutputFrame() const
TGPopupMenu * GetCascadeMenu() const
const TGPicture * fBaseIcon
void ShowEnabledPackages()
Query list of enabled packages from proof and display it into a new text window.
void QueryResultReady(char *query)
Handle signal "query result ready" coming from Proof session.
TGListTreeItem * GetSessionItem() const
TSessionServerFrame * GetServerFrame() const
void OnListTreeDoubleClicked(TGListTreeItem *entry, Int_t btn)
Handle mouse double clicks in list tree (connect to server).
Bool_t IsAutoSave() const
const TGPicture * GetQueryConPict() const
const TGPicture * fProofCon
TSessionFrame * fSessionFrame
TGPopupMenu * fSessionMenu
TSessionInputFrame * fInputFrame
void CloseWindow() override
Close main Session Viewer window.
TGStatusBar * GetStatusBar() const
void CleanupSession()
Clean-up Proof session.
TSessionDescription * GetActDesc() const
void EnableTimer()
Enable animation timer.
void WriteConfiguration(const char *filename=nullptr)
Save actual configuration in config file "filename".
TGListTree * fSessionHierarchy
void UpdateListOfSessions()
Update list of existing Proof sessions.
TSessionLogView * fLogWindow
TContextMenu * fContextMenu
void SetChangePic(Bool_t change)
const TGPicture * GetProofDisconPict() const
TGPopupMenu * fOptionsMenu
TGHProgressBar * GetConnectProg() const
void ShowLog(const char *queryref)
Display the content of the temporary log file for queryref into a new text window.
TSessionServerFrame * fServerFrame
~TSessionViewer() override
Destructor.
TSessionInputFrame * GetInputFrame() const
void OnCascadeMenu()
Handle feedback histograms configuration menu.
const TGPicture * fProofDiscon
void DisableTimer()
Disable animation timer.
void DeleteQuery()
Delete query from list tree and ask user if they want to delete it also from server.
void Terminate()
Terminate Session : save configuration, clean temporary files and close Proof connections.
TSessionQueryFrame * fQueryFrame
TList * GetSessions() const
void ShowStatus()
Retrieve and display Proof status.
void ChangeRightLogo(const char *name)
Change the right logo (used for animation).
void StartupMessage(char *msg, Bool_t stat, Int_t curr, Int_t total)
Handle startup message (connection progress) coming from Proof session.
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t) override
Handle messages send to the TSessionViewer object.
void ResetSession()
Reset Proof session.
TGPicture * fRightIconPicture
TGPopupMenu * GetPopupQry() const
Basic time type with millisecond precision.
Handles synchronous and a-synchronous timer events.