#include <TGo4AnalysisWindow.h>
Public Slots | |
void | readFromStdout () |
void | readFromStderr () |
void | RequestTerminate () |
void | ClearAnalysisOutput () |
void | SaveAnalysisOutput () |
void | FileDialog_Macro () |
void | PrintHistograms () |
void | PrintConditions () |
void | PrintEvent () |
void | CommandSlot () |
void | updateTerminalOutput () |
Public Member Functions | |
TGo4AnalysisWindow (QWidget *parent=0, const char *name=0, bool needoutput=false, bool needkillbtn=true) | |
virtual | ~TGo4AnalysisWindow () |
void | SetHistorySize (int sz) |
void | StartAnalysisShell (const char *cmd, const char *workdir=0) |
void | TerminateAnalysisProcess () |
void | AppendOutputBuffer (const QString &value) |
void | WorkWithUpdateObjectCmd (TGo4Slot *slot) |
void | WaitForNewObject (bool isobjectforeditor) |
bool | HasOutput () |
Protected Member Functions | |
virtual void | linkedObjectUpdated (const char *linkname, TObject *obj) |
virtual void | linkedObjectRemoved (const char *linkname) |
virtual void | resizeEvent (QResizeEvent *) |
void | CreateButtons (QHBoxLayout *, bool) |
void | CreateCmdLine (QHBoxLayout *) |
Protected Attributes | |
QProcess * | fAnalysisProcess |
QGo4CommandsHistory * | fxCmdHist |
QString | outputBuffer |
QTextEdit * | fxOutput |
unsigned int | fiMaxOuputSize |
bool | fNewObjectForEditor |
Definition at line 28 of file TGo4AnalysisWindow.h.
TGo4AnalysisWindow::TGo4AnalysisWindow | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
bool | needoutput = false , |
|||
bool | needkillbtn = true | |||
) |
Definition at line 41 of file TGo4AnalysisWindow.cpp.
References CreateButtons(), CreateCmdLine(), fAnalysisProcess, fiMaxOuputSize, fNewObjectForEditor, fxCmdHist, fxOutput, TGo4QSettings::getTermFont(), TGo4QSettings::getTermHistorySize(), go4sett, outputBuffer, QGo4Widget::setCanDestroyWidget(), and updateTerminalOutput().
TGo4AnalysisWindow::~TGo4AnalysisWindow | ( | ) | [virtual] |
Definition at line 175 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::Browser(), and TGo4BrowserProxy::ToggleMonitoring().
void TGo4AnalysisWindow::AppendOutputBuffer | ( | const QString & | value | ) |
Definition at line 248 of file TGo4AnalysisWindow.cpp.
References outputBuffer.
Referenced by readFromStderr(), readFromStdout(), TGo4MainWindow::TerminateAnalysis(), and TerminateAnalysisProcess().
void TGo4AnalysisWindow::ClearAnalysisOutput | ( | ) | [slot] |
Definition at line 285 of file TGo4AnalysisWindow.cpp.
References fxOutput.
Referenced by CreateButtons().
void TGo4AnalysisWindow::CommandSlot | ( | ) | [slot] |
Definition at line 314 of file TGo4AnalysisWindow.cpp.
References TGo4AnalysisProxy::ExecuteLine(), fxCmdHist, QGo4Widget::GetAnalysis(), QGo4CommandsHistory::getHistory(), go4sett, and TGo4QSettings::setCommandsHistoryAnalysis().
Referenced by CreateCmdLine(), PrintConditions(), and PrintHistograms().
void TGo4AnalysisWindow::CreateButtons | ( | QHBoxLayout * | box, | |
bool | needkillbtn | |||
) | [protected] |
Definition at line 122 of file TGo4AnalysisWindow.cpp.
References ClearAnalysisOutput(), HasOutput(), PrintConditions(), PrintEvent(), PrintHistograms(), and RequestTerminate().
Referenced by TGo4AnalysisWindow().
void TGo4AnalysisWindow::CreateCmdLine | ( | QHBoxLayout * | box | ) | [protected] |
Definition at line 99 of file TGo4AnalysisWindow.cpp.
References CommandSlot(), FileDialog_Macro(), fxCmdHist, TGo4QSettings::getCommandsHistoryAnalysis(), go4sett, and HasOutput().
Referenced by TGo4AnalysisWindow().
void TGo4AnalysisWindow::FileDialog_Macro | ( | ) | [slot] |
Definition at line 327 of file TGo4AnalysisWindow.cpp.
References fxCmdHist.
Referenced by CreateCmdLine().
bool TGo4AnalysisWindow::HasOutput | ( | ) |
Definition at line 182 of file TGo4AnalysisWindow.cpp.
References fxOutput.
Referenced by TGo4MainWindow::AddAnalysisProxy(), TGo4MainWindow::CloseAnalysisWindow(), CreateButtons(), CreateCmdLine(), linkedObjectRemoved(), TGo4MainWindow::ToggleAnalysisWindow(), and TGo4MainWindow::UpdateDockAnalysisWindow().
void TGo4AnalysisWindow::linkedObjectRemoved | ( | const char * | linkname | ) | [protected, virtual] |
Reimplemented from QGo4Widget.
Definition at line 391 of file TGo4AnalysisWindow.cpp.
References HasOutput(), and QGo4Widget::ServiceCall().
void TGo4AnalysisWindow::linkedObjectUpdated | ( | const char * | linkname, | |
TObject * | obj | |||
) | [protected, virtual] |
Reimplemented from QGo4Widget.
Definition at line 378 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::Browser(), QGo4Widget::EditItem(), fNewObjectForEditor, TGo4AnalysisObjectResult::GetObjectFullName(), QGo4Widget::InformThatObjectCreated(), TGo4BrowserProxy::ItemClass(), and TGo4BrowserProxy::SyncBrowserSlots().
void TGo4AnalysisWindow::PrintConditions | ( | ) | [slot] |
Definition at line 354 of file TGo4AnalysisWindow.cpp.
References CommandSlot(), and fxCmdHist.
Referenced by CreateButtons(), and TGo4MainWindow::editorServiceSlot().
void TGo4AnalysisWindow::PrintEvent | ( | ) | [slot] |
Definition at line 362 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::ServiceCall().
Referenced by CreateButtons().
void TGo4AnalysisWindow::PrintHistograms | ( | ) | [slot] |
Definition at line 346 of file TGo4AnalysisWindow.cpp.
References CommandSlot(), and fxCmdHist.
Referenced by CreateButtons(), and TGo4MainWindow::editorServiceSlot().
void TGo4AnalysisWindow::readFromStderr | ( | ) | [slot] |
Definition at line 239 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), and fAnalysisProcess.
Referenced by StartAnalysisShell().
void TGo4AnalysisWindow::readFromStdout | ( | ) | [slot] |
Definition at line 229 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), and fAnalysisProcess.
Referenced by StartAnalysisShell().
void TGo4AnalysisWindow::RequestTerminate | ( | ) | [slot] |
Definition at line 270 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::ServiceCall().
Referenced by CreateButtons().
void TGo4AnalysisWindow::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Definition at line 397 of file TGo4AnalysisWindow.cpp.
References go4sett, and TGo4QSettings::storePanelSize().
void TGo4AnalysisWindow::SaveAnalysisOutput | ( | ) | [slot] |
Definition at line 291 of file TGo4AnalysisWindow.cpp.
References fxOutput.
void TGo4AnalysisWindow::SetHistorySize | ( | int | sz | ) |
Definition at line 187 of file TGo4AnalysisWindow.cpp.
References fiMaxOuputSize.
Referenced by TGo4MainWindow::InputTerminalParametersSlot().
void TGo4AnalysisWindow::StartAnalysisShell | ( | const char * | cmd, | |
const char * | workdir = 0 | |||
) |
Definition at line 253 of file TGo4AnalysisWindow.cpp.
References fAnalysisProcess, readFromStderr(), readFromStdout(), and TerminateAnalysisProcess().
Referenced by TGo4MainWindow::LaunchClientSlot().
void TGo4AnalysisWindow::TerminateAnalysisProcess | ( | ) |
Definition at line 275 of file TGo4AnalysisWindow.cpp.
References AppendOutputBuffer(), and fAnalysisProcess.
Referenced by StartAnalysisShell(), and TGo4MainWindow::TerminateAnalysis().
void TGo4AnalysisWindow::updateTerminalOutput | ( | ) | [slot] |
Definition at line 192 of file TGo4AnalysisWindow.cpp.
References fiMaxOuputSize, fxOutput, and outputBuffer.
Referenced by TGo4AnalysisWindow().
void TGo4AnalysisWindow::WaitForNewObject | ( | bool | isobjectforeditor | ) |
Definition at line 373 of file TGo4AnalysisWindow.cpp.
References fNewObjectForEditor.
Referenced by TGo4MainWindow::CreateNewConditionSlot(), TGo4MainWindow::CreateNewDynEntrySlot(), and TGo4MainWindow::CreateNewHistSlot().
void TGo4AnalysisWindow::WorkWithUpdateObjectCmd | ( | TGo4Slot * | slot | ) |
Definition at line 367 of file TGo4AnalysisWindow.cpp.
References QGo4Widget::AddLink().
Referenced by TGo4MainWindow::AddAnalysisProxy(), and TGo4MainWindow::UpdateDockAnalysisWindow().
QProcess* TGo4AnalysisWindow::fAnalysisProcess [protected] |
Definition at line 68 of file TGo4AnalysisWindow.h.
Referenced by readFromStderr(), readFromStdout(), StartAnalysisShell(), TerminateAnalysisProcess(), and TGo4AnalysisWindow().
unsigned int TGo4AnalysisWindow::fiMaxOuputSize [protected] |
Definition at line 72 of file TGo4AnalysisWindow.h.
Referenced by SetHistorySize(), TGo4AnalysisWindow(), and updateTerminalOutput().
bool TGo4AnalysisWindow::fNewObjectForEditor [protected] |
Definition at line 73 of file TGo4AnalysisWindow.h.
Referenced by linkedObjectUpdated(), TGo4AnalysisWindow(), and WaitForNewObject().
QGo4CommandsHistory* TGo4AnalysisWindow::fxCmdHist [protected] |
Definition at line 69 of file TGo4AnalysisWindow.h.
Referenced by CommandSlot(), CreateCmdLine(), FileDialog_Macro(), PrintConditions(), PrintHistograms(), and TGo4AnalysisWindow().
QTextEdit* TGo4AnalysisWindow::fxOutput [protected] |
Definition at line 71 of file TGo4AnalysisWindow.h.
Referenced by ClearAnalysisOutput(), HasOutput(), SaveAnalysisOutput(), TGo4AnalysisWindow(), and updateTerminalOutput().
QString TGo4AnalysisWindow::outputBuffer [protected] |
Definition at line 70 of file TGo4AnalysisWindow.h.
Referenced by AppendOutputBuffer(), TGo4AnalysisWindow(), and updateTerminalOutput().