]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RICH/AliRICHdisplay.cxx
Changes for compatibility with version 2.23 of ROOT
[u/mrichter/AliRoot.git] / RICH / AliRICHdisplay.cxx
index 6328291531773a047177661341ede84139f2c722..01abc9ec6ac0785c5eb89d1cfc4d8678c2938a34 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.5  1999/09/29 09:24:29  fca
+Introduction of the Copyright and cvs Log
+
 */
 
 
@@ -45,7 +48,7 @@ $Log$
 #include <TSlider.h>
 #include <TSliderBox.h>
 #include <TGaxis.h>
-#include <TGXW.h>
+#include <TVirtualX.h>
 #include <TMath.h>
 #include <X3DBuffer.h>
 
@@ -152,7 +155,7 @@ AliRICHdisplay::AliRICHdisplay(Int_t size)
     if (ysize < 100) ysize = 750;
     Int_t xsize = Int_t(size*830./ysize);
     fCanvas = new TCanvas("Canvas", "RICH Clusters Display",14,47,xsize,ysize);
-    fCanvas->SetEditable(kIsNotEditable);
+    fCanvas->SetEditable(kFALSE);
     fCanvas->ToggleEventStatus();
     
     // Create main display pad
@@ -590,7 +593,7 @@ void AliRICHdisplay::ExecuteEvent(Int_t event, Int_t px, Int_t py)
    switch (event) {
        
    case kButton1Down:
-       gGXW->SetLineColor(-1);
+       gVirtualX->SetLineColor(-1);
        gPad->TAttLine::Modify();  //Change line attributes only if necessary
        x0 = gPad->AbsPixeltoX(px);
        y0 = gPad->AbsPixeltoY(py);
@@ -600,11 +603,11 @@ void AliRICHdisplay::ExecuteEvent(Int_t event, Int_t px, Int_t py)
        return;
        
    case kButton1Motion:
-       if (linedrawn) gGXW->DrawBox(px0, py0, pxold, pyold, TGXW::kHollow);
+       if (linedrawn) gVirtualX->DrawBox(px0, py0, pxold, pyold, TVirtualX::kHollow);
        pxold = px;
        pyold = py;
        linedrawn = 1;
-       gGXW->DrawBox(px0, py0, pxold, pyold, TGXW::kHollow);
+       gVirtualX->DrawBox(px0, py0, pxold, pyold, TVirtualX::kHollow);
        return;
        
    case kButton1Up: