AudioConfigPane::AudioConfigPane(wxWindow* parent, wxWindowID id) : wxPanel(parent, id) { InitializeGUI(); LoadGUIValues(); RefreshGUI(); }
void ThroughputModePanel::OnPageChanged(wxNotebookEvent& event) { if( m_Initialized ) { RefreshGUI(); } }
PathConfigPane::PathConfigPane(wxWindow* panel, wxWindowID id) : wxPanel(panel, id) { InitializeGUI(); LoadGUIValues(); RefreshGUI(); }
static int OnKey(void *data, GUI_MSG *msg) { if (msg->keys == 0x3D) { int cur_item = GetCurMenuItem(data); _71 *_71 = MenuGetUserPointer(data); TOGGLE_FLAG(); RefreshGUI(); } else if (msg->keys == 0x18) { _71 *_71 = MenuGetUserPointer(data); EELiteWriteBlock(71, _71->data, _71->size, _71->ver); return 1; } return 0; }
ThroughputModePanel::ThroughputModePanel( wxWindow *parent ) :TestPanel( parent, wxID_THROUGHPUT, wxDefaultPosition, wxDefaultSize ) { m_Initialized = false; m_SelectedSettingsServer = NULL; m_ServerList = new ServerList(); this->SetSBToolTip( wxString( wxT("Starta ett test som mäter olika typer av genomströmning.\nDe tester som kommer att utföras ser du under fliken inställningar.") ) ); // Create the sizers m_SizerPageSettings = new wxBoxSizer( wxVERTICAL ); m_SizerPageTextResult = new wxBoxSizer( wxVERTICAL ); m_SizerPageGraphTPTestDownResult = new wxBoxSizer( wxVERTICAL ); m_SizerPageGraphTPTestUpResult = new wxBoxSizer( wxVERTICAL ); m_SizerPageGraphHTTPResult = new wxBoxSizer( wxVERTICAL ); m_SizerPageGraphFTPResult = new wxBoxSizer( wxVERTICAL ); // Create Result Notebook m_BookResult = new wxNotebook( this, wxID_THROUGHPUT_BOOK ); // Add book to main sizer m_SizerMain->Add( m_BookResult, 1, wxEXPAND | wxALL | wxALIGN_CENTER, 0 ); // Create and add the pages to book m_PageSettings = new wxPanel( m_BookResult, wxID_THROUGHPUT_BOOK_PAGE_SETTINGS ); m_PageTextResult = new wxPanel( m_BookResult, wxID_THROUGHPUT_BOOK_PAGE_RESULT_TEXT ); m_PageGraphTPTestDownResult = new GraphPanel( m_BookResult, wxID_THROUGHPUT_BOOK_PAGE_RESULT_TPTESTDOWN_GRAPH ); m_PageGraphTPTestUpResult = new GraphPanel( m_BookResult, wxID_THROUGHPUT_BOOK_PAGE_RESULT_TPTESTUP_GRAPH ); m_PageGraphHTTPResult = new GraphPanel( m_BookResult, wxID_THROUGHPUT_BOOK_PAGE_RESULT_HTTP_GRAPH ); m_PageGraphFTPResult = new GraphPanel( m_BookResult, wxID_THROUGHPUT_BOOK_PAGE_RESULT_FTP_GRAPH ); m_BookResult->AddPage( m_PageGraphTPTestDownResult, wxT("TPTEST nedströms graf") ); m_BookResult->AddPage( m_PageGraphTPTestUpResult, wxT("TPTEST uppströms graf") ); m_BookResult->AddPage( m_PageGraphHTTPResult, wxT("HTTP graf") ); m_BookResult->AddPage( m_PageGraphFTPResult, wxT("FTP graf") ); m_BookResult->AddPage( m_PageTextResult, wxT("Resultat som lista") ); m_BookResult->AddPage( m_PageSettings, wxT("Inställningar") ); // Create the Settings List control and create it's columns m_ListSettings = new wxListCtrl( m_PageSettings, wxID_THROUGHPUT_BOOK_PAGE_SETTINGS_LIST, wxDefaultPosition, wxDefaultSize, wxLC_REPORT | wxLC_SINGLE_SEL ); m_ListSettings->InsertColumn(0, wxT(" "), wxLIST_FORMAT_LEFT, 25); m_ListSettings->InsertColumn(1, wxT("Adress"), wxLIST_FORMAT_LEFT, 250); m_ListSettings->InsertColumn(2, wxT("TPTest"), wxLIST_FORMAT_LEFT, 80); m_ListSettings->InsertColumn(3, wxT("HTTP"), wxLIST_FORMAT_LEFT, 80); m_ListSettings->InsertColumn(4, wxT("FTP"), wxLIST_FORMAT_LEFT, 80); m_SizerPageSettings->Add( m_ListSettings, 1, wxEXPAND | wxALIGN_CENTER | wxBOTTOM, 10 ); // Create the Result List control and create it's columns m_ListResult = new wxListCtrl( m_PageTextResult, wxID_THROUGHPUT_BOOK_PAGE_RESULT_TEXT_LIST, wxDefaultPosition, wxDefaultSize, wxLC_REPORT ); m_ListResult->InsertColumn(0, wxT("Datum"), wxLIST_FORMAT_LEFT, 150); m_ListResult->InsertColumn(1, wxT("TPTEST Nedströms"), wxLIST_FORMAT_LEFT, 100); m_ListResult->InsertColumn(2, wxT("TPTEST Upströms"), wxLIST_FORMAT_LEFT, 100); m_ListResult->InsertColumn(3, wxT("HTTP"), wxLIST_FORMAT_LEFT, 100); m_ListResult->InsertColumn(4, wxT("FTP"), wxLIST_FORMAT_LEFT, 100); m_SizerPageTextResult->Add( m_ListResult, 1, wxEXPAND | wxALL | wxALIGN_CENTER, 0 ); m_SizerPageTextResult->Add( new wxButton( m_PageTextResult, wxID_BUTTON_REMOVE_RESULT, wxT("Ta bort valda resultat") ), 0, wxALL | wxALIGN_CENTER, 1 ); m_SizerPageSettingsEdit = new wxBoxSizer( wxHORIZONTAL ); m_SizerPageSettingsEdit->Add( new wxStaticText( m_PageSettings, wxID_ANY, wxT("Inställningar för valt system:") ), 1, wxRIGHT | wxLEFT, 10 ); // Enabled checkbox m_CheckBoxEnable = new wxCheckBox( m_PageSettings, wxID_THROUGHPUT_BOOK_PAGE_SETTINGS_CHECKBOX_ENABLED, wxT("Aktiverad") ); m_CheckBoxEnable->SetToolTip( wxString( wxT("Aktivera denna server för genomströmningstest") ) ); m_SizerPageSettingsEdit->Add( m_CheckBoxEnable, 0, wxRIGHT | wxBOTTOM, 1 ); // TPTest m_CheckBoxEnableTPTest = new wxCheckBox( m_PageSettings, wxID_THROUGHPUT_BOOK_PAGE_SETTINGS_CHECKBOX_TPTEST, wxT("TPTEST") ); m_CheckBoxEnableTPTest->SetToolTip( wxString( wxT("Kör TPTEST tester mot denna server") ) ); m_SizerPageSettingsEdit->Add( m_CheckBoxEnableTPTest, 0, wxRIGHT | wxBOTTOM, 1 ); // HTTP m_CheckBoxEnableHTTP = new wxCheckBox( m_PageSettings, wxID_THROUGHPUT_BOOK_PAGE_SETTINGS_CHECKBOX_HTTP, wxT("HTTP") ); m_CheckBoxEnableHTTP->SetToolTip( wxString( wxT("Kör nedströms HTTP tester mot denna server") ) ); m_SizerPageSettingsEdit->Add( m_CheckBoxEnableHTTP, 0, wxRIGHT | wxBOTTOM, 1 ); // FTP m_CheckBoxEnableFTP = new wxCheckBox( m_PageSettings, wxID_THROUGHPUT_BOOK_PAGE_SETTINGS_CHECKBOX_FTP, wxT("FTP") ); m_CheckBoxEnableFTP->SetToolTip( wxString( wxT("Kör nedströms FTP tester mot denna server") ) ); m_SizerPageSettingsEdit->Add( m_CheckBoxEnableFTP, 0, wxRIGHT | wxBOTTOM, 1 ); m_SizerPageSettings->Add( m_SizerPageSettingsEdit, 0, wxALIGN_LEFT | wxFIXED_MINSIZE ); m_SizerMain->SetSizeHints( this ); this->SetSizer( m_SizerMain ); m_PageSettings->SetSizer( m_SizerPageSettings ); m_PageTextResult->SetSizer( m_SizerPageTextResult ); m_PageGraphTPTestDownResult->SetSizer( m_SizerPageGraphTPTestDownResult ); m_PageGraphTPTestUpResult->SetSizer( m_SizerPageGraphTPTestUpResult ); m_PageGraphHTTPResult->SetSizer( m_SizerPageGraphHTTPResult ); m_PageGraphFTPResult->SetSizer( m_SizerPageGraphFTPResult ); m_SizerPageSettings->SetSizeHints( m_PageSettings ); m_SizerPageTextResult->SetSizeHints( m_PageTextResult ); // -------- m_Initialized = true; RefreshGUI(); }