Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
48c6e154
Commit
48c6e154
authored
Nov 18, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/interface.cpp: enabled the OpenFile dialog box.
parent
903aa1fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+18
-20
No files found.
modules/gui/wxwindows/interface.cpp
View file @
48c6e154
...
...
@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.
2 2002/11/18 15:19:2
6 gbazin Exp $
* $Id: interface.cpp,v 1.
3 2002/11/18 16:39:3
6 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -258,26 +258,24 @@ void Interface::OnAbout( wxCommandEvent& WXUNUSED(event) )
void
Interface
::
OnOpenFile
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
{
wxFileDialog
dialog
(
this
,
_T
(
"Open file dialog"
),
_T
(
""
),
_T
(
""
),
_T
(
"*.*"
)
);
if
(
dialog
.
ShowModal
()
==
wxID_OK
)
wxFileDialog
dialog
(
this
,
_
(
"Open file"
),
_
(
""
),
_
(
""
),
_
(
"*.*"
)
);
if
(
dialog
.
ShowModal
()
==
wxID_OK
)
{
wxString
info
;
info
.
Printf
(
_T
(
"Full file name: %s
\n
"
)
_T
(
"Path: %s
\n
"
)
_T
(
"Name: %s"
),
dialog
.
GetPath
().
c_str
(),
dialog
.
GetDirectory
().
c_str
(),
dialog
.
GetFilename
().
c_str
());
wxMessageDialog
dialog2
(
this
,
info
,
_T
(
"Selected file"
));
dialog2
.
ShowModal
();
/* Update the playlist */
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
==
NULL
)
{
return
;
}
playlist_Add
(
p_playlist
,
(
char
*
)
dialog
.
GetPath
().
c_str
(),
PLAYLIST_APPEND
|
PLAYLIST_GO
,
PLAYLIST_END
);
vlc_object_release
(
p_playlist
);
}
}
...
...
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