Commit 16cb39fc authored by Felix Paul Kühne's avatar Felix Paul Kühne

* added an option to keep the selections in the wizard for a single session....

* added an option to keep the selections in the wizard for a single session. It's enabled by default. (refs #522)
parent 18533cf1
......@@ -75,6 +75,11 @@ void E_(CloseVideoGL) ( vlc_object_t * );
#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_capability( "interface", 100 );
......@@ -83,6 +88,8 @@ vlc_module_begin();
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") );
......
......@@ -147,6 +147,8 @@
NSArray * o_encapFormats;
NSArray * o_strmgMthds;
NSString * o_opts;
BOOL * keepSettingsOrNot;
}
- (IBAction)cancelRun:(id)sender;
- (IBAction)nextTab:(id)sender;
......
......@@ -35,6 +35,7 @@
#import "intf.h"
#import "network.h"
#import "playlist.h"
#import <vlc/intf.h>
/*****************************************************************************
* VLCWizard implementation
......@@ -296,8 +297,6 @@ static VLCWizard *_o_sharedInstance = nil;
- (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];
......@@ -305,12 +304,21 @@ static VLCWizard *_o_sharedInstance = 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: @""];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment