| library: libTreeViewer #include "TSessionViewer.h"
 | 
TSessionViewer
class description - source file - inheritance tree (.pdf)
    public:
                           TSessionViewer(const char* title = "ROOT Session Viewer", UInt_t w = 550, UInt_t h = 320)
                           TSessionViewer(const char* title, Int_t x, Int_t y, UInt_t w, UInt_t h)
                           TSessionViewer(const TSessionViewer&)
                   virtual ~TSessionViewer()
              virtual void Build()
                      void ChangeRightLogo(const char* name)
            static TClass* Class()
                      void CleanupSession()
              virtual void CloseWindow()
                      void DeleteQuery()
                      void DisableTimer()
                      void EditQuery()
                      void EnableTimer()
      TSessionDescription* GetActDesc() const
          const TGPicture* GetBasePict() const
              TGPopupMenu* GetCascadeMenu() const
           TGHProgressBar* GetConnectProg() const
             TContextMenu* GetContextMenu() const
       TSessionInputFrame* GetInputFrame() const
          const TGPicture* GetLocalPict() const
              TGPopupMenu* GetOptionsMenu() const
      TSessionOutputFrame* GetOutputFrame() const
              TGPopupMenu* GetPopupQry() const
              TGPopupMenu* GetPopupSrv() const
          const TGPicture* GetProofConPict() const
          const TGPicture* GetProofDisconPict() const
          const TGPicture* GetQueryConPict() const
          const TGPicture* GetQueryDisconPict() const
       TSessionQueryFrame* GetQueryFrame() const
      TSessionServerFrame* GetServerFrame() const
            TSessionFrame* GetSessionFrame() const
               TGListTree* GetSessionHierarchy() const
           TGListTreeItem* GetSessionItem() const
                    TList* GetSessions() const
              TGStatusBar* GetStatusBar() const
            virtual Bool_t HandleTimer(TTimer*)
           virtual TClass* IsA() const
                    Bool_t IsAutoSave() const
                    Bool_t IsBusy() const
                      void LogMessage(const char* msg, Bool_t all)
                      void MyHandleMenu(Int_t)
                      void OnCascadeMenu()
                      void OnListTreeClicked(TGListTreeItem* entry, Int_t btn, Int_t x, Int_t y)
                      void OnListTreeDoubleClicked(TGListTreeItem* entry, Int_t btn)
            virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)
                      void QueryResultReady(char* query)
                      void ReadConfiguration(const char* filename = "0")
                      void SetBusy(Bool_t busy = kTRUE)
                      void SetChangePic(Bool_t change)
                      void SetLogWindow(TSessionLogView* log)
                      void ShowEnabledPackages()
                      void ShowInfo(const char* txt)
                      void ShowLog(const char* queryref)
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
                      void ShowPackages()
                      void ShowStatus()
                      void StartupMessage(char* msg, Bool_t stat, Int_t curr, Int_t total)
                      void StartViewer()
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
                      void UpdateListOfProofs()
                      void UpdateListOfSessions()
                      void WriteConfiguration(const char* filename = "0")
    private:
                    time_t fStart             
                    time_t fElapsed           time of connection
                    Bool_t fChangePic         KTRUE if animation active
                    Bool_t fBusy              KTRUE if busy i.e : connecting
        TGHorizontalFrame* fHf                
          TGVerticalFrame* fV1                
          TGVerticalFrame* fV2                
      TSessionServerFrame* fServerFrame       right side server frame
            TSessionFrame* fSessionFrame      right side session frame
       TSessionQueryFrame* fQueryFrame        right side query frame
      TSessionOutputFrame* fOutputFrame       output frame
       TSessionInputFrame* fInputFrame        input frame
          TSessionLogView* fLogWindow         external log window
      TSessionDescription* fActDesc           actual session description
                    TList* fSessions          list of sessions
          const TGPicture* fLocal             local session icon picture
          const TGPicture* fProofCon          connected server icon picture
          const TGPicture* fProofDiscon       disconnected server icon picture
          const TGPicture* fQueryCon          connected(?) query icon picture
          const TGPicture* fQueryDiscon       disconnected(?) query icon picture
          const TGPicture* fBaseIcon          base list tree icon picture
                  TGFrame* fActFrame          actual (displayed) frame
                TGToolBar* fToolBar           application tool bar
                TGMenuBar* fMenuBar           application main menu bar
              TGPopupMenu* fFileMenu          file menu entry
              TGPopupMenu* fSessionMenu       session menu entry
              TGPopupMenu* fQueryMenu         query menu entry
              TGPopupMenu* fOptionsMenu       options menu entry
              TGPopupMenu* fCascadeMenu       options menu entry
              TGPopupMenu* fHelpMenu          help menu entry
              TGPopupMenu* fPopupSrv          server related popup menu
              TGPopupMenu* fPopupQry          query related popup menu
             TContextMenu* fContextMenu       input/output objects context menu
           TGHProgressBar* fConnectProg       connection progress bar
                 TGCanvas* fTreeView          main right sessions/queries tree view
               TGListTree* fSessionHierarchy  main sessions/queries hierarchy list tree
           TGListTreeItem* fSessionItem       base (main) session list tree item
              TGStatusBar* fStatusBar         bottom status bar
                TGPicture* fRightIconPicture  lower bottom left icon used to show connection status
                   TGIcon* fRightIcon         associated picture
                   TTimer* fTimer             timer used to change icon picture
              UserGroup_t* fUserGroup         user connected to session
                    Bool_t fAutoSave          kTRUE if config is to be saved on exit
                   TString fConfigFile        configuration file name
                     TEnv* fViewerEnv         viewer's configuration
                                                                      
 TSessionViewer                                                       
                                                                      
 Widget used to manage PROOF or local sessions, PROOF connections,    
 queries construction and results handling.                           
                                                                      
 TSessionViewer(const char *name, UInt_t w, UInt_t h) :
   TGMainFrame(gClient->GetRoot(), w, h), fSessionHierarchy(0), fSessionItem(0)
 Main Session viewer constructor.
 TSessionViewer(const char *name, Int_t x, Int_t y, UInt_t w,
                              UInt_t h) : TGMainFrame(gClient->GetRoot(), w, h),
                              fSessionHierarchy(0), fSessionItem(0)
 Main Session viewer constructor.
void ReadConfiguration(const char *filename)
 Read configuration file and populate list of sessions
 list of queries and list of packages.
 Read and set also global options as feedback histos.
void UpdateListOfProofs()
 Update list of existing Proof sessions.
void UpdateListOfSessions()
 Update list of existing Proof sessions.
void WriteConfiguration(const char *filename)
 Save actual configuration in config file "filename".
void Build()
 Build main session viewer frame and subframes.
 ~TSessionViewer()
 Destructor.
void OnListTreeClicked(TGListTreeItem *entry, Int_t btn,
                                       Int_t x, Int_t y)
 Handle mouse clicks in list tree.
void OnListTreeDoubleClicked(TGListTreeItem *entry, Int_t /*btn*/)
 Handle mouse double clicks in list tree (connect to server).
void CloseWindow()
 Close main Session Viewer window.
void ChangeRightLogo(const char *name)
 Change the right logo (used for animation).
void EnableTimer()
 Enable animation timer.
void DisableTimer()
 Disable animation timer.
Bool_t HandleTimer(TTimer *)
 Handle animation timer.
void LogMessage(const char *msg, Bool_t all)
 Load/append a log msg in the log frame.
void QueryResultReady(char *query)
 Handle signal "query result ready" coming from Proof session.
void CleanupSession()
 Clean-up Proof session.
void DeleteQuery()
 Delete query from list tree and ask user if he wants do delete it also
 from server.
void EditQuery()
 Edit currently selected query.
void StartViewer()
 Start TreeViewer from selected TChain.
void ShowPackages()
 Query the list of uploaded packages from proof and display it
 into a new text window.
void ShowEnabledPackages()
 Query list of enabled packages from proof and display it
 into a new text window.
void ShowLog(const char *queryref)
 Display the content of the temporary log file for queryref
 into a new text window.
void ShowInfo(const char *txt)
 Display text in status bar.
void ShowStatus()
 Retrieve and display Proof status.
void StartupMessage(char *msg, Bool_t, Int_t done, Int_t total)
 Handle startup message (connection progress) coming from Proof session.
void MyHandleMenu(Int_t id)
 Handle session viewer custom popup menus.
void OnCascadeMenu()
 Handle feedback histograms configuration menu.
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)
 Handle messages send to the TSessionViewer object. E.g. all menu entries
 messages.
Inline Functions
        TSessionServerFrame* GetServerFrame() const
              TSessionFrame* GetSessionFrame() const
         TSessionQueryFrame* GetQueryFrame() const
        TSessionOutputFrame* GetOutputFrame() const
         TSessionInputFrame* GetInputFrame() const
        TSessionDescription* GetActDesc() const
                      TList* GetSessions() const
                 TGListTree* GetSessionHierarchy() const
             TGListTreeItem* GetSessionItem() const
            const TGPicture* GetLocalPict() const
            const TGPicture* GetProofConPict() const
            const TGPicture* GetProofDisconPict() const
            const TGPicture* GetQueryConPict() const
            const TGPicture* GetQueryDisconPict() const
            const TGPicture* GetBasePict() const
                TGPopupMenu* GetPopupSrv() const
                TGPopupMenu* GetPopupQry() const
               TContextMenu* GetContextMenu() const
                TGStatusBar* GetStatusBar() const
             TGHProgressBar* GetConnectProg() const
                TGPopupMenu* GetCascadeMenu() const
                TGPopupMenu* GetOptionsMenu() const
                      Bool_t IsBusy() const
                      Bool_t IsAutoSave() const
                        void SetBusy(Bool_t busy = kTRUE)
                        void SetChangePic(Bool_t change)
                        void SetLogWindow(TSessionLogView* log)
                     TClass* Class()
                     TClass* IsA() const
                        void ShowMembers(TMemberInspector& insp, char* parent)
                        void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)
              TSessionViewer TSessionViewer(const TSessionViewer&)
Author: Marek Biskup, Jakub Madejczyk, Bertrand Bellenot 10/08/2005
Last update: root/treeviewer:$Name:  $:$Id: TSessionViewer.cxx
Copyright  (C) 1995-2005, 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.