Changeset 61244 in vbox
- Timestamp:
- May 27, 2016 1:01:47 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107533
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaDockIconPreview.mm
r52727 r61244 134 134 * Class for arranging/updating the layers for the glossy monitor preview. 135 135 */ 136 @implementation UIDockTileMonitor ;136 @implementation UIDockTileMonitor 137 137 - (id)initWithFrame:(NSRect)frame parent:(UICocoaDockIconPreviewPrivate*)parent 138 138 { … … 157 157 } 158 158 159 - (void)drawRect:(NSRect)aRect ;159 - (void)drawRect:(NSRect)aRect 160 160 { 161 161 NSImage *dockMonitor = ::darwinToNSImageRef(p->m_dockMonitor); … … 169 169 } 170 170 171 - (void)resize:(NSSize)size ;171 - (void)resize:(NSSize)size 172 172 { 173 173 /* Calculate the new size based on the aspect ratio of the original screen … … 210 210 } 211 211 212 - (void)drawRect:(NSRect)aRect ;212 - (void)drawRect:(NSRect)aRect 213 213 { 214 214 NSGraphicsContext *nsContext = [NSGraphicsContext currentContext]; … … 319 319 } 320 320 321 - (void)resizeMonitor:(NSSize)size ;321 - (void)resizeMonitor:(NSSize)size 322 322 { 323 323 [self restoreMonitor]; -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaSpecialControls.mm
r59098 r61244 105 105 } 106 106 107 -(IBAction)clicked:(id)sender ;107 -(IBAction)clicked:(id)sender 108 108 { 109 109 mRealTarget->onClicked(); … … 121 121 } 122 122 123 -(IBAction)segControlClicked:(id)sender ;123 -(IBAction)segControlClicked:(id)sender 124 124 { 125 125 mRealTarget->onClicked([sender selectedSegment]); -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm
r59308 r61244 678 678 user have to press shift before he start to resize. */ 679 679 if ([NSEvent respondsToSelector:@selector(modifierFlags)]) 680 { 680 681 if (((int)(intptr_t)[NSEvent performSelector:@selector(modifierFlags)] & NSShiftKeyMask) == NSShiftKeyMask) 681 682 return qtSize; 683 } 682 684 else 685 { 683 686 /* Shift key pressed when this resize event was initiated? */ 684 687 if (([pWindow resizeFlags] & NSShiftKeyMask) == NSShiftKeyMask) 685 688 return qtSize; 689 } 686 690 /* The default case is to calculate the aspect radio of the old size and 687 691 used it for the new size. */
Note:
See TracChangeset
for help on using the changeset viewer.