#include "open.h"
#include "wizard.h"
#include "extended.h"
-//#include "bookmarks.h"
+#include "bookmarks.h"
/*****************************************************************************
* Local prototypes.
o_open = [[VLCOpen alloc] init];
o_wizard = [[VLCWizard alloc] init];
o_extended = [[VLCExtended alloc] init];
- //o_bookmarks = [[VLCBookmarks alloc] init];
+ o_bookmarks = [[VLCBookmarks alloc] init];
i_lastShownVolume = -1;
return _o_sharedMainInstance;
[o_prefs release];
[o_open release];
[o_extended release];
- //[o_bookmarks release];
+ [o_bookmarks release];
[super dealloc];
}
[o_mi_controller setTitle: _NS("Controller")];
[o_mi_equalizer setTitle: _NS("Equalizer")];
[o_mi_extended setTitle: _NS("Extended controls")];
- //[o_mi_bookmarks setTitle: _NS("Bookmarks")];
+ [o_mi_bookmarks setTitle: _NS("Bookmarks")];
[o_mi_playlist setTitle: _NS("Playlist")];
[o_mi_info setTitle: _NS("Info")];
[o_mi_messages setTitle: _NS("Messages")];
/* error panel */
[o_error setTitle: _NS("Error")];
- [o_err_lbl setStringValue: _NS("An error has occurred which probably prevented the execution of your request:")];
- [o_err_bug_lbl setStringValue: _NS("If you believe that it is a bug, please follow the instructions at:")];
+ [o_err_lbl setStringValue: _NS("An error has occurred which probably " \
+ "prevented the execution of your request:")];
+ [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("Suppress further errors")];
return nil;
}
+- (id)getBookmarks
+{
+ if ( o_bookmarks )
+ {
+ return o_bookmarks;
+ }
+ return nil;
+}
+
- (void)manage
{
NSDate * o_sleep_date;
{
nib_wizard_loaded = [NSBundle loadNibNamed:@"Wizard" owner:self];
[o_wizard initStrings];
+ [o_wizard resetWizard];
[o_wizard showWizard];
} else {
+ [o_wizard resetWizard];
[o_wizard showWizard];
}
}
- (IBAction)showExtended:(id)sender
{
+ /* we need the wizard-nib for the bookmarks's extract functionality */
+ if (!nib_wizard_loaded)
+ {
+ nib_wizard_loaded = [NSBundle loadNibNamed:@"Wizard" owner:self];
+ }
+
if (!nib_extended_loaded)
{
nib_extended_loaded = [NSBundle loadNibNamed:@"Extended" owner:self];
}
}
-/*- (IBAction)showBookmarks:(id)sender
+- (IBAction)showBookmarks:(id)sender
{
if (!nib_bookmarks_loaded)
{
nib_bookmarks_loaded = [NSBundle loadNibNamed:@"Bookmarks" owner:self];
- [o_bookmarks initStrings];
- [o_bookmarks showPanel];
+ [o_bookmarks showBookmarks];
} else {
- [o_bookmarks showPanel];
+ [o_bookmarks showBookmarks];
}
-}*/
+}
- (IBAction)viewAbout:(id)sender
{