GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TGo4AnalysisWindow Class Reference

#include <TGo4AnalysisWindow.h>

+ Inheritance diagram for TGo4AnalysisWindow:

Public Slots

void readFromStdout ()
 
void readFromStderr ()
 
void RequestTerminate ()
 
void ClearAnalysisOutput ()
 
void ScrollEndAnalysisOutput ()
 
void SaveAnalysisOutput ()
 
void FileDialog_Macro ()
 
void PrintHistograms ()
 
void PrintConditions ()
 
void PrintEvent ()
 
void CommandSlot ()
 
void updateTerminalOutput ()
 
- Public Slots inherited from QGo4Widget
void CloseMDIParentSlot ()
 

Public Member Functions

 TGo4AnalysisWindow (QWidget *parent=nullptr, const char *name=nullptr, bool needoutput=false, bool needkillbtn=true)
 
virtual ~TGo4AnalysisWindow ()
 
void SetHistorySize (int sz)
 
void StartAnalysisShell (const char *cmd, const char *workdir=nullptr, bool aschildprocess=false)
 
void TerminateAnalysisProcess ()
 
void AppendOutputBuffer (const QString &value, int prio=0)
 
void UpdateTimeStampFormat ()
 
void WorkWithUpdateObjectCmd (TGo4Slot *slot)
 
void WorkWithDebugOutput (TGo4Slot *slot)
 
void WaitForNewObject (bool isobjectforeditor)
 
bool HasOutput ()
 
bool HasLink () const
 
bool TerminateOnClose () const
 
- Public Member Functions inherited from QGo4Widget
 QGo4Widget (QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget)
 
virtual ~QGo4Widget ()
 
virtual bool IsAcceptDrag (const char *itemname, TClass *cl, int kind)
 
virtual void DropItem (const char *itemname, TClass *cl, int kind)
 
virtual void ResetWidget ()
 
void ObjectCreatedByWidget (const char *itemname, TClass *cl)
 
void ProcessSignal (const char *linkname, bool assigned, TObject *obj, TGo4Slot *slot)
 

Static Public Member Functions

static void ExtractProgArgs (QString &prog, QStringList &args)
 
- Static Public Member Functions inherited from QGo4Widget
static QAction * AddIdAction (QMenu *menu, QSignalMapper *map, const QString &text, int id, int enabled=-1, int checked=-1)
 
static QAction * AddIdAction (QMenu *menu, QSignalMapper *map, const QIcon &icon, const QString &text, int id, int enabled=-1, int checked=-1)
 
static QAction * CreateChkAction (QMenu *menu, const QString &text, bool checked, bool enabled=true)
 
static QAction * SetIdAction (QSignalMapper *map, int id, int enabled=-1, int checked=-1)
 

Protected Member Functions

void linkedObjectUpdated (const char *linkname, TObject *obj) override
 
void linkedObjectRemoved (const char *linkname) override
 
void resizeEvent (QResizeEvent *) override
 
void closeEvent (QCloseEvent *e) override
 
void CreateButtons (QHBoxLayout *, bool)
 
void CreateCmdLine (QHBoxLayout *)
 
void AddTimeStamp (QString &buf, int prio=0)
 
- Protected Member Functions inherited from QGo4Widget
void closeEvent (QCloseEvent *e) override
 
void dragEnterEvent (QDragEnterEvent *e) override
 
void dragMoveEvent (QDragMoveEvent *e) override
 
void dropEvent (QDropEvent *e) override
 
void AddLink (const char *itemname, const char *linkname)
 
void AddLink (TGo4Slot *slot, const char *linkname)
 
TGo4SlotAddLink (const char *itemname, TGo4Slot *parent)
 
TGo4SlotGetTopSlot (bool force=false)
 
TGo4SlotAddSlot (const char *slotname)
 
void SetLinkedName (TGo4Slot *slot, const char *itemname)
 
const char * GetLinkedName (const char *linkname)
 
const char * GetLinkedName (TGo4Slot *slot)
 
TObject * GetLinked (const char *linkname, int updatelevel=0)
 
template<class T >
T * GetLinkedCast (const char *linkname, int updatelevel=0)
 
void RemoveLink (const char *linkname, bool blockreset=true)
 
void RemoveAllLinks (bool blockreset=true)
 
void RemoveLinksMasked (const char *startedwith=nullptr, bool blockreset=true)
 
bool BrowserItemRemote (const char *itemname)
 
TGo4BrowserProxyBrowser ()
 
void StatusMessage (const QString &message)
 
void AskToCreateObject (TClass *cl, int isremote)
 
void ShowItemInfo (const QString &itemname)
 
TGo4ViewPanelCreateViewPanel (int ndiv=0)
 
TGo4ViewPanelDrawItem (const QString &itemname, TGo4ViewPanel *panel=nullptr, TPad *pad=nullptr, bool activate=true, int updatelevel=-1)
 
TGo4ViewPanelWhereItemDrawn (const char *itemname)
 
void HelpWindow (const char *filename, const char *msg=nullptr)
 
void UndrawItem (const char *itemname)
 
TGo4ViewPanelLastActivePanel ()
 
void EditItem (const QString &itemname)
 
void EditObjectInSlot (TGo4Slot *slot)
 
QString SaveObjectInMemory (const char *foldername, TObject *obj)
 
bool SaveItemToFile (const char *itemname, const char *subfolder=nullptr)
 
bool UpdateItemInAnalysis (const char *itemname, TObject *obj=nullptr)
 
void InformThatObjectCreated (const char *itemname, TClass *cl)
 
TGo4ServerProxyGetAnalysis (const char *itemname=nullptr)
 
void StartHotstart (const char *filename)
 
void ConnectPad (TPad *pad)
 
void CallServiceFunc (int id, const char *str=nullptr, void *par=nullptr)
 
void ServiceCall (const char *name, void *par=nullptr)
 
virtual void requestedObjectCreated (const char *itemname, TClass *cl)
 
virtual void linkedUpdated (TGo4Slot *slot, TObject *obj)
 
virtual void linkedRemoved (TGo4Slot *slot, TObject *obj)
 
void setCanDestroyWidget (bool on=true)
 
void CallPanelFunc (int id, TPad *pad=nullptr)
 
void ShootResetWidget ()
 
void ShootCloseWidget (bool closeparent=false)
 
bool IsUpdateBlocked () const
 

Protected Attributes

QProcess * fAnalysisProcess {nullptr}
 
QGo4CommandsHistoryfxCmdHist {nullptr}
 
QString outputBuffer
 
QTextEdit * fxOutput {nullptr}
 
unsigned int fiMaxOuputSize {0}
 
bool fbShowTimestamps {false}
 
QString fxTimeFormat
 
bool fNewObjectForEditor {false}
 
bool fHasLink {false}
 
bool fTerminateOnClose {false}
 

Additional Inherited Members

- Public Types inherited from QGo4Widget
enum  {
  service_DragEnter = 1, service_DropEvent = 2, service_CreateItem = 3, service_DrawItem = 4,
  service_EditItem = 5, service_ShowInfo = 6, service_EditInSlot = 7, service_SaveItem = 8,
  service_UpdateAnalysisItem = 9, service_StatusMessage = 15, service_CreateViewPanel = 17, service_BrowserItemRemote = 18,
  service_Browser = 19, service_SaveToMemory = 20, service_GetAnalysis = 21, service_AddEditorLink = 22,
  service_AddDirectLink = 23, service_AddLinkInSlot = 24, service_GetTopSlot = 25, service_AddEditorSlot = 26,
  service_SetLinkedName = 27, service_GetLinkedName = 28, service_GetLinkedName2 = 29, service_GetLinked0 = 30,
  service_GetLinked1 = 31, service_GetLinked2 = 32, service_RemoveLink = 33, service_RemoveAllLinks = 34,
  service_ObjectCreated = 35, service_ConnectPad = 36, service_LastActivePanel = 37, service_WhereItemDrawn = 38,
  service_UndrawItem = 39, service_General = 40, service_PanelTimer = 41, service_HelpWindow = 42,
  service_HotStart = 43, panel_Activated = 101, panel_Modified = 102, panel_Updated = 103,
  panel_ActiveUpdated = 104, panel_PadDeleted = 105, panel_Deleted = 106
}
 pointer on browser proxy More...
 
- Signals inherited from QGo4Widget
void widgetService (QGo4Widget *editor, int serviceid, const char *str, void *par)
 

Detailed Description

Definition at line 28 of file TGo4AnalysisWindow.h.

Constructor & Destructor Documentation

◆ TGo4AnalysisWindow()

TGo4AnalysisWindow::TGo4AnalysisWindow ( QWidget *  parent = nullptr,
const char *  name = nullptr,
bool  needoutput = false,
bool  needkillbtn = true 
)

◆ ~TGo4AnalysisWindow()

TGo4AnalysisWindow::~TGo4AnalysisWindow ( )
virtual

Definition at line 194 of file TGo4AnalysisWindow.cpp.

References QGo4Widget::CloseMDIParentSlot().

Member Function Documentation

◆ AddTimeStamp()

void TGo4AnalysisWindow::AddTimeStamp ( QString &  buf,
int  prio = 0 
)
protected

prepend timestamp in front of next terminal buffer. Depending on prio, stderr output can be marked as warning

Definition at line 273 of file TGo4AnalysisWindow.cpp.

References fxTimeFormat.

Referenced by AppendOutputBuffer(), and TerminateOnClose().

◆ AppendOutputBuffer()

void TGo4AnalysisWindow::AppendOutputBuffer ( const QString &  value,
int  prio = 0 
)

◆ ClearAnalysisOutput

void TGo4AnalysisWindow::ClearAnalysisOutput ( )
slot

◆ closeEvent()

void TGo4AnalysisWindow::closeEvent ( QCloseEvent *  e)
overrideprotected

Definition at line 547 of file TGo4AnalysisWindow.cpp.

Referenced by TerminateOnClose().

◆ CommandSlot

void TGo4AnalysisWindow::CommandSlot ( )
slot

◆ CreateButtons()

void TGo4AnalysisWindow::CreateButtons ( QHBoxLayout *  box,
bool  needkillbtn 
)
protected

◆ CreateCmdLine()

void TGo4AnalysisWindow::CreateCmdLine ( QHBoxLayout *  box)
protected

◆ ExtractProgArgs()

void TGo4AnalysisWindow::ExtractProgArgs ( QString &  prog,
QStringList &  args 
)
static

◆ FileDialog_Macro

void TGo4AnalysisWindow::FileDialog_Macro ( )
slot

Definition at line 421 of file TGo4AnalysisWindow.cpp.

References fxCmdHist.

Referenced by CreateCmdLine(), and TerminateOnClose().

◆ HasLink()

bool TGo4AnalysisWindow::HasLink ( ) const
inline

Definition at line 45 of file TGo4AnalysisWindow.h.

References fHasLink.

◆ HasOutput()

bool TGo4AnalysisWindow::HasOutput ( )

◆ linkedObjectRemoved()

void TGo4AnalysisWindow::linkedObjectRemoved ( const char *  linkname)
overrideprotectedvirtual

Reimplemented from QGo4Widget.

Definition at line 531 of file TGo4AnalysisWindow.cpp.

References fHasLink, HasOutput(), and QGo4Widget::ServiceCall().

Referenced by TerminateOnClose().

◆ linkedObjectUpdated()

void TGo4AnalysisWindow::linkedObjectUpdated ( const char *  linkname,
TObject *  obj 
)
overrideprotectedvirtual

◆ PrintConditions

void TGo4AnalysisWindow::PrintConditions ( )
slot

Definition at line 468 of file TGo4AnalysisWindow.cpp.

References CommandSlot(), and fxCmdHist.

Referenced by CreateButtons(), and TerminateOnClose().

◆ PrintEvent

void TGo4AnalysisWindow::PrintEvent ( )
slot

Definition at line 480 of file TGo4AnalysisWindow.cpp.

References QGo4Widget::ServiceCall().

Referenced by CreateButtons(), and TerminateOnClose().

◆ PrintHistograms

void TGo4AnalysisWindow::PrintHistograms ( )
slot

Definition at line 456 of file TGo4AnalysisWindow.cpp.

References CommandSlot(), and fxCmdHist.

Referenced by CreateButtons(), and TerminateOnClose().

◆ readFromStderr

void TGo4AnalysisWindow::readFromStderr ( )
slot

Definition at line 263 of file TGo4AnalysisWindow.cpp.

References AppendOutputBuffer(), and fAnalysisProcess.

Referenced by StartAnalysisShell(), and TerminateOnClose().

◆ readFromStdout

void TGo4AnalysisWindow::readFromStdout ( )
slot

Definition at line 253 of file TGo4AnalysisWindow.cpp.

References AppendOutputBuffer(), and fAnalysisProcess.

Referenced by StartAnalysisShell(), and TerminateOnClose().

◆ RequestTerminate

void TGo4AnalysisWindow::RequestTerminate ( )
slot

Definition at line 357 of file TGo4AnalysisWindow.cpp.

References QGo4Widget::ServiceCall().

Referenced by CreateButtons(), and TerminateOnClose().

◆ resizeEvent()

void TGo4AnalysisWindow::resizeEvent ( QResizeEvent *  e)
overrideprotected

Definition at line 539 of file TGo4AnalysisWindow.cpp.

References go4sett, HasOutput(), and TGo4QSettings::storePanelSize().

Referenced by TerminateOnClose().

◆ SaveAnalysisOutput

void TGo4AnalysisWindow::SaveAnalysisOutput ( )
slot

Definition at line 385 of file TGo4AnalysisWindow.cpp.

References fxOutput.

Referenced by TerminateOnClose(), and TGo4MainWindow::windowsMenuAboutToShow().

◆ ScrollEndAnalysisOutput

void TGo4AnalysisWindow::ScrollEndAnalysisOutput ( )
slot

Definition at line 379 of file TGo4AnalysisWindow.cpp.

References fxOutput.

Referenced by CreateButtons(), and TerminateOnClose().

◆ SetHistorySize()

void TGo4AnalysisWindow::SetHistorySize ( int  sz)

Definition at line 207 of file TGo4AnalysisWindow.cpp.

References fiMaxOuputSize.

Referenced by TGo4MainWindow::InputTerminalParametersSlot().

◆ StartAnalysisShell()

void TGo4AnalysisWindow::StartAnalysisShell ( const char *  cmd,
const char *  workdir = nullptr,
bool  aschildprocess = false 
)

◆ TerminateAnalysisProcess()

void TGo4AnalysisWindow::TerminateAnalysisProcess ( )

◆ TerminateOnClose()

bool TGo4AnalysisWindow::TerminateOnClose ( ) const
inline

◆ updateTerminalOutput

void TGo4AnalysisWindow::updateTerminalOutput ( )
slot

Definition at line 212 of file TGo4AnalysisWindow.cpp.

References fiMaxOuputSize, fxOutput, and outputBuffer.

Referenced by TerminateOnClose(), and TGo4AnalysisWindow().

◆ UpdateTimeStampFormat()

void TGo4AnalysisWindow::UpdateTimeStampFormat ( )

◆ WaitForNewObject()

void TGo4AnalysisWindow::WaitForNewObject ( bool  isobjectforeditor)

◆ WorkWithDebugOutput()

void TGo4AnalysisWindow::WorkWithDebugOutput ( TGo4Slot slot)

Definition at line 485 of file TGo4AnalysisWindow.cpp.

References QGo4Widget::AddLink(), and fHasLink.

◆ WorkWithUpdateObjectCmd()

void TGo4AnalysisWindow::WorkWithUpdateObjectCmd ( TGo4Slot slot)

Definition at line 492 of file TGo4AnalysisWindow.cpp.

References QGo4Widget::AddLink(), and fHasLink.

Referenced by TGo4MainWindow::UpdateDockAnalysisWindow().

Member Data Documentation

◆ fAnalysisProcess

QProcess* TGo4AnalysisWindow::fAnalysisProcess {nullptr}
protected

◆ fbShowTimestamps

bool TGo4AnalysisWindow::fbShowTimestamps {false}
protected

◆ fHasLink

bool TGo4AnalysisWindow::fHasLink {false}
protected

◆ fiMaxOuputSize

unsigned int TGo4AnalysisWindow::fiMaxOuputSize {0}
protected

Definition at line 83 of file TGo4AnalysisWindow.h.

Referenced by SetHistorySize(), TGo4AnalysisWindow(), and updateTerminalOutput().

◆ fNewObjectForEditor

bool TGo4AnalysisWindow::fNewObjectForEditor {false}
protected

Definition at line 86 of file TGo4AnalysisWindow.h.

Referenced by linkedObjectUpdated(), TGo4AnalysisWindow(), and WaitForNewObject().

◆ fTerminateOnClose

bool TGo4AnalysisWindow::fTerminateOnClose {false}
protected

Definition at line 88 of file TGo4AnalysisWindow.h.

Referenced by StartAnalysisShell(), TerminateOnClose(), and TGo4AnalysisWindow().

◆ fxCmdHist

QGo4CommandsHistory* TGo4AnalysisWindow::fxCmdHist {nullptr}
protected

◆ fxOutput

QTextEdit* TGo4AnalysisWindow::fxOutput {nullptr}
protected

◆ fxTimeFormat

QString TGo4AnalysisWindow::fxTimeFormat
protected

Definition at line 85 of file TGo4AnalysisWindow.h.

Referenced by AddTimeStamp(), TGo4AnalysisWindow(), and UpdateTimeStampFormat().

◆ outputBuffer

QString TGo4AnalysisWindow::outputBuffer
protected

The documentation for this class was generated from the following files: