Initial hookup of the new positioning into MT. The corner effects work,
authorKent Sutherland <ksuther@ithinksw.com>
Fri, 14 Nov 2003 00:30:54 +0000 (00:30 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Fri, 14 Nov 2003 00:30:54 +0000 (00:30 +0000)
except for pivot on the right side. There is no error checking to make
sure that the effect and the position are a valid combo, so you can make
some interesting things happen still. Have to add sanity checking in
PreferencesController still. Look at EffectsSupport.txt in ITKit to see
what is allowed where.

English.lproj/Preferences.nib/info.nib
English.lproj/Preferences.nib/keyedobjects.nib
PreferencesController.m
StatusWindowController.h
StatusWindowController.m

index 3ef736f..670f459 100755 (executable)
@@ -20,8 +20,9 @@
        <key>IBOpenObjects</key>
        <array>
                <integer>6</integer>
+               <integer>634</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>7B85</string>
+       <string>7C107</string>
 </dict>
 </plist>
index 695eb60..8563020 100755 (executable)
Binary files a/English.lproj/Preferences.nib/keyedobjects.nib and b/English.lproj/Preferences.nib/keyedobjects.nib differ
index 3fc842e..f5ffe1c 100755 (executable)
@@ -364,6 +364,7 @@ static PreferencesController *prefs = nil;
     if ( [sender tag] == 2010) {
         [df setInteger:[sender selectedRow] forKey:@"statusWindowVerticalPosition"];
         [df setInteger:[sender selectedColumn] forKey:@"statusWindowHorizontalPosition"];
+        [[StatusWindowController sharedController] readDefaults];
         // update the window's position here
     } else if ( [sender tag] == 2020) {
         // update screen selection
index 11d7fe8..7e9aae5 100755 (executable)
@@ -33,6 +33,8 @@ typedef enum {
 
 + (StatusWindowController *)sharedController;
 
+- (void)readDefaults;
+
 - (void)showUpcomingSongsWindowWithTitles:(NSArray *)titleStrings;
 
 - (void)showVolumeWindowWithLevel:(float)level;
index 6c8841c..e28bf71 100755 (executable)
@@ -93,6 +93,14 @@ static StatusWindowController *sharedController;
     [super dealloc];
 }
 
+- (void)readDefaults
+{
+    ITHorizontalWindowPosition horizontalPosition = [[NSUserDefaults standardUserDefaults] integerForKey:@"statusWindowHorizontalPosition"];
+    ITVerticalWindowPosition verticalPosition = [[NSUserDefaults standardUserDefaults] integerForKey:@"statusWindowVerticalPosition"];
+    [_window setHorizontalPosition:horizontalPosition];
+    [_window setVerticalPosition:verticalPosition];
+}
+
 - (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source
                                title:            (NSString *)title
                                album:            (NSString *)album