/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/guitest.C File Reference

#include <stdlib.h>
#include <TROOT.h>
#include <TClass.h>
#include <TApplication.h>
#include <TVirtualX.h>
#include <TVirtualPadEditor.h>
#include <TGResourcePool.h>
#include <TGListBox.h>
#include <TGListTree.h>
#include <TGFSContainer.h>
#include <TGClient.h>
#include <TGFrame.h>
#include <TGIcon.h>
#include <TGLabel.h>
#include <TGButton.h>
#include <TGTextEntry.h>
#include <TGNumberEntry.h>
#include <TGMsgBox.h>
#include <TGMenu.h>
#include <TGCanvas.h>
#include <TGComboBox.h>
#include <TGTab.h>
#include <TGSlider.h>
#include <TGDoubleSlider.h>
#include <TGFileDialog.h>
#include <TGTextEdit.h>
#include <TGShutter.h>
#include <TGProgressBar.h>
#include <TGColorSelect.h>
#include <RQ_OBJECT.h>
#include <TRootEmbeddedCanvas.h>
#include <TCanvas.h>
#include <TColor.h>
#include <TH1.h>
#include <TH2.h>
#include <TRandom.h>
#include <TSystem.h>
#include <TSystemDirectory.h>
#include <TEnv.h>
#include <TFile.h>
#include <TKey.h>
#include <TGDockableFrame.h>
#include <TGFontDialog.h>

Include dependency graph for guitest.C:

Go to the source code of this file.

Classes

struct  shutterData_t
class  TestMainFrame
class  TestDialog
class  TestMsgBox
class  TestSliders
class  TestShutter
class  TestDirList
class  TestFileList
class  TestProgress
class  EntryTestDlg
class  Editor
class  TileFrame

Enumerations

enum  ETestCommandIdentifiers {
  M_FILE_OPEN, M_FILE_SAVE, M_FILE_SAVEAS, M_FILE_PRINT,
  M_FILE_PRINTSETUP, M_FILE_EXIT, M_TEST_DLG, M_TEST_MSGBOX,
  M_TEST_SLIDER, M_TEST_SHUTTER, M_TEST_DIRLIST, M_TEST_FILELIST,
  M_TEST_PROGRESS, M_TEST_NUMBERENTRY, M_TEST_FONTDIALOG, M_TEST_NEWMENU,
  M_VIEW_ENBL_DOCK, M_VIEW_ENBL_HIDE, M_VIEW_DOCK, M_VIEW_UNDOCK,
  M_HELP_CONTENTS, M_HELP_SEARCH, M_HELP_ABOUT, M_CASCADE_1,
  M_CASCADE_2, M_CASCADE_3, M_NEW_REMOVEMENU, VId1,
  HId1, VId2, HId2, VSId1,
  HSId1, VSId2, HSId2
}

Functions

void guitest ()

Variables

Int_t mb_button_id [13]
EMsgBoxIcon mb_icon [4]
const char * filetypes []
shutterData_t histo_data []
shutterData_t function_data []
shutterData_t tree_data []
const char * editortxt1
const char * editortxt2
const char * editortxt3
const char * editortxt4
const char * editortxt5
const char * editortxt6
const char * numlabel []
const Double_t numinit []


Enumeration Type Documentation

enum ETestCommandIdentifiers

Enumerator:
M_FILE_OPEN 
M_FILE_SAVE 
M_FILE_SAVEAS 
M_FILE_PRINT 
M_FILE_PRINTSETUP 
M_FILE_EXIT 
M_TEST_DLG 
M_TEST_MSGBOX 
M_TEST_SLIDER 
M_TEST_SHUTTER 
M_TEST_DIRLIST 
M_TEST_FILELIST 
M_TEST_PROGRESS 
M_TEST_NUMBERENTRY 
M_TEST_FONTDIALOG 
M_TEST_NEWMENU 
M_VIEW_ENBL_DOCK 
M_VIEW_ENBL_HIDE 
M_VIEW_DOCK 
M_VIEW_UNDOCK 
M_HELP_CONTENTS 
M_HELP_SEARCH 
M_HELP_ABOUT 
M_CASCADE_1 
M_CASCADE_2 
M_CASCADE_3 
M_NEW_REMOVEMENU 
VId1 
HId1 
VId2 
HId2 
VSId1 
HSId1 
VSId2 
HSId2 

Definition at line 56 of file guitest.C.

00056                              {
00057    M_FILE_OPEN,
00058    M_FILE_SAVE,
00059    M_FILE_SAVEAS,
00060    M_FILE_PRINT,
00061    M_FILE_PRINTSETUP,
00062    M_FILE_EXIT,
00063 
00064    M_TEST_DLG,
00065    M_TEST_MSGBOX,
00066    M_TEST_SLIDER,
00067    M_TEST_SHUTTER,
00068    M_TEST_DIRLIST,
00069    M_TEST_FILELIST,
00070    M_TEST_PROGRESS,
00071    M_TEST_NUMBERENTRY,
00072    M_TEST_FONTDIALOG,
00073    M_TEST_NEWMENU,
00074 
00075    M_VIEW_ENBL_DOCK,
00076    M_VIEW_ENBL_HIDE,
00077    M_VIEW_DOCK,
00078    M_VIEW_UNDOCK,
00079 
00080    M_HELP_CONTENTS,
00081    M_HELP_SEARCH,
00082    M_HELP_ABOUT,
00083 
00084    M_CASCADE_1,
00085    M_CASCADE_2,
00086    M_CASCADE_3,
00087 
00088    M_NEW_REMOVEMENU,
00089 
00090    VId1,
00091    HId1,
00092    VId2,
00093    HId2,
00094 
00095    VSId1,
00096    HSId1,
00097    VSId2,
00098    HSId2
00099 };


Function Documentation

void guitest (  ) 

Definition at line 2563 of file guitest.C.

02564 {
02565    new TestMainFrame(gClient->GetRoot(), 400, 220);
02566 }


Variable Documentation

Int_t mb_button_id[13]

Initial value:

 { kMBYes, kMBNo, kMBOk, kMBApply,
                           kMBRetry, kMBIgnore, kMBCancel,
                           kMBClose, kMBYesAll, kMBNoAll, 
                           kMBNewer, kMBAppend, kMBDismiss}

Definition at line 102 of file guitest.C.

Referenced by TestMsgBox::DoTest().

EMsgBoxIcon mb_icon[4]

Initial value:

 { kMBIconStop, kMBIconQuestion,
                           kMBIconExclamation, kMBIconAsterisk }

Definition at line 107 of file guitest.C.

Referenced by TestMsgBox::DoTest().

const char* filetypes[]

Initial value:

 { "All files",     "*",
                            "ROOT files",    "*.root",
                            "ROOT macros",   "*.C",
                            "Text files",    "*.[tT][xX][tT]",
                            0,               0 }

Definition at line 110 of file guitest.C.

Referenced by TestMainFrame::HandleMenu(), EventDisplay::OpenFile(), and EventDisplay::OpenXMLFile().

shutterData_t histo_data[]

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 123 of file guitest.C.

Referenced by TestShutter::TestShutter().

shutterData_t function_data[]

Initial value:

 {
   { "f1_s.xpm",        "TF1",      2001,  0 },
   { "f2_s.xpm",        "TF2",      2002,  0 },
   { 0,                 0,          0,     0 }
}

Definition at line 131 of file guitest.C.

Referenced by TestShutter::TestShutter().

shutterData_t tree_data[]

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 137 of file guitest.C.

Referenced by TestShutter::TestShutter().

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 145 of file guitest.C.

Referenced by TestMainFrame::DoButton().

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 158 of file guitest.C.

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"
"Delete"

Definition at line 171 of file guitest.C.

Referenced by TestMainFrame::DoButton().

const char* editortxt4

Initial value:

"    Deletes the character on the right side of the text cursor. If a text\n"
"    has been marked by the user (e.g. by clicking and dragging) the cursor\n"
"    will be put at the beginning of the marked text and the marked text will\n"
"    be removed.\n"
"Shift - Left Arrow\n"
"    Mark text one character leftwards.\n"
"Shift - Right Arrow\n"
"    Mark text one character rightwards.\n"
"Control-A\n"
"    Select the whole text.\n"
"Control-B\n"
"    Move the cursor one character leftwards."

Definition at line 184 of file guitest.C.

Referenced by TestMainFrame::DoButton().

const char* editortxt5

Initial value:

"Control-C\n"
"    Copy the marked text to the clipboard.\n"
"Control-D\n"
"    Delete the character to the right of the cursor.\n"
"Control-E\n"
"    Move the cursor to the end of the line.\n"
"Control-F\n"
"    Start Search Dialog.\n"
"Control-H\n"
"    Delete the character to the left of the cursor.\n"
"Control-K\n"
"    Delete marked text if any or delete all\n"
"    characters to the right of the cursor.\n"
"Control-L\n"
"    Start GoTo Line Dialog"

Definition at line 198 of file guitest.C.

Referenced by TestMainFrame::DoButton().

const char* editortxt6

Initial value:

"Control-U\n"
"    Delete all characters on the line.\n"
"Control-V\n"
"    Paste the clipboard text into line edit.\n"
"Control-X\n"
"    Cut the marked text, copy to clipboard.\n"
"Control-Y\n"
"    Paste the clipboard text into line edit.\n"
"Control-Z\n"
"    Undo action.\n\n"
"All other keys with valid ASCII codes insert themselves into the line."

Definition at line 215 of file guitest.C.

Referenced by TestMainFrame::DoButton().

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 2290 of file guitest.C.

const Double_t numinit[]

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 2307 of file guitest.C.


Generated on Mon Jan 7 13:15:24 2013 for MicromegasFramework by  doxygen 1.4.7