00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _OPTIONS_DIALOG_H_
00022 #define _OPTIONS_DIALOG_H_
00023
00024 #if defined(__GNUG__) && !defined(__APPLE__)
00025 #pragma interface "options_dialog.cpp"
00026 #endif
00027
00032
00033 #include "wx/notebook.h"
00034 #include "wx/statline.h"
00036
00037
00038 #include "main_frame.h"
00039
00044
00045
00046
00051
00052 #define ID_OPTIONS 10010
00053 #define SYMBOL_DIALOGOPTIONS_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
00054 #define SYMBOL_DIALOGOPTIONS_TITLE _("Preferences...")
00055 #define SYMBOL_DIALOGOPTIONS_IDNAME ID_OPTIONS
00056 #define SYMBOL_DIALOGOPTIONS_SIZE wxDefaultSize
00057 #define SYMBOL_DIALOGOPTIONS_POSITION wxDefaultPosition
00058 #define ID_NOTEBOOK 10000
00059 #define ID_PANEL_STREAMER 10005
00060 #define ID_TEXTCTRL8 10017
00061 #define ID_CHECKBOX6 10040
00062 #define ID_TEXTCTRL5 10011
00063 #define ID_TEXTCTRL 10023
00064 #define ID_COMBOBOX1 10009
00065 #define ID_CHECKBOX1 10015
00066 #define ID_TEXTCTRL3 10018
00067 #define ID_CHECKBOX7 10041
00068 #define ID_TEXTCTRL6 10042
00069 #define ID_CHECKBOX8 10043
00070 #define ID_TEXTCTRL7 10044
00071 #define ID_BUTTON2 10045
00072 #define ID_CHECKBOX5 10028
00073 #define ID_TEXTCTRL4 10029
00074 #define ID_TEXTCTRL2 10006
00075 #define ID_TEXTCTRL1 10014
00076 #define ID_PANEL_CLIENT_STREAM 10016
00077 #define ID_TEXTCTRL10 10019
00078 #define ID_CHECKBOX2 10012
00079 #define ID_CHECKBOX4 10027
00080 #define ID_PANEL_PREFERENCES 10002
00081 #define ID_CHECKBOX 10004
00082 #define ID_COMBOBOX 10001
00083 #define ID_CHECKBOX9 10048
00084 #define ID_TEXTCTRL11 10020
00085 #define ID_BUTTON1 10025
00086 #define ID_CHECK_XML1 10026
00087 #define ID_TEXTCTRL9 10021
00088 #define ID_BUTTON 10024
00089 #define ID_CHECK_XML2 10013
00090 #define ID_TEXTCTRL13 10030
00091 #define ID_TEXTCTRL14 10031
00092 #define ID_CHECKBOX3 10003
00093 #define ID_TEXTCTRL15 10032
00094 #define ID_TEXTCTRL16 10033
00095 #define ID_TEXTCTRL17 10034
00096 #define ID_TEXTCTRL18 10035
00097 #define ID_OPTIONS_BUTTON_CANCEL 10008
00098 #define ID_OPTIONS_BUTTON_OK 10007
00100
00101
00105 #ifndef wxCLOSE_BOX
00106 #define wxCLOSE_BOX 0x1000
00107 #endif
00108 #ifndef wxFIXED_MINSIZE
00109 #define wxFIXED_MINSIZE 0
00110 #endif
00111
00116 class DialogOptions: public wxDialog
00117 {
00118 DECLARE_DYNAMIC_CLASS( DialogOptions )
00119 DECLARE_EVENT_TABLE()
00120
00121 public:
00123 DialogOptions( );
00124 DialogOptions( wxWindow* parent, StreamerCtrlThread *streamer_thread, ReceiverCtrlThread *receiver_thread,
00125 MainFrame *mainframe_pointer,
00126 wxWindowID id = SYMBOL_DIALOGOPTIONS_IDNAME, const wxString& caption = SYMBOL_DIALOGOPTIONS_TITLE,
00127 const wxPoint& pos = SYMBOL_DIALOGOPTIONS_POSITION, const wxSize& size = SYMBOL_DIALOGOPTIONS_SIZE,
00128 long style = SYMBOL_DIALOGOPTIONS_STYLE );
00129
00131 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_DIALOGOPTIONS_IDNAME,
00132 const wxString& caption = SYMBOL_DIALOGOPTIONS_TITLE, const wxPoint& pos = SYMBOL_DIALOGOPTIONS_POSITION,
00133 const wxSize& size = SYMBOL_DIALOGOPTIONS_SIZE, long style = SYMBOL_DIALOGOPTIONS_STYLE );
00134
00136 void CreateControls();
00137
00139
00141 void OnButton3Click( wxCommandEvent& event );
00142
00144 void OnComboboxSelected( wxCommandEvent& event );
00145
00147 void OnButton1Click( wxCommandEvent& event );
00148
00150 void OnCheckboxXmlFile1( wxCommandEvent& event );
00151
00153 void OnButton2Click( wxCommandEvent& event );
00154
00156 void OnCheckboxXmlFile2( wxCommandEvent& event );
00157
00159 void OnGcardUseClick( wxCommandEvent& event );
00160
00162 void OnOptionsButtonCancelClick( wxCommandEvent& event );
00163
00165 void OnOptionsButtonOkClick( wxCommandEvent& event );
00166
00168
00170
00172 wxBitmap GetBitmapResource( const wxString& name );
00173
00175 wxIcon GetIconResource( const wxString& name );
00177
00179 static bool ShowToolTips();
00180
00182 wxPanel* m_panel_streamer;
00183 wxTextCtrl* m_rtsp_stream_text;
00184 wxCheckBox* m_start_rtsp_check;
00185 wxTextCtrl* m_rtsp_port_text;
00186 wxTextCtrl* m_rtsp_fps_text;
00187 wxComboBox* m_proto_choose;
00188 wxCheckBox* m_multi_face_stream_check;
00189 wxTextCtrl* m_multi_face_stream_text;
00190 wxCheckBox* m_grab_video_check;
00191 wxTextCtrl* m_grab_video_text;
00192 wxCheckBox* m_grab_file_check;
00193 wxTextCtrl* m_grab_file_text;
00194 wxCheckBox* m_grab_audio_check;
00195 wxTextCtrl* m_grab_audio_text;
00196 wxStaticBox* m_uni_setting;
00197 wxTextCtrl* m_stream_receive_iface_text;
00198 wxTextCtrl* m_stream_send_iface_text;
00199 wxPanel* m_panel_client;
00200 wxTextCtrl* m_receive_stream_text;
00201 wxCheckBox* m_receive_stream_check;
00202 wxCheckBox* m_receive_audio_check;
00203 wxPanel* m_panel_preferences;
00204 wxCheckBox* m_face_tracking_check;
00205 wxComboBox* m_algorithm_choose;
00206 wxCheckBox* m_flipped_mode_check;
00207 wxTextCtrl* m_xml_file_1;
00208 wxButton* xml_button_1;
00209 wxCheckBox* m_xml_enable_1;
00210 wxTextCtrl* m_xml_file_2;
00211 wxButton* xml_button_2;
00212 wxCheckBox* m_xml_enable_2;
00213 wxTextCtrl* m_freeze_time;
00214 wxTextCtrl* m_hitrate;
00215 wxCheckBox* m_gcard_use_check;
00216 wxTextCtrl* m_radius_min;
00217 wxTextCtrl* m_radius_max;
00218 wxTextCtrl* m_center_x;
00219 wxTextCtrl* m_center_y;
00221
00222 StreamerCtrlThread *m_streamer_thread;
00223 ReceiverCtrlThread *m_receiver_thread;
00224 MainFrame *m_mainframe_pointer;
00225 };
00226
00227 #endif
00228