positionMatrix = NSMatrix;
ratingCheckbox = NSButton;
runScriptsCheckbox = NSButton;
+ screenPopup = NSPopUpButton;
selectPlayerBox = NSBox;
selectPlayerSheet = NSPanel;
selectSharedPlayerButton = NSButton;
IBOutlet NSMatrix *positionMatrix;
IBOutlet NSButton *ratingCheckbox;
IBOutlet NSButton *runScriptsCheckbox;
+ IBOutlet NSPopUpButton *screenPopup;
IBOutlet NSTextField *selectedPlayerTextField;
IBOutlet NSBox *selectPlayerBox;
IBOutlet NSPanel *selectPlayerSheet;
} else if ( [sender tag] == 2020) {
// Update screen selection.
-
+ [[StatusWindow sharedWindow] setScreen:[[NSScreen screens] objectAtIndex:[sender indexOfSelectedItem]]];
+ [(MainController *)controller showCurrentTrackInfo];
+
} else if ( [sender tag] == 2030) {
[self setStatusWindowEntryEffect:[[sender selectedItem] representedObject]];
NSData *colorData;
int selectedBGStyle;
id anItem;
-
+ NSArray *screens = [NSScreen screens];
+
[df setInteger:MT_CURRENT_VERSION forKey:@"appVersion"];
ITDebugLog(@"Setting up preferences UI.");
}
}
+ ITDebugLog(@"Setting up screen popup");
+ if ([screens count] > 1) {
+ int i;
+ [screenPopup setEnabled:YES];
+ for (i = 0; i < [screens count]; i++) {
+ NSScreen *screen = [screens objectAtIndex:i];
+ if (![screen isEqual:[NSScreen mainScreen]]) {
+ [screenPopup addItemWithTitle:[NSString stringWithFormat:@"Screen %i", i + 1]];
+ }
+ }
+ }
+
ITDebugLog(@"Setting up track info checkboxes.");
// Check current track info buttons
[albumCheckbox setState:[df boolForKey:@"showAlbum"] ? NSOnState : NSOffState];
- (void)dealloc
{
- [_image release];
+ [_image release];
[super dealloc];
}
_sizing = newSizing;
}
-
/*************************************************************************/
#pragma mark -
#pragma mark INSTANCE METHODS
ITImageView *imageView;
BOOL shouldAnimate = ( ! (([self visibilityState] == ITWindowAppearingState) ||
([self visibilityState] == ITWindowVanishingState)) );
-
+
if ( _sizing == ITTransientStatusWindowSmall ) {
divisor = SMALL_DIVISOR;
} else if ( _sizing == ITTransientStatusWindowMini ) {