From B. Bartl: several fixes for xproofd daemon; see Savannah #95612


git-svn-id: http://root.cern.ch/svn/root/trunk@44701 27541ba8-7e3a-0410-8455-c3a389f83636
Even if TranslateCoords tries to translate from root to root window, I still have
to search for the top level window (to set the 'child' out parameter).
X11::FindWindowInPoint searches for a top-level QuartzWindow in the point specified (if any).


git-svn-id: http://root.cern.ch/svn/root/trunk@44702 27541ba8-7e3a-0410-8455-c3a389f83636
A parser lookup return a QualType that also contains location information
and is not valid for direct use as a QualType, so use clang::Sema::GetTypeFromParser
to extract the real QualType part.

Update lookup lookupFunctionProto to also look into base classes


git-svn-id: http://root.cern.ch/svn/root/trunk@44703 27541ba8-7e3a-0410-8455-c3a389f83636
Add (as comment) declaration of functionality that belongs
in RConversionRuleParser but can not be there (easily) until
we stop build both rootcint and rootcling


git-svn-id: http://root.cern.ch/svn/root/trunk@44704 27541ba8-7e3a-0410-8455-c3a389f83636
With this update, rootcling successfully all the (default packages)
dictionaries ... at least enough to run stress successfully
(When using revision 43824 of TCintWithCling).

Quiet down the linkdef Scanner (add a verbose level flag)

Instead of including TObject.h in all cases, include 'only' Rtypes.h
since we only need Int_t, etc...

Add support for #pragma namespace (including making sure that the
namespace information is written only on disk)

Move all the class lookup to use cling::Interpreter::lookupScope
(and remove R__SlowClassSearch)

Move all the function lookup to use cling::Interpreter::lookupFunctionProto

Port CheckInputOperator, HasCustomOperatorNewPlacement, HasCustomOperatorNewArrayPlacement, CreateNameTypeMap to use clang.

Switch IsTemplateFloat16 and IsTemplateDouble32 from using CINT to using direct string parsing (clang does not keep enough
information about template instantiation involving typedefs) 

Import G__map_cpp_name from CINT (now R__map_cpp_name) 

Remove unused HasCustomOperatorNew.

SelectionRules, BaseSelectionsRules: improve performance by replace if (HasAttribute) GetAttribute
to if (GetAttribute) {} hence avoiding a double lookup.

Scanner::AnnotatedRecordDecl's constructor now sanitize the string
written by the user as the requested type name by removing all the
extraneous white spaces.

Scanner: move all the data member declaration next to each other.

LinkdefReader::AddRule, replace switch case a: case b: if (a) else if (b) break;
by the more classical switch case a: break; case b: break;


git-svn-id: http://root.cern.ch/svn/root/trunk@44705 27541ba8-7e3a-0410-8455-c3a389f83636
Call FindWindowInPoint for screen-to-screen translation.


git-svn-id: http://root.cern.ch/svn/root/trunk@44706 27541ba8-7e3a-0410-8455-c3a389f83636
Implement QueryPointer. This version works as TGWin32::QueryPointer (which seriously differs from TGQt::QueryPointer (TGQt::QueryPointer actually does not work
due to Qt's limitations)) and also it's not clear, if this version is correct or not - gdk does not implement this function, and X11 specs are written not by humans.


git-svn-id: http://root.cern.ch/svn/root/trunk@44707 27541ba8-7e3a-0410-8455-c3a389f83636
Make sure the grab rectangles are drawn when moving the main window (needed on Windows and Mac)


git-svn-id: http://root.cern.ch/svn/root/trunk@44708 27541ba8-7e3a-0410-8455-c3a389f83636
In case of active grab (this is an implicit grab, started as no passive grab was found on mouse down event)
check kButtonMotion, not only kPointerMotion. (Bug found with mdi window, which relies on implicit grab).


git-svn-id: http://root.cern.ch/svn/root/trunk@44709 27541ba8-7e3a-0410-8455-c3a389f83636
From Matthew Straits:

This fixes <http://savannah.cern.ch/patch/?5439>.

I have a partially written file that ROOT crashes on when I try to read it,
e.g. by Add()ing it to a TChain and then calling GetEntries().  The output
is:

 Error in <TBasket::ReadObjWithBuffer>: Unknown class 
 Error in <TBasket::ReadObjWithBuffer>: Unknown class 

 *** Break *** segmentation violation

I have traced this to a single line in TFile where there is an unchecked
cast.  Here is the fix:


+++ io/io/src/TFile.cxx	(working copy)
@@ -1243,7 +1243,7 @@
          return 0;
       }
       key->ReadKeyBuffer(buf);
-      list = (TList*)key->ReadObjWithBuffer(buffer);
+      list = dynamic_cast<TList*>(key->ReadObjWithBuffer(buffer));
       if (list) list->SetOwner();
       delete [] buffer;
       delete key;


Now the output is:

Info in <TFile::GetStreamerInfoList>: cannot find the StreamerInfo record in
file broken.root

There is no segfault and the rest of the TChain (in my example) can be read. 
I'm not sure that an Info message is really sufficient to inform the user that
an input file isn't being read, but it's better than crashing, at least.


git-svn-id: http://root.cern.ch/svn/root/trunk@44710 27541ba8-7e3a-0410-8455-c3a389f83636
http://root.cern.ch/viewvc?view=rev&revision=41296
made a problem in cas of rotated text.


git-svn-id: http://root.cern.ch/svn/root/trunk@44711 27541ba8-7e3a-0410-8455-c3a389f83636
Revision http://root.cern.ch/viewvc?view=rev&revision=41296
made a problem is case of rotated text.


git-svn-id: http://root.cern.ch/svn/root/trunk@44712 27541ba8-7e3a-0410-8455-c3a389f83636
apply a bug fix from Tim for generation of global observables from a simpdf when multigen is off
This fixes a problem introduced between in r 44256 (http://root.cern.ch/viewvc?view=rev&revision=44256)


git-svn-id: http://root.cern.ch/svn/root/trunk@44714 27541ba8-7e3a-0410-8455-c3a389f83636
Fix off by one error introduced in revision 43390 ; this fixes <http://savannah.cern.ch/bugs/?94910> (TChained Tree index returns wrong entry on GetEntryNumberWithIndex)


git-svn-id: http://root.cern.ch/svn/root/trunk@44719 27541ba8-7e3a-0410-8455-c3a389f83636
Remove obsolete declaration


git-svn-id: http://root.cern.ch/svn/root/trunk@44722 27541ba8-7e3a-0410-8455-c3a389f83636
Remove obsolte code


git-svn-id: http://root.cern.ch/svn/root/trunk@44723 27541ba8-7e3a-0410-8455-c3a389f83636
Use root instead of root.exe to set ROOTSYS etc


git-svn-id: http://root.cern.ch/svn/root/trunk@44724 27541ba8-7e3a-0410-8455-c3a389f83636
Use absolute path for root to find it even from within tutorials/


git-svn-id: http://root.cern.ch/svn/root/trunk@44728 27541ba8-7e3a-0410-8455-c3a389f83636
Provide fallback, default CompilationOptions. Fixes "move depends on uninit value" when reading AST outside Interpreter::xyz()


git-svn-id: http://root.cern.ch/svn/root/trunk@44729 27541ba8-7e3a-0410-8455-c3a389f83636
Add parsing of the #pragma link options=....

Reduce the amount of dispatching and string comparaison.

Tweak a bit the LinkdefReader error output.

BaseSelection: Remove unnecessary (virtual) interface used only in ClassSelection

In rootcling.cxx remove more of the obsolete code.


git-svn-id: http://root.cern.ch/svn/root/trunk@44730 27541ba8-7e3a-0410-8455-c3a389f83636