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;
112 /* The input thread */
113 input_thread_t * p_input;
116 int i_slider_pos; /* slider position */
117 int i_slider_oldpos; /* previous position */
118 vlc_bool_t b_slider_free; /* slider status */
120 /* The messages window */
121 msg_subscription_t* p_sub; /* message bank subscription */
123 /* Playlist management */
124 int i_playing; /* playlist selected item */
126 /* Send an event to show a dialog */
127 void (*pf_show_dialog) ( intf_thread_t *p_intf, int i_dialog, int i_arg,
128 intf_dialog_args_t *p_arg );
131 wxMenu *p_popup_menu;
133 VideoWindow *p_video_window;
134 wxBoxSizer *p_video_sizer;
137 /*****************************************************************************
139 *****************************************************************************/
140 wxArrayString SeparateEntries( wxString );
141 wxWindow *VideoWindow( intf_thread_t *p_intf, wxWindow *p_parent );
142 wxWindow *BookmarksDialog( intf_thread_t *p_intf, wxWindow *p_parent );
143 wxWindow *CreateDialogsProvider( intf_thread_t *p_intf, wxWindow *p_parent );
150 class SubsFileDialog;
156 class ItemInfoDialog;
158 class ExportPlaylist;
160 /*****************************************************************************
161 * Classes declarations.
162 *****************************************************************************/
164 class Timer: public wxTimer
168 Timer( intf_thread_t *p_intf, Interface *p_main_interface );
171 virtual void Notify();
174 intf_thread_t *p_intf;
175 Interface *p_main_interface;
176 int i_old_playing_status;
181 class Interface: public wxFrame
185 Interface( intf_thread_t *p_intf );
186 virtual ~Interface();
187 void TogglePlayButton( int i_playing_status );
189 wxBoxSizer *frame_sizer;
190 wxStatusBar *statusbar;
193 wxWindow *slider_frame;
194 wxWindow *extra_frame;
198 wxStaticBox *adjust_box;
199 wxButton *restoredefaults_button;
200 wxSlider *brightness_slider;
201 wxSlider *contrast_slider;
202 wxSlider *saturation_slider;
203 wxSlider *hue_slider;
204 wxSlider *gamma_slider;
206 wxStaticBox *other_box;
207 wxComboBox *ratio_combo;
212 void UpdateAcceleratorTable();
213 void CreateOurMenuBar();
214 void CreateOurToolBar();
215 void CreateOurExtendedPanel();
216 void CreateOurSlider();
217 void Open( int i_access_method );
219 /* Event handlers (these functions should _not_ be virtual) */
220 void OnExit( wxCommandEvent& event );
221 void OnAbout( wxCommandEvent& event );
223 void OnOpenFileSimple( wxCommandEvent& event );
224 void OnOpenFile( wxCommandEvent& event );
225 void OnOpenDisc( wxCommandEvent& event );
226 void OnOpenNet( wxCommandEvent& event );
227 void OnOpenSat( wxCommandEvent& event );
228 void OnExtended( wxCommandEvent& event );
229 void OnBookmarks( wxCommandEvent& event );
230 void OnShowDialog( wxCommandEvent& event );
231 void OnPlayStream( wxCommandEvent& event );
232 void OnStopStream( wxCommandEvent& event );
233 void OnSliderUpdate( wxScrollEvent& event );
234 void OnPrevStream( wxCommandEvent& event );
235 void OnNextStream( wxCommandEvent& event );
236 void OnSlowStream( wxCommandEvent& event );
237 void OnFastStream( wxCommandEvent& event );
239 void OnEnableAdjust( wxCommandEvent& event );
240 void OnRestoreDefaults( wxCommandEvent& event);
241 void OnAdjustUpdate( wxScrollEvent& event );
243 void OnRatio( wxCommandEvent& event );
244 void OnEnableVisual( wxCommandEvent& event );
246 void OnMenuOpen( wxMenuEvent& event );
248 #if defined( __WXMSW__ ) || defined( __WXMAC__ )
249 void OnContextMenu2(wxContextMenuEvent& event);
251 void OnContextMenu(wxMouseEvent& event);
253 void OnControlEvent( wxCommandEvent& event );
255 DECLARE_EVENT_TABLE();
258 intf_thread_t *p_intf;
261 int i_old_playing_status;
263 /* For auto-generated menus */
264 wxMenu *p_settings_menu;
265 wxMenu *p_audio_menu;
266 wxMenu *p_video_menu;
267 wxMenu *p_navig_menu;
271 WX_DEFINE_ARRAY(AutoBuiltPanel *, ArrayOfAutoBuiltPanel);
272 class OpenDialog: public wxDialog
276 OpenDialog( intf_thread_t *p_intf, wxWindow *p_parent,
277 int i_access_method, int i_arg = 0 );
279 /* Extended Contructor */
280 OpenDialog( intf_thread_t *p_intf, wxWindow *p_parent,
281 int i_access_method, int i_arg = 0 , int _i_method = 0 );
282 virtual ~OpenDialog();
285 int Show( int i_access_method, int i_arg = 0 );
288 void UpdateMRL( int i_access_method );
293 wxPanel *FilePanel( wxWindow* parent );
294 wxPanel *DiscPanel( wxWindow* parent );
295 wxPanel *NetPanel( wxWindow* parent );
297 ArrayOfAutoBuiltPanel input_tab_array;
299 /* Event handlers (these functions should _not_ be virtual) */
300 void OnOk( wxCommandEvent& event );
301 void OnCancel( wxCommandEvent& event );
303 void OnPageChange( wxNotebookEvent& event );
304 void OnMRLChange( wxCommandEvent& event );
306 /* Event handlers for the file page */
307 void OnFilePanelChange( wxCommandEvent& event );
308 void OnFileBrowse( wxCommandEvent& event );
310 /* Event handlers for the disc page */
311 void OnDiscPanelChange( wxCommandEvent& event );
312 void OnDiscTypeChange( wxCommandEvent& event );
313 void OnDiscDeviceChange( wxCommandEvent& event );
315 /* Event handlers for the net page */
316 void OnNetPanelChange( wxCommandEvent& event );
317 void OnNetTypeChange( wxCommandEvent& event );
319 /* Event handlers for the stream output */
320 void OnSubsFileEnable( wxCommandEvent& event );
321 void OnSubsFileSettings( wxCommandEvent& WXUNUSED(event) );
323 /* Event handlers for the stream output */
324 void OnSoutEnable( wxCommandEvent& event );
325 void OnSoutSettings( wxCommandEvent& WXUNUSED(event) );
327 DECLARE_EVENT_TABLE();
329 intf_thread_t *p_intf;
331 int i_current_access_method;
332 int i_disc_type_selection;
334 int i_method; /* Normal or for the stream dialog ? */
337 wxComboBox *mrl_combo;
338 wxNotebook *notebook;
340 /* Controls for the file panel */
341 wxComboBox *file_combo;
342 wxFileDialog *file_dialog;
344 /* Controls for the disc panel */
345 wxRadioBox *disc_type;
346 wxTextCtrl *disc_device;
347 wxSpinCtrl *disc_title;
348 wxSpinCtrl *disc_chapter;
350 /* The media equivalent name for a DVD names. For example,
351 "Title", is "Track" for a CD-DA */
352 wxStaticText *disc_title_label;
353 wxStaticText *disc_chapter_label;
355 /* Indicates if the disc device control was modified */
356 bool b_disc_device_changed;
358 /* Controls for the net panel */
359 wxRadioBox *net_type;
361 wxPanel *net_subpanels[4];
362 wxRadioButton *net_radios[4];
363 wxSpinCtrl *net_ports[4];
365 wxTextCtrl *net_addrs[4];
366 wxCheckBox *net_ipv6;
368 /* Controls for the subtitles file */
369 wxButton *subsfile_button;
370 wxCheckBox *subsfile_checkbox;
371 SubsFileDialog *subsfile_dialog;
372 wxArrayString subsfile_mrl;
374 /* Controls for the stream output */
375 wxButton *sout_button;
376 wxCheckBox *sout_checkbox;
377 SoutDialog *sout_dialog;
378 wxArrayString sout_mrl;
387 /* Auto-built panels */
390 #define MAX_ACCESS CAPTURE_ACCESS
392 /* Stream output Dialog */
406 TS_ENCAPSULATION = 0,
424 class SoutDialog: public wxDialog
428 SoutDialog( intf_thread_t *p_intf, wxWindow *p_parent );
429 virtual ~SoutDialog();
431 wxArrayString GetOptions();
435 wxPanel *AccessPanel( wxWindow* parent );
436 wxPanel *MiscPanel( wxWindow* parent );
437 wxPanel *EncapsulationPanel( wxWindow* parent );
438 wxPanel *TranscodingPanel( wxWindow* parent );
441 /* Event handlers (these functions should _not_ be virtual) */
442 void OnOk( wxCommandEvent& event );
443 void OnCancel( wxCommandEvent& event );
444 void OnMRLChange( wxCommandEvent& event );
445 void OnAccessTypeChange( wxCommandEvent& event );
447 /* Event handlers for the file access output */
448 void OnFileChange( wxCommandEvent& event );
449 void OnFileBrowse( wxCommandEvent& event );
450 void OnFileDump( wxCommandEvent& event );
452 /* Event handlers for the net access output */
453 void OnNetChange( wxCommandEvent& event );
455 /* Event specific to the announce address */
456 void OnAnnounceAddrChange( wxCommandEvent& event );
458 /* Event handlers for the encapsulation panel */
459 void OnEncapsulationChange( wxCommandEvent& event );
461 /* Event handlers for the transcoding panel */
462 void OnTranscodingEnable( wxCommandEvent& event );
463 void OnTranscodingChange( wxCommandEvent& event );
465 /* Event handlers for the misc panel */
466 void OnSAPMiscChange( wxCommandEvent& event );
467 void OnSLPMiscChange( wxCommandEvent& event );
469 DECLARE_EVENT_TABLE();
471 intf_thread_t *p_intf;
474 wxComboBox *mrl_combo;
476 /* Controls for the access outputs */
477 wxPanel *access_panel;
478 wxPanel *access_subpanels[ACCESS_OUT_NUM];
479 wxCheckBox *access_checkboxes[ACCESS_OUT_NUM];
483 wxComboBox *file_combo;
484 wxCheckBox *dump_checkbox;
485 wxSpinCtrl *net_ports[ACCESS_OUT_NUM];
486 wxTextCtrl *net_addrs[ACCESS_OUT_NUM];
488 /* Controls for the SAP announces */
490 wxPanel *misc_subpanels[MISC_SOUT_NUM];
491 wxCheckBox *sap_checkbox;
492 wxCheckBox *slp_checkbox;
493 wxTextCtrl *announce_addr;
495 /* Controls for the encapsulation */
496 wxPanel *encapsulation_panel;
497 wxRadioButton *encapsulation_radios[ENCAPS_NUM];
498 int i_encapsulation_type;
500 /* Controls for transcoding */
501 wxPanel *transcoding_panel;
502 wxCheckBox *video_transc_checkbox;
503 wxComboBox *video_codec_combo;
504 wxComboBox *audio_codec_combo;
505 wxCheckBox *audio_transc_checkbox;
506 wxComboBox *video_bitrate_combo;
507 wxComboBox *audio_bitrate_combo;
508 wxComboBox *audio_channels_combo;
509 wxComboBox *video_scale_combo;
512 /* Subtitles File Dialog */
513 class SubsFileDialog: public wxDialog
517 SubsFileDialog( intf_thread_t *p_intf, wxWindow *p_parent );
518 virtual ~SubsFileDialog();
520 wxComboBox *file_combo;
521 wxComboBox *encoding_combo;
522 wxSpinCtrl *delay_spinctrl;
523 wxSpinCtrl *fps_spinctrl;
526 /* Event handlers (these functions should _not_ be virtual) */
527 void OnOk( wxCommandEvent& event );
528 void OnCancel( wxCommandEvent& event );
529 void OnFileBrowse( wxCommandEvent& event );
531 DECLARE_EVENT_TABLE();
533 intf_thread_t *p_intf;
538 class StreamDialog: public wxFrame
542 StreamDialog( intf_thread_t *p_intf, wxWindow *p_parent );
543 virtual ~StreamDialog();
546 void OnClose( wxCommandEvent& event );
547 void OnOpen( wxCommandEvent& event );
548 void OnSout( wxCommandEvent& event );
549 void OnStart( wxCommandEvent& event );
551 DECLARE_EVENT_TABLE();
553 intf_thread_t *p_intf;
555 wxStaticText *step2_label;
556 wxStaticText *step3_label;
557 wxButton *sout_button;
558 wxButton *start_button;
560 wxArrayString sout_mrl;
561 OpenDialog *p_open_dialog;
562 SoutDialog *p_sout_dialog;
566 class WizardDialog : public wxWizard
570 WizardDialog( intf_thread_t *p_intf, wxWindow *p_parent );
571 virtual ~WizardDialog();
572 void SetTranscode( char *vcodec, int vb, char *acodec,int ab);
573 void SetMrl( const char *mrl );
574 void SetPartial( int, int );
575 void SetStream( char *method, char *address );
576 void SetTranscodeOut( char *address );
577 void SetAction( int i_action );
579 void SetMux( char *mux );
586 char *vcodec,*acodec,*method,*address,*mrl,*mux;
587 DECLARE_EVENT_TABLE();
589 intf_thread_t *p_intf;
593 /* Preferences Dialog */
594 class PrefsDialog: public wxFrame
598 PrefsDialog( intf_thread_t *p_intf, wxWindow *p_parent );
599 virtual ~PrefsDialog();
602 wxPanel *PrefsPanel( wxWindow* parent );
604 /* Event handlers (these functions should _not_ be virtual) */
605 void OnOk( wxCommandEvent& event );
606 void OnCancel( wxCommandEvent& event );
607 void OnSave( wxCommandEvent& event );
608 void OnResetAll( wxCommandEvent& event );
609 void OnAdvanced( wxCommandEvent& event );
611 DECLARE_EVENT_TABLE();
613 intf_thread_t *p_intf;
615 PrefsTreeCtrl *prefs_tree;
619 class Messages: public wxFrame
623 Messages( intf_thread_t *p_intf, wxWindow *p_parent );
625 bool Show( bool show = TRUE );
629 /* Event handlers (these functions should _not_ be virtual) */
630 void OnClose( wxCommandEvent& event );
631 void OnClear( wxCommandEvent& event );
632 void OnSaveLog( wxCommandEvent& event );
634 DECLARE_EVENT_TABLE();
636 intf_thread_t *p_intf;
637 wxTextCtrl *textctrl;
638 wxTextAttr *info_attr;
639 wxTextAttr *err_attr;
640 wxTextAttr *warn_attr;
641 wxTextAttr *dbg_attr;
643 wxFileDialog *save_log_dialog;
645 vlc_bool_t b_verbose;
649 class Playlist: public wxFrame
653 Playlist( intf_thread_t *p_intf, wxWindow *p_parent );
656 void UpdatePlaylist();
657 void ShowPlaylist( bool show );
658 void UpdateItem( int );
663 void DeleteItem( int item );
664 void ShowInfos( int item );
666 /* Event handlers (these functions should _not_ be virtual) */
667 void OnAddFile( wxCommandEvent& event );
668 void OnAddMRL( wxCommandEvent& event );
669 void OnClose( wxCommandEvent& event );
670 void OnSearch( wxCommandEvent& event );
671 void OnEnDis( wxCommandEvent& event );
672 void OnInfos( wxCommandEvent& event );
673 void OnSearchTextChange( wxCommandEvent& event );
674 void OnOpen( wxCommandEvent& event );
675 void OnSave( wxCommandEvent& event );
677 void OnSort( wxCommandEvent& event );
678 void OnColSelect( wxListEvent& event );
680 void OnUp( wxCommandEvent& event);
681 void OnDown( wxCommandEvent& event);
683 void OnEnableSelection( wxCommandEvent& event );
684 void OnDisableSelection( wxCommandEvent& event );
685 void OnInvertSelection( wxCommandEvent& event );
686 void OnDeleteSelection( wxCommandEvent& event );
687 void OnSelectAll( wxCommandEvent& event );
688 void OnRandom( wxCommandEvent& event );
689 void OnRepeat( wxCommandEvent& event );
690 void OnLoop ( wxCommandEvent& event );
691 void OnActivateItem( wxListEvent& event );
692 void OnKeyDown( wxListEvent& event );
693 void OnNewGroup( wxCommandEvent& event );
695 /* Popup functions */
696 void OnPopup( wxListEvent& event );
697 void OnPopupPlay( wxMenuEvent& event );
698 void OnPopupDel( wxMenuEvent& event );
699 void OnPopupEna( wxMenuEvent& event );
700 void OnPopupInfo( wxMenuEvent& event );
704 void OnPlaylistEvent( wxCommandEvent& event );
706 wxTextCtrl *search_text;
707 wxButton *search_button;
708 DECLARE_EVENT_TABLE();
712 ItemInfoDialog *iteminfo_dialog;
714 intf_thread_t *p_intf;
715 wxListView *listview;
716 wxTreeCtrl *treeview;
717 int i_update_counter;
725 int i_duration_sorted;
728 class NewGroup: public wxDialog
732 NewGroup( intf_thread_t *p_intf, wxWindow *p_parent );
737 /* Event handlers (these functions should _not_ be virtual) */
738 void OnOk( wxCommandEvent& event );
739 void OnCancel( wxCommandEvent& event );
741 DECLARE_EVENT_TABLE();
743 intf_thread_t *p_intf;
744 wxTextCtrl *groupname;
747 friend class Playlist;
748 friend class ItemInfoDialog;
752 /* ItemInfo Dialog */
753 class ItemInfoDialog: public wxDialog
757 ItemInfoDialog( intf_thread_t *p_intf, playlist_item_t *_p_item,
758 wxWindow *p_parent );
759 virtual ~ItemInfoDialog();
761 wxArrayString GetOptions();
764 wxPanel *InfoPanel( wxWindow* parent );
765 wxPanel *GroupPanel( wxWindow* parent );
767 /* Event handlers (these functions should _not_ be virtual) */
768 void OnOk( wxCommandEvent& event );
769 void OnCancel( wxCommandEvent& event );
770 void OnNewGroup( wxCommandEvent& event );
774 DECLARE_EVENT_TABLE();
776 intf_thread_t *p_intf;
777 playlist_item_t *p_item;
780 /* Controls for the iteminfo dialog box */
781 wxPanel *info_subpanel;
784 wxPanel *group_subpanel;
785 wxPanel *group_panel;
787 wxTextCtrl *uri_text;
788 wxTextCtrl *name_text;
789 wxTextCtrl *author_text;
791 wxTreeCtrl *info_tree;
792 wxTreeItemId info_root;
794 wxCheckBox *enabled_checkbox;
795 wxComboBox *group_combo;
801 class FileInfo: public wxFrame
805 FileInfo( intf_thread_t *p_intf, wxWindow *p_parent );
807 void UpdateFileInfo();
810 void OnClose( wxCommandEvent& event );
812 DECLARE_EVENT_TABLE();
814 intf_thread_t *p_intf;
815 wxTreeCtrl *fileinfo_tree;
816 wxTreeItemId fileinfo_root;
817 wxString fileinfo_root_label;
822 #if wxUSE_DRAG_AND_DROP
823 /* Drag and Drop class */
824 class DragAndDrop: public wxFileDropTarget
827 DragAndDrop( intf_thread_t *_p_intf, vlc_bool_t b_enqueue = VLC_FALSE );
829 virtual bool OnDropFiles( wxCoord x, wxCoord y,
830 const wxArrayString& filenames );
833 intf_thread_t *p_intf;
834 vlc_bool_t b_enqueue;
837 } // end of wxvlc namespace
840 void PopupMenu( intf_thread_t *, wxWindow *, const wxPoint& );
841 wxMenu *SettingsMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
842 wxMenu *AudioMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
843 wxMenu *VideoMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
844 wxMenu *NavigMenu( intf_thread_t *, wxWindow *, wxMenu * = NULL );
848 class MenuEvtHandler : public wxEvtHandler
851 MenuEvtHandler( intf_thread_t *p_intf, Interface *p_main_interface );
852 virtual ~MenuEvtHandler();
854 void OnMenuEvent( wxCommandEvent& event );
855 void OnShowDialog( wxCommandEvent& event );
859 DECLARE_EVENT_TABLE()
861 intf_thread_t *p_intf;
862 Interface *p_main_interface;
865 } // end of wxvlc namespace
866 using namespace wxvlc;
868 static inline int ConvertHotkeyModifiers( int i_hotkey )
870 int i_accel_flags = 0;
871 if( i_hotkey & KEY_MODIFIER_ALT ) i_accel_flags |= wxACCEL_ALT;
872 if( i_hotkey & KEY_MODIFIER_CTRL ) i_accel_flags |= wxACCEL_CTRL;
873 if( i_hotkey & KEY_MODIFIER_SHIFT ) i_accel_flags |= wxACCEL_SHIFT;
874 return i_accel_flags;
877 static inline int ConvertHotkey( int i_hotkey )
879 int i_key = i_hotkey & ~KEY_MODIFIER;
880 if( i_key & KEY_ASCII ) return i_key & KEY_ASCII;
881 else if( i_key & KEY_SPECIAL )
885 case KEY_LEFT: return WXK_LEFT;
886 case KEY_RIGHT: return WXK_RIGHT;
887 case KEY_UP: return WXK_UP;
888 case KEY_DOWN: return WXK_DOWN;
889 case KEY_SPACE: return WXK_SPACE;
890 case KEY_ENTER: return WXK_RETURN;
891 case KEY_F1: return WXK_F1;
892 case KEY_F2: return WXK_F2;
893 case KEY_F3: return WXK_F3;
894 case KEY_F4: return WXK_F4;
895 case KEY_F5: return WXK_F5;
896 case KEY_F6: return WXK_F6;
897 case KEY_F7: return WXK_F7;
898 case KEY_F8: return WXK_F8;
899 case KEY_F9: return WXK_F9;
900 case KEY_F10: return WXK_F10;
901 case KEY_F11: return WXK_F11;
902 case KEY_F12: return WXK_F12;
903 case KEY_HOME: return WXK_HOME;
904 case KEY_END: return WXK_HOME;
905 case KEY_MENU: return WXK_MENU;
906 case KEY_ESC: return WXK_ESCAPE;
907 case KEY_PAGEUP: return WXK_PRIOR;
908 case KEY_PAGEDOWN: return WXK_NEXT;
909 case KEY_TAB: return WXK_TAB;
910 case KEY_BACKSPACE: return WXK_BACK;