Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0cb29ee3
Commit
0cb29ee3
authored
Feb 04, 2016
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/coredialogs: add checkbox to login dialog to ask for store
parent
5c4d7d51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
extras/package/macosx/Resources/English.lproj/CoreDialogs.xib
...as/package/macosx/Resources/English.lproj/CoreDialogs.xib
+10
-0
modules/gui/macosx/coredialogs.h
modules/gui/macosx/coredialogs.h
+1
-0
modules/gui/macosx/coredialogs.m
modules/gui/macosx/coredialogs.m
+5
-4
No files found.
extras/package/macosx/Resources/English.lproj/CoreDialogs.xib
View file @
0cb29ee3
...
...
@@ -14,6 +14,7 @@
<outlet
property=
"authenticationOkButton"
destination=
"252"
id=
"BgQ-UX-t3S"
/>
<outlet
property=
"authenticationPasswordLabel"
destination=
"251"
id=
"mgJ-w8-OSO"
/>
<outlet
property=
"authenticationPasswordTextField"
destination=
"253"
id=
"kg1-Mw-Xxc"
/>
<outlet
property=
"authenticationStorePasswordCheckbox"
destination=
"7LA-vc-QPm"
id=
"eyU-kP-Qws"
/>
<outlet
property=
"authenticationTitleLabel"
destination=
"256"
id=
"w85-xG-Aix"
/>
<outlet
property=
"authenticationWindow"
destination=
"248"
id=
"KUc-xR-bpJ"
/>
<outlet
property=
"progressCancelButton"
destination=
"306"
id=
"yX8-ag-f4a"
/>
...
...
@@ -124,6 +125,13 @@ Gw
</constraints>
<imageCell
key=
"cell"
refusesFirstResponder=
"YES"
alignment=
"left"
imageAlignment=
"topLeft"
imageScaling=
"proportionallyDown"
image=
"NSApplicationIcon"
id=
"325"
/>
</imageView>
<button
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7LA-vc-QPm"
>
<rect
key=
"frame"
x=
"94"
y=
"21"
width=
"88"
height=
"18"
/>
<buttonCell
key=
"cell"
type=
"check"
title=
"Remember"
bezelStyle=
"regularSquare"
imagePosition=
"left"
state=
"on"
inset=
"2"
id=
"5El-9y-n4Y"
>
<behavior
key=
"behavior"
changeContents=
"YES"
doesNotDimImage=
"YES"
lightByContents=
"YES"
/>
<font
key=
"font"
metaFont=
"system"
/>
</buttonCell>
</button>
</subviews>
<constraints>
<constraint
firstItem=
"252"
firstAttribute=
"top"
secondItem=
"253"
secondAttribute=
"bottom"
constant=
"20"
id=
"0dm-8h-d9f"
/>
...
...
@@ -139,7 +147,9 @@ Gw
<constraint
firstItem=
"254"
firstAttribute=
"centerY"
secondItem=
"252"
secondAttribute=
"centerY"
id=
"Yd8-Jc-1YW"
/>
<constraint
firstItem=
"256"
firstAttribute=
"top"
secondItem=
"314"
secondAttribute=
"top"
id=
"dB9-JK-2Lo"
/>
<constraint
firstItem=
"255"
firstAttribute=
"leading"
secondItem=
"257"
secondAttribute=
"leading"
id=
"de7-8M-oBQ"
/>
<constraint
firstItem=
"7LA-vc-QPm"
firstAttribute=
"leading"
secondItem=
"253"
secondAttribute=
"leading"
id=
"e2a-lM-3N0"
/>
<constraint
firstItem=
"251"
firstAttribute=
"leading"
secondItem=
"250"
secondAttribute=
"leading"
id=
"iEd-dM-6MD"
/>
<constraint
firstItem=
"7LA-vc-QPm"
firstAttribute=
"centerY"
secondItem=
"254"
secondAttribute=
"centerY"
id=
"jqQ-3p-fZC"
/>
<constraint
firstItem=
"257"
firstAttribute=
"trailing"
secondItem=
"252"
secondAttribute=
"trailing"
id=
"keI-Fm-ogw"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"252"
secondAttribute=
"bottom"
constant=
"19"
id=
"p5k-jJ-36M"
/>
<constraint
firstItem=
"253"
firstAttribute=
"top"
secondItem=
"251"
secondAttribute=
"bottom"
constant=
"8"
id=
"qui-cW-NGH"
/>
...
...
modules/gui/macosx/coredialogs.h
View file @
0cb29ee3
...
...
@@ -41,6 +41,7 @@
IBOutlet
NSTextField
*
authenticationPasswordTextField
;
IBOutlet
NSTextField
*
authenticationPasswordLabel
;
IBOutlet
NSTextField
*
authenticationTitleLabel
;
IBOutlet
NSButton
*
authenticationStorePasswordCheckbox
;
IBOutlet
NSWindow
*
authenticationWindow
;
/* progress dialog */
...
...
modules/gui/macosx/coredialogs.m
View file @
0cb29ee3
...
...
@@ -211,6 +211,7 @@ static void updateProgressCallback(vlc_dialog_id *p_id,
[
authenticationPasswordLabel
setStringValue
:
_NS
(
"Password"
)];
[
authenticationCancelButton
setTitle
:
_NS
(
"Cancel"
)];
[
authenticationOkButton
setTitle
:
_NS
(
"OK"
)];
[
authenticationStorePasswordCheckbox
setTitle
:
_NS
(
"Remember"
)];
[
progressCancelButton
setTitle
:
_NS
(
"Cancel"
)];
[
progressIndicator
setUsesThreadedAnimation
:
YES
];
...
...
@@ -222,8 +223,6 @@ static void updateProgressCallback(vlc_dialog_id *p_id,
defaultUserName
:(
const
char
*
)
psz_default_username
askToStore
:(
bool
)
b_ask_store
{
// FIXME: add support for b_ask_store
[
authenticationTitleLabel
setStringValue
:
toNSStr
(
psz_title
)];
authenticationWindow
.
title
=
authenticationTitleLabel
.
stringValue
;
[
authenticationDescriptionLabel
setStringValue
:
toNSStr
(
psz_text
)];
...
...
@@ -231,6 +230,9 @@ static void updateProgressCallback(vlc_dialog_id *p_id,
[
authenticationLoginTextField
setStringValue
:
toNSStr
(
psz_default_username
)];
[
authenticationPasswordTextField
setStringValue
:
@""
];
authenticationStorePasswordCheckbox
.
hidden
=
!
b_ask_store
;
authenticationStorePasswordCheckbox
.
state
=
NSOffState
;
[
authenticationWindow
center
];
NSInteger
returnValue
=
[
NSApp
runModalForWindow
:
authenticationWindow
];
[
authenticationWindow
close
];
...
...
@@ -241,8 +243,7 @@ static void updateProgressCallback(vlc_dialog_id *p_id,
vlc_dialog_id_post_login
(
p_id
,
username
?
[
username
UTF8String
]
:
NULL
,
password
?
[
password
UTF8String
]
:
NULL
,
false
);
authenticationStorePasswordCheckbox
.
state
==
NSOnState
);
}
-
(
IBAction
)
authenticationDialogAction
:(
id
)
sender
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment