1 /*****************************************************************************
2 * wxwindows.h: private wxWindows interface description
3 *****************************************************************************
4 * Copyright (C) 1999-2004 VideoLAN
7 * Authors: Gildas Bazin <gbazin@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 #ifdef WIN32 /* mingw32 hack */
29 /* Let vlc take care of the i18n stuff */
30 #define WXINTL_NO_GETTEXT_MACRO
32 #include <wx/wxprec.h>
35 #include <wx/listctrl.h>
36 #include <wx/textctrl.h>
37 #include <wx/notebook.h>
38 #include <wx/spinctrl.h>
40 #include <wx/treectrl.h>
43 #include <wx/checkbox.h>
44 #include <wx/wizard.h>
47 /* Hmmm, work-around for newest wxWin */
48 #ifdef wxStaticCastEvent
49 # undef wxStaticCastEvent
50 # define wxStaticCastEvent(type, val) ((type)(val))
53 DECLARE_LOCAL_EVENT_TYPE( wxEVT_DIALOG, 0 );
54 DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
56 #define SLIDER_MAX_POS 10000
58 /* wxU is used to convert ansi/utf8 strings to unicode strings (wchar_t) */
59 #if defined( ENABLE_NLS ) && defined( ENABLE_UTF8 )
61 # define wxU(utf8) wxString(utf8, wxConvUTF8)
63 # define wxU(utf8) wxString(wxConvUTF8.cMB2WC(utf8), *wxConvCurrent)
67 #else // ENABLE_NLS && ENABLE_UTF8
69 # define wxU(ansi) wxString(ansi, *wxConvCurrent)
71 # define wxU(ansi) ansi
77 /* wxL2U (locale to unicode) is used to convert ansi strings to unicode
78 * strings (wchar_t) */
80 # define wxL2U(ansi) wxString(ansi, *wxConvCurrent)
82 # define wxL2U(ansi) ansi
95 class DialogsProvider;
100 /*****************************************************************************
101 * intf_sys_t: description and status of wxwindows interface
102 *****************************************************************************/
105 /* the wx parent window */
106 wxWindow *p_wxwindow;
109 /* special actions */
110 vlc_bool_t b_playing;
111 vlc_bool_t b_intf_show; /* interface to be shown */
113 /* The input thread */
114 input_thread_t * p_input;
117 int i_slider_pos; /* slider position */
118 int i_slider_oldpos; /* previous position */
119 vlc_bool_t b_slider_free; /* slider status */
121 /* The messages window */
122 msg_subscription_t* p_sub; /* message bank subscription */
124 /* Playlist management */
125 int i_playing; /* playlist selected item */
127 /* Send an event to show a dialog */
128 void (*pf_show_dialog) ( intf_thread_t *p_intf, int i_dialog, int i_arg,
129 intf_dialog_args_t *p_arg );
132 wxMenu *p_popup_menu;
135 int i_first_hotkey_event;
139 VideoWindow *p_video_window;
140 wxBoxSizer *p_video_sizer;
143 aout_instance_t *p_aout;
146 /*****************************************************************************
148 *****************************************************************************/
149 wxArrayString SeparateEntries( wxString );
150 wxWindow *VideoWindow( intf_thread_t *p_intf, wxWindow *p_parent );
151 wxWindow *BookmarksDialog( intf_thread_t *p_intf, wxWindow *p_parent );
152 wxWindow *CreateDialogsProvider( intf_thread_t *p_intf, wxWindow *p_parent );
159 class SubsFileDialog;
165 class ItemInfoDialog;
167 class ExportPlaylist;
169 /*****************************************************************************
170 * Classes declarations.
171 *****************************************************************************/
173 class Timer: public wxTimer
177 Timer( intf_thread_t *p_intf, Interface *p_main_interface );
180 virtual void Notify();
183 intf_thread_t *p_intf;
184 Interface *p_main_interface;
186 int i_old_playing_status;
188 vlc_bool_t b_old_seekable;
193 class ExtraPanel: public wxPanel
197 ExtraPanel( intf_thread_t *p_intf, wxWindow *p_parent );
198 virtual ~ExtraPanel();
200 wxStaticBox *adjust_box;
201 wxButton *restoredefaults_button;
202 wxSlider *brightness_slider;
203 wxSlider *contrast_slider;
204 wxSlider *saturation_slider;
205 wxSlider *hue_slider;
206 wxSlider *gamma_slider;
208 wxStaticBox *other_box;
209 wxComboBox *ratio_combo;
217 wxPanel *VideoPanel( wxWindow * );
218 wxPanel *EqzPanel( wxWindow * );
219 wxPanel *AudioPanel( wxWindow * );
221 wxNotebook *notebook;
223 wxCheckBox *eq_chkbox;
225 wxCheckBox *eq_2p_chkbox;
227 wxSlider *smooth_slider;
229 wxSlider *preamp_slider;
230 wxStaticText * preamp_text;
235 wxSlider *band_sliders[10];
236 wxStaticText *band_texts[10];
242 /* Event handlers (these functions should _not_ be virtual) */
244 void OnEnableAdjust( wxCommandEvent& );
245 void OnEnableEqualizer( wxCommandEvent& );
246 void OnRestoreDefaults( wxCommandEvent& );
247 void OnChangeEqualizer( wxScrollEvent& );
248 void OnAdjustUpdate( wxScrollEvent& );
249 void OnRatio( wxCommandEvent& );
250 void OnFiltersInfo( wxCommandEvent& );
251 void OnSelectFilter( wxCommandEvent& );
253 void OnEqSmooth( wxScrollEvent& );
254 void OnPreamp( wxScrollEvent& );
255 void OnEq2Pass( wxCommandEvent& );
256 void OnEqRestore( wxCommandEvent& );
258 void OnHeadphone( wxCommandEvent& );
259 void OnNormvol( wxCommandEvent& );
260 void OnNormvolSlider( wxScrollEvent& );
262 void OnIdle( wxIdleEvent& );
264 DECLARE_EVENT_TABLE();
266 intf_thread_t *p_intf;
267 vlc_bool_t b_my_update;
271 /* Extended Window */
272 class ExtraWindow: public wxFrame
276 ExtraWindow( intf_thread_t *p_intf, wxWindow *p_parent, wxPanel *panel );
277 virtual ~ExtraWindow();
283 DECLARE_EVENT_TABLE();
285 intf_thread_t *p_intf;
290 class Interface: public wxFrame
294 Interface( intf_thread_t *p_intf );
295 virtual ~Interface();
297 void TogglePlayButton( int i_playing_status );
300 wxBoxSizer *frame_sizer;
301 wxStatusBar *statusbar;
304 wxWindow *slider_frame;
305 wxPanel *extra_frame;
307 wxFrame *extra_window;
317 void CreateOurMenuBar();
318 void CreateOurToolBar();
319 void CreateOurExtendedPanel();
320 void CreateOurSlider();
321 void Open( int i_access_method );
323 /* Event handlers (these functions should _not_ be virtual) */
324 void OnExit( wxCommandEvent& event );
325 void OnAbout( wxCommandEvent& event );
327 void OnOpenFileSimple( wxCommandEvent& event );
328 void OnOpenFile( wxCommandEvent& event );
329 void OnOpenDisc( wxCommandEvent& event );
330 void OnOpenNet( wxCommandEvent& event );
331 void OnOpenSat( wxCommandEvent& event );
333 void OnExtended( wxCommandEvent& event );
334 //void OnUndock( wxCommandEvent& event );
336 void OnBookmarks( wxCommandEvent& event );
337 void OnShowDialog( wxCommandEvent& event );
338 void OnPlayStream( wxCommandEvent& event );
339 void OnStopStream( wxCommandEvent& event );
340 void OnSliderUpdate( wxScrollEvent& event );
341 void OnPrevStream( wxCommandEvent& event );
342 void OnNextStream( wxCommandEvent& event );
343 void OnSlowStream( wxCommandEvent& event );
344 void OnFastStream( wxCommandEvent& event );
346 void OnMenuOpen( wxMenuEvent& event );
348 #if defined( __WXMSW__ ) || defined( __WXMAC__ )
349 void OnContextMenu2(wxContextMenuEvent& event);
351 void OnContextMenu(wxMouseEvent& event);
353 void OnControlEvent( wxCommandEvent& event );
355 DECLARE_EVENT_TABLE();
358 intf_thread_t *p_intf;
361 int i_old_playing_status;
363 /* For auto-generated menus */
364 wxMenu *p_settings_menu;
365 wxMenu *p_audio_menu;
366 wxMenu *p_video_menu;
367 wxMenu *p_navig_menu;
371 WX_DEFINE_ARRAY(AutoBuiltPanel *, ArrayOfAutoBuiltPanel);
372 class OpenDialog: public wxDialog
376 OpenDialog( intf_thread_t *p_intf, wxWindow *p_parent,
377 int i_access_method, int i_arg = 0 );
379 /* Extended Contructor */
380 OpenDialog( intf_thread_t *p_intf, wxWindow *p_parent,
381 int i_access_method, int i_arg = 0 , int _i_method = 0 );
382 virtual ~OpenDialog();
385 int Show( int i_access_method, int i_arg = 0 );
388 void UpdateMRL( int i_access_method );
393 wxPanel *FilePanel( wxWindow* parent );
394 wxPanel *DiscPanel( wxWindow* parent );
395 wxPanel *NetPanel( wxWindow* parent );
397 ArrayOfAutoBuiltPanel input_tab_array;
399 /* Event handlers (these functions should _not_ be virtual) */
400 void OnOk( wxCommandEvent& event );
401 void OnCancel( wxCommandEvent& event );
403 void OnPageChange( wxNotebookEvent& event );
404 void OnMRLChange( wxCommandEvent& event );
406 /* Event handlers for the file page */
407 void OnFilePanelChange( wxCommandEvent& event );
408 void OnFileBrowse( wxCommandEvent& event );
410 /* Event handlers for the disc page */
411 void OnDiscPanelChange( wxCommandEvent& event );
412 void OnDiscTypeChange( wxCommandEvent& event );
413 void OnDiscDeviceChange( wxCommandEvent& event );
415 /* Event handlers for the net page */
416 void OnNetPanelChange( wxCommandEvent& event );
417 void OnNetTypeChange( wxCommandEvent& event );
419 /* Event handlers for the stream output */
420 void OnSubsFileEnable( wxCommandEvent& event );
421 void OnSubsFileSettings( wxCommandEvent& WXUNUSED(event) );
423 /* Event handlers for the stream output */
424 void OnSoutEnable( wxCommandEvent& event );
425 void OnSoutSettings( wxCommandEvent& WXUNUSED(event) );
427 /* Event handlers for the caching option */
428 void OnCachingEnable( wxCommandEvent& event );
429 void OnCachingChange( wxCommandEvent& event );
431 DECLARE_EVENT_TABLE();
433 intf_thread_t *p_intf;
435 int i_current_access_method;
436 int i_disc_type_selection;
438 int i_method; /* Normal or for the stream dialog ? */
441 wxComboBox *mrl_combo;
442 wxNotebook *notebook;
444 /* Controls for the file panel */
445 wxComboBox *file_combo;
446 wxFileDialog *file_dialog;
448 /* Controls for the disc panel */
449 wxRadioBox *disc_type;
450 wxTextCtrl *disc_device;
451 wxSpinCtrl *disc_title; int i_disc_title;
452 wxSpinCtrl *disc_chapter; int i_disc_chapter;
453 wxSpinCtrl *disc_sub; int i_disc_sub;
455 /* The media equivalent name for a DVD names. For example,
456 * "Title", is "Track" for a CD-DA */
457 wxStaticText *disc_title_label;
458 wxStaticText *disc_chapter_label;
459 wxStaticText *disc_sub_label;
461 /* Indicates if the disc device control was modified */
462 bool b_disc_device_changed;
464 /* Controls for the net panel */
465 wxRadioBox *net_type;
467 wxPanel *net_subpanels[4];
468 wxRadioButton *net_radios[4];
469 wxSpinCtrl *net_ports[4];
471 wxTextCtrl *net_addrs[4];
472 wxCheckBox *net_ipv6;
474 /* Controls for the subtitles file */
475 wxButton *subsfile_button;
476 wxCheckBox *subsfile_checkbox;
477 SubsFileDialog *subsfile_dialog;
478 wxArrayString subsfile_mrl;
480 /* Controls for the stream output */
481 wxButton *sout_button;
482 wxCheckBox *sout_checkbox;
483 SoutDialog *sout_dialog;
484 wxArrayString sout_mrl;
486 /* Controls for the caching options */
487 wxCheckBox *caching_checkbox;
488 wxSpinCtrl *caching_value;
498 /* Auto-built panels */
501 #define MAX_ACCESS CAPTURE_ACCESS
503 /* Stream output Dialog */
517 TS_ENCAPSULATION = 0,
535 class SoutDialog: public wxDialog
539 SoutDialog( intf_thread_t *p_intf, wxWindow *p_parent );
540 virtual ~SoutDialog();
542 wxArrayString GetOptions();
546 wxPanel *AccessPanel( wxWindow* parent );
547 wxPanel *MiscPanel( wxWindow* parent );
548 wxPanel *EncapsulationPanel( wxWindow* parent );
549 wxPanel *TranscodingPanel( wxWindow* parent );
552 /* Event handlers (these functions should _not_ be virtual) */
553 void OnOk( wxCommandEvent& event );
554 void OnCancel( wxCommandEvent& event );
555 void OnMRLChange( wxCommandEvent& event );
556 void OnAccessTypeChange( wxCommandEvent& event );
558 /* Event handlers for the file access output */
559 void OnFileChange( wxCommandEvent& event );
560 void OnFileBrowse( wxCommandEvent& event );
561 void OnFileDump( wxCommandEvent& event );
563 /* Event handlers for the net access output */
564 void OnNetChange( wxCommandEvent& event );
566 /* Event specific to the announce address */
567 void OnAnnounceAddrChange( wxCommandEvent& event );
569 /* Event handlers for the encapsulation panel */
570 void OnEncapsulationChange( wxCommandEvent& event );
572 /* Event handlers for the transcoding panel */
573 void OnTranscodingEnable( wxCommandEvent& event );
574 void OnTranscodingChange( wxCommandEvent& event );
576 /* Event handlers for the misc panel */
577 void OnSAPMiscChange( wxCommandEvent& event );
578 void OnSLPMiscChange( wxCommandEvent& event );
580 DECLARE_EVENT_TABLE();
582 intf_thread_t *p_intf;
585 wxComboBox *mrl_combo;
587 /* Controls for the access outputs */
588 wxPanel *access_panel;
589 wxPanel *access_subpanels[ACCESS_OUT_NUM];
590 wxCheckBox *access_checkboxes[ACCESS_OUT_NUM];
594 wxComboBox *file_combo;
595 wxCheckBox *dump_checkbox;
596 wxSpinCtrl *net_ports[ACCESS_OUT_NUM];
597 wxTextCtrl *net_addrs[ACCESS_OUT_NUM];
599 /* Controls for the SAP announces */
601 wxPanel *misc_subpanels[MISC_SOUT_NUM];
602 wxCheckBox *sap_checkbox;
603 wxCheckBox *slp_checkbox;
604 wxTextCtrl *announce_addr;
606 /* Controls for the encapsulation */
607 wxPanel *encapsulation_panel;
608 wxRadioButton *encapsulation_radios[ENCAPS_NUM];
609 int i_encapsulation_type;
611 /* Controls for transcoding */
612 wxPanel *transcoding_panel;
613 wxCheckBox *video_transc_checkbox;
614 wxComboBox *video_codec_combo;
615 wxComboBox *audio_codec_combo;
616 wxCheckBox *audio_transc_checkbox;
617 wxComboBox *video_bitrate_combo;
618 wxComboBox *audio_bitrate_combo;
619 wxComboBox *audio_channels_combo;
620 wxComboBox *video_scale_combo;
623 /* Subtitles File Dialog */
624 class SubsFileDialog: public wxDialog
628 SubsFileDialog( intf_thread_t *p_intf, wxWindow *p_parent );
629 virtual ~SubsFileDialog();
631 wxComboBox *file_combo;
632 wxComboBox *encoding_combo;
633 wxComboBox *size_combo;
634 wxComboBox *align_combo;
635 wxSpinCtrl *fps_spinctrl;
636 wxSpinCtrl *delay_spinctrl;
639 /* Event handlers (these functions should _not_ be virtual) */
640 void OnOk( wxCommandEvent& event );
641 void OnCancel( wxCommandEvent& event );
642 void OnFileBrowse( wxCommandEvent& event );
644 DECLARE_EVENT_TABLE();
646 intf_thread_t *p_intf;
651 class StreamDialog: public wxFrame
655 StreamDialog( intf_thread_t *p_intf, wxWindow *p_parent );
656 virtual ~StreamDialog();
659 void OnClose( wxCommandEvent& event );
660 void OnOpen( wxCommandEvent& event );
661 void OnSout( wxCommandEvent& event );
662 void OnStart( wxCommandEvent& event );
664 DECLARE_EVENT_TABLE();
666 intf_thread_t *p_intf;
668 wxStaticText *step2_label;
669 wxStaticText *step3_label;
670 wxButton *sout_button;
671 wxButton *start_button;
673 wxArrayString sout_mrl;
674 OpenDialog *p_open_dialog;
675 SoutDialog *p_sout_dialog;
679 class WizardDialog : public wxWizard
683 WizardDialog( intf_thread_t *p_intf, wxWindow *p_parent,char *, int, int );
684 virtual ~WizardDialog();
685 void SetTranscode( char *vcodec, int vb, char *acodec,int ab);
686 void SetMrl( const char *mrl );
687 void SetTTL( int i_ttl );
688 void SetPartial( int, int );
689 void SetStream( char *method, char *address );
690 void SetTranscodeOut( char *address );
691 void SetAction( int i_action );
693 void SetSAP( bool b_enabled, const char *psz_name );
694 void SetMux( char *mux );
701 int i_from, i_to, i_ttl;
702 char *vcodec , *acodec , *address , *mrl , *mux ;
705 DECLARE_EVENT_TABLE();
707 intf_thread_t *p_intf;
711 /* Preferences Dialog */
712 class PrefsDialog: public wxFrame
716 PrefsDialog( intf_thread_t *p_intf, wxWindow *p_parent );
717 virtual ~PrefsDialog();
720 wxPanel *PrefsPanel( wxWindow* parent );
722 /* Event handlers (these functions should _not_ be virtual) */
723 void OnOk( wxCommandEvent& event );
724 void OnCancel( wxCommandEvent& event );
725 void OnSave( wxCommandEvent& event );
726 void OnResetAll( wxCommandEvent& event );
727 void OnAdvanced( wxCommandEvent& event );
729 DECLARE_EVENT_TABLE();
731 intf_thread_t *p_intf;
733 PrefsTreeCtrl *prefs_tree;
737 class Messages: public wxFrame
741 Messages( intf_thread_t *p_intf, wxWindow *p_parent );
743 bool Show( bool show = TRUE );
747 /* Event handlers (these functions should _not_ be virtual) */
748 void OnClose( wxCommandEvent& event );
749 void OnClear( wxCommandEvent& event );
750 void OnSaveLog( wxCommandEvent& event );
752 DECLARE_EVENT_TABLE();
754 intf_thread_t *p_intf;
755 wxTextCtrl *textctrl;
756 wxTextAttr *info_attr;
757 wxTextAttr *err_attr;
758 wxTextAttr *warn_attr;
759 wxTextAttr *dbg_attr;
761 wxFileDialog *save_log_dialog;
763 vlc_bool_t b_verbose;
767 class Playlist: public wxFrame
771 Playlist( intf_thread_t *p_intf, wxWindow *p_parent );
774 void UpdatePlaylist();
775 void ShowPlaylist( bool show );
776 void UpdateItem( int );
781 void DeleteItem( int item );
782 void ShowInfos( int item );
784 /* Event handlers (these functions should _not_ be virtual) */
786 void OnSize( wxSizeEvent &event );
788 void OnAddFile( wxCommandEvent& event );
789 void OnAddMRL( wxCommandEvent& event );
790 void OnClose( wxCommandEvent& event );
791 void OnSearch( wxCommandEvent& event );
792 void OnEnDis( wxCommandEvent& event );
793 void OnInfos( wxCommandEvent& event );
794 void OnSearchTextChange( wxCommandEvent& event );
795 void OnOpen( wxCommandEvent& event );
796 void OnSave( wxCommandEvent& event );
798 void OnSort( wxCommandEvent& event );
799 void OnColSelect( wxListEvent& event );
801 void OnUp( wxCommandEvent& event);
802 void OnDown( wxCommandEvent& event);
804 void OnEnableSelection( wxCommandEvent& event );
805 void OnDisableSelection( wxCommandEvent& event );
806 void OnInvertSelection( wxCommandEvent& event );
807 void OnDeleteSelection( wxCommandEvent& event );
808 void OnSelectAll( wxCommandEvent& event );
809 void OnRandom( wxCommandEvent& event );
810 void OnRepeat( wxCommandEvent& event );
811 void OnLoop ( wxCommandEvent& event );
812 void OnActivateItem( wxListEvent& event );
813 void OnKeyDown( wxListEvent& event );
814 void OnNewGroup( wxCommandEvent& event );
816 /* Popup functions */
817 void OnPopup( wxListEvent& event );
818 void OnPopupPlay( wxMenuEvent& event );
819 void OnPopupDel( wxMenuEvent& event );
820 void OnPopupEna( wxMenuEvent& event );
821 void OnPopupInfo( wxMenuEvent& event );
825 void OnPlaylistEvent( wxCommandEvent& event );
827 wxTextCtrl *search_text;
828 wxButton *search_button;
829 DECLARE_EVENT_TABLE();
833 ItemInfoDialog *iteminfo_dialog;
835 intf_thread_t *p_intf;
836 wxListView *listview;
837 wxTreeCtrl *treeview;
838 int i_update_counter;
846 int i_duration_sorted;
849 class NewGroup: public wxDialog
853 NewGroup( intf_thread_t *p_intf, wxWindow *p_parent );
858 /* Event handlers (these functions should _not_ be virtual) */
859 void OnOk( wxCommandEvent& event );
860 void OnCancel( wxCommandEvent& event );
862 DECLARE_EVENT_TABLE();
864 intf_thread_t *p_intf;
865 wxTextCtrl *groupname;
868 friend class Playlist;
869 friend class ItemInfoDialog;
873 /* ItemInfo Dialog */
874 class ItemInfoDialog: public wxDialog
878 ItemInfoDialog( intf_thread_t *p_intf, playlist_item_t *_p_item,
879 wxWindow *p_parent );
880 virtual ~ItemInfoDialog();
882 wxArrayString GetOptions();
885 wxPanel *InfoPanel( wxWindow* parent );
886 wxPanel *GroupPanel( wxWindow* parent );
888 /* Event handlers (these functions should _not_ be virtual) */
889 void OnOk( wxCommandEvent& event );
890 void OnCancel( wxCommandEvent& event );
891 void OnNewGroup( wxCommandEvent& event );
895 DECLARE_EVENT_TABLE();
897 intf_thread_t *p_intf;
898 playlist_item_t *p_item;
901 /* Controls for the iteminfo dialog box */
902 wxPanel *info_subpanel;
905 wxPanel *group_subpanel;
906 wxPanel *group_panel;
908 wxTextCtrl *uri_text;
909 wxTextCtrl *name_text;
910 wxTextCtrl *author_text;
912 wxTreeCtrl *info_tree;
913 wxTreeItemId info_root;
915 wxCheckBox *enabled_checkbox;
916 wxComboBox *group_combo;
922 class FileInfo: public wxFrame
926 FileInfo( intf_thread_t *p_intf, wxWindow *p_parent );
928 void UpdateFileInfo();
930 vlc_bool_t b_need_update;
933 void OnClose( wxCommandEvent& event );
935 DECLARE_EVENT_TABLE();
937 intf_thread_t *p_intf;
938 wxTreeCtrl *fileinfo_tree;
939 wxTreeItemId fileinfo_root;
940 wxString fileinfo_root_label;
945 #if wxUSE_DRAG_AND_DROP
946 /* Drag and Drop class */
947 class DragAndDrop: public wxFileDropTarget
950 DragAndDrop( intf_thread_t *_p_intf, vlc_bool_t b_enqueue = VLC_FALSE );
952 virtual bool OnDropFiles( wxCoord x, wxCoord y,
953 const wxArrayString& filenames );
956 intf_thread_t *p_intf;
957 vlc_bool_t b_enqueue;
960 } // end of wxvlc namespace
963 void PopupMenu( intf_thread_t *, wxWindow *, const wxPoint& );
964 wxMenu *SettingsMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
965 wxMenu *AudioMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
966 wxMenu *VideoMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
967 wxMenu *NavigMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
971 class MenuEvtHandler : public wxEvtHandler
974 MenuEvtHandler( intf_thread_t *p_intf, Interface *p_main_interface );
975 virtual ~MenuEvtHandler();
977 void OnMenuEvent( wxCommandEvent& event );
978 void OnShowDialog( wxCommandEvent& event );
982 DECLARE_EVENT_TABLE()
984 intf_thread_t *p_intf;
985 Interface *p_main_interface;
988 } // end of wxvlc namespace
989 using namespace wxvlc;