You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.8KB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Sep 8 2010)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO "NOT" EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "testcurlGUI.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. testcurlGUI::testcurlGUI( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
  10. {
  11. this->SetSizeHints( wxSize( 500,300 ), wxDefaultSize );
  12. this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
  13. wxBoxSizer* verticalsizer;
  14. verticalsizer = new wxBoxSizer( wxVERTICAL );
  15. texte_URL = new wxTextCtrl( this, wxID_ANY, wxT("Entrez l'url ici"), wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
  16. verticalsizer->Add( texte_URL, 0, wxALIGN_CENTER|wxALL|wxEXPAND, 5 );
  17. wxBoxSizer* horizontalsizer_Proxy;
  18. horizontalsizer_Proxy = new wxBoxSizer( wxHORIZONTAL );
  19. texte_Blanc = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  20. texte_Blanc->Wrap( -1 );
  21. horizontalsizer_Proxy->Add( texte_Blanc, 2, wxALL, 5 );
  22. checkbox_Proxy = new wxCheckBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  23. horizontalsizer_Proxy->Add( checkbox_Proxy, 0, wxALL, 5 );
  24. texte_Proxy = new wxTextCtrl( this, wxID_ANY, wxT("Entrez l'adresse du proxy ici"), wxDefaultPosition, wxDefaultSize, 0 );
  25. horizontalsizer_Proxy->Add( texte_Proxy, 1, wxALIGN_CENTER|wxALL|wxEXPAND, 5 );
  26. spin_Proxy = new wxSpinCtrl( this, wxID_ANY, wxT("80"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 65536, 0 );
  27. horizontalsizer_Proxy->Add( spin_Proxy, 0, wxALIGN_CENTER|wxALL|wxEXPAND, 5 );
  28. verticalsizer->Add( horizontalsizer_Proxy, 0, wxALL|wxEXPAND, 5 );
  29. boutonGo = new wxButton( this, wxID_ANY, wxT("Go !"), wxDefaultPosition, wxDefaultSize, 0 );
  30. verticalsizer->Add( boutonGo, 0, wxALIGN_RIGHT|wxALL, 5 );
  31. texte_Resultat = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_DONTWRAP|wxTE_READONLY );
  32. verticalsizer->Add( texte_Resultat, 1, wxALL|wxEXPAND, 5 );
  33. this->SetSizer( verticalsizer );
  34. this->Layout();
  35. this->Centre( wxBOTH );
  36. // Connect Events
  37. texte_URL->Connect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( testcurlGUI::OnGo ), NULL, this );
  38. boutonGo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( testcurlGUI::OnGo ), NULL, this );
  39. }
  40. testcurlGUI::~testcurlGUI()
  41. {
  42. // Disconnect Events
  43. texte_URL->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( testcurlGUI::OnGo ), NULL, this );
  44. boutonGo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( testcurlGUI::OnGo ), NULL, this );
  45. }