#define BACKGROUND_TEXT N_("Use as Desktop Background")
#define BACKGROUND_LONGTEXT N_("Use the video as the Desktop Background " \
"of the Finder. Desktop icons cannot be interacted with in this mode." )
+
+#define WIZARD_OPTIONS_SAVING_TEXT N_("Keep wizard selections")
+#define WIZARD_OPTIONS_SAVING_LONGTEXT N_("Keeps the selections in the " \
+ "wizard for one session of VLC, so you do not need to choose them " \
+ "over and over again for similar purposes.")
vlc_module_begin();
set_description( _("Mac OS X interface") );
set_subcategory( SUBCAT_INTERFACE_GENERAL );
add_bool( "macosx-embedded", 1, NULL, EMBEDDED_TEXT, EMBEDDED_LONGTEXT,
VLC_FALSE );
+ add_bool( "macosx-wizard-keep", 1, NULL, WIZARD_OPTIONS_SAVING_TEXT,
+ WIZARD_OPTIONS_SAVING_LONGTEXT, VLC_TRUE );
add_submodule();
set_description( _("Quartz video") );
NSArray * o_encapFormats;
NSArray * o_strmgMthds;
NSString * o_opts;
+
+ BOOL * keepSettingsOrNot;
}
- (IBAction)cancelRun:(id)sender;
- (IBAction)nextTab:(id)sender;
#import "intf.h"
#import "network.h"
#import "playlist.h"
+#import <vlc/intf.h>
/*****************************************************************************
* VLCWizard implementation
- (void)showWizard
{
/* just present the window to the user */
- [o_tab_pageHolder selectFirstTabViewItem:self];
-
[o_wizard_window center];
[o_wizard_window displayIfNeeded];
[o_wizard_window makeKeyAndOrderFront:nil];
- (void)resetWizard
{
- /* reset the wizard-window to its default values */
+ /* get the current state of our setting to keep the selections or not */
+ keepSettingsOrNot = (BOOL *)config_GetInt( VLCIntf, "macosx-wizard-keep" );
+ /* go to the front page and clean up a bit */
[o_userSelections removeAllObjects];
+ [o_btn_forward setTitle: _NS("Next")];
+ [o_tab_pageHolder selectFirstTabViewItem:self];
+
+
+ if( keepSettingsOrNot )
+ return;
+
+ /* reset the wizard-window to its default values if wanted */
[o_t1_matrix_strmgOrTrnscd selectCellAtRow:0 column:0];
[[o_t1_matrix_strmgOrTrnscd cellAtRow:1 column:0] setState: NSOffState];
- [o_btn_forward setTitle: _NS("Next")];
/* "Input" */
[o_t2_fld_pathToNewStrm setStringValue: @""];