]> git.sesse.net Git - vlc/commitdiff
* removed the old panel which used to show msg_err completely (hopefully) and added...
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 31 Jul 2006 22:15:13 +0000 (22:15 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 31 Jul 2006 22:15:13 +0000 (22:15 +0000)
extras/MacOSX/Resources/English.lproj/InteractionErrorPanel.nib/classes.nib
extras/MacOSX/Resources/English.lproj/InteractionErrorPanel.nib/info.nib
extras/MacOSX/Resources/English.lproj/InteractionErrorPanel.nib/keyedobjects.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
modules/gui/macosx/interaction.h
modules/gui/macosx/interaction.m
modules/gui/macosx/intf.h
modules/gui/macosx/intf.m

index da12b4648b6d637d05711e2f010ee3baffc8300a..3c005b394a5f5bd29358c02d90541e274d9abaa0 100644 (file)
@@ -2,10 +2,15 @@
     IBClasses = (
         {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 
         {
-            ACTIONS = {cleanupTable = id; }; 
+            ACTIONS = {cleanupTable = id; showMessages = id; }; 
             CLASS = VLCErrorInteractionPanel; 
             LANGUAGE = ObjC; 
-            OUTLETS = {"o_cleanup_button" = id; "o_error_table" = id; "o_window" = id; }; 
+            OUTLETS = {
+                "o_cleanup_button" = id; 
+                "o_error_table" = id; 
+                "o_messages_btn" = id; 
+                "o_window" = id; 
+            }; 
             SUPERCLASS = NSObject; 
         }
     ); 
index ad5fd3f1ba827de4f98862257d81e016eb2a2fd6..9daf4396126051141b60938918dd827d52c74c69 100644 (file)
@@ -3,7 +3,7 @@
 <plist version="1.0">
 <dict>
        <key>IBDocumentLocation</key>
-       <string>69 66 356 240 0 0 1440 878 </string>
+       <string>46 162 356 240 0 0 1440 878 </string>
        <key>IBFramework Version</key>
        <string>446.1</string>
        <key>IBOpenObjects</key>
index 97c124958b7232022f3f629a29608f5e1b260802..1196fa5c499214feebb22364b3af56c666241b55 100644 (file)
Binary files a/extras/MacOSX/Resources/English.lproj/InteractionErrorPanel.nib/keyedobjects.nib and b/extras/MacOSX/Resources/English.lproj/InteractionErrorPanel.nib/keyedobjects.nib differ
index ced9bfe3dc9f8d79e027521d037eba675dd96c66..f056b0bfddbf4d22dba9aa95f63d18829af0f3aa 100644 (file)
             ACTIONS = {
                 checkForUpdate = id; 
                 clearRecentItems = id; 
-                closeError = id; 
                 intfOpenDisc = id; 
                 intfOpenFile = id; 
                 intfOpenFileGeneric = id; 
                 reportABug = id; 
                 showBookmarks = id; 
                 showExtended = id; 
+                showMessagesPanel = id; 
                 showSFilters = id; 
                 showWizard = id; 
                 timesliderUpdate = id; 
                 togglePlaylist = id; 
                 viewAbout = id; 
+                viewErrorsAndWarnings = id; 
                 viewPreferences = id; 
             }; 
             CLASS = VLCMain; 
                 "o_dmi_previous" = id; 
                 "o_dmi_stop" = id; 
                 "o_embedded_window" = id; 
-                "o_err_btn_dismiss" = id; 
-                "o_err_btn_msgs" = id; 
-                "o_err_bug_lbl" = id; 
-                "o_err_ckbk_surpress" = id; 
-                "o_err_lbl" = id; 
-                "o_err_msg" = id; 
-                "o_error" = id; 
                 "o_info" = id; 
                 "o_main_pgbar" = id; 
                 "o_messages" = id; 
                 "o_mi_donation" = id; 
                 "o_mi_double_window" = id; 
                 "o_mi_equalizer" = id; 
+                "o_mi_errorsAndWarnings" = id; 
                 "o_mi_extended" = id; 
                 "o_mi_faster" = id; 
                 "o_mi_ffmpeg_pp" = id; 
index ed8bddb32b49c913c11daca24f7a3498b1d902af..2661752d026fb6ea7978b7362e3d6c4365bfd783 100644 (file)
@@ -26,6 +26,7 @@
        <key>IBOpenObjects</key>
        <array>
                <integer>2416</integer>
+               <integer>29</integer>
                <integer>21</integer>
        </array>
        <key>IBSystem Version</key>
index 3b319f9b39a52056c2f63d1cebadd0e4a3d96d71..d2f847fb2fd0bd24bd492733ccf6b5c51c8ad74e 100644 (file)
Binary files a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib and b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib differ
index 1fb5f00c32f41bac01104659983659f654720ea6..c748ecc8ca22d76ada0070a361eccd42828fd64b 100644 (file)
@@ -81,6 +81,7 @@
     IBOutlet id o_window;
     IBOutlet id o_cleanup_button;
     IBOutlet id o_error_table;
+    IBOutlet id o_messages_btn;
 
     NSMutableArray * o_errors;
     NSMutableArray * o_icons;
index dcb7d2c51fe29d1d40d121a3b49f279f9fe56095..c420800ff67477f666311eb20369f22008c0548e 100644 (file)
 -(id)init
 {
     [super init];
+
+    /* load the nib */
     nib_interact_errpanel_loaded = [NSBundle loadNibNamed:@"InteractionErrorPanel" owner:self];
+
+    /* init strings */
     [o_window setTitle: _NS("Errors and Warnings")];
     [o_cleanup_button setTitle: _NS("Clean up")];
+    [o_messages_btn setTitle: _NS("Show Details")];
+
+    /* init data sources */
     o_errors = [[NSMutableArray alloc] init];
     o_icons = [[NSMutableArray alloc] init];
 
     [o_error_table reloadData];
 }
 
+-(IBAction)showMessages:(id)sender
+{
+    [[VLCMain sharedInstance] showMessagesPanel: sender];
+}
+
 /*----------------------------------------------------------------------------
  * data source methods
  *---------------------------------------------------------------------------*/
index ddf28b95bec7b8b90cb9c436326b525f09071cef..fbc8516e20c282e5cc4e21b1f4bcd28f831529e9 100644 (file)
@@ -145,14 +145,6 @@ struct intf_sys_t
     NSLock * o_msg_lock;        /* messages lock  */
     IBOutlet id o_msgs_btn_crashlog;    /* messages open crashlog */
 
-    IBOutlet id o_error;        /* error panel    */
-    IBOutlet id o_err_msg;      /* NSTextView     */
-    IBOutlet id o_err_lbl;
-    IBOutlet id o_err_bug_lbl;
-    IBOutlet id o_err_btn_msgs; /* Open Messages  */
-    IBOutlet id o_err_btn_dismiss;
-    IBOutlet id o_err_ckbk_surpress;
-
     IBOutlet id o_info_window;  /* Info panel     */
 
     /* main menu */
@@ -263,6 +255,7 @@ struct intf_sys_t
     IBOutlet id o_mi_license;
     IBOutlet id o_mi_donation;
     IBOutlet id o_mi_forum;
+    IBOutlet id o_mi_errorsAndWarnings;
 
     /* dock menu */
     IBOutlet id o_dmi_play;
@@ -345,7 +338,6 @@ struct intf_sys_t
 - (IBAction)viewAbout:(id)sender;
 - (IBAction)viewPreferences:(id)sender;
 - (IBAction)checkForUpdate:(id)sender;
-- (IBAction)closeError:(id)sender;
 - (IBAction)openReadMe:(id)sender;
 - (IBAction)openDocumentation:(id)sender;
 - (IBAction)reportABug:(id)sender;
@@ -354,6 +346,8 @@ struct intf_sys_t
 - (IBAction)openForum:(id)sender;
 - (IBAction)openDonate:(id)sender;
 - (IBAction)openCrashLog:(id)sender;
+- (IBAction)viewErrorsAndWarnings:(id)sender;
+- (IBAction)showMessagesPanel:(id)sender;
 
 - (IBAction)togglePlaylist:(id)sender;
 - (void)updateTogglePlaylistState;
index 7b30a063fcb226ce4bcb350153f8c06ba52cbadb..366091b69181cda9fcb2202fe055ca440d2ee131 100644 (file)
@@ -598,6 +598,7 @@ static VLCMain *_o_sharedMainInstance = nil;
     [o_mi_playlist setTitle: _NS("Playlist")];
     [o_mi_info setTitle: _NS("Information")];
     [o_mi_messages setTitle: _NS("Messages")];
+    [o_mi_errorsAndWarnings setTitle: _NS("Errors and Warnings")];
 
     [o_mi_bring_atf setTitle: _NS("Bring All to Front")];
 
@@ -628,16 +629,6 @@ static VLCMain *_o_sharedMainInstance = nil;
     [o_vmi_fullscreen setTitle: _NS("Fullscreen")];
     [o_vmi_snapshot setTitle: _NS("Snapshot")];
 
-    /* error panel */
-    [o_error setTitle: _NS("Error")];
-    [o_err_lbl setStringValue: _NS("An error has occurred which probably " \
-        "prevented the proper execution of the program:")];
-    [o_err_bug_lbl setStringValue: _NS("If you believe that it is a bug, " \
-        "please follow the instructions at:")];
-    [o_err_btn_msgs setTitle: _NS("Open Messages Window")];
-    [o_err_btn_dismiss setTitle: _NS("Dismiss")];
-    [o_err_ckbk_surpress setTitle: _NS("Do not display further errors")];
-
     [o_info_window setTitle: _NS("Information")];
 }
 
@@ -1374,26 +1365,6 @@ static VLCMain *_o_sharedMainInstance = nil;
             [o_msg_lock unlock];
 
             var_Get( p_intf->p_vlc, "verbose", &quiet );
-
-            /* disable the display of msg_err for now 
-             * the interaction system will take care of the error messages now
-             */
-            #if 0
-            if( i_type == 1 && quiet.i_int > -1 )
-            {
-                NSString *o_my_msg = [NSString stringWithFormat: @"%s: %s\n",
-                    p_intf->p_sys->p_sub->p_msg[i_start].psz_module,
-                    p_intf->p_sys->p_sub->p_msg[i_start].psz_msg];
-
-                NSRange s_r = NSMakeRange( [[o_err_msg string] length], 0 );
-                [o_err_msg setEditable: YES];
-                [o_err_msg setSelectedRange: s_r];
-                [o_err_msg insertText: o_my_msg];
-
-                [o_error makeKeyAndOrderFront: self];
-                [o_err_msg setEditable: NO];
-            }
-            #endif
         }
 
         vlc_mutex_lock( p_intf->p_sys->p_sub->p_lock );
@@ -1758,19 +1729,6 @@ static VLCMain *_o_sharedMainInstance = nil;
     }
 }
 
-- (IBAction)closeError:(id)sender
-{
-    vlc_value_t val;
-
-    if( [o_err_ckbk_surpress state] == NSOnState )
-    {
-        val.i_int = -1;
-        var_Set( p_intf->p_vlc, "verbose", val );
-    }
-    [o_err_msg setString: @""];
-    [o_error performClose: self];
-}
-
 - (IBAction)openReadMe:(id)sender
 {
     NSString * o_path = [[NSBundle mainBundle]
@@ -1844,6 +1802,16 @@ static VLCMain *_o_sharedMainInstance = nil;
     }
 }
 
+- (IBAction)viewErrorsAndWarnings:(id)sender
+{
+    [[[self getInteractionList] getErrorPanel] showPanel];
+}
+
+- (IBAction)showMessagesPanel:(id)sender
+{
+    [o_msgs_panel makeKeyAndOrderFront: sender];
+}
+
 - (void)windowDidBecomeKey:(NSNotification *)o_notification
 {
     if( [o_notification object] == o_msgs_panel )