#include <stdlib.h>
#include <time.h>
#include <Riostream.h>
#include <TString.h>
#include <TROOT.h>
#include <TClass.h>
#include <TEnv.h>
#include <TError.h>
#include <TBenchmark.h>
#include <TSystem.h>
#include <TApplication.h>
#include <TDatime.h>
#include <TFile.h>
#include <TObjArray.h>
#include <TGFrame.h>
#include <TImage.h>
#include <TCanvas.h>
#include <TMD5.h>
#include <TG3DLine.h>
#include <TGButton.h>
#include <TGButtonGroup.h>
#include <TGColorDialog.h>
#include <TGComboBox.h>
#include <TGLabel.h>
#include <TGListBox.h>
#include <TGListTree.h>
#include <TGMenu.h>
#include <TGMsgBox.h>
#include <TGNumberEntry.h>
#include <TGProgressBar.h>
#include <TGResourcePool.h>
#include <TGShutter.h>
#include <TGSimpleTable.h>
#include <TGTextEdit.h>
#include <TRootCanvas.h>
#include <TGTab.h>
#include <TGPack.h>
#include <TGFontDialog.h>
#include <TGTextEditDialogs.h>
#include <TGTableLayout.h>
#include <TGMdi.h>
#include <TGSlider.h>
#include <TGDoubleSlider.h>
#include <TGTripleSlider.h>
#include <TBrowser.h>
#include <TGPasswdDialog.h>
#include <TGImageMap.h>
#include <TASPaletteEditor.h>
#include <TControlBar.h>
#include <TGSpeedo.h>
#include <TGShapedFrame.h>
#include <TGSplitFrame.h>
#include <TGTextEditor.h>
#include <TRootHelpDialog.h>
#include <TGHtmlBrowser.h>
#include <HelpText.h>
#include <TSystemDirectory.h>
#include <TInterpreter.h>
#include <TStopwatch.h>
#include <TRecorder.h>
Go to the source code of this file.
enum ESlidersIds |
Definition at line 2019 of file stressGUI.cxx.
Definition at line 2302 of file stressGUI.cxx.
References dir(), TSystem::Exec(), TString::Format(), and gSystem.
Referenced by benchmarks(), and run_tutorials().
void CloseMainframes | ( | ) |
Definition at line 466 of file stressGUI.cxx.
References gClient, TClass::GetClass(), TGClient::GetDefaultRoot(), TGClient::GetListOfWindows(), TGWindow::GetParent(), gSystem, TObject::InheritsFrom(), TGWindow::IsMapped(), kFALSE, TSystem::ProcessEvents(), and TSystem::Sleep().
Referenced by dnd_playback(), fitpanel_playback(), graph_edit_playback(), guitest_playback(), and mditest_playback().
void dnd_playback | ( | ) |
Definition at line 2463 of file stressGUI.cxx.
References TSystem::ChangeDirectory(), CloseMainframes(), TStopwatch::Continue(), TString::Data(), dir(), gRH, gRootSys, gSystem, gTmpfilename, kFALSE, TRecorder::kReplaying, TSystem::ProcessEvents(), TStopwatch::RealTime(), TSystem::RedirectOutput(), TSystem::Sleep(), and TSystem::WorkingDirectory().
Referenced by stressGUI().
Int_t file_size | ( | const char * | filename | ) |
Definition at line 2374 of file stressGUI.cxx.
References c, fclose(), and fopen.
Referenced by fitpanel_playback(), graph_edit_playback(), and guitest_playback().
Int_t FileSize | ( | const char * | filename | ) |
Definition at line 358 of file stressGUI.cxx.
References FileStat_t::fSize, TSystem::GetPathInfo(), and gSystem.
void fitpanel_playback | ( | ) |
Definition at line 2571 of file stressGUI.cxx.
References TMath::Abs(), TSystem::ChangeDirectory(), CloseMainframes(), TStopwatch::Continue(), TString::Data(), dir(), file_size(), gRH, gRootSys, gSystem, gTmpfilename, kFALSE, TRecorder::kReplaying, TSystem::ProcessEvents(), TStopwatch::RealTime(), TSystem::RedirectOutput(), TSystem::Sleep(), and TSystem::WorkingDirectory().
Referenced by stressGUI().
void graph_edit_playback | ( | ) |
Definition at line 2537 of file stressGUI.cxx.
References TMath::Abs(), TSystem::ChangeDirectory(), CloseMainframes(), TStopwatch::Continue(), TString::Data(), dir(), file_size(), gRH, gRootSys, gSystem, gTmpfilename, kFALSE, TRecorder::kReplaying, TSystem::ProcessEvents(), TStopwatch::RealTime(), TSystem::RedirectOutput(), TSystem::Sleep(), and TSystem::WorkingDirectory().
Referenced by stressGUI().
void guitest_playback | ( | ) |
Definition at line 2392 of file stressGUI.cxx.
References TMath::Abs(), TSystem::ChangeDirectory(), CloseMainframes(), TStopwatch::Continue(), TString::Data(), dir(), file_size(), TString::Format(), gBenchmark, gRH, gRootSys, gSystem, gTmpfilename, i, kFALSE, TRecorder::kReplaying, TSystem::ProcessEvents(), TStopwatch::RealTime(), TSystem::RedirectOutput(), TBenchmark::Show(), TSystem::Sleep(), TBenchmark::Start(), TSystem::Unlink(), and TSystem::WorkingDirectory().
Referenced by stressGUI().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 135 of file stressGUI.cxx.
References fclose(), TString::Format(), gBenchmark, gEnv, TSystem::Getenv(), gOptionFull, gOptionKeep, gOptionRef, gSystem, gTmpfilename, i, kEnvAll, kFALSE, kTRUE, TEnv::ReadFile(), stressGUI(), TSystem::TempFileName(), and TApplication::Terminate().
void mditest_playback | ( | ) |
Definition at line 2503 of file stressGUI.cxx.
References TSystem::ChangeDirectory(), CloseMainframes(), TStopwatch::Continue(), TString::Data(), dir(), gRH, gRootSys, gSystem, gTmpfilename, kFALSE, TRecorder::kReplaying, TSystem::ProcessEvents(), TStopwatch::RealTime(), TSystem::RedirectOutput(), TSystem::Sleep(), and TSystem::WorkingDirectory().
Referenced by stressGUI().
void ProcessFrame | ( | TGFrame * | f, | |
const char * | title | |||
) |
Definition at line 410 of file stressGUI.cxx.
References TImage::Create(), TString::Data(), Form(), gClient, gErrorIgnoreLevel, gOptionRef, gRH, gSystem, gTestNum, gTmpfilename, TGClient::HandleInput(), outfile, TSystem::ProcessEvents(), TSystem::RedirectOutput(), TSystem::Sleep(), sprintf(), TSystem::Unlink(), and VerifySize().
Referenced by G__G__GuiHtml_227_0_28(), testBrowsers(), testCanvas(), testColorDlg(), testControlBars(), testEditor(), testFontDlg(), testGroupState(), testHelpDialog(), testHtmlBrowser(), testLabels(), testLayout(), testListTree(), testNumberEntry(), testPack(), testPaletteEditor(), testProgressBar(), testSearchDlg(), testShutter(), testSliders(), testSplitButton(), testSplitFrame(), testTableLayout(), testTextAlign(), and testTextEntries().
void ProcessMacro | ( | const char * | macro, | |
const char * | title | |||
) |
Definition at line 446 of file stressGUI.cxx.
References TString::Data(), TString::Format(), gTestNum, npass, TString::ReplaceAll(), and VerifySize().
Referenced by run_tutorials().
void run_tutorials | ( | ) |
Definition at line 2314 of file stressGUI.cxx.
References TSystem::AccessPathName(), bexec(), TSystem::ChangeDirectory(), TString::Data(), dir(), TString::EndsWith(), gClient, TNamed::GetName(), gRootSys, gSystem, TGClient::HandleInput(), i, TSystemFile::IsDirectory(), kFALSE, kFileExists, kTRUE, TSystem::ProcessEvents(), ProcessMacro(), TSystem::Sleep(), TSystem::Unlink(), and TSystem::WorkingDirectory().
Referenced by stressGUI().
void stressGUI | ( | ) |
Definition at line 176 of file stressGUI.cxx.
References TString::Data(), dnd_playback(), TSystem::Exec(), fclose(), fitpanel_playback(), fopen, fprintf(), gBenchmark, gClient, TSystem::GetBuildNode(), TBenchmark::GetCpuTime(), TGClient::GetDefaultRoot(), TGClient::GetDisplayHeight(), TGClient::GetDisplayWidth(), TSystem::Getenv(), TSystem::GetFromPipe(), TGObject::GetId(), TNamed::GetName(), TBenchmark::GetRealTime(), TROOT::GetVersion(), TROOT::GetVersionDate(), TROOT::GetVersionTime(), gOptionFull, gOptionRef, graph_edit_playback(), gROOT, gRootSys, gSystem, gTestNum, gTmpfilename, guitest_playback(), gVirtualX, i, kFALSE, line, mditest_playback(), TBenchmark::Print(), TString::Remove(), TString::Resize(), run_tutorials(), sgref, sizes, TBenchmark::Start(), TBenchmark::Stop(), testBrowsers(), testCanvas(), testColorDlg(), testControlBars(), testEditor(), testFontDlg(), testGroupState(), testHelpDialog(), testHtmlBrowser(), testLabels(), testLayout(), testListTree(), testNumberEntry(), testPack(), testPaletteEditor(), testProgressBar(), testSearchDlg(), testShutter(), testSliders(), testSplitButton(), testSplitFrame(), testTableLayout(), testTextAlign(), testTextEntries(), TSystem::UnixPathName(), and TSystem::Unlink().
Referenced by main().
void testBrowsers | ( | ) |
Definition at line 2142 of file stressGUI.cxx.
References b, TString::Data(), gEnv, gRH, gSystem, gTmpfilename, ProcessFrame(), TSystem::RedirectOutput(), and TEnv::SetValue().
Referenced by stressGUI().
void testCanvas | ( | ) |
Definition at line 1808 of file stressGUI.cxx.
References c, and ProcessFrame().
Referenced by stressGUI().
void testColorDlg | ( | ) |
Definition at line 1849 of file stressGUI.cxx.
References gClient, TGClient::GetDefaultRoot(), and ProcessFrame().
Referenced by stressGUI().
void testControlBars | ( | ) |
Definition at line 2193 of file stressGUI.cxx.
References TControlBar::AddButton(), TControlBar::GetControlBarImp(), ProcessFrame(), TControlBar::SetButtonWidth(), and TControlBar::Show().
Referenced by stressGUI().
void testEditor | ( | ) |
Definition at line 1796 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), and ProcessFrame().
Referenced by stressGUI().
void testFontDlg | ( | ) |
Definition at line 1868 of file stressGUI.cxx.
References gClient, TGClient::GetDefaultRoot(), kFALSE, TGFrame::MapWindow(), ProcessFrame(), and TGMainFrame::SetWMPosition().
Referenced by stressGUI().
void testGroupState | ( | ) |
Definition at line 782 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), kFALSE, and ProcessFrame().
Referenced by stressGUI().
void testHelpDialog | ( | ) |
Definition at line 2234 of file stressGUI.cxx.
References TGMainFrame::CloseWindow(), gClient, TGClient::GetRoot(), gHelpAbout, TRootHelpDialog::Popup(), ProcessFrame(), and TRootHelpDialog::SetText().
Referenced by stressGUI().
void testHtmlBrowser | ( | ) |
Definition at line 2273 of file stressGUI.cxx.
References b, and ProcessFrame().
Referenced by stressGUI().
void testLabels | ( | ) |
Definition at line 883 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), and ProcessFrame().
Referenced by stressGUI().
void testLayout | ( | ) |
Definition at line 561 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), and ProcessFrame().
Referenced by stressGUI().
void testListTree | ( | ) |
Definition at line 1306 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), and ProcessFrame().
Referenced by stressGUI().
void testNumberEntry | ( | ) |
Definition at line 1677 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), and ProcessFrame().
Referenced by stressGUI().
void testPack | ( | ) |
Definition at line 1980 of file stressGUI.cxx.
References TGPack::AddFrame(), TGCompositeFrame::AddFrame(), TGPack::AddFrameWithWeight(), b, TGMainFrame::CloseWindow(), TGFrame::GetHeight(), TGFrame::GetWidth(), gSystem, hp, kDeepCleanup, kFALSE, kLHintsExpandX, kLHintsExpandY, TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), TSystem::ProcessEvents(), ProcessFrame(), TGCompositeFrame::SetCleanup(), TGPack::SetVertical(), TGMainFrame::SetWindowName(), TGMainFrame::SetWMPosition(), TSystem::Sleep(), and vp.
Referenced by stressGUI().
void testPaletteEditor | ( | ) |
Definition at line 2248 of file stressGUI.cxx.
References TSystem::AccessPathName(), Form(), TDirectoryFile::Get(), gSystem, TFile::Open(), and ProcessFrame().
Referenced by stressGUI().
void testProgressBar | ( | ) |
Definition at line 1560 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), and ProcessFrame().
Referenced by stressGUI().
void testSearchDlg | ( | ) |
Definition at line 1885 of file stressGUI.cxx.
References TGSearchType::fClose, gClient, TGClient::GetDefaultRoot(), kFALSE, TGFrame::MapWindow(), ProcessFrame(), and TGMainFrame::SetWMPosition().
Referenced by stressGUI().
void testShutter | ( | ) |
Definition at line 1445 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), and ProcessFrame().
Referenced by stressGUI().
void testSliders | ( | ) |
Definition at line 2130 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), and ProcessFrame().
Referenced by stressGUI().
void testSplitButton | ( | ) |
Definition at line 961 of file stressGUI.cxx.
References gClient, TGClient::GetRoot(), kButtonDisabled, kButtonDown, kButtonUp, kFALSE, kTRUE, and ProcessFrame().
Referenced by stressGUI().
void testSplitFrame | ( | ) |
Definition at line 2168 of file stressGUI.cxx.
References TGCompositeFrame::AddFrame(), TGMainFrame::CloseWindow(), gClient, TGClient::GetDefaultRoot(), TGClient::GetRoot(), kDeepCleanup, kFALSE, kLHintsExpandX, TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), ProcessFrame(), TGFrame::Resize(), TGCompositeFrame::SetCleanup(), and TGMainFrame::SetWMPosition().
Referenced by stressGUI().
void testTableLayout | ( | ) |
Definition at line 1955 of file stressGUI.cxx.
References TGCompositeFrame::AddFrame(), TGMainFrame::CloseWindow(), gClient, TGClient::GetRoot(), kDeepCleanup, TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), ProcessFrame(), TGFrame::Resize(), TGCompositeFrame::SetCleanup(), TGMainFrame::SetWindowName(), and TGMainFrame::SetWMPosition().
Referenced by stressGUI().
void testTextAlign | ( | ) |
Definition at line 699 of file stressGUI.cxx.
References kTextBottom, kTextCenterX, kTextCenterY, kTextLeft, kTextRight, kTextTop, and ProcessFrame().
Referenced by stressGUI().
void testTextEntries | ( | ) |
Definition at line 1099 of file stressGUI.cxx.
References entry, TGTextEntry::kNoEcho, TGTextEntry::kPassword, kTextCenterX, kTextRight, ProcessFrame(), and TGComboBox::Select().
Referenced by stressGUI().
Bool_t VerifySize | ( | const char * | filename, | |
const char * | title | |||
) |
Definition at line 368 of file stressGUI.cxx.
References FileSize(), fprintf(), gLine, gOptionKeep, gOptionRef, gSystem, gTestNum, i, kFALSE, kTRUE, sgref, sizes, sprintf(), and TSystem::Unlink().
Referenced by ProcessFrame(), and ProcessMacro().
const char* editortxt1 |
Initial value:
"This is the ROOT text edit widget TGTextEdit. It is not intended as\n" "a full developers editor, but it is relatively complete and can ideally\n" "be used to edit scripts or to present users editable config files, etc.\n\n" "The text edit widget supports standard emacs style ctrl-key navigation\n" "in addition to the arrow keys. By default the widget has under the right\n" "mouse button a popup menu giving access to several built-in functions.\n\n" "Cut, copy and paste between different editor windows and any other\n" "standard text handling application is supported.\n\n" "Text can be selected with the mouse while holding the left button\n" "or with the arrow keys while holding the shift key pressed. Use the\n" "middle mouse button to paste text at the current mouse location."
Definition at line 1688 of file stressGUI.cxx.
const char* editortxt2 |
Initial value:
"Mice with scroll-ball are properly supported.\n\n" "This are the currently defined key bindings:\n" "Left Arrow\n" " Move the cursor one character leftwards.\n" " Scroll when cursor is out of frame.\n" "Right Arrow\n" " Move the cursor one character rightwards.\n" " Scroll when cursor is out of frame.\n" "Backspace\n" " Deletes the character on the left side of the text cursor and moves the\n" " cursor one position to the left. If a text has been marked by the user"
Definition at line 1701 of file stressGUI.cxx.
Referenced by TestMainFrame::DoButton().
const char* editortxt3 |
Initial value:
" (e.g. by clicking and dragging) the cursor will be put at the beginning\n" " of the marked text and the marked text will be removed.\n" "Home\n" " Moves the text cursor to the left end of the line. If mark is TRUE text\n" " will be marked towards the first position, if not any marked text will\n" " be unmarked if the cursor is moved.\n" "End\n" " Moves the text cursor to the right end of the line. If mark is TRUE text\n" " will be marked towards the last position, if not any marked text will\n" " be unmarked if the cursor is moved.\n"
Definition at line 1714 of file stressGUI.cxx.
Referenced by TestMainFrame::DoButton().
const char* excluded[] |
Initial value:
{ "_playback", "QtFileDialog", "QtMultiFileDialog", "QtPrintDialog", "calendar", "customTH1Fmenu", "exec_macro", "guitest0", 0 }
Definition at line 2289 of file stressGUI.cxx.
Referenced by do_anadist_ds().
Initial value:
{ { "f1_s.xpm", "TF1", 2001, 0 }, { "f2_s.xpm", "TF2", 2002, 0 }, { 0, 0, 0, 0 } }
Definition at line 1334 of file stressGUI.cxx.
char gLine[80] |
Definition at line 127 of file stressGUI.cxx.
Definition at line 123 of file stressGUI.cxx.
Referenced by main(), ProcessFrame(), stressGUI(), and VerifySize().
Definition at line 121 of file stressGUI.cxx.
Referenced by dnd_playback(), fitpanel_playback(), graph_edit_playback(), guitest_playback(), mditest_playback(), PrintStressProgress(), ProcessFrame(), PT_AdminFunc(), PT_H1AssertFiles(), PT_Open(), ProofTest::Run(), and testBrowsers().
Definition at line 130 of file stressGUI.cxx.
Referenced by dnd_playback(), fitpanel_playback(), graph_edit_playback(), guitest_playback(), mditest_playback(), run_tutorials(), and stressGUI().
Definition at line 122 of file stressGUI.cxx.
Definition at line 129 of file stressGUI.cxx.
Referenced by dnd_playback(), fitpanel_playback(), graph_edit_playback(), guitest_playback(), main(), mditest_playback(), ProcessFrame(), stressGUI(), and testBrowsers().
Initial value:
{ { "h1_s.xpm", "TH1", 1001, 0 }, { "h2_s.xpm", "TH2", 1002, 0 }, { "h3_s.xpm", "TH3", 1003, 0 }, { "profile_s.xpm", "TProfile", 1004, 0 }, { 0, 0, 0, 0 } }
Definition at line 1326 of file stressGUI.cxx.
Initial value:
{ 12345, 1.0, 1.00, 1.000, 1.0000, 1.2E-12, 90 * 3600, 120 * 60, 12 * 60, 12 * 3600 + 15 * 60, 19991121, 19991121, (Double_t) 0xDEADFACEU }
Definition at line 1613 of file stressGUI.cxx.
Referenced by NumberEntryWindow::NumberEntryWindow().
const char* numlabel[] |
Initial value:
{ "Integer", "One digit real", "Two digit real", "Three digit real", "Four digit real", "Real", "Degree.min.sec", "Min:sec", "Hour:min", "Hour:min:sec", "Day/month/year", "Month/day/year", "Hex" }
Definition at line 1597 of file stressGUI.cxx.
Referenced by NumberEntryWindow::NumberEntryWindow().
char outfile[80] |
Definition at line 126 of file stressGUI.cxx.
FILE* sgref = 0 |
Definition at line 128 of file stressGUI.cxx.
Referenced by gdk_rgb_do_colormaps(), TGQt::ListFonts(), stressGUI(), and VerifySize().
Initial value:
{ { "ntuple_s.xpm", "TNtuple", 3001, 0 }, { "tree_s.xpm", "TTree", 3002, 0 }, { "chain_s.xpm", "TChain", 3003, 0 }, { 0, 0, 0, 0 } }
Definition at line 1340 of file stressGUI.cxx.