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>
48 /* Hmmm, work-around for newest wxWin */
49 #ifdef wxStaticCastEvent
50 # undef wxStaticCastEvent
51 # define wxStaticCastEvent(type, val) ((type)(val))
54 DECLARE_LOCAL_EVENT_TYPE( wxEVT_DIALOG, 0 );
55 DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
57 #define SLIDER_MAX_POS 10000
59 /* wxU is used to convert ansi/utf8 strings to unicode strings (wchar_t) */
60 #if defined( ENABLE_NLS ) && defined( ENABLE_UTF8 )
62 # define wxU(utf8) wxString(utf8, wxConvUTF8)
64 # define wxU(utf8) wxString(wxConvUTF8.cMB2WC(utf8), *wxConvCurrent)
68 #else // ENABLE_NLS && ENABLE_UTF8
70 # define wxU(ansi) wxString(ansi, *wxConvCurrent)
72 # define wxU(ansi) ansi
78 /* wxL2U (locale to unicode) is used to convert ansi strings to unicode
79 * strings (wchar_t) */
81 # define wxL2U(ansi) wxString(ansi, *wxConvCurrent)
83 # define wxL2U(ansi) ansi
96 class DialogsProvider;
101 /*****************************************************************************
102 * intf_sys_t: description and status of wxwindows interface
103 *****************************************************************************/
106 /* the wx parent window */
107 wxWindow *p_wxwindow;
110 /* special actions */
111 vlc_bool_t b_playing;
112 vlc_bool_t b_intf_show; /* interface to be shown */
114 /* The input thread */
115 input_thread_t * p_input;
118 int i_slider_pos; /* slider position */
119 int i_slider_oldpos; /* previous position */
120 vlc_bool_t b_slider_free; /* slider status */
122 /* The messages window */
123 msg_subscription_t* p_sub; /* message bank subscription */
125 /* Playlist management */
126 int i_playing; /* playlist selected item */
128 /* Send an event to show a dialog */
129 void (*pf_show_dialog) ( intf_thread_t *p_intf, int i_dialog, int i_arg,
130 intf_dialog_args_t *p_arg );
133 wxMenu *p_popup_menu;
136 int i_first_hotkey_event;
140 VideoWindow *p_video_window;
141 wxBoxSizer *p_video_sizer;
144 aout_instance_t *p_aout;
147 /*****************************************************************************
149 *****************************************************************************/
150 wxArrayString SeparateEntries( wxString );
151 wxWindow *VideoWindow( intf_thread_t *p_intf, wxWindow *p_parent );
152 wxWindow *BookmarksDialog( intf_thread_t *p_intf, wxWindow *p_parent );
153 wxWindow *CreateDialogsProvider( intf_thread_t *p_intf, wxWindow *p_parent );
160 class SubsFileDialog;
166 class ItemInfoDialog;
168 class ExportPlaylist;
170 /*****************************************************************************
171 * Classes declarations.
172 *****************************************************************************/
174 class Timer: public wxTimer
178 Timer( intf_thread_t *p_intf, Interface *p_main_interface );
181 virtual void Notify();
184 intf_thread_t *p_intf;
185 Interface *p_main_interface;
187 int i_old_playing_status;
189 vlc_bool_t b_old_seekable;
194 class ExtraPanel: public wxPanel
198 ExtraPanel( intf_thread_t *p_intf, wxWindow *p_parent );
199 virtual ~ExtraPanel();
201 wxStaticBox *adjust_box;
202 wxButton *restoredefaults_button;
203 wxSlider *brightness_slider;
204 wxSlider *contrast_slider;
205 wxSlider *saturation_slider;
206 wxSlider *hue_slider;
207 wxSlider *gamma_slider;
209 wxStaticBox *other_box;
210 wxComboBox *ratio_combo;
218 wxPanel *VideoPanel( wxWindow * );
219 wxPanel *EqzPanel( wxWindow * );
220 wxPanel *AudioPanel( wxWindow * );
222 wxNotebook *notebook;
224 wxCheckBox *eq_chkbox;
226 wxCheckBox *eq_2p_chkbox;
228 wxSlider *smooth_slider;
230 wxSlider *preamp_slider;
231 wxStaticText * preamp_text;
236 wxSlider *band_sliders[10];
237 wxStaticText *band_texts[10];
243 /* Event handlers (these functions should _not_ be virtual) */
245 void OnEnableAdjust( wxCommandEvent& );
246 void OnEnableEqualizer( wxCommandEvent& );
247 void OnRestoreDefaults( wxCommandEvent& );
248 void OnChangeEqualizer( wxScrollEvent& );
249 void OnAdjustUpdate( wxScrollEvent& );
250 void OnRatio( wxCommandEvent& );
251 void OnFiltersInfo( wxCommandEvent& );
252 void OnSelectFilter( wxCommandEvent& );
254 void OnEqSmooth( wxScrollEvent& );
255 void OnPreamp( wxScrollEvent& );
256 void OnEq2Pass( wxCommandEvent& );
257 void OnEqRestore( wxCommandEvent& );
259 void OnHeadphone( wxCommandEvent& );
260 void OnNormvol( wxCommandEvent& );
261 void OnNormvolSlider( wxScrollEvent& );
263 void OnIdle( wxIdleEvent& );
265 DECLARE_EVENT_TABLE();
267 intf_thread_t *p_intf;
268 vlc_bool_t b_my_update;
272 /* Extended Window */
273 class ExtraWindow: public wxFrame
277 ExtraWindow( intf_thread_t *p_intf, wxWindow *p_parent, wxPanel *panel );
278 virtual ~ExtraWindow();
284 DECLARE_EVENT_TABLE();
286 intf_thread_t *p_intf;
291 class Interface: public wxFrame
295 Interface( intf_thread_t *p_intf );
296 virtual ~Interface();
298 void TogglePlayButton( int i_playing_status );
301 wxBoxSizer *frame_sizer;
302 wxStatusBar *statusbar;
305 wxWindow *slider_frame;
306 wxPanel *extra_frame;
308 wxFrame *extra_window;
318 void CreateOurMenuBar();
319 void CreateOurToolBar();
320 void CreateOurExtendedPanel();
321 void CreateOurSlider();
322 void Open( int i_access_method );
324 /* Event handlers (these functions should _not_ be virtual) */
325 void OnExit( wxCommandEvent& event );
326 void OnAbout( wxCommandEvent& event );
328 void OnOpenFileSimple( wxCommandEvent& event );
329 void OnOpenFile( wxCommandEvent& event );
330 void OnOpenDisc( wxCommandEvent& event );
331 void OnOpenNet( wxCommandEvent& event );
332 void OnOpenSat( wxCommandEvent& event );
334 void OnExtended( wxCommandEvent& event );
335 //void OnUndock( wxCommandEvent& event );
337 void OnBookmarks( wxCommandEvent& event );
338 void OnShowDialog( wxCommandEvent& event );
339 void OnPlayStream( wxCommandEvent& event );
340 void OnStopStream( wxCommandEvent& event );
341 void OnSliderUpdate( wxScrollEvent& event );
342 void OnPrevStream( wxCommandEvent& event );
343 void OnNextStream( wxCommandEvent& event );
344 void OnSlowStream( wxCommandEvent& event );
345 void OnFastStream( wxCommandEvent& event );
347 void OnMenuOpen( wxMenuEvent& event );
349 #if defined( __WXMSW__ ) || defined( __WXMAC__ )
350 void OnContextMenu2(wxContextMenuEvent& event);
352 void OnContextMenu(wxMouseEvent& event);
354 void OnControlEvent( wxCommandEvent& event );
356 DECLARE_EVENT_TABLE();
359 intf_thread_t *p_intf;
362 int i_old_playing_status;
364 /* For auto-generated menus */
365 wxMenu *p_settings_menu;
366 wxMenu *p_audio_menu;
367 wxMenu *p_video_menu;
368 wxMenu *p_navig_menu;
372 WX_DEFINE_ARRAY(AutoBuiltPanel *, ArrayOfAutoBuiltPanel);
373 class OpenDialog: public wxDialog
377 OpenDialog( intf_thread_t *p_intf, wxWindow *p_parent,
378 int i_access_method, int i_arg = 0 );
380 /* Extended Contructor */
381 OpenDialog( intf_thread_t *p_intf, wxWindow *p_parent,
382 int i_access_method, int i_arg = 0 , int _i_method = 0 );
383 virtual ~OpenDialog();
386 int Show( int i_access_method, int i_arg = 0 );
389 void UpdateMRL( int i_access_method );
394 wxPanel *FilePanel( wxWindow* parent );
395 wxPanel *DiscPanel( wxWindow* parent );
396 wxPanel *NetPanel( wxWindow* parent );
398 ArrayOfAutoBuiltPanel input_tab_array;
400 /* Event handlers (these functions should _not_ be virtual) */
401 void OnOk( wxCommandEvent& event );
402 void OnCancel( wxCommandEvent& event );
404 void OnPageChange( wxNotebookEvent& event );
405 void OnMRLChange( wxCommandEvent& event );
407 /* Event handlers for the file page */
408 void OnFilePanelChange( wxCommandEvent& event );
409 void OnFileBrowse( wxCommandEvent& event );
411 /* Event handlers for the disc page */
412 void OnDiscPanelChange( wxCommandEvent& event );
413 void OnDiscTypeChange( wxCommandEvent& event );
414 void OnDiscDeviceChange( wxCommandEvent& event );
416 /* Event handlers for the net page */
417 void OnNetPanelChange( wxCommandEvent& event );
418 void OnNetTypeChange( wxCommandEvent& event );
420 /* Event handlers for the stream output */
421 void OnSubsFileEnable( wxCommandEvent& event );
422 void OnSubsFileSettings( wxCommandEvent& WXUNUSED(event) );
424 /* Event handlers for the stream output */
425 void OnSoutEnable( wxCommandEvent& event );
426 void OnSoutSettings( wxCommandEvent& WXUNUSED(event) );
428 /* Event handlers for the caching option */
429 void OnCachingEnable( wxCommandEvent& event );
430 void OnCachingChange( wxCommandEvent& event );
432 DECLARE_EVENT_TABLE();
434 intf_thread_t *p_intf;
436 int i_current_access_method;
437 int i_disc_type_selection;
439 int i_method; /* Normal or for the stream dialog ? */
442 wxComboBox *mrl_combo;
443 wxNotebook *notebook;
445 /* Controls for the file panel */
446 wxComboBox *file_combo;
447 wxFileDialog *file_dialog;
449 /* Controls for the disc panel */
450 wxRadioBox *disc_type;
451 wxTextCtrl *disc_device;
452 wxSpinCtrl *disc_title; int i_disc_title;
453 wxSpinCtrl *disc_chapter; int i_disc_chapter;
454 wxSpinCtrl *disc_sub; int i_disc_sub;
456 /* The media equivalent name for a DVD names. For example,
457 * "Title", is "Track" for a CD-DA */
458 wxStaticText *disc_title_label;
459 wxStaticText *disc_chapter_label;
460 wxStaticText *disc_sub_label;
462 /* Indicates if the disc device control was modified */
463 bool b_disc_device_changed;
465 /* Controls for the net panel */
466 wxRadioBox *net_type;
468 wxPanel *net_subpanels[4];
469 wxRadioButton *net_radios[4];
470 wxSpinCtrl *net_ports[4];
472 wxTextCtrl *net_addrs[4];
473 wxCheckBox *net_ipv6;
475 /* Controls for the subtitles file */
476 wxButton *subsfile_button;
477 wxCheckBox *subsfile_checkbox;
478 SubsFileDialog *subsfile_dialog;
479 wxArrayString subsfile_mrl;
481 /* Controls for the stream output */
482 wxButton *sout_button;
483 wxCheckBox *sout_checkbox;
484 SoutDialog *sout_dialog;
485 wxArrayString sout_mrl;
487 /* Controls for the caching options */
488 wxCheckBox *caching_checkbox;
489 wxSpinCtrl *caching_value;
499 /* Auto-built panels */
502 #define MAX_ACCESS CAPTURE_ACCESS
504 /* Stream output Dialog */
518 TS_ENCAPSULATION = 0,
537 class SoutDialog: public wxDialog
541 SoutDialog( intf_thread_t *p_intf, wxWindow *p_parent );
542 virtual ~SoutDialog();
544 wxArrayString GetOptions();
548 wxPanel *AccessPanel( wxWindow* parent );
549 wxPanel *MiscPanel( wxWindow* parent );
550 wxPanel *EncapsulationPanel( wxWindow* parent );
551 wxPanel *TranscodingPanel( wxWindow* parent );
554 /* Event handlers (these functions should _not_ be virtual) */
555 void OnOk( wxCommandEvent& event );
556 void OnCancel( wxCommandEvent& event );
557 void OnMRLChange( wxCommandEvent& event );
558 void OnAccessTypeChange( wxCommandEvent& event );
560 /* Event handlers for the file access output */
561 void OnFileChange( wxCommandEvent& event );
562 void OnFileBrowse( wxCommandEvent& event );
563 void OnFileDump( wxCommandEvent& event );
565 /* Event handlers for the net access output */
566 void OnNetChange( wxCommandEvent& event );
568 /* Event specific to the announce address */
569 void OnAnnounceGroupChange( wxCommandEvent& event );
570 void OnAnnounceAddrChange( wxCommandEvent& event );
572 /* Event handlers for the encapsulation panel */
573 void OnEncapsulationChange( wxCommandEvent& event );
575 /* Event handlers for the transcoding panel */
576 void OnTranscodingEnable( wxCommandEvent& event );
577 void OnTranscodingChange( wxCommandEvent& event );
579 /* Event handlers for the misc panel */
580 void OnSAPMiscChange( wxCommandEvent& event );
581 void OnSLPMiscChange( wxCommandEvent& event );
583 DECLARE_EVENT_TABLE();
585 intf_thread_t *p_intf;
588 wxComboBox *mrl_combo;
590 /* Controls for the access outputs */
591 wxPanel *access_panel;
592 wxPanel *access_subpanels[ACCESS_OUT_NUM];
593 wxCheckBox *access_checkboxes[ACCESS_OUT_NUM];
597 wxComboBox *file_combo;
598 wxCheckBox *dump_checkbox;
599 wxSpinCtrl *net_ports[ACCESS_OUT_NUM];
600 wxTextCtrl *net_addrs[ACCESS_OUT_NUM];
602 /* Controls for the SAP announces */
604 wxPanel *misc_subpanels[MISC_SOUT_NUM];
605 wxCheckBox *sap_checkbox;
606 wxCheckBox *slp_checkbox;
607 wxTextCtrl *announce_group;
608 wxTextCtrl *announce_addr;
610 /* Controls for the encapsulation */
611 wxPanel *encapsulation_panel;
612 wxRadioButton *encapsulation_radios[ENCAPS_NUM];
613 int i_encapsulation_type;
615 /* Controls for transcoding */
616 wxPanel *transcoding_panel;
617 wxCheckBox *video_transc_checkbox;
618 wxComboBox *video_codec_combo;
619 wxComboBox *audio_codec_combo;
620 wxCheckBox *audio_transc_checkbox;
621 wxComboBox *video_bitrate_combo;
622 wxComboBox *audio_bitrate_combo;
623 wxComboBox *audio_channels_combo;
624 wxComboBox *video_scale_combo;
627 /* Subtitles File Dialog */
628 class SubsFileDialog: public wxDialog
632 SubsFileDialog( intf_thread_t *p_intf, wxWindow *p_parent );
633 virtual ~SubsFileDialog();
635 wxComboBox *file_combo;
636 wxComboBox *encoding_combo;
637 wxComboBox *size_combo;
638 wxComboBox *align_combo;
639 wxSpinCtrl *fps_spinctrl;
640 wxSpinCtrl *delay_spinctrl;
643 /* Event handlers (these functions should _not_ be virtual) */
644 void OnOk( wxCommandEvent& event );
645 void OnCancel( wxCommandEvent& event );
646 void OnFileBrowse( wxCommandEvent& event );
648 DECLARE_EVENT_TABLE();
650 intf_thread_t *p_intf;
655 class StreamDialog: public wxFrame
659 StreamDialog( intf_thread_t *p_intf, wxWindow *p_parent );
660 virtual ~StreamDialog();
663 void OnClose( wxCommandEvent& event );
664 void OnOpen( wxCommandEvent& event );
665 void OnSout( wxCommandEvent& event );
666 void OnStart( wxCommandEvent& event );
668 DECLARE_EVENT_TABLE();
670 intf_thread_t *p_intf;
672 wxStaticText *step2_label;
673 wxStaticText *step3_label;
674 wxButton *sout_button;
675 wxButton *start_button;
677 wxArrayString sout_mrl;
678 OpenDialog *p_open_dialog;
679 SoutDialog *p_sout_dialog;
683 class WizardDialog : public wxWizard
687 WizardDialog( intf_thread_t *p_intf, wxWindow *p_parent,char *, int, int );
688 virtual ~WizardDialog();
689 void SetTranscode( char *vcodec, int vb, char *acodec,int ab);
690 void SetMrl( const char *mrl );
691 void SetTTL( int i_ttl );
692 void SetPartial( int, int );
693 void SetStream( char *method, char *address );
694 void SetTranscodeOut( char *address );
695 void SetAction( int i_action );
697 void SetSAP( bool b_enabled, const char *psz_name );
698 void SetMux( char *mux );
705 int i_from, i_to, i_ttl;
706 char *vcodec , *acodec , *address , *mrl , *mux ;
709 DECLARE_EVENT_TABLE();
711 intf_thread_t *p_intf;
715 /* Preferences Dialog */
716 class PrefsDialog: public wxFrame
720 PrefsDialog( intf_thread_t *p_intf, wxWindow *p_parent );
721 virtual ~PrefsDialog();
724 wxPanel *PrefsPanel( wxWindow* parent );
726 /* Event handlers (these functions should _not_ be virtual) */
727 void OnOk( wxCommandEvent& event );
728 void OnCancel( wxCommandEvent& event );
729 void OnSave( wxCommandEvent& event );
730 void OnResetAll( wxCommandEvent& event );
731 void OnAdvanced( wxCommandEvent& event );
733 DECLARE_EVENT_TABLE();
735 intf_thread_t *p_intf;
737 PrefsTreeCtrl *prefs_tree;
741 class Messages: public wxFrame
745 Messages( intf_thread_t *p_intf, wxWindow *p_parent );
747 bool Show( bool show = TRUE );
751 /* Event handlers (these functions should _not_ be virtual) */
752 void OnClose( wxCommandEvent& event );
753 void OnClear( wxCommandEvent& event );
754 void OnSaveLog( wxCommandEvent& event );
756 DECLARE_EVENT_TABLE();
758 intf_thread_t *p_intf;
759 wxTextCtrl *textctrl;
760 wxTextAttr *info_attr;
761 wxTextAttr *err_attr;
762 wxTextAttr *warn_attr;
763 wxTextAttr *dbg_attr;
765 wxFileDialog *save_log_dialog;
767 vlc_bool_t b_verbose;
771 class Playlist: public wxFrame
775 Playlist( intf_thread_t *p_intf, wxWindow *p_parent );
778 void UpdatePlaylist();
779 void ShowPlaylist( bool show );
780 void UpdateItem( int );
785 void DeleteItem( int item );
786 void ShowInfos( int item );
788 /* Event handlers (these functions should _not_ be virtual) */
790 void OnSize( wxSizeEvent &event );
793 void OnAddFile( wxCommandEvent& event );
794 void OnAddMRL( wxCommandEvent& event );
795 void OnClose( wxCommandEvent& event );
796 void OnSearch( wxCommandEvent& event );
797 void OnEnDis( wxCommandEvent& event );
798 void OnInfos( wxCommandEvent& event );
799 void OnSearchTextChange( wxCommandEvent& event );
800 void OnOpen( wxCommandEvent& event );
801 void OnSave( wxCommandEvent& event );
803 void OnSort( wxCommandEvent& event );
805 void OnMenuEvent( wxCommandEvent& event );
806 void OnMenuOpen( wxMenuEvent& event );
811 void OnUp( wxCommandEvent& event);
812 void OnDown( wxCommandEvent& event);
814 void OnEnableSelection( wxCommandEvent& event );
815 void OnDisableSelection( wxCommandEvent& event );
816 void OnInvertSelection( wxCommandEvent& event );
817 void OnDeleteSelection( wxCommandEvent& event );
818 void OnSelectAll( wxCommandEvent& event );
819 void OnRandom( wxCommandEvent& event );
820 void OnRepeat( wxCommandEvent& event );
821 void OnLoop ( wxCommandEvent& event );
823 void OnActivateItem( wxTreeEvent& event );
824 void OnKeyDown( wxTreeEvent& event );
825 void OnNewGroup( wxCommandEvent& event );
827 /* Popup functions */
828 void OnPopup( wxContextMenuEvent& event );
829 void OnPopupPlay( wxMenuEvent& event );
830 void OnPopupDel( wxMenuEvent& event );
831 void OnPopupEna( wxMenuEvent& event );
832 void OnPopupInfo( wxMenuEvent& event );
836 void UpdateNode( playlist_t *, playlist_item_t*, wxTreeItemId );
837 void CreateNode( playlist_t *, playlist_item_t*, wxTreeItemId );
839 wxTreeItemId FindItem( wxTreeItemId, playlist_item_t * );
840 void SetCurrentItem( wxTreeItemId );
841 void UpdateTreeItem( playlist_t *, wxTreeItemId );
844 void OnPlaylistEvent( wxCommandEvent& event );
846 wxTextCtrl *search_text;
847 wxButton *search_button;
848 DECLARE_EVENT_TABLE();
857 ItemInfoDialog *iteminfo_dialog;
859 intf_thread_t *p_intf;
860 wxTreeCtrl *treectrl;
861 int i_update_counter;
866 wxTreeItemId i_popup_item;
867 playlist_item_t *p_popup_item;
868 playlist_item_t *p_popup_parent;
873 int i_duration_sorted;
876 /* ItemInfo Dialog */
877 class ItemInfoDialog: public wxDialog
881 ItemInfoDialog( intf_thread_t *p_intf, playlist_item_t *_p_item,
882 wxWindow *p_parent );
883 virtual ~ItemInfoDialog();
885 wxArrayString GetOptions();
888 wxPanel *InfoPanel( wxWindow* parent );
889 wxPanel *GroupPanel( wxWindow* parent );
891 /* Event handlers (these functions should _not_ be virtual) */
892 void OnOk( wxCommandEvent& event );
893 void OnCancel( wxCommandEvent& event );
897 DECLARE_EVENT_TABLE();
899 intf_thread_t *p_intf;
900 playlist_item_t *p_item;
903 /* Controls for the iteminfo dialog box */
904 wxPanel *info_subpanel;
907 wxPanel *group_subpanel;
908 wxPanel *group_panel;
910 wxTextCtrl *uri_text;
911 wxTextCtrl *name_text;
912 wxTextCtrl *author_text;
914 wxTreeCtrl *info_tree;
915 wxTreeItemId info_root;
917 wxCheckBox *enabled_checkbox;
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;