GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
#include <TGo4AnalysisWindow.h>
Public Slots | |
void | ClearAnalysisOutput () |
void | CommandSlot () |
void | FileDialog_Macro () |
void | PrintConditions () |
void | PrintEvent () |
void | PrintHistograms () |
void | readFromStderr () |
void | readFromStdout () |
void | RequestTerminate () |
void | SaveAnalysisOutput () |
void | ScrollEndAnalysisOutput () |
void | updateTerminalOutput () |
![]() | |
void | CloseMDIParentSlot () |
Public Member Functions | |
TGo4AnalysisWindow (QWidget *parent=nullptr, const char *name=nullptr, bool needoutput=false, bool needkillbtn=true) | |
virtual | ~TGo4AnalysisWindow () |
void | AppendOutputBuffer (const QString &value, int prio=0) |
bool | HasLink () const |
bool | HasOutput () |
void | SetHistorySize (int sz) |
void | StartAnalysisShell (const char *cmd, const char *workdir=nullptr, bool aschildprocess=false) |
void | TerminateAnalysisProcess () |
bool | TerminateOnClose () const |
void | UpdateTimeStampFormat () |
void | WaitForNewObject (bool isobjectforeditor) |
void | WorkWithDebugOutput (TGo4Slot *slot) |
void | WorkWithUpdateObjectCmd (TGo4Slot *slot) |
![]() | |
QGo4Widget (QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget) | |
virtual | ~QGo4Widget () |
virtual void | DropItem (const char *itemname, TClass *cl, int kind) |
virtual bool | IsAcceptDrag (const char *itemname, TClass *cl, int kind) |
void | ObjectCreatedByWidget (const char *itemname, TClass *cl) |
void | ProcessSignal (const char *linkname, bool assigned, TObject *obj, TGo4Slot *slot) |
virtual void | ResetWidget () |
Static Public Member Functions | |
static void | ExtractProgArgs (QString &prog, QStringList &args) |
![]() | |
static QAction * | AddIdAction (QMenu *menu, QSignalMapper *map, const QIcon &icon, const QString &text, int id, int enabled=-1, int checked=-1) |
static QAction * | AddIdAction (QMenu *menu, QSignalMapper *map, 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 | AddTimeStamp (QString &buf, int prio=0) |
prepend timestamp in front of next terminal buffer. | |
void | closeEvent (QCloseEvent *e) override |
void | CreateButtons (QHBoxLayout *, bool) |
void | CreateCmdLine (QHBoxLayout *) |
void | linkedObjectRemoved (const char *linkname) override |
void | linkedObjectUpdated (const char *linkname, TObject *obj) override |
void | resizeEvent (QResizeEvent *) override |
![]() | |
void | AddLink (const char *itemname, const char *linkname) |
create link for item with name linkname | |
TGo4Slot * | AddLink (const char *itemname, TGo4Slot *parent) |
create link for item in dedicated slot parent | |
void | AddLink (TGo4Slot *slot, const char *linkname) |
create link for object in slot with name linkname | |
TGo4Slot * | AddSlot (const char *slotname) |
add slot with specific name to widget top folder | |
void | AskToCreateObject (TClass *cl, int isremote) |
Function call dialog to create object of appropriate class isremote == 0 - object should be created localy and widget will be informed isremote == 1 - object should be created on analysis side and widget should be informed isremote == -1 - activate creation dialog without restriction (remote or local), widget will not be informed. | |
TGo4BrowserProxy * | Browser () |
bool | BrowserItemRemote (const char *itemname) |
void | CallPanelFunc (int id, TPad *pad=nullptr) |
void | CallServiceFunc (int id, const char *str=nullptr, void *par=nullptr) |
void | closeEvent (QCloseEvent *e) override |
void | ConnectPad (TPad *pad) |
connect pad axis change signals to react on such signals | |
TGo4ViewPanel * | CreateViewPanel (int ndiv=0) |
void | dragEnterEvent (QDragEnterEvent *e) override |
void | dragMoveEvent (QDragMoveEvent *e) override |
TGo4ViewPanel * | DrawItem (const QString &itemname, TGo4ViewPanel *panel=nullptr, TPad *pad=nullptr, bool activate=true, int updatelevel=-1) |
void | dropEvent (QDropEvent *e) override |
void | EditItem (const QString &itemname) |
void | EditObjectInSlot (TGo4Slot *slot) |
TGo4ServerProxy * | GetAnalysis (const char *itemname=nullptr) |
TObject * | GetLinked (const char *linkname, int updatelevel=0) |
template<class T> | |
T * | GetLinkedCast (const char *linkname, int updatelevel=0) |
const char * | GetLinkedName (const char *linkname) |
returns name of item, which was linked with linkname | |
const char * | GetLinkedName (TGo4Slot *slot) |
returns name of item, which was linked in that slot | |
TGo4Slot * | GetTopSlot (bool force=false) |
return top slot of structure, corresponding to this widget | |
void | HelpWindow (const char *filename, const char *msg=nullptr) |
void | InformThatObjectCreated (const char *itemname, TClass *cl) |
bool | IsUpdateBlocked () const |
TGo4ViewPanel * | LastActivePanel () |
virtual void | linkedRemoved (TGo4Slot *slot, TObject *obj) |
virtual void | linkedUpdated (TGo4Slot *slot, TObject *obj) |
void | RemoveAllLinks (bool blockreset=true) |
void | RemoveLink (const char *linkname, bool blockreset=true) |
void | RemoveLinksMasked (const char *startedwith=nullptr, bool blockreset=true) |
virtual void | requestedObjectCreated (const char *itemname, TClass *cl) |
bool | SaveItemToFile (const char *itemname, const char *subfolder=nullptr) |
QString | SaveObjectInMemory (const char *foldername, TObject *obj) |
void | ServiceCall (const char *name, void *par=nullptr) |
void | setCanDestroyWidget (bool on=true) |
void | SetLinkedName (TGo4Slot *slot, const char *itemname) |
set name of item, which was linked by this slot | |
void | ShootCloseWidget (bool closeparent=false) |
void | ShootResetWidget () |
void | ShowItemInfo (const QString &itemname) |
void | StartHotstart (const char *filename) |
void | StatusMessage (const QString &message) |
void | UndrawItem (const char *itemname) |
bool | UpdateItemInAnalysis (const char *itemname, TObject *obj=nullptr) |
TGo4ViewPanel * | WhereItemDrawn (const char *itemname) |
Protected Attributes | |
QProcess * | fAnalysisProcess {nullptr} |
bool | fbShowTimestamps {false} |
bool | fHasLink {false} |
unsigned int | fiMaxOuputSize {0} |
bool | fNewObjectForEditor {false} |
bool | fTerminateOnClose {false} |
QGo4CommandsHistory * | fxCmdHist {nullptr} |
QTextEdit * | fxOutput {nullptr} |
QString | fxTimeFormat |
QString | outputBuffer |
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 QGo4Widget::QGo4Widget(), CreateButtons(), CreateCmdLine(), fAnalysisProcess, fbShowTimestamps, fHasLink, fiMaxOuputSize, fNewObjectForEditor, fTerminateOnClose, fxCmdHist, fxOutput, fxTimeFormat, go4sett, outputBuffer, QGo4Widget::setCanDestroyWidget(), updateTerminalOutput(), and UpdateTimeStampFormat().
|
virtual |
Definition at line 193 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 271 of file TGo4AnalysisWindow.cpp.
References fxTimeFormat.
Referenced by AppendOutputBuffer().
void TGo4AnalysisWindow::AppendOutputBuffer | ( | const QString & | value, |
int | prio = 0 ) |
Definition at line 278 of file TGo4AnalysisWindow.cpp.
References AddTimeStamp(), fbShowTimestamps, and outputBuffer.
Referenced by linkedObjectUpdated(), readFromStderr(), readFromStdout(), TGo4MainWindow::TerminateAnalysis(), and TerminateAnalysisProcess().
|
slot |
Definition at line 369 of file TGo4AnalysisWindow.cpp.
References fxOutput.
Referenced by CreateButtons(), and TGo4MainWindow::windowsMenuAboutToShow().
|
overrideprotected |
Definition at line 539 of file TGo4AnalysisWindow.cpp.
|
slot |
Definition at line 404 of file TGo4AnalysisWindow.cpp.
References TGo4ServerProxy::ExecuteLine(), fxCmdHist, QGo4Widget::GetAnalysis(), and go4sett.
Referenced by CreateCmdLine(), PrintConditions(), and PrintHistograms().
|
protected |
Definition at line 131 of file TGo4AnalysisWindow.cpp.
References ClearAnalysisOutput(), HasOutput(), PrintConditions(), PrintEvent(), PrintHistograms(), RequestTerminate(), and ScrollEndAnalysisOutput().
Referenced by TGo4AnalysisWindow().
|
protected |
Definition at line 108 of file TGo4AnalysisWindow.cpp.
References CommandSlot(), QGo4CommandsHistory::enterPressedSingal(), FileDialog_Macro(), fxCmdHist, go4sett, and HasOutput().
Referenced by TGo4AnalysisWindow().
|
static |
Definition at line 289 of file TGo4AnalysisWindow.cpp.
Referenced by StartAnalysisShell(), and TGo4MainWindow::TerminateAnalysis().
|
slot |
Definition at line 417 of file TGo4AnalysisWindow.cpp.
References fxCmdHist.
Referenced by CreateCmdLine().
|
inline |
Definition at line 45 of file TGo4AnalysisWindow.h.
References fHasLink.
bool TGo4AnalysisWindow::HasOutput | ( | ) |
Definition at line 201 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 523 of file TGo4AnalysisWindow.cpp.
References fHasLink, HasOutput(), and QGo4Widget::ServiceCall().
|
overrideprotectedvirtual |
Reimplemented from QGo4Widget.
Definition at line 496 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), QGo4Widget::Browser(), QGo4Widget::EditItem(), fNewObjectForEditor, TGo4AnalysisObjectResult::GetObjectFullName(), QGo4Widget::InformThatObjectCreated(), TGo4BrowserProxy::ItemClass(), and TGo4BrowserProxy::SyncBrowserSlots().
|
slot |
Definition at line 460 of file TGo4AnalysisWindow.cpp.
References CommandSlot(), and fxCmdHist.
Referenced by CreateButtons().
|
slot |
Definition at line 472 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::ServiceCall().
Referenced by CreateButtons().
|
slot |
Definition at line 448 of file TGo4AnalysisWindow.cpp.
References CommandSlot(), and fxCmdHist.
Referenced by CreateButtons().
|
slot |
Definition at line 262 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), and fAnalysisProcess.
Referenced by StartAnalysisShell().
|
slot |
Definition at line 252 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), and fAnalysisProcess.
Referenced by StartAnalysisShell().
|
slot |
Definition at line 353 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::ServiceCall().
Referenced by CreateButtons().
|
overrideprotected |
Definition at line 531 of file TGo4AnalysisWindow.cpp.
References go4sett, and HasOutput().
|
slot |
Definition at line 381 of file TGo4AnalysisWindow.cpp.
References fxOutput.
Referenced by TGo4MainWindow::windowsMenuAboutToShow().
|
slot |
Definition at line 375 of file TGo4AnalysisWindow.cpp.
References fxOutput.
Referenced by CreateButtons().
void TGo4AnalysisWindow::SetHistorySize | ( | int | sz | ) |
Definition at line 206 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 314 of file TGo4AnalysisWindow.cpp.
References ExtractProgArgs(), fAnalysisProcess, fTerminateOnClose, readFromStderr(), readFromStdout(), and TerminateAnalysisProcess().
Referenced by TGo4MainWindow::LaunchClient().
void TGo4AnalysisWindow::TerminateAnalysisProcess | ( | ) |
Definition at line 358 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), and fAnalysisProcess.
Referenced by StartAnalysisShell(), and TGo4MainWindow::TerminateAnalysis().
|
inline |
Definition at line 46 of file TGo4AnalysisWindow.h.
References fTerminateOnClose.
Referenced by TGo4MainWindow::closeEvent().
|
slot |
Definition at line 211 of file TGo4AnalysisWindow.cpp.
References fiMaxOuputSize, fxOutput, outputBuffer, and updateTerminalOutput().
Referenced by TGo4AnalysisWindow(), and updateTerminalOutput().
void TGo4AnalysisWindow::UpdateTimeStampFormat | ( | ) |
Definition at line 101 of file TGo4AnalysisWindow.cpp.
References fbShowTimestamps, fxTimeFormat, and go4sett.
Referenced by TGo4AnalysisWindow(), TGo4MainWindow::ChangeTerminalTimeStampFormatSlot(), and TGo4MainWindow::ChangeTerminalTimeStampSlot().
void TGo4AnalysisWindow::WaitForNewObject | ( | bool | isobjectforeditor | ) |
Definition at line 491 of file TGo4AnalysisWindow.cpp.
References fNewObjectForEditor.
Referenced by TGo4MainWindow::CreateNewCondition(), TGo4MainWindow::CreateNewDynEntry(), and TGo4MainWindow::CreateNewHist().
void TGo4AnalysisWindow::WorkWithDebugOutput | ( | TGo4Slot * | slot | ) |
Definition at line 477 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::AddLink(), and fHasLink.
void TGo4AnalysisWindow::WorkWithUpdateObjectCmd | ( | TGo4Slot * | slot | ) |
Definition at line 484 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::AddLink(), and fHasLink.
Referenced by TGo4MainWindow::UpdateDockAnalysisWindow().
|
protected |
Definition at line 79 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), readFromStderr(), readFromStdout(), StartAnalysisShell(), and TerminateAnalysisProcess().
|
protected |
Definition at line 84 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), AppendOutputBuffer(), and UpdateTimeStampFormat().
|
protected |
Definition at line 87 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), HasLink(), linkedObjectRemoved(), WorkWithDebugOutput(), and WorkWithUpdateObjectCmd().
|
protected |
Definition at line 83 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), SetHistorySize(), and updateTerminalOutput().
|
protected |
Definition at line 86 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), linkedObjectUpdated(), and WaitForNewObject().
|
protected |
Definition at line 88 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), StartAnalysisShell(), and TerminateOnClose().
|
protected |
Definition at line 80 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), CommandSlot(), CreateCmdLine(), FileDialog_Macro(), PrintConditions(), and PrintHistograms().
|
protected |
Definition at line 82 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), ClearAnalysisOutput(), HasOutput(), SaveAnalysisOutput(), ScrollEndAnalysisOutput(), and updateTerminalOutput().
|
protected |
Definition at line 85 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), AddTimeStamp(), and UpdateTimeStampFormat().
|
protected |
Definition at line 81 of file TGo4AnalysisWindow.h.
Referenced by TGo4AnalysisWindow(), AppendOutputBuffer(), and updateTerminalOutput().