GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
|
#include <TGo4AnalysisWindow.h>
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 () |
![]() | |
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 |
![]() | |
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 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) |
![]() | |
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) |
TGo4Slot * | AddLink (const char *itemname, TGo4Slot *parent) |
TGo4Slot * | GetTopSlot (bool force=false) |
TGo4Slot * | AddSlot (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) |
TGo4BrowserProxy * | Browser () |
void | StatusMessage (const QString &message) |
void | AskToCreateObject (TClass *cl, int isremote) |
void | ShowItemInfo (const QString &itemname) |
TGo4ViewPanel * | CreateViewPanel (int ndiv=0) |
TGo4ViewPanel * | DrawItem (const QString &itemname, TGo4ViewPanel *panel=nullptr, TPad *pad=nullptr, bool activate=true, int updatelevel=-1) |
TGo4ViewPanel * | WhereItemDrawn (const char *itemname) |
void | HelpWindow (const char *filename, const char *msg=nullptr) |
void | UndrawItem (const char *itemname) |
TGo4ViewPanel * | LastActivePanel () |
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) |
TGo4ServerProxy * | GetAnalysis (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} |
QGo4CommandsHistory * | fxCmdHist {nullptr} |
QString | outputBuffer |
QTextEdit * | fxOutput {nullptr} |
unsigned int | fiMaxOuputSize {0} |
bool | fbShowTimestamps {false} |
QString | fxTimeFormat |
bool | fNewObjectForEditor {false} |
bool | fHasLink {false} |
bool | fTerminateOnClose {false} |
Definition at line 28 of file TGo4AnalysisWindow.h.
TGo4AnalysisWindow::TGo4AnalysisWindow | ( | QWidget * | parent = nullptr , |
const char * | name = nullptr , |
||
bool | needoutput = false , |
||
bool | needkillbtn = true |
||
) |
Definition at line 40 of file TGo4AnalysisWindow.cpp.
References CreateButtons(), CreateCmdLine(), fAnalysisProcess, fbShowTimestamps, fHasLink, fiMaxOuputSize, fNewObjectForEditor, fTerminateOnClose, fxCmdHist, fxOutput, fxTimeFormat, TGo4QSettings::getTermFont(), TGo4QSettings::getTermHistorySize(), go4sett, outputBuffer, QGo4Widget::setCanDestroyWidget(), updateTerminalOutput(), and UpdateTimeStampFormat().
|
virtual |
Definition at line 194 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::CloseMDIParentSlot().
|
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().
void TGo4AnalysisWindow::AppendOutputBuffer | ( | const QString & | value, |
int | prio = 0 |
||
) |
Definition at line 281 of file TGo4AnalysisWindow.cpp.
References AddTimeStamp(), fbShowTimestamps, and outputBuffer.
Referenced by linkedObjectUpdated(), readFromStderr(), readFromStdout(), TGo4MainWindow::TerminateAnalysis(), and TerminateAnalysisProcess().
|
slot |
Definition at line 373 of file TGo4AnalysisWindow.cpp.
References fxOutput.
Referenced by CreateButtons(), TerminateOnClose(), and TGo4MainWindow::windowsMenuAboutToShow().
|
overrideprotected |
Definition at line 547 of file TGo4AnalysisWindow.cpp.
Referenced by TerminateOnClose().
|
slot |
Definition at line 408 of file TGo4AnalysisWindow.cpp.
References TGo4ServerProxy::ExecuteLine(), fxCmdHist, QGo4Widget::GetAnalysis(), QGo4CommandsHistory::getHistory(), go4sett, and TGo4QSettings::setCommandsHistoryAnalysis().
Referenced by CreateCmdLine(), PrintConditions(), PrintHistograms(), and TerminateOnClose().
|
protected |
Definition at line 132 of file TGo4AnalysisWindow.cpp.
References ClearAnalysisOutput(), HasOutput(), PrintConditions(), PrintEvent(), PrintHistograms(), RequestTerminate(), and ScrollEndAnalysisOutput().
Referenced by TerminateOnClose(), and TGo4AnalysisWindow().
|
protected |
Definition at line 109 of file TGo4AnalysisWindow.cpp.
References CommandSlot(), QGo4CommandsHistory::enterPressedSingal(), FileDialog_Macro(), fxCmdHist, TGo4QSettings::getCommandsHistoryAnalysis(), go4sett, and HasOutput().
Referenced by TerminateOnClose(), and TGo4AnalysisWindow().
|
static |
Definition at line 295 of file TGo4AnalysisWindow.cpp.
Referenced by StartAnalysisShell(), TGo4MainWindow::TerminateAnalysis(), and TerminateOnClose().
|
slot |
Definition at line 421 of file TGo4AnalysisWindow.cpp.
References fxCmdHist.
Referenced by CreateCmdLine(), and TerminateOnClose().
|
inline |
Definition at line 45 of file TGo4AnalysisWindow.h.
References fHasLink.
bool TGo4AnalysisWindow::HasOutput | ( | ) |
Definition at line 202 of file TGo4AnalysisWindow.cpp.
References fxOutput.
Referenced by TGo4MainWindow::CloseAnalysisWindow(), CreateButtons(), CreateCmdLine(), TGo4MainWindow::EstablishAnalysisWindow(), linkedObjectRemoved(), resizeEvent(), TGo4MainWindow::ToggleAnalysisWindow(), and TGo4MainWindow::UpdateDockAnalysisWindow().
|
overrideprotectedvirtual |
Reimplemented from QGo4Widget.
Definition at line 531 of file TGo4AnalysisWindow.cpp.
References fHasLink, HasOutput(), and QGo4Widget::ServiceCall().
Referenced by TerminateOnClose().
|
overrideprotectedvirtual |
Reimplemented from QGo4Widget.
Definition at line 504 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), QGo4Widget::Browser(), QGo4Widget::EditItem(), fNewObjectForEditor, TGo4AnalysisObjectResult::GetObjectFullName(), QGo4Widget::InformThatObjectCreated(), TGo4BrowserProxy::ItemClass(), and TGo4BrowserProxy::SyncBrowserSlots().
Referenced by TerminateOnClose().
|
slot |
Definition at line 468 of file TGo4AnalysisWindow.cpp.
References CommandSlot(), and fxCmdHist.
Referenced by CreateButtons(), and TerminateOnClose().
|
slot |
Definition at line 480 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::ServiceCall().
Referenced by CreateButtons(), and TerminateOnClose().
|
slot |
Definition at line 456 of file TGo4AnalysisWindow.cpp.
References CommandSlot(), and fxCmdHist.
Referenced by CreateButtons(), and TerminateOnClose().
|
slot |
Definition at line 263 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), and fAnalysisProcess.
Referenced by StartAnalysisShell(), and TerminateOnClose().
|
slot |
Definition at line 253 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), and fAnalysisProcess.
Referenced by StartAnalysisShell(), and TerminateOnClose().
|
slot |
Definition at line 357 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::ServiceCall().
Referenced by CreateButtons(), and TerminateOnClose().
|
overrideprotected |
Definition at line 539 of file TGo4AnalysisWindow.cpp.
References go4sett, HasOutput(), and TGo4QSettings::storePanelSize().
Referenced by TerminateOnClose().
|
slot |
Definition at line 385 of file TGo4AnalysisWindow.cpp.
References fxOutput.
Referenced by TerminateOnClose(), and TGo4MainWindow::windowsMenuAboutToShow().
|
slot |
Definition at line 379 of file TGo4AnalysisWindow.cpp.
References fxOutput.
Referenced by CreateButtons(), and TerminateOnClose().
void TGo4AnalysisWindow::SetHistorySize | ( | int | sz | ) |
Definition at line 207 of file TGo4AnalysisWindow.cpp.
References fiMaxOuputSize.
Referenced by TGo4MainWindow::InputTerminalParametersSlot().
void TGo4AnalysisWindow::StartAnalysisShell | ( | const char * | cmd, |
const char * | workdir = nullptr , |
||
bool | aschildprocess = false |
||
) |
Definition at line 320 of file TGo4AnalysisWindow.cpp.
References go4init::args, ExtractProgArgs(), fAnalysisProcess, fTerminateOnClose, readFromStderr(), readFromStdout(), and TerminateAnalysisProcess().
Referenced by TGo4MainWindow::LaunchClient().
void TGo4AnalysisWindow::TerminateAnalysisProcess | ( | ) |
Definition at line 362 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), and fAnalysisProcess.
Referenced by StartAnalysisShell(), and TGo4MainWindow::TerminateAnalysis().
|
inline |
Definition at line 46 of file TGo4AnalysisWindow.h.
References AddTimeStamp(), go4init::args, ClearAnalysisOutput(), closeEvent(), CommandSlot(), CreateButtons(), CreateCmdLine(), ExtractProgArgs(), FileDialog_Macro(), fTerminateOnClose, linkedObjectRemoved(), linkedObjectUpdated(), PrintConditions(), PrintEvent(), PrintHistograms(), readFromStderr(), readFromStdout(), RequestTerminate(), resizeEvent(), SaveAnalysisOutput(), ScrollEndAnalysisOutput(), and updateTerminalOutput().
Referenced by TGo4MainWindow::closeEvent().
|
slot |
Definition at line 212 of file TGo4AnalysisWindow.cpp.
References fiMaxOuputSize, fxOutput, and outputBuffer.
Referenced by TerminateOnClose(), and TGo4AnalysisWindow().
void TGo4AnalysisWindow::UpdateTimeStampFormat | ( | ) |
Definition at line 102 of file TGo4AnalysisWindow.cpp.
References fbShowTimestamps, fxTimeFormat, TGo4QSettings::getTermShowTimestamp(), TGo4QSettings::getTermTimeFormat(), and go4sett.
Referenced by TGo4MainWindow::ChangeTerminalTimeStampFormatSlot(), TGo4MainWindow::ChangeTerminalTimeStampSlot(), and TGo4AnalysisWindow().
void TGo4AnalysisWindow::WaitForNewObject | ( | bool | isobjectforeditor | ) |
Definition at line 499 of file TGo4AnalysisWindow.cpp.
References fNewObjectForEditor.
Referenced by TGo4MainWindow::CreateNewCondition(), TGo4MainWindow::CreateNewDynEntry(), and TGo4MainWindow::CreateNewHist().
void TGo4AnalysisWindow::WorkWithDebugOutput | ( | TGo4Slot * | slot | ) |
Definition at line 485 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::AddLink(), and fHasLink.
void TGo4AnalysisWindow::WorkWithUpdateObjectCmd | ( | TGo4Slot * | slot | ) |
Definition at line 492 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::AddLink(), and fHasLink.
Referenced by TGo4MainWindow::UpdateDockAnalysisWindow().
|
protected |
Definition at line 79 of file TGo4AnalysisWindow.h.
Referenced by readFromStderr(), readFromStdout(), StartAnalysisShell(), TerminateAnalysisProcess(), and TGo4AnalysisWindow().
|
protected |
Definition at line 84 of file TGo4AnalysisWindow.h.
Referenced by AppendOutputBuffer(), TGo4AnalysisWindow(), and UpdateTimeStampFormat().
|
protected |
Definition at line 87 of file TGo4AnalysisWindow.h.
Referenced by HasLink(), linkedObjectRemoved(), TGo4AnalysisWindow(), WorkWithDebugOutput(), and WorkWithUpdateObjectCmd().
|
protected |
Definition at line 83 of file TGo4AnalysisWindow.h.
Referenced by SetHistorySize(), TGo4AnalysisWindow(), and updateTerminalOutput().
|
protected |
Definition at line 86 of file TGo4AnalysisWindow.h.
Referenced by linkedObjectUpdated(), TGo4AnalysisWindow(), and WaitForNewObject().
|
protected |
Definition at line 88 of file TGo4AnalysisWindow.h.
Referenced by StartAnalysisShell(), TerminateOnClose(), and TGo4AnalysisWindow().
|
protected |
Definition at line 80 of file TGo4AnalysisWindow.h.
Referenced by CommandSlot(), CreateCmdLine(), FileDialog_Macro(), PrintConditions(), PrintHistograms(), and TGo4AnalysisWindow().
|
protected |
Definition at line 82 of file TGo4AnalysisWindow.h.
Referenced by ClearAnalysisOutput(), HasOutput(), SaveAnalysisOutput(), ScrollEndAnalysisOutput(), TGo4AnalysisWindow(), and updateTerminalOutput().
|
protected |
Definition at line 85 of file TGo4AnalysisWindow.h.
Referenced by AddTimeStamp(), TGo4AnalysisWindow(), and UpdateTimeStampFormat().
|
protected |
Definition at line 81 of file TGo4AnalysisWindow.h.
Referenced by AppendOutputBuffer(), TGo4AnalysisWindow(), and updateTerminalOutput().