Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a047a67d
Commit
a047a67d
authored
Nov 17, 2003
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added search function to the playlist
parent
2e3381e6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
4 deletions
+62
-4
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
...s/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
+2
-0
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
+3
-2
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
...s/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
+0
-0
modules/gui/macosx/playlist.h
modules/gui/macosx/playlist.h
+5
-1
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+52
-1
No files found.
extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
View file @
a047a67d
...
@@ -324,6 +324,7 @@
...
@@ -324,6 +324,7 @@
deleteItems = id;
deleteItems = id;
playItem = id;
playItem = id;
savePlaylist = id;
savePlaylist = id;
searchItem = id;
selectAll = id;
selectAll = id;
toggleWindow = id;
toggleWindow = id;
};
};
...
@@ -338,6 +339,7 @@
...
@@ -338,6 +339,7 @@
"o_mi_selectall" = id;
"o_mi_selectall" = id;
"o_random_ckb" = id;
"o_random_ckb" = id;
"o_repeat_ckb" = id;
"o_repeat_ckb" = id;
"o_search_keyword" = id;
"o_status_field" = id;
"o_status_field" = id;
"o_table_view" = id;
"o_table_view" = id;
"o_tc_author" = id;
"o_tc_author" = id;
...
...
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
View file @
a047a67d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<plist
version=
"1.0"
>
<plist
version=
"1.0"
>
<dict>
<dict>
<key>
IBDocumentLocation
</key>
<key>
IBDocumentLocation
</key>
<string>
502 132
505 541 0 0 1024 746
</string>
<string>
31 168
505 541 0 0 1024 746
</string>
<key>
IBEditorPositions
</key>
<key>
IBEditorPositions
</key>
<dict>
<dict>
<key>
1617
</key>
<key>
1617
</key>
...
@@ -19,10 +19,11 @@
...
@@ -19,10 +19,11 @@
<array/>
<array/>
<key>
IBOpenObjects
</key>
<key>
IBOpenObjects
</key>
<array>
<array>
<integer>
915
</integer>
<integer>
29
</integer>
<integer>
29
</integer>
<integer>
21
</integer>
<integer>
21
</integer>
<integer>
1647
</integer>
<integer>
1647
</integer>
<integer>
636
</integer>
<integer>
915
</integer>
</array>
</array>
<key>
IBSystem Version
</key>
<key>
IBSystem Version
</key>
<string>
7C107
</string>
<string>
7C107
</string>
...
...
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
View file @
a047a67d
No preview for this file type
modules/gui/macosx/playlist.h
View file @
a047a67d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* playlist.h: MacOS X interface plugin
* playlist.h: MacOS X interface plugin
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* Copyright (C) 2002-2003 VideoLAN
* $Id: playlist.h,v 1.1
3 2003/11/16 11:21:48
bigben Exp $
* $Id: playlist.h,v 1.1
4 2003/11/17 13:05:17
bigben Exp $
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
...
@@ -54,6 +54,9 @@
...
@@ -54,6 +54,9 @@
IBOutlet
id
o_random_ckb
;
IBOutlet
id
o_random_ckb
;
IBOutlet
id
o_loop_ckb
;
IBOutlet
id
o_loop_ckb
;
IBOutlet
id
o_repeat_ckb
;
IBOutlet
id
o_repeat_ckb
;
IBOutlet
id
o_search_keyword
;
}
}
-
(
NSMenu
*
)
menuForEvent
:(
NSEvent
*
)
o_event
;
-
(
NSMenu
*
)
menuForEvent
:(
NSEvent
*
)
o_event
;
...
@@ -63,6 +66,7 @@
...
@@ -63,6 +66,7 @@
-
(
IBAction
)
playItem
:(
id
)
sender
;
-
(
IBAction
)
playItem
:(
id
)
sender
;
-
(
IBAction
)
deleteItems
:(
id
)
sender
;
-
(
IBAction
)
deleteItems
:(
id
)
sender
;
-
(
IBAction
)
selectAll
:(
id
)
sender
;
-
(
IBAction
)
selectAll
:(
id
)
sender
;
-
(
IBAction
)
searchItem
:(
id
)
sender
;
-
(
void
)
appendArray
:(
NSArray
*
)
o_array
atPos
:(
int
)
i_position
enqueue
:(
BOOL
)
b_enqueue
;
-
(
void
)
appendArray
:(
NSArray
*
)
o_array
atPos
:(
int
)
i_position
enqueue
:(
BOOL
)
b_enqueue
;
...
...
modules/gui/macosx/playlist.m
View file @
a047a67d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* playlist.m: MacOS X interface plugin
* playlist.m: MacOS X interface plugin
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* Copyright (C) 2002-2003 VideoLAN
* $Id: playlist.m,v 1.
39 2003/11/16 11:21:48
bigben Exp $
* $Id: playlist.m,v 1.
40 2003/11/17 13:05:17
bigben Exp $
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include <string.h>
#include <string.h>
#include <math.h>
#include <math.h>
#include <sys/mount.h>
#include <sys/mount.h>
#include <vlc_keys.h>
#include "intf.h"
#include "intf.h"
#include "playlist.h"
#include "playlist.h"
...
@@ -143,6 +144,7 @@
...
@@ -143,6 +144,7 @@
[
o_random_ckb
setTitle
:
_NS
(
"Random"
)];
[
o_random_ckb
setTitle
:
_NS
(
"Random"
)];
[
o_loop_ckb
setTitle
:
_NS
(
"Repeat All"
)];
[
o_loop_ckb
setTitle
:
_NS
(
"Repeat All"
)];
[
o_repeat_ckb
setTitle
:
_NS
(
"Repeat One"
)];
[
o_repeat_ckb
setTitle
:
_NS
(
"Repeat One"
)];
}
}
-
(
BOOL
)
tableView
:(
NSTableView
*
)
o_tv
-
(
BOOL
)
tableView
:(
NSTableView
*
)
o_tv
...
@@ -260,6 +262,54 @@
...
@@ -260,6 +262,54 @@
[
o_table_view
selectAll
:
nil
];
[
o_table_view
selectAll
:
nil
];
}
}
-
(
IBAction
)
searchItem
:(
id
)
sender
{
int
i_start
;
int
i_current
;
id
o_current_name
;
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
[
o_table_view
selectedRow
]
==
[
o_table_view
numberOfRows
]
-
1
)
{
i_start
=
-
1
;
}
else
{
i_start
=
[
o_table_view
selectedRow
];
}
for
(
i_current
=
i_start
+
1
;
i_current
<
[
o_table_view
numberOfRows
]
;
i_current
++
)
{
if
(
p_playlist
==
NULL
)
{
o_current_name
=
nil
;
}
else
{
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
o_current_name
=
[[
NSString
stringWithUTF8String
:
p_playlist
->
pp_items
[
i_current
]
->
psz_name
]
lastPathComponent
];
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
if
(
[
o_current_name
rangeOfString
:[
o_search_keyword
stringValue
]
options
:
NSCaseInsensitiveSearch
].
length
)
{
[
o_table_view
selectRow
:
i_current
byExtendingSelection
:
NO
];
[
o_table_view
scrollRowToVisible
:
i_current
];
break
;
}
[
o_table_view
selectRow
:
i_current
byExtendingSelection
:
NO
];
[
o_table_view
scrollRowToVisible
:
i_current
];
}
vlc_object_release
(
p_playlist
);
}
-
(
void
)
appendArray
:(
NSArray
*
)
o_array
atPos
:(
int
)
i_position
enqueue
:(
BOOL
)
b_enqueue
-
(
void
)
appendArray
:(
NSArray
*
)
o_array
atPos
:(
int
)
i_position
enqueue
:(
BOOL
)
b_enqueue
{
{
int
i_item
;
int
i_item
;
...
@@ -374,6 +424,7 @@
...
@@ -374,6 +424,7 @@
[
o_table_view
scrollRowToVisible
:
i_row
];
[
o_table_view
scrollRowToVisible
:
i_row
];
}
}
@end
@end
@implementation
VLCPlaylist
(
NSTableDataSource
)
@implementation
VLCPlaylist
(
NSTableDataSource
)
...
...
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