v2.10-0 (21000JUN2005)

Go4GUI
Class TGo4MainWindow


class TGo4MainWindow
derived from QMainWindow

This is the Go4 Main Window

Author:
Mohammad Al-Turany, modifications J.Adamczewski
Version: 1.0
Since: 15.05.2002

Field Summary
 protected boolfbCrosshairMode
           
 protected boolfbLocalMode
           
 protected intfiCrosshairId
           
 protected intfiMasterMode
           
 protected intfiPadcolorB
           
 protected intfiPadcolorG
           
 protected intfiPadcolorR
           
 protected TGo4AnalysisWindow*fxAnalysisShell
           
 protected QStringfxSettingsfolder
           
 protected TGo4AnalysisStatusMonitor*fxTGo4AnalysisStatusMonitor
           
 protected TGo4DividePad*fxTGo4DividePad
           
 protected TGo4DockBrowsers*fxTGo4DockBrowsers
           
 protected TGo4FitPanel*fxTGo4FitPanel
           
 protected TGo4GUIRegistry*fxTGo4GUIRegistry
           
 protected TGo4HisDrawOptions*fxTGo4HisDrawOptions
           
 protected TGo4LogInfo*fxTGo4LogInfo
           
 protected QWidget*fxTGo4MainUserPanel
           
 protected TGo4ScaleOptions*fxTGo4ScaleOptions
           
 protected TGo4Style*fxTGo4Style
           
 protected TGo4TreeViewer*fxTGo4TreeViewer
           
 protected TGo4WorkSpace*fxTGo4WorkSpace
           
 protected QStringfxToolsfile
           
 protected QSizefxViewpanelSize
           
 protected TIterator*fxWinConIterator
           
 protected TList*fxWinConSlotList
           
 protected TGo4QDockWindow*LogInfoPanel
           
 protected QFontm_font
           
 protected QPopupMenu*SettingMenu
           
 :voidaboutslots
           
 protected QPopupMenu*windowsMenu
           

Destructor Summary
 private virtual synchronized ~TGo4MainWindow()
           

Method Summary
 voidaboutQt()
           
 voidaboutROOT()
           
 voidActivePadChanged(TGo4PreviewPanel* fxView, TPad* Pad)
           
 voidAddAnalysisBar()
           
 voidAddAnalysisMenu()
           
 voidAddDrawBar()
           
 voidAddFileMenu()
           
 voidAddFileToolBar()
           
 voidAddScriptToolBar()
           
 voidAddSettingMenu()
           
 voidAddToolsBar()
           
 voidAddToolsMenu()
           
 voidAnalysisConfigAppearance(int mode)
           
 voidAnalysisConfigSlot()
           
 private const TGo4AnalysisWindow*AnalysisShell()
           
 TGo4AnalysisStatusMonitor*AnalysisStatusSlot()
           
 protected intAssignRootColors()
          Assign pad background according to fiPadColor values in
root colormap.
 voidCanvasColorSlot()
           
 private boolCheckHistogram(const char * name, TH1* hist)
          test histogram of name is in one of the browser lists
 private boolCheckViewpanel(TGo4PreviewPanel* pan)
          test if viewpanel reference pan is still in workspace
 voidclearAnalysis()
           
 voidclearLog()
           
 voidCloseAllFilesSlot()
           
 voidCloseAllWindows()
           
 voidCloseBrowsers()
           
 voidcloseEvent(QCloseEvent* ce)
           
 voidCloseFileSlot()
           
 private voidCloseFitPanel()
           
 voidConditionEditSlot(const char * condname, TGo4PreviewPanel* pan)
           
 TGo4ConditionInfo*ConditionInfoSlot(const char * condname)
           
 voidCreateGUIScriptSlot()
           
 voidCreateNewHist()
           
 voidCrosshairSlot()
           
 voidDivideCanvasSlot()
           
 private const TGo4DockBrowsers*DockBrowsers()
           
 voidDrawOptionsSlot()
           
 voidEditCopySlot()
           
 voidEventInfoSlot(const char * evename)
           
 voidExitSlot()
           
 voidExportSelectedObjectsSlot()
           
 voidFitHelpSlot()
           
 TGo4FitPanel*FitPanelSlot()
           
 voidGo4BrowsersSlot()
           
 voidGo4TreeViewerSlot()
           
 TGo4HistogramInfo*HistogramInfoSlot(const char * hisname)
           
 private voidHotStart(const char * fname)
           
 private voidinit()
           
 voidInputTerminalParametersSlot()
           
 voidIntroHelpSlot()
           
 voidKillAnalysisSlot()
           
 voidlaunchClientSlot()
           
 voidLoadLibrarySlot()
           
 voidLogPanelSlot()
           
 voidLogSettingsSlot()
           
 voidmakeStyle(const QString& )
           
 voidMinAllWindows()
           
 voidMouseClick(TGo4PreviewPanel* view, TPad* pad)
           
 voidOpenFileSlot()
           
 voidOpenRemoteFileSlot()
           
 voidRefHelpSlot()
           
 private voidRegisterWindowEditSlots(TGo4WindowEditSlots* slot)
           
 private voidRememberViewpanelSize(TGo4PreviewPanel* fxView)
           
 voidRemoteInfoSlot()
           
 voidRemoveClientSlot()
           
 voidRestartAnalysisSlot()
           
 voidSaveAnalysisWindow()
           
 voidSaveFileSlot()
           
 voidSaveLogSlot()
           
 voidsaveOptions()
           
 voidScaleOptionsSlot()
           
 voidsetFonts()
           
 protected voidSetMainCaption(int mode)
          Set caption to proper master mode
 voidSetMasterMode(int mode)
          Set look of mainwindow according to mode
(observer=1, controller=2, admin=3)
 private voidShowAnylsisOutput(const char * commandline)
           
 voidShutdownSlaveSlot()
           
 voidStartAnalysisSlot()
           
 voidStartAnalysisWin(bool force)
           
 voidStartDynEditor()
           
 voidStartGUIScriptSlot()
           
 voidStartParaEdit()
           
 protected boolstartUserGUI(const char * )
           
 private voidStatusMessage(const QString& mess)
           
 voidStopAnalysisSlot()
           
 voidStopGUIScriptSlot()
           
 voidStopMonitoring()
           
 voidStyleSlot()
           
 voidSubmitStartAnalysisSlot()
           
 private static QPixmapuic_load_pixmap(const QString& name)
           
 private voidUnregisterWindowEditSlots(TGo4WindowEditSlots* slot)
           
 voidUserPanelSlot()
           
 TGo4PreviewPanel*ViewPanelSlot(int div)
           
 voidWindowActivatedSlot(QWidget* w)
           
 voidwindowsMenuAboutToShow()
           
 voidwindowsMenuActivated(int id)
           
 voidWorkSpaceNewChild(TGo4PreviewPanel* Obj)
           
 voidWorkSpaceRemovedChild(TGo4PreviewPanel* Obj)
           

Field Detail

fbCrosshairMode

protected bool fbCrosshairMode

fbLocalMode

protected bool fbLocalMode

fiCrosshairId

protected int fiCrosshairId

fiMasterMode

protected int fiMasterMode

fiPadcolorB

protected int fiPadcolorB

fiPadcolorG

protected int fiPadcolorG

fiPadcolorR

protected int fiPadcolorR

fxAnalysisShell

protected TGo4AnalysisWindow* fxAnalysisShell

fxSettingsfolder

protected QString fxSettingsfolder

fxTGo4AnalysisStatusMonitor

protected TGo4AnalysisStatusMonitor* fxTGo4AnalysisStatusMonitor

fxTGo4DividePad

protected TGo4DividePad* fxTGo4DividePad

fxTGo4DockBrowsers

protected TGo4DockBrowsers* fxTGo4DockBrowsers

fxTGo4FitPanel

protected TGo4FitPanel* fxTGo4FitPanel

fxTGo4GUIRegistry

protected TGo4GUIRegistry* fxTGo4GUIRegistry

fxTGo4HisDrawOptions

protected TGo4HisDrawOptions* fxTGo4HisDrawOptions

fxTGo4LogInfo

protected TGo4LogInfo* fxTGo4LogInfo

fxTGo4MainUserPanel

protected QWidget* fxTGo4MainUserPanel

fxTGo4ScaleOptions

protected TGo4ScaleOptions* fxTGo4ScaleOptions

fxTGo4Style

protected TGo4Style* fxTGo4Style

fxTGo4TreeViewer

protected TGo4TreeViewer* fxTGo4TreeViewer

fxTGo4WorkSpace

protected TGo4WorkSpace* fxTGo4WorkSpace

fxToolsfile

protected QString fxToolsfile

fxViewpanelSize

protected QSize fxViewpanelSize

fxWinConIterator

protected TIterator* fxWinConIterator

fxWinConSlotList

protected TList* fxWinConSlotList

LogInfoPanel

protected TGo4QDockWindow* LogInfoPanel

m_font

protected QFont m_font

SettingMenu

protected QPopupMenu* SettingMenu

slots

public :voidabout slots

windowsMenu

protected QPopupMenu* windowsMenu
Method Detail

~TGo4MainWindow

private virtual synchronized ~TGo4MainWindow()
Method Detail

aboutQt

public void aboutQt()

aboutROOT

public void aboutROOT()

ActivePadChanged

public void ActivePadChanged(TGo4PreviewPanel* fxView, TPad* Pad)

AddAnalysisBar

public void AddAnalysisBar()

AddAnalysisMenu

public void AddAnalysisMenu()

AddDrawBar

public void AddDrawBar()

AddFileMenu

public void AddFileMenu()

AddFileToolBar

public void AddFileToolBar()

AddScriptToolBar

public void AddScriptToolBar()

AddSettingMenu

public void AddSettingMenu()

AddToolsBar

public void AddToolsBar()

AddToolsMenu

public void AddToolsMenu()

AnalysisConfigAppearance

public void AnalysisConfigAppearance(int mode)

AnalysisConfigSlot

public void AnalysisConfigSlot()

AnalysisShell

private const TGo4AnalysisWindow* AnalysisShell()

AnalysisStatusSlot

public TGo4AnalysisStatusMonitor* AnalysisStatusSlot()

AssignRootColors

protected int AssignRootColors()
Assign pad background according to fiPadColor values in
root colormap. Also Assing the bright and dark shading
colors. Return root color number

CanvasColorSlot

public void CanvasColorSlot()

CheckHistogram

private bool CheckHistogram(const char * name, TH1* hist)
test histogram of name is in one of the browser lists

CheckViewpanel

private bool CheckViewpanel(TGo4PreviewPanel* pan)
test if viewpanel reference pan is still in workspace

clearAnalysis

public void clearAnalysis()

clearLog

public void clearLog()

CloseAllFilesSlot

public void CloseAllFilesSlot()

CloseAllWindows

public void CloseAllWindows()

CloseBrowsers

public void CloseBrowsers()

closeEvent

public void closeEvent(QCloseEvent* ce)

CloseFileSlot

public void CloseFileSlot()

CloseFitPanel

private void CloseFitPanel()

ConditionEditSlot

public void ConditionEditSlot(const char * condname, TGo4PreviewPanel* pan)

ConditionInfoSlot

public TGo4ConditionInfo* ConditionInfoSlot(const char * condname)

CreateGUIScriptSlot

public void CreateGUIScriptSlot()

CreateNewHist

public void CreateNewHist()

CrosshairSlot

public void CrosshairSlot()

DivideCanvasSlot

public void DivideCanvasSlot()

DockBrowsers

private const TGo4DockBrowsers* DockBrowsers()

DrawOptionsSlot

public void DrawOptionsSlot()

EditCopySlot

public void EditCopySlot()

EventInfoSlot

public void EventInfoSlot(const char * evename)

ExitSlot

public void ExitSlot()

ExportSelectedObjectsSlot

public void ExportSelectedObjectsSlot()

FitHelpSlot

public void FitHelpSlot()

FitPanelSlot

public TGo4FitPanel* FitPanelSlot()

Go4BrowsersSlot

public void Go4BrowsersSlot()

Go4TreeViewerSlot

public void Go4TreeViewerSlot()

HistogramInfoSlot

public TGo4HistogramInfo* HistogramInfoSlot(const char * hisname)

HotStart

private void HotStart(const char * fname)

init

private void init()

InputTerminalParametersSlot

public void InputTerminalParametersSlot()

IntroHelpSlot

public void IntroHelpSlot()

KillAnalysisSlot

public void KillAnalysisSlot()

launchClientSlot

public void launchClientSlot()

LoadLibrarySlot

public void LoadLibrarySlot()

LogPanelSlot

public void LogPanelSlot()

LogSettingsSlot

public void LogSettingsSlot()

makeStyle

public void makeStyle(const QString& )

MinAllWindows

public void MinAllWindows()

MouseClick

public void MouseClick(TGo4PreviewPanel* view, TPad* pad)

OpenFileSlot

public void OpenFileSlot()

OpenRemoteFileSlot

public void OpenRemoteFileSlot()

RefHelpSlot

public void RefHelpSlot()

RegisterWindowEditSlots

private void RegisterWindowEditSlots(TGo4WindowEditSlots* slot)

RememberViewpanelSize

private void RememberViewpanelSize(TGo4PreviewPanel* fxView)

RemoteInfoSlot

public void RemoteInfoSlot()

RemoveClientSlot

public void RemoveClientSlot()

RestartAnalysisSlot

public void RestartAnalysisSlot()

SaveAnalysisWindow

public void SaveAnalysisWindow()

SaveFileSlot

public void SaveFileSlot()

SaveLogSlot

public void SaveLogSlot()

saveOptions

public void saveOptions()

ScaleOptionsSlot

public void ScaleOptionsSlot()

setFonts

public void setFonts()

SetMainCaption

protected void SetMainCaption(int mode)
Set caption to proper master mode

SetMasterMode

public void SetMasterMode(int mode)
Set look of mainwindow according to mode
(observer=1, controller=2, admin=3)

ShowAnylsisOutput

private void ShowAnylsisOutput(const char * commandline)

ShutdownSlaveSlot

public void ShutdownSlaveSlot()

StartAnalysisSlot

public void StartAnalysisSlot()

StartAnalysisWin

public void StartAnalysisWin(bool force)

StartDynEditor

public void StartDynEditor()

StartGUIScriptSlot

public void StartGUIScriptSlot()

StartParaEdit

public void StartParaEdit()

startUserGUI

protected bool startUserGUI(const char * )

StatusMessage

private void StatusMessage(const QString& mess)

StopAnalysisSlot

public void StopAnalysisSlot()

StopGUIScriptSlot

public void StopGUIScriptSlot()

StopMonitoring

public void StopMonitoring()

StyleSlot

public void StyleSlot()

SubmitStartAnalysisSlot

public void SubmitStartAnalysisSlot()

uic_load_pixmap

private static QPixmap uic_load_pixmap(const QString& name)

UnregisterWindowEditSlots

private void UnregisterWindowEditSlots(TGo4WindowEditSlots* slot)

UserPanelSlot

public void UserPanelSlot()

ViewPanelSlot

public TGo4PreviewPanel* ViewPanelSlot(int div)

WindowActivatedSlot

public void WindowActivatedSlot(QWidget* w)

windowsMenuAboutToShow

public void windowsMenuAboutToShow()

windowsMenuActivated

public void windowsMenuActivated(int id)

WorkSpaceNewChild

public void WorkSpaceNewChild(TGo4PreviewPanel* Obj)

WorkSpaceRemovedChild

public void WorkSpaceRemovedChild(TGo4PreviewPanel* Obj)

Association Links

to Class TGo4WorkSpace

to Class TGo4GUIRegistry

to Class TGo4QDockWindow

to Class TGo4AnalysisWindow

to Class TList

to Class TIterator


J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005