Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
1de26dad
Commit
1de26dad
authored
May 24, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dropbox: add a toolbar showing the number of files in the current directory
parent
d6ff5422
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
1 deletion
+20
-1
AspenProject/VLCDropboxTableViewController.m
AspenProject/VLCDropboxTableViewController.m
+16
-0
Resources/VLCDropboxTableViewController.xib
Resources/VLCDropboxTableViewController.xib
+4
-1
Resources/de.lproj/Localizable.strings
Resources/de.lproj/Localizable.strings
+0
-0
Resources/en.lproj/Localizable.strings
Resources/en.lproj/Localizable.strings
+0
-0
Resources/fr.lproj/Localizable.strings
Resources/fr.lproj/Localizable.strings
+0
-0
Resources/ru.lproj/Localizable.strings
Resources/ru.lproj/Localizable.strings
+0
-0
No files found.
AspenProject/VLCDropboxTableViewController.m
View file @
1de26dad
...
...
@@ -17,6 +17,9 @@
{
VLCDropboxController
*
_dropboxController
;
NSString
*
_currentPath
;
UIBarButtonItem
*
_numberOfFilesBarButtonItem
;
UIBarButtonItem
*
_progressBarButtonItem
;
}
@end
...
...
@@ -52,6 +55,13 @@
self
.
tableView
.
rowHeight
=
[
VLCDropboxTableViewCell
heightOfCell
];
self
.
tableView
.
separatorColor
=
[
UIColor
colorWithWhite
:.
2
alpha
:
1
.];
_numberOfFilesBarButtonItem
=
[[
UIBarButtonItem
alloc
]
initWithTitle
:[
NSString
stringWithFormat
:
NSLocalizedString
(
@"NUM_OF_FILES"
,
@""
),
0
]
style
:
UIBarButtonItemStylePlain
target
:
self
action
:
nil
];
[
_numberOfFilesBarButtonItem
setTitleTextAttributes
:@{
UITextAttributeFont
:
[
UIFont
systemFontOfSize
:
11
.]
}
forState
:
UIControlStateNormal
];
self
.
navigationController
.
toolbarHidden
=
NO
;
self
.
navigationController
.
toolbar
.
barStyle
=
UIBarStyleBlack
;
[
self
setToolbarItems
:@[[[
UIBarButtonItem
alloc
]
initWithBarButtonSystemItem
:
UIBarButtonSystemItemFlexibleSpace
target
:
nil
action
:
nil
],
_numberOfFilesBarButtonItem
,
[[
UIBarButtonItem
alloc
]
initWithBarButtonSystemItem
:
UIBarButtonSystemItemFlexibleSpace
target
:
nil
action
:
nil
]]
animated
:
NO
];
}
-
(
void
)
viewWillAppear
:(
BOOL
)
animated
...
...
@@ -117,6 +127,12 @@
-
(
void
)
mediaListUpdated
{
[
self
.
tableView
reloadData
];
NSUInteger
count
=
_dropboxController
.
currentListFiles
.
count
;
if
(
count
!=
1
)
_numberOfFilesBarButtonItem
.
title
=
[
NSString
stringWithFormat
:
NSLocalizedString
(
@"NUM_OF_FILES"
,
@""
),
count
];
else
_numberOfFilesBarButtonItem
.
title
=
NSLocalizedString
(
@"ONE_FILE"
,
@""
);
}
#pragma mark - communication with app delegate
...
...
Resources/VLCDropboxTableViewController.xib
View file @
1de26dad
...
...
@@ -36,7 +36,7 @@
<object
class=
"IBUITableView"
id=
"873029372"
>
<reference
key=
"NSNextResponder"
/>
<int
key=
"NSvFlags"
>
274
</int>
<string
key=
"NSFrame"
>
{{0, 20}, {320, 54
8
}}
</string>
<string
key=
"NSFrame"
>
{{0, 20}, {320, 5
0
4}}
</string>
<reference
key=
"NSSuperview"
/>
<reference
key=
"NSWindow"
/>
<object
class=
"NSColor"
key=
"IBUIBackgroundColor"
id=
"651013553"
>
...
...
@@ -47,6 +47,9 @@
<bool
key=
"IBUIClipsSubviews"
>
YES
</bool>
<bool
key=
"IBUIClearsContextBeforeDrawing"
>
NO
</bool>
<object
class=
"IBUISimulatedStatusBarMetrics"
key=
"IBUISimulatedStatusBarMetrics"
/>
<object
class=
"IBUISimulatedToolbarMetrics"
key=
"IBUISimulatedBottomBarMetrics"
>
<int
key=
"IBUIBarStyle"
>
1
</int>
</object>
<object
class=
"IBUIScreenMetrics"
key=
"IBUISimulatedDestinationMetrics"
id=
"507962971"
>
<string
key=
"IBUISimulatedSizeMetricsClass"
>
IBUIScreenMetrics
</string>
<object
class=
"NSMutableDictionary"
key=
"IBUINormalizedOrientationToSizeMap"
>
...
...
Resources/de.lproj/Localizable.strings
View file @
1de26dad
B
"CHOOSE_AUDIO_TRACK"="Audiospur wählen";
...
...
Resources/en.lproj/Localizable.strings
View file @
1de26dad
B
"CHOOSE_AUDIO_TRACK"="Choose Audio Track";
...
...
Resources/fr.lproj/Localizable.strings
View file @
1de26dad
B
"CHOOSE_AUDIO_TRACK"="Choisir Piste Audio";
...
...
Resources/ru.lproj/Localizable.strings
View file @
1de26dad
B
"CHOOSE_AUDIO_TRACK"="Выберите аудио поток";
...
...
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