Commits

Tuukka Norri committed 86f1612

Added a possibility not to draw lef accent for the leftmost column header

  • Participants
  • Parent commits 9dac0cb
  • Branches PGTS-NG

Comments (0)

Files changed (3)

File BaseTen.xcodeproj/project.pbxproj

 		53666D0E0E1CD8D20028DBEA /* PGTSResultSetPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 53666CCF0E1CD8D20028DBEA /* PGTSResultSetPrivate.h */; };
 		53666D0F0E1CD8D20028DBEA /* PGTSRoleDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 53666CD00E1CD8D20028DBEA /* PGTSRoleDescription.h */; };
 		53666D100E1CD8D20028DBEA /* PGTSRoleDescription.m in Sources */ = {isa = PBXBuildFile; fileRef = 53666CD10E1CD8D20028DBEA /* PGTSRoleDescription.m */; };
-		53666D110E1CD8D20028DBEA /* PGTSScannedMemoryAllocator.h in Headers */ = {isa = PBXBuildFile; fileRef = 53666CD20E1CD8D20028DBEA /* PGTSScannedMemoryAllocator.h */; };
+		53666D110E1CD8D20028DBEA /* PGTSScannedMemoryAllocator.h in Headers */ = {isa = PBXBuildFile; fileRef = 53666CD20E1CD8D20028DBEA /* PGTSScannedMemoryAllocator.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		53666D120E1CD8D20028DBEA /* PGTSSchemaDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 53666CD30E1CD8D20028DBEA /* PGTSSchemaDescription.h */; };
 		53666D130E1CD8D20028DBEA /* PGTSSchemaDescription.m in Sources */ = {isa = PBXBuildFile; fileRef = 53666CD40E1CD8D20028DBEA /* PGTSSchemaDescription.m */; };
 		53666D140E1CD8D20028DBEA /* PGTSTableDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 53666CD50E1CD8D20028DBEA /* PGTSTableDescription.h */; };

File BaseTenAssistant/Source/MKCPolishedHeaderView.h

     kMKCPolishDrawLeftAccent     = 1 << 8,
     kMKCPolishDrawRightAccent    = 1 << 9,
     kMKCPolishDrawSeparatorLines = 1 << 10,
+	
+	kMKCPolishNoLeftAccentForLeftmostColumn = 1 << 6,
+	
     MKCPolishDrawAllLines = (kMKCPolishDrawTopLine | 
                              kMKCPolishDrawBottomLine | 
                              kMKCPolishDrawLeftLine | 

File BaseTenAssistant/Source/MKCPolishedHeaderView.m

         
         if (kMKCPolishDrawLeftAccent & mDrawingMask)
         {
-            [[colours objectForKey: kMKCLeftAccentColourKey] set];
-            NSRectFill (NSMakeRect (columnHeaderRect.origin.x, 1.0, 1.0, height - 2.0));
+			if (0 != i || ! kMKCPolishNoLeftAccentForLeftmostColumn & mDrawingMask)
+			{
+	            [[colours objectForKey: kMKCLeftAccentColourKey] set];
+	            NSRectFill (NSMakeRect (columnHeaderRect.origin.x, 1.0, 1.0, height - 2.0));
+			}
         }
         
         NSRect intersection = NSIntersectionRect (columnHeaderRect, rect);