Show
Ignore:
Timestamp:
09/15/07 01:06:09 (2 years ago)
Author:
mike
Message:

[fix] remove crashed/stray guests from doServer (#15)
[fix] Q Control: StopPC Icon is a forcequit if task is not responding or doServer is not responding (#15)
[fix] Fullscreen: alt-tabing back to Q brings you back to FS Guest (#32)
[fix] Fullscreen: switching animation always vertical
[fix] Fullscreen: honor aspect ratio, only factors of 1/1.25/1.5/1.75/2.0/3.0/4.0... (#18)
[fix] doServer: added missing dealloc
[fix] quartz: panther compiling
[fix] quartz: small drawspeed improvements
[fix] backport bgr support for bigendians (andreasf) (#14)
[new] Q Control: EditPC can be used (read only) when guest is running (#23)
[new] Q Control: commandline as tooltips of guests (#23)
[new] Q icon

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qcontrol/cocoaControlDOServer.m

    r81 r93  
    3535- (id) init 
    3636{ 
    37 //    NSLog(@"cocoaControlDOServer: init:%@ withName:%@\n", [guest description], name); 
     37//    NSLog(@"cocoaControlDOServer: init"); 
    3838 
    3939    [super init]; 
     
    4949    guests = [[NSMutableDictionary alloc] init]; 
    5050    [guests retain]; 
    51      
     51 
    5252    return self; 
     53} 
     54 
     55- (void) dealloc 
     56{ 
     57//    NSLog(@"cocoaControlDOServer: dealloc"); 
     58 
     59    [guests release]; 
     60 
     61    if (lastGuestDeactivated) { 
     62        [lastGuestDeactivated release]; 
     63    } 
     64 
     65    [super dealloc]; 
    5366} 
    5467 
     
    8093    if ([guests objectForKey:name] != nil) { 
    8194        [guests removeObjectForKey:name]; 
    82 //      NSLog(@"OK"); 
    8395        return TRUE; 
    8496    } else { 
     
    130142 
    131143        transitionSpecifications.type = 7;          //transition; 
    132         transitionSpecifications.option = 2;        //option; 
     144        transitionSpecifications.option = 0;        //option; 
    133145        transitionSpecifications.wid = 0;           //wid 
    134146        transitionSpecifications.backColour = 0;    //background color 
     
    211223 
    212224        transitionSpecifications.type = 7;          //transition; 
    213         transitionSpecifications.option = 1;        //option; 
     225        transitionSpecifications.option = 8;        //option; 
    214226        transitionSpecifications.wid = 0;           //wid 
    215227        transitionSpecifications.backColour = 0;    //background color 
     
    250262} 
    251263 
     264/* NEED SOME DOXYGEN HERE */ 
     265- (BOOL) guestDeactivated: (bycopy NSString *) name 
     266{ 
     267//    NSLog(@"cocoaControlDOServer: guestDeactivated: %@", name); 
     268 
     269    if (lastGuestDeactivated) { 
     270        [lastGuestDeactivated release]; 
     271    } 
     272    if (name) { 
     273        lastGuestDeactivated = [NSString stringWithString:name]; 
     274        [lastGuestDeactivated retain]; 
     275    } else { 
     276        lastGuestDeactivated = nil; 
     277    } 
     278 
     279    return TRUE; 
     280} 
     281 
    252282- (int) guestWindowLevel: (NSString *) guest 
    253283{ 
     
    354384    id obj = [guests objectForKey:guest]; 
    355385    if (obj != nil) { 
    356 //      NSLog(@"OK"); 
    357386        return [obj guestStop]; 
    358387    } else { 
     
    361390    } 
    362391} 
     392 
     393- (id) lastGuestDeactivated 
     394{ 
     395//  NSLog(@"cocoaControlDOServer: lastGuestDeactivated: %@", lastGuestDeactivated); 
     396 
     397    if (lastGuestDeactivated) { 
     398        if ([[guests objectForKey:lastGuestDeactivated] fullscreen]) { 
     399            return lastGuestDeactivated; 
     400        } 
     401    } 
     402    return nil; 
     403} 
     404 
     405- (NSMutableDictionary *) guests 
     406{ 
     407    return guests; 
     408} 
    363409@end