- May 09, 2012
-
-
Fons Rademakers authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44195 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
Add default ctor in XLFDName struct not to rely on initialization with '={}' git-svn-id: http://root.cern.ch/svn/root/trunk@44190 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
(in XLFD format, '-' is a delimiter/separator). Do not list such font names in TGCocoa::ListFonts, their names can not be extracted and such a font can not be loaded later (as LoadQueryFont will have incorrect name). git-svn-id: http://root.cern.ch/svn/root/trunk@44188 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
thus constant (by nature) function modifies object's state. This makes it impossible to paint the same widget twice by calling DoRedraw, the second time exposed region is empty. This does not work with cocoa. 2. CreateFontCollection for a specific name always finds only 1 font, not all variations of the same font, instead I have to request the full list every time and filter it myself. 3. TGFontDialog: connects signal/slot only for gVirtualX inherited from TGX11 (or TGX11 itself), must also work for TGCocoa. all_sizes and all_styles variables also were set incorrectly for TGCocoa (initialization uses check InheritsFrom("TGX11")). git-svn-id: http://root.cern.ch/svn/root/trunk@44185 27541ba8-7e3a-0410-8455-c3a389f83636
-
- May 07, 2012
-
-
Timur Pocheptsov authored
But this is not true - scope guard object restores state, but aa flag is lost and it's easy to see - window's titlebar has ugly screwed font. The same problem can be reproduced in a standalone program. I have to manually turn on anti-aliasing every time I turn it off. git-svn-id: http://root.cern.ch/svn/root/trunk@44155 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
it crashes - parses this XLFD, sets foundry to 0 and later use strcasecmp on this pointer. 1. 'Fix' TGFontPool not to use 0 pointers, 2. return fake foundry. git-svn-id: http://root.cern.ch/svn/root/trunk@44151 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44150 27541ba8-7e3a-0410-8455-c3a389f83636
-
Fons Rademakers authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44149 27541ba8-7e3a-0410-8455-c3a389f83636
-
- May 04, 2012
-
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44125 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
1. Create CFString from ascii string. 2. Create font descriptor with this CFString 3. Create a dictionary 4. Add font descriptor in a dictionary 5. Create font collection with a dictionary 6. Create font descriptors from a collection 7. Extract font descriptor from a collection 8. Copy attribute from this descriptor 9. Convert CFString (attribute) to C-string. All this mess is just to extract a font name :)) Miles and miles of code doing (actually) nothin. git-svn-id: http://root.cern.ch/svn/root/trunk@44123 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
ignore all of them (using wildcard symbol '*' instead of name or size, etc.) git-svn-id: http://root.cern.ch/svn/root/trunk@44116 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
1. SetWMSizeHints - pass size hints to Cocoa. wInc and hInc must be ... ignored: if you call Cocoa's setResizeInc, and pass 0, 0 (this what ROOT's GUI does), Cocoa .... will multiply your window sizes by this nice zeros, sending it to a parallel world (or may be, it's smart enough to divide????). "Think different" is soooooo DIFFERENT!!! - ok, but it's still better to use brain to think, not any other ... organ(s). 2. Ignore decoration hints for a transient window. git-svn-id: http://root.cern.ch/svn/root/trunk@44113 27541ba8-7e3a-0410-8455-c3a389f83636
-
- May 03, 2012
-
-
https://savannah.cern.ch/bugs/?93931Olivier Couet authored
A time axis defined with the GMT option, saved into a root file in a given time zone, was different when displayed in an other time zone. The time zone offset in which the axis was created is now saved with the time axis offset allowing to make the right adjustments when the axis is displayed in an other time zone. git-svn-id: http://root.cern.ch/svn/root/trunk@44090 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44086 27541ba8-7e3a-0410-8455-c3a389f83636
-
- May 02, 2012
-
-
Timur Pocheptsov authored
TGView frame (base of TGTextView) has a child window - TGViewFrame. TGViewFrame is never actually painted (DoRedraw never gets called for this window), but ... it receives Expose event and delegates it to ... its parent - TGTextView, and TGTextView, it its DoRedraw (or DrawRegion) .... tries to paint into child window - TGViewFrame. While this is may be OK for X11 or Window, with Cocoa it's a total mess and disaster - if some view is to be updated, it does not expect a child to be suddenly rendered in the middle of work. View is not a window. I've added some quite risky code to address this problem (text scrolling is still wrong) - only "static rendering" for a text view works now. git-svn-id: http://root.cern.ch/svn/root/trunk@44075 27541ba8-7e3a-0410-8455-c3a389f83636
-
Olivier Couet authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44072 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44060 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 30, 2012
-
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44030 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
As soon as Cocoa does not have normal windows (and you can feel this as soon as you go against Cocoa's way == ROOT's X11 toolkit), I have to somehow emulate "re-composition" - in a ROOT's GUI, there are classes (parent windows) which can try to re-draw themselves, without re-painting children after that. Since in Cocoa it's not a real window, contents of children will be destroyed. Force re-paint of children subviews if any in X11::CommandBuffer::Flush. git-svn-id: http://root.cern.ch/svn/root/trunk@44028 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44027 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44026 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@44020 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 27, 2012
-
-
Timur Pocheptsov authored
Stupid mistake in TGCocoa::DispatchClientMessage: as a result of message handling (window->HandleEvent call), the window can be deleted and message for this window will be removed, but DispatchClientMessage after calling HandleEvent still tries to remove event from the set and crashes on invalid iterator. git-svn-id: http://root.cern.ch/svn/root/trunk@43983 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@43981 27541ba8-7e3a-0410-8455-c3a389f83636
-
Axel Naumann authored
Use proper dependency for rootcint/rootcling git-svn-id: http://root.cern.ch/svn/root/trunk@43979 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 26, 2012
-
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@43971 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
Add template for OpenGL view. Move methods, shared between QuartzView and NSOpenGLView into SharedViewMethods.h. git-svn-id: http://root.cern.ch/svn/root/trunk@43970 27541ba8-7e3a-0410-8455-c3a389f83636
-
Olivier Couet authored
TPolyLine. git-svn-id: http://root.cern.ch/svn/root/trunk@43961 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
1. Create custom cursor from NSImage object, if standard cursor does not exist for ECursor enumerator. 2. Fix subtle memory leak in FontCache::SelectSystemFont. git-svn-id: http://root.cern.ch/svn/root/trunk@43957 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 25, 2012
-
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@43944 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
Quite funny, by Apple gives access only to a small subset of its own standard cursors, so developer can not, for example, use standard diagonal resize cursor. Looks like people in Apple understand "think different" TOO LITERALLY. git-svn-id: http://root.cern.ch/svn/root/trunk@43942 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
so it's possible, for example, to open a menu and move window (and menu bar will not receive correct event and will "fell through" its main window. Fix this - override -sendEvent: method for QuartzWindow and check if mouse event is "inside" titlebar. git-svn-id: http://root.cern.ch/svn/root/trunk@43938 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Apr 24, 2012
-
-
Timur Pocheptsov authored
git-svn-id: http://root.cern.ch/svn/root/trunk@43933 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
Quite risky modification: looks like text metrics are wrong for anti-aliased text, use slightly increased text ascent and descent. git-svn-id: http://root.cern.ch/svn/root/trunk@43930 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
FillPolygon, DrawSegments: now these functions are used only for menu items to draw a selection triangle and check mark. Both are misplaced due to some hardcoded calculations. Even without antialiasing. Adjust fY (substruct several pixels). To be tested - what other gui component can be affected? git-svn-id: http://root.cern.ch/svn/root/trunk@43927 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
if I have such a rectangle, shift it 1 pixel (and reduce a height) - this fixed toolbar buttons highlight and scrollbar. git-svn-id: http://root.cern.ch/svn/root/trunk@43923 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
Window style mask/titlebar button should not be modified by SetWMTransientHint, this is done by other SetWM functions. So, dialog (which is transient window) can be still resizeable and has all decoration buttons: 1. Iplement SetMWMHints 2. Implement SetWMSizeHints 3. Modify SetWMTransitionHints. git-svn-id: http://root.cern.ch/svn/root/trunk@43922 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
ROOT's transient window has "maximize" button disabled and window of fixed size. I do not see anything in GUI, that makes window to have these properties. When window is done transient, disable maximize button and remove resizeable bit from window's style mask. git-svn-id: http://root.cern.ch/svn/root/trunk@43920 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
dialogs inherit TGTransientWindow, and it sets WMTransientHint, attaching transient window to a parent. After that, modal loop is implemented by ROOT (not by system API). git-svn-id: http://root.cern.ch/svn/root/trunk@43919 27541ba8-7e3a-0410-8455-c3a389f83636
-
Timur Pocheptsov authored
by TGTransientFrame == all dialogs + dockable panel(s)). Now transient window is always on top of it's "main" window and window order is always preserved (unless you delete transient window). git-svn-id: http://root.cern.ch/svn/root/trunk@43918 27541ba8-7e3a-0410-8455-c3a389f83636
-