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 OnOpenDir( wxCommandEvent& event );
330 void OnOpenFile( wxCommandEvent& event );
331 void OnOpenDisc( wxCommandEvent& event );
332 void OnOpenNet( wxCommandEvent& event );
333 void OnOpenSat( wxCommandEvent& event );
335 void OnExtended( wxCommandEvent& event );
336 //void OnUndock( wxCommandEvent& event );
338 void OnBookmarks( wxCommandEvent& event );
339 void OnShowDialog( wxCommandEvent& event );
340 void OnPlayStream( wxCommandEvent& event );
341 void OnStopStream( wxCommandEvent& event );
342 void OnSliderUpdate( wxScrollEvent& event );
343 void OnPrevStream( wxCommandEvent& event );
344 void OnNextStream( wxCommandEvent& event );
345 void OnSlowStream( wxCommandEvent& event );
346 void OnFastStream( wxCommandEvent& event );
348 void OnMenuOpen( wxMenuEvent& event );
350 #if defined( __WXMSW__ ) || defined( __WXMAC__ )
351 void OnContextMenu2(wxContextMenuEvent& event);
353 void OnContextMenu(wxMouseEvent& event);
355 void OnControlEvent( wxCommandEvent& event );
357 DECLARE_EVENT_TABLE();
360 intf_thread_t *p_intf;
363 int i_old_playing_status;
365 /* For auto-generated menus */
366 wxMenu *p_settings_menu;
367 wxMenu *p_audio_menu;
368 wxMenu *p_video_menu;
369 wxMenu *p_navig_menu;
373 WX_DEFINE_ARRAY(AutoBuiltPanel *, ArrayOfAutoBuiltPanel);
374 class OpenDialog: public wxDialog
378 OpenDialog( intf_thread_t *p_intf, wxWindow *p_parent,
379 int i_access_method, int i_arg = 0 );
381 /* Extended Contructor */
382 OpenDialog( intf_thread_t *p_intf, wxWindow *p_parent,
383 int i_access_method, int i_arg = 0 , int _i_method = 0 );
384 virtual ~OpenDialog();
387 int Show( int i_access_method, int i_arg = 0 );
390 void UpdateMRL( int i_access_method );
395 wxPanel *FilePanel( wxWindow* parent );
396 wxPanel *DiscPanel( wxWindow* parent );
397 wxPanel *NetPanel( wxWindow* parent );
399 ArrayOfAutoBuiltPanel input_tab_array;
401 /* Event handlers (these functions should _not_ be virtual) */
402 void OnOk( wxCommandEvent& event );
403 void OnCancel( wxCommandEvent& event );
405 void OnPageChange( wxNotebookEvent& event );
406 void OnMRLChange( wxCommandEvent& event );
408 /* Event handlers for the file page */
409 void OnFilePanelChange( wxCommandEvent& event );
410 void OnFileBrowse( wxCommandEvent& event );
412 /* Event handlers for the disc page */
413 void OnDiscPanelChange( wxCommandEvent& event );
414 void OnDiscTypeChange( wxCommandEvent& event );
415 void OnDiscDeviceChange( wxCommandEvent& event );
417 /* Event handlers for the net page */
418 void OnNetPanelChange( wxCommandEvent& event );
419 void OnNetTypeChange( wxCommandEvent& event );
421 /* Event handlers for the stream output */
422 void OnSubsFileEnable( wxCommandEvent& event );
423 void OnSubsFileSettings( wxCommandEvent& WXUNUSED(event) );
425 /* Event handlers for the stream output */
426 void OnSoutEnable( wxCommandEvent& event );
427 void OnSoutSettings( wxCommandEvent& WXUNUSED(event) );
429 /* Event handlers for the caching option */
430 void OnCachingEnable( wxCommandEvent& event );
431 void OnCachingChange( wxCommandEvent& event );
433 DECLARE_EVENT_TABLE();
435 intf_thread_t *p_intf;
437 int i_current_access_method;
438 int i_disc_type_selection;
440 int i_method; /* Normal or for the stream dialog ? */
443 wxComboBox *mrl_combo;
444 wxNotebook *notebook;
446 /* Controls for the file panel */
447 wxComboBox *file_combo;
448 wxFileDialog *file_dialog;
450 /* Controls for the disc panel */
451 wxRadioBox *disc_type;
452 wxTextCtrl *disc_device;
453 wxSpinCtrl *disc_title; int i_disc_title;
454 wxSpinCtrl *disc_chapter; int i_disc_chapter;
455 wxSpinCtrl *disc_sub; int i_disc_sub;
457 /* The media equivalent name for a DVD names. For example,
458 * "Title", is "Track" for a CD-DA */
459 wxStaticText *disc_title_label;
460 wxStaticText *disc_chapter_label;
461 wxStaticText *disc_sub_label;
463 /* Indicates if the disc device control was modified */
464 bool b_disc_device_changed;
466 /* Controls for the net panel */
467 wxRadioBox *net_type;
469 wxPanel *net_subpanels[4];
470 wxRadioButton *net_radios[4];
471 wxSpinCtrl *net_ports[4];
473 wxTextCtrl *net_addrs[4];
474 wxCheckBox *net_ipv6;
476 /* Controls for the subtitles file */
477 wxButton *subsfile_button;
478 wxCheckBox *subsfile_checkbox;
479 SubsFileDialog *subsfile_dialog;
480 wxArrayString subsfile_mrl;
482 /* Controls for the stream output */
483 wxButton *sout_button;
484 wxCheckBox *sout_checkbox;
485 SoutDialog *sout_dialog;
486 wxArrayString sout_mrl;
488 /* Controls for the caching options */
489 wxCheckBox *caching_checkbox;
490 wxSpinCtrl *caching_value;
500 /* Auto-built panels */
503 #define MAX_ACCESS CAPTURE_ACCESS
505 /* Stream output Dialog */
519 TS_ENCAPSULATION = 0,
538 class SoutDialog: public wxDialog
542 SoutDialog( intf_thread_t *p_intf, wxWindow *p_parent );
543 virtual ~SoutDialog();
545 wxArrayString GetOptions();
549 wxPanel *AccessPanel( wxWindow* parent );
550 wxPanel *MiscPanel( wxWindow* parent );
551 wxPanel *EncapsulationPanel( wxWindow* parent );
552 wxPanel *TranscodingPanel( wxWindow* parent );
555 /* Event handlers (these functions should _not_ be virtual) */
556 void OnOk( wxCommandEvent& event );
557 void OnCancel( wxCommandEvent& event );
558 void OnMRLChange( wxCommandEvent& event );
559 void OnAccessTypeChange( wxCommandEvent& event );
561 /* Event handlers for the file access output */
562 void OnFileChange( wxCommandEvent& event );
563 void OnFileBrowse( wxCommandEvent& event );
564 void OnFileDump( wxCommandEvent& event );
566 /* Event handlers for the net access output */
567 void OnNetChange( wxCommandEvent& event );
569 /* Event specific to the announce address */
570 void OnAnnounceGroupChange( wxCommandEvent& event );
571 void OnAnnounceAddrChange( wxCommandEvent& event );
573 /* Event handlers for the encapsulation panel */
574 void OnEncapsulationChange( wxCommandEvent& event );
576 /* Event handlers for the transcoding panel */
577 void OnTranscodingEnable( wxCommandEvent& event );
578 void OnTranscodingChange( wxCommandEvent& event );
580 /* Event handlers for the misc panel */
581 void OnSAPMiscChange( wxCommandEvent& event );
582 void OnSLPMiscChange( wxCommandEvent& event );
584 DECLARE_EVENT_TABLE();
586 intf_thread_t *p_intf;
589 wxComboBox *mrl_combo;
591 /* Controls for the access outputs */
592 wxPanel *access_panel;
593 wxPanel *access_subpanels[ACCESS_OUT_NUM];
594 wxCheckBox *access_checkboxes[ACCESS_OUT_NUM];
598 wxComboBox *file_combo;
599 wxCheckBox *dump_checkbox;
600 wxSpinCtrl *net_ports[ACCESS_OUT_NUM];
601 wxTextCtrl *net_addrs[ACCESS_OUT_NUM];
603 /* Controls for the SAP announces */
605 wxPanel *misc_subpanels[MISC_SOUT_NUM];
606 wxCheckBox *sap_checkbox;
607 wxCheckBox *slp_checkbox;
608 wxTextCtrl *announce_group;
609 wxTextCtrl *announce_addr;
611 /* Controls for the encapsulation */
612 wxPanel *encapsulation_panel;
613 wxRadioButton *encapsulation_radios[ENCAPS_NUM];
614 int i_encapsulation_type;
616 /* Controls for transcoding */
617 wxPanel *transcoding_panel;
618 wxCheckBox *video_transc_checkbox;
619 wxComboBox *video_codec_combo;
620 wxComboBox *audio_codec_combo;
621 wxCheckBox *audio_transc_checkbox;
622 wxComboBox *video_bitrate_combo;
623 wxComboBox *audio_bitrate_combo;
624 wxComboBox *audio_channels_combo;
625 wxComboBox *video_scale_combo;
628 /* Subtitles File Dialog */
629 class SubsFileDialog: public wxDialog
633 SubsFileDialog( intf_thread_t *p_intf, wxWindow *p_parent );
634 virtual ~SubsFileDialog();
636 wxComboBox *file_combo;
637 wxComboBox *encoding_combo;
638 wxComboBox *size_combo;
639 wxComboBox *align_combo;
640 wxSpinCtrl *fps_spinctrl;
641 wxSpinCtrl *delay_spinctrl;
644 /* Event handlers (these functions should _not_ be virtual) */
645 void OnOk( wxCommandEvent& event );
646 void OnCancel( wxCommandEvent& event );
647 void OnFileBrowse( wxCommandEvent& event );
649 DECLARE_EVENT_TABLE();
651 intf_thread_t *p_intf;
656 class StreamDialog: public wxFrame
660 StreamDialog( intf_thread_t *p_intf, wxWindow *p_parent );
661 virtual ~StreamDialog();
664 void OnClose( wxCommandEvent& event );
665 void OnOpen( wxCommandEvent& event );
666 void OnSout( wxCommandEvent& event );
667 void OnStart( wxCommandEvent& event );
669 DECLARE_EVENT_TABLE();
671 intf_thread_t *p_intf;
673 wxStaticText *step2_label;
674 wxStaticText *step3_label;
675 wxButton *sout_button;
676 wxButton *start_button;
678 wxArrayString sout_mrl;
679 OpenDialog *p_open_dialog;
680 SoutDialog *p_sout_dialog;
684 class WizardDialog : public wxWizard
688 WizardDialog( intf_thread_t *p_intf, wxWindow *p_parent,char *, int, int );
689 virtual ~WizardDialog();
690 void SetTranscode( char *vcodec, int vb, char *acodec,int ab);
691 void SetMrl( const char *mrl );
692 void SetTTL( int i_ttl );
693 void SetPartial( int, int );
694 void SetStream( char *method, char *address );
695 void SetTranscodeOut( char *address );
696 void SetAction( int i_action );
698 void SetSAP( bool b_enabled, const char *psz_name );
699 void SetMux( char *mux );
706 int i_from, i_to, i_ttl;
707 char *vcodec , *acodec , *address , *mrl , *mux ;
710 DECLARE_EVENT_TABLE();
712 intf_thread_t *p_intf;
716 /* Preferences Dialog */
717 class PrefsDialog: public wxFrame
721 PrefsDialog( intf_thread_t *p_intf, wxWindow *p_parent );
722 virtual ~PrefsDialog();
725 wxPanel *PrefsPanel( wxWindow* parent );
727 /* Event handlers (these functions should _not_ be virtual) */
728 void OnOk( wxCommandEvent& event );
729 void OnCancel( wxCommandEvent& event );
730 void OnSave( wxCommandEvent& event );
731 void OnResetAll( wxCommandEvent& event );
732 void OnAdvanced( wxCommandEvent& event );
734 DECLARE_EVENT_TABLE();
736 intf_thread_t *p_intf;
738 PrefsTreeCtrl *prefs_tree;
742 class Messages: public wxFrame
746 Messages( intf_thread_t *p_intf, wxWindow *p_parent );
748 bool Show( bool show = TRUE );
752 /* Event handlers (these functions should _not_ be virtual) */
753 void OnClose( wxCommandEvent& event );
754 void OnClear( wxCommandEvent& event );
755 void OnSaveLog( wxCommandEvent& event );
757 DECLARE_EVENT_TABLE();
759 intf_thread_t *p_intf;
760 wxTextCtrl *textctrl;
761 wxTextAttr *info_attr;
762 wxTextAttr *err_attr;
763 wxTextAttr *warn_attr;
764 wxTextAttr *dbg_attr;
766 wxFileDialog *save_log_dialog;
768 vlc_bool_t b_verbose;
772 class Playlist: public wxFrame
776 Playlist( intf_thread_t *p_intf, wxWindow *p_parent );
779 void UpdatePlaylist();
780 void ShowPlaylist( bool show );
781 void UpdateItem( int );
782 void AppendItem( wxCommandEvent& );
787 void DeleteItem( int item );
788 void DeleteNode( playlist_item_t *node );
790 /* Event handlers (these functions should _not_ be virtual) */
793 void OnAddFile( wxCommandEvent& event );
794 void OnAddDir( wxCommandEvent& event );
795 void OnAddMRL( wxCommandEvent& event );
796 void OnClose( wxCommandEvent& event );
798 void OnEnableSelection( wxCommandEvent& event );
799 void OnDisableSelection( wxCommandEvent& event );
800 void OnInvertSelection( wxCommandEvent& event );
801 void OnDeleteSelection( wxCommandEvent& event );
802 void OnSelectAll( wxCommandEvent& event );
804 void OnOpen( wxCommandEvent& event );
805 void OnSave( wxCommandEvent& event );
808 void OnSearch( wxCommandEvent& event );
809 void OnSearchTextChange( wxCommandEvent& event );
810 wxTextCtrl *search_text;
811 wxButton *search_button;
812 wxTreeItemId search_current;
814 void OnEnDis( wxCommandEvent& event );
818 void OnSort( wxCommandEvent& event );
821 int i_duration_sorted;
824 void OnMenuEvent( wxCommandEvent& event );
825 void OnMenuOpen( wxMenuEvent& event );
831 void OnUp( wxCommandEvent& event);
832 void OnDown( wxCommandEvent& event);
834 void OnRandom( wxCommandEvent& event );
835 void OnRepeat( wxCommandEvent& event );
836 void OnLoop ( wxCommandEvent& event );
838 void OnActivateItem( wxTreeEvent& event );
839 void OnKeyDown( wxTreeEvent& event );
840 void OnNewGroup( wxCommandEvent& event );
844 wxTreeItemId i_popup_item;
845 playlist_item_t *p_popup_item;
846 playlist_item_t *p_popup_parent;
847 void OnPopup( wxContextMenuEvent& event );
848 void OnPopupPlay( wxMenuEvent& event );
849 void OnPopupSort( wxMenuEvent& event );
850 void OnPopupDel( wxMenuEvent& event );
851 void OnPopupEna( wxMenuEvent& event );
852 void OnPopupInfo( wxMenuEvent& event );
856 void UpdateNode( playlist_t *, playlist_item_t*, wxTreeItemId );
857 void UpdateNodeChildren( playlist_t *, playlist_item_t*, wxTreeItemId );
858 void CreateNode( playlist_t *, playlist_item_t*, wxTreeItemId );
859 void UpdateTreeItem( playlist_t *, wxTreeItemId );
860 void SetCurrentItem( wxTreeItemId );
862 /* Search (internal) */
863 int CountItems( wxTreeItemId);
864 wxTreeItemId FindItem( wxTreeItemId, playlist_item_t * );
865 wxTreeItemId FindItemByName( wxTreeItemId, wxString,
866 wxTreeItemId, vlc_bool_t *);
869 void OnPlaylistEvent( wxCommandEvent& event );
871 DECLARE_EVENT_TABLE();
875 wxStatusBar *statusbar;
876 ItemInfoDialog *iteminfo_dialog;
878 int i_update_counter;
880 intf_thread_t *p_intf;
881 wxTreeCtrl *treectrl;
883 vlc_bool_t b_changed_view;
889 /* ItemInfo Dialog */
890 class ItemInfoDialog: public wxDialog
894 ItemInfoDialog( intf_thread_t *p_intf, playlist_item_t *_p_item,
895 wxWindow *p_parent );
896 virtual ~ItemInfoDialog();
898 wxArrayString GetOptions();
901 wxPanel *InfoPanel( wxWindow* parent );
902 wxPanel *GroupPanel( wxWindow* parent );
904 /* Event handlers (these functions should _not_ be virtual) */
905 void OnOk( wxCommandEvent& event );
906 void OnCancel( wxCommandEvent& event );
910 DECLARE_EVENT_TABLE();
912 intf_thread_t *p_intf;
913 playlist_item_t *p_item;
916 /* Controls for the iteminfo dialog box */
917 wxPanel *info_subpanel;
920 wxPanel *group_subpanel;
921 wxPanel *group_panel;
923 wxTextCtrl *uri_text;
924 wxTextCtrl *name_text;
925 wxTextCtrl *author_text;
927 wxTreeCtrl *info_tree;
928 wxTreeItemId info_root;
934 class FileInfo: public wxFrame
938 FileInfo( intf_thread_t *p_intf, wxWindow *p_parent );
940 void UpdateFileInfo();
942 vlc_bool_t b_need_update;
945 void OnClose( wxCommandEvent& event );
947 DECLARE_EVENT_TABLE();
949 intf_thread_t *p_intf;
950 wxTreeCtrl *fileinfo_tree;
951 wxTreeItemId fileinfo_root;
952 wxString fileinfo_root_label;
957 #if wxUSE_DRAG_AND_DROP
958 /* Drag and Drop class */
959 class DragAndDrop: public wxFileDropTarget
962 DragAndDrop( intf_thread_t *_p_intf, vlc_bool_t b_enqueue = VLC_FALSE );
964 virtual bool OnDropFiles( wxCoord x, wxCoord y,
965 const wxArrayString& filenames );
968 intf_thread_t *p_intf;
969 vlc_bool_t b_enqueue;
972 } // end of wxvlc namespace
975 void PopupMenu( intf_thread_t *, wxWindow *, const wxPoint& );
976 wxMenu *SettingsMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
977 wxMenu *AudioMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
978 wxMenu *VideoMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
979 wxMenu *NavigMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
983 class MenuEvtHandler : public wxEvtHandler
986 MenuEvtHandler( intf_thread_t *p_intf, Interface *p_main_interface );
987 virtual ~MenuEvtHandler();
989 void OnMenuEvent( wxCommandEvent& event );
990 void OnShowDialog( wxCommandEvent& event );
994 DECLARE_EVENT_TABLE()
996 intf_thread_t *p_intf;
997 Interface *p_main_interface;
1000 } // end of wxvlc namespace
1001 using namespace wxvlc;