Frame::~Frame() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( Frame::OnClose ) ); this->Disconnect( wxEVT_IDLE, wxIdleEventHandler( Frame::OnIdle ) ); }
/** * Konstruktor * * @param parent * @param id * @param title * @param pos * @param size * @param style * @return */ LoginWindow::LoginWindow(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style): wxFrame(parent, id, title, pos, size, wxDEFAULT_FRAME_STYLE) { // begin wxGlade: LoginWindow::LoginWindow labelServer = new wxStaticText(this, wxID_ANY, _("Server")); textServer = new wxTextCtrl(this, wxID_ANY, wxEmptyString); labelUser = new wxStaticText(this, wxID_ANY, _("Uživatel")); textUser = new wxTextCtrl(this, wxID_ANY, wxEmptyString); labelPassword = new wxStaticText(this, wxID_ANY, _("Heslo")); textPassword = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD); buttonRegister = new wxButton(this, wxID_ANY, _("Registrovat")); buttonLogin = new wxButton(this, wxID_ANY, _("Přihlásit")); Connect(buttonRegister->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(LoginWindow::clickRegister)); Connect(buttonLogin->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(LoginWindow::clickLogin)); Connect(wxID_ANY, wxEVT_CLOSE_WINDOW, wxCloseEventHandler(LoginWindow::onCloseWindow)); //Connect(SOCKET_ID,wxEVT_SOCKET, wxSocketEventHandler(LoginWindow::onSocketEvent)); set_properties(); do_layout(); // end wxGlade haveToEnableLogin = true; // registrace pro příjem zpráv týkajících se sítě clSocket * sock = clSocket::Instance(); sock->RegisterHandler(this); }
STISetupDlg::~STISetupDlg() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( STISetupDlg::OnCloseDialog ) ); m_pwxtcLeftFs->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( STISetupDlg::OnLeftFullscaleText ), NULL, this ); m_pwxtcRightFs->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( STISetupDlg::OnRightFullscaleText ), NULL, this ); m_pwxchLeftCal->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( STISetupDlg::OnCalibLeftChoice ), NULL, this ); m_pwxtcLeftLevel->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( STISetupDlg::OnCalibRefLeftText ), NULL, this ); m_pwxchRightCal->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( STISetupDlg::OnCalibRightChoice ), NULL, this ); m_pwxtcRightLevel->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( STISetupDlg::OnCalibRefRightText ), NULL, this ); m_pwxbtnCalibrate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( STISetupDlg::OnDoFullscaleCalibration ), NULL, this ); m_pwxchLeftBckNoise->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( STISetupDlg::OnNoiseLeftChoice ), NULL, this ); m_pwxchRightBckNoise->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( STISetupDlg::OnNoiseRightChoice ), NULL, this ); m_pwxchLeftSignal->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( STISetupDlg::OnSignalLeftChoice ), NULL, this ); m_pwxchRightSignal->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( STISetupDlg::OnSignalRightChoice ), NULL, this ); m_wxrbSignal->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( STISetupDlg::OnSignalRadio ), NULL, this ); m_wxrbSigNoise->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( STISetupDlg::OnSignalPlusNoiseRadio ), NULL, this ); m_pwxbtnLoadSplValues->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( STISetupDlg::OnLoadSplValues ), NULL, this ); m_pwxbtnSaveSplValues->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( STISetupDlg::OnSaveSplValues ), NULL, this ); m_pwxbtnCalculateSPL->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( STISetupDlg::OnComputeSNRatio ), NULL, this ); m_pwxchLeftIr->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( STISetupDlg::OnLeftIRChoice ), NULL, this ); m_pwxchRightIr->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( STISetupDlg::OnRightIRChoice ), NULL, this ); m_pwxtcFat->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( STISetupDlg::OnFatText ), NULL, this ); m_pwxbtnHelp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( STISetupDlg::OnHelp ), NULL, this ); m_pwxbtnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( STISetupDlg::OnCancel ), NULL, this ); m_pwxbtnOk->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( STISetupDlg::OnComputeSTI ), NULL, this ); }
VHDDManagerDialog::VHDDManagerDialog(wxWindow* parent) : wxDialog(parent, wxID_ANY, "Virtual HDD Manager", wxDefaultPosition) { m_list = new wxListView(this); wxBoxSizer& s_main(*new wxBoxSizer(wxVERTICAL)); s_main.Add(m_list, 1, wxEXPAND | wxALL, 5); SetSizerAndFit(&s_main); SetSize(800, 600); m_list->InsertColumn(0, "Path"); //m_list->InsertColumn(1, "Size"); //m_list->InsertColumn(2, "Block size"); Connect(m_list->GetId(), wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler(VHDDManagerDialog::DClick)); Connect(m_list->GetId(), wxEVT_COMMAND_RIGHT_CLICK, wxCommandEventHandler(VHDDManagerDialog::OnContextMenu)); Connect(id_add_hdd, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(VHDDManagerDialog::AddHDD)); Connect(id_open, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(VHDDManagerDialog::OnOpen)); Connect(id_remove, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(VHDDManagerDialog::OnRemove)); Connect(id_create_hdd, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(VHDDManagerDialog::OnCreateHDD)); Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(VHDDManagerDialog::OnClose)); LoadPaths(); UpdateList(); }
NETLIST_VIEW_DIALOG(wxWindow* parent, wxString source) : wxDialog(parent, wxID_ANY, "SPICE Netlist", wxDefaultPosition, wxSize(1500,900), wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) { wxStyledTextCtrl* text = new wxStyledTextCtrl( this, wxID_ANY ); text->SetMarginWidth( MARGIN_LINE_NUMBERS, 50 ); text->StyleSetForeground( wxSTC_STYLE_LINENUMBER, wxColour( 75, 75, 75 ) ); text->StyleSetBackground( wxSTC_STYLE_LINENUMBER, wxColour( 220, 220, 220 ) ); text->SetMarginType( MARGIN_LINE_NUMBERS, wxSTC_MARGIN_NUMBER ); text->SetWrapMode( wxSTC_WRAP_WORD ); text->SetText( source ); text->StyleClearAll(); text->SetLexer( wxSTC_LEX_SPICE ); wxBoxSizer* sizer = new wxBoxSizer( wxVERTICAL ); sizer->Add( text, 1, wxEXPAND ); SetSizer( sizer ); Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( NETLIST_VIEW_DIALOG::onClose ), NULL, this ); }
void SpectraDocumentFrame::ConnectEventHandlers(void) { Connect( wxID_CLOSE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(SpectraDocumentFrame::DoClose) ); Connect( wxID_ADD, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(SpectraDocumentFrame::DoDuplicate) ); Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler(SpectraDocumentFrame::OnClose) ); Connect( wxEVT_SYS_COLOUR_CHANGED, wxSysColourChangedEventHandler(SpectraDocumentFrame::OnSysColorChange) ); Connect( wxEVT_MOTION, wxMouseEventHandler(SpectraDocumentFrame::OnMouseMotionEvent) ); Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler(SpectraDocumentFrame::OnMouseWheelEvent) ); Connect( wxEVT_SIZE, wxSizeEventHandler(SpectraDocumentFrame::OnResize) ); }
MyFrameT26::MyFrameT26(const wxString& title) : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(250, 130)) { Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(MyFrameT26::OnClose)); Centre(); }
dialog_correc::dialog_correc( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); wxBoxSizer* verticalsizer; verticalsizer = new wxBoxSizer( wxVERTICAL ); grid_correcs = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); // Grid grid_correcs->CreateGrid( 0, 2 ); grid_correcs->EnableEditing( true ); grid_correcs->EnableGridLines( true ); grid_correcs->EnableDragGridSize( true ); grid_correcs->SetMargins( 0, 0 ); // Columns grid_correcs->SetColSize( 0, 114 ); grid_correcs->SetColSize( 1, 82 ); grid_correcs->EnableDragColMove( false ); grid_correcs->EnableDragColSize( true ); grid_correcs->SetColLabelSize( 30 ); grid_correcs->SetColLabelValue( 0, wxT("Texte d'origine") ); grid_correcs->SetColLabelValue( 1, wxT("Correction") ); grid_correcs->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE ); // Rows grid_correcs->EnableDragRowSize( true ); grid_correcs->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE ); grid_correcs->SetDefaultEditor(new wxGridCellTextEditor); grid_correcs->SetDefaultRenderer(new wxGridCellStringRenderer); col_orig = new wxGridCellAttr(); col_orig->SetReadOnly(); col_orig->SetAlignment(wxALIGN_LEFT, wxALIGN_CENTRE); col_orig->SetRenderer(new wxGridCellStringRenderer); grid_correcs->SetColAttr(0, col_orig); // Label Appearance // Cell Defaults grid_correcs->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTRE ); verticalsizer->Add( grid_correcs, 1, wxALL | wxEXPAND, 5 ); bouton_ok = new wxButton( this, wxID_ANY, wxT("Ok"), wxDefaultPosition, wxDefaultSize, 0 ); verticalsizer->Add( bouton_ok, 0, wxALL|wxALIGN_RIGHT, 5 ); this->SetSizer( verticalsizer ); this->Layout(); this->Centre( wxBOTH ); // Connect Events this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( dialog_correc::OnClose ) ); grid_correcs->Connect( wxEVT_GRID_CELL_CHANGE, wxGridEventHandler( dialog_correc::OnCellChange ), NULL, this ); grid_correcs->Connect( wxEVT_GRID_LABEL_LEFT_CLICK, wxGridEventHandler( dialog_correc::OnLabelLeftClick ), NULL, this ); bouton_ok->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_correc::OnOk ), NULL, this ); }
MainFrameBase::~MainFrameBase() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( MainFrameBase::OnCloseFrame ) ); this->Disconnect( wxEVT_LEAVE_WINDOW, wxMouseEventHandler( MainFrameBase::MainFrameBaseOnLeaveWindow ) ); }
DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::~DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::OnClose ) ); this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::OnInitDlg ) ); }
FindItDialog::~FindItDialog() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( FindItDialog::OnCloseDialog ) ); this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( FindItDialog::OnInit ) ); m_buttonaddLineMaterial->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickMaterialAdd ), NULL, this ); m_textCtrl1->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( FindItDialog::OnTextMaterial ), NULL, this ); m_buttonBuyItMaterial->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickBuyMaterial ), NULL, this ); m_gridMaterial->Disconnect( wxEVT_CHAR, wxKeyEventHandler( FindItDialog::OnCharMaterial ), NULL, this ); m_gridMaterial->Disconnect( wxEVT_GRID_CELL_CHANGE, wxGridEventHandler( FindItDialog::OnGridCellChangeMaterial ), NULL, this ); m_gridMaterial->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridCellLeftClickMaterial ), NULL, this ); m_gridMaterial->Disconnect( wxEVT_GRID_LABEL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridLabelLClickMaterial ), NULL, this ); m_gridMaterial->Disconnect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( FindItDialog::OnGridSelectCellMaterial ), NULL, this ); m_buttonaddLineFood->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickAddLineFood ), NULL, this ); m_textCtrl11->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( FindItDialog::OnTextFood ), NULL, this ); m_buttonBuyItFood->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickBuyFood ), NULL, this ); m_gridFood->Disconnect( wxEVT_CHAR, wxKeyEventHandler( FindItDialog::OnCharFood ), NULL, this ); m_gridFood->Disconnect( wxEVT_GRID_CELL_CHANGE, wxGridEventHandler( FindItDialog::OnGridCellChangeFood ), NULL, this ); m_gridFood->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridCellLeftClickFood ), NULL, this ); m_gridFood->Disconnect( wxEVT_GRID_LABEL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridLabelLClickFood ), NULL, this ); m_gridFood->Disconnect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( FindItDialog::OnGridSelectCellFood ), NULL, this ); m_buttonaddLineLocations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::onButtonClickAddLineLocations ), NULL, this ); m_gridLocations->Disconnect( wxEVT_CHAR, wxKeyEventHandler( FindItDialog::OnCharLocations ), NULL, this ); m_gridLocations->Disconnect( wxEVT_GRID_CELL_CHANGE, wxGridEventHandler( FindItDialog::OnGridCellChangeLocations ), NULL, this ); m_gridLocations->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridCellLeftClickLocations ), NULL, this ); m_gridLocations->Disconnect( wxEVT_GRID_EDITOR_SHOWN, wxGridEventHandler( FindItDialog::onEditorShownLocations ), NULL, this ); m_buttonaddLineUnits->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickUnitsAddLine ), NULL, this ); m_gridUnits->Disconnect( wxEVT_CHAR, wxKeyEventHandler( FindItDialog::OnCharUnits ), NULL, this ); m_gridUnits->Disconnect( wxEVT_GRID_CELL_CHANGE, wxGridEventHandler( FindItDialog::OnGridCellChangeUnits ), NULL, this ); m_gridUnits->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridCellLeftClickUnits ), NULL, this ); m_gridUnits->Disconnect( wxEVT_GRID_EDITOR_SHOWN, wxGridEventHandler( FindItDialog::onEditorShownUnits ), NULL, this ); m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnCancelClick ), NULL, this ); m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnOKClick ), NULL, this ); }
CEditCameraWnd::~CEditCameraWnd() { this->Disconnect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(CEditCameraWnd::OnClose), NULL, this); m_pPropertyGrid->Disconnect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(CEditCameraWnd::OnPropertyChanged), NULL, this); m_pSaveAsSceneInitBtn->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(CEditCameraWnd::OnSaveAsSceneInitClicked), NULL, this); m_pLoadSceneInitBtn->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(CEditCameraWnd::OnLoadSceneInitClicked), NULL, this); }
ProcessOutput::ProcessOutput( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); wxBoxSizer* bSizer5; bSizer5 = new wxBoxSizer( wxVERTICAL ); m_logoutput = new wxListBox( this, wxID_ANY, wxDefaultPosition, wxSize( 700,300 ), 0, NULL, wxLB_ALWAYS_SB|wxLB_HSCROLL|wxALWAYS_SHOW_SB ); m_logoutput->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 76, 90, 90, false, wxEmptyString ) ); bSizer5->Add( m_logoutput, 1, wxALL|wxEXPAND, 5 ); m_cancel_process = new wxButton( this, wxID_ANY, _("&Terminate updater"), wxDefaultPosition, wxDefaultSize, 0 ); bSizer5->Add( m_cancel_process, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 ); this->SetSizer( bSizer5 ); this->Layout(); bSizer5->Fit( this ); this->Centre( wxBOTH ); // Connect Events this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( ProcessOutput::ProcessOutputOnClose ) ); this->Connect( wxEVT_IDLE, wxIdleEventHandler( ProcessOutput::ProcessOutputOnIdle ) ); this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( ProcessOutput::ProcessOutputOnInitDialog ) ); m_cancel_process->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ProcessOutput::m_cancel_processOnButtonClick ), NULL, this ); }
AboxDlgGen::~AboxDlgGen() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( AboxDlgGen::onClose ) ); m_bmpFind->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( AboxDlgGen::onBmpFind ), NULL, this ); m_Find->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AboxDlgGen::onFind ), NULL, this ); m_FindText->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( AboxDlgGen::onFindTextEnter ), NULL, this ); m_FromDate->Disconnect( wxEVT_DATE_CHANGED, wxDateEventHandler( AboxDlgGen::onFromDate ), NULL, this ); m_ToDate->Disconnect( wxEVT_DATE_CHANGED, wxDateEventHandler( AboxDlgGen::onToDate ), NULL, this ); m_SelectFile->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AboxDlgGen::onSelectFile ), NULL, this ); m_bmpUpload->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( AboxDlgGen::onBmpAdd ), NULL, this ); m_Add->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AboxDlgGen::onAdd ), NULL, this ); m_Stubs->Disconnect( wxEVT_COMMAND_LIST_COL_CLICK, wxListEventHandler( AboxDlgGen::onStubCol ), NULL, this ); m_Stubs->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( AboxDlgGen::onStubActivated ), NULL, this ); m_Stubs->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( AboxDlgGen::onStubSelected ), NULL, this ); m_ShowPath->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AboxDlgGen::onShowPath ), NULL, this ); m_Preview->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( AboxDlgGen::onOpenPreview ), NULL, this ); m_bmpOpen->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( AboxDlgGen::onBmpOpen ), NULL, this ); m_Open->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AboxDlgGen::onOpen ), NULL, this ); m_Modify->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AboxDlgGen::onModify ), NULL, this ); m_Delete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AboxDlgGen::onDelete ), NULL, this ); m_StdButtonsHelp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AboxDlgGen::onHelp ), NULL, this ); m_StdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AboxDlgGen::onOK ), NULL, this ); }
GSFrame::GSFrame(wxWindow* parent, const wxString& title) : wxFrame(parent, wxID_ANY, title, g_Conf->GSWindow.WindowPos) , m_timer_UpdateTitle( this ) { SetIcons( wxGetApp().GetIconBundle() ); SetBackgroundColour( *wxBLACK ); wxStaticText* label = new wxStaticText( this, wxID_ANY, _("GS Output is Disabled!") ); m_id_OutputDisabled = label->GetId(); label->SetFont( wxFont( 20, wxDEFAULT, wxNORMAL, wxBOLD ) ); label->SetForegroundColour( *wxWHITE ); AppStatusEvent_OnSettingsApplied(); GSPanel* gsPanel = new GSPanel( this ); gsPanel->Show( !EmuConfig.GS.DisableOutput ); m_id_gspanel = gsPanel->GetId(); // TODO -- Implement this GS window status window! Whee. // (main concern is retaining proper client window sizes when closing/re-opening the window). //m_statusbar = CreateStatusBar( 2 ); Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler (GSFrame::OnCloseWindow) ); Connect( wxEVT_MOVE, wxMoveEventHandler (GSFrame::OnMove) ); Connect( wxEVT_SIZE, wxSizeEventHandler (GSFrame::OnResize) ); Connect( wxEVT_ACTIVATE, wxActivateEventHandler (GSFrame::OnActivate) ); Connect(m_timer_UpdateTitle.GetId(), wxEVT_TIMER, wxTimerEventHandler(GSFrame::OnUpdateTitle) ); }
LTDialog_ChooseScen::LTDialog_ChooseScen(wxWindow *parent, wxString choices[], int nChoices) : wxDialog(parent, -1, wxT(STR_CHSSCN_TITLE), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxNO_DEFAULT | wxSTAY_ON_TOP) { mainSizer = new wxBoxSizer(wxVERTICAL); buttonSizer = new wxBoxSizer(wxHORIZONTAL); radioBox = new wxRadioBox(this, wxID_ANY, wxT(STR_CHSSCN_RADIO), wxDefaultPosition, wxDefaultSize, nChoices, choices, 0, wxRA_SPECIFY_ROWS); mainSizer->AddSpacer(10); mainSizer->Add(radioBox, 1, wxALIGN_CENTER); okButton = new wxButton(this, wxID_OK, wxT(STR_OK)); cancelButton = new wxButton(this, wxID_CANCEL, wxT(STR_CANCEL)); buttonSizer->Add(okButton); buttonSizer->Add(cancelButton); mainSizer->AddSpacer(15); mainSizer->Add(buttonSizer, 1, wxALIGN_BOTTOM | wxALIGN_CENTER); mainSizer->AddSpacer(5); Connect(wxID_OK, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(LTDialog_ChooseScen::onDone)); Connect(wxID_CANCEL, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(LTDialog_ChooseScen::onDone)); Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(LTDialog_ChooseScen::onExit)); mainSizer->SetMinSize(wxSize(300, 100)); SetSizerAndFit(mainSizer); SetDefaultItem(okButton); Center(); }
PatchingDialogTemplate::PatchingDialogTemplate( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); wxStaticBoxSizer* sbSizer4; sbSizer4 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Progress") ), wxVERTICAL ); label_progress = new wxStaticText( this, wxID_ANY, wxT("Reading backup REZ file ..."), wxDefaultPosition, wxDefaultSize, 0 ); label_progress->Wrap( -1 ); sbSizer4->Add( label_progress, 0, wxALL, 5 ); gauge_total = new wxGauge( this, wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL|wxGA_SMOOTH ); gauge_total->SetValue( 0 ); sbSizer4->Add( gauge_total, 0, wxALL|wxEXPAND, 5 ); text_log = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_DONTWRAP|wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH ); sbSizer4->Add( text_log, 1, wxALL|wxEXPAND, 5 ); button_ok = new wxButton( this, wxID_OK, wxT("OK"), wxDefaultPosition, wxDefaultSize, 0 ); sbSizer4->Add( button_ok, 0, wxALIGN_RIGHT|wxALL, 5 ); this->SetSizer( sbSizer4 ); this->Layout(); this->Centre( wxBOTH ); // Connect Events this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( PatchingDialogTemplate::OnDialogClose ) ); }
DIALOG_GET_FOOTPRINT_BY_NAME_BASE::DIALOG_GET_FOOTPRINT_BY_NAME_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); wxBoxSizer* bSizerMain; bSizerMain = new wxBoxSizer( wxVERTICAL ); wxBoxSizer* bSizerUpper; bSizerUpper = new wxBoxSizer( wxHORIZONTAL ); wxFlexGridSizer* fgSizer1; fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 ); fgSizer1->SetFlexibleDirection( wxBOTH ); fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); m_staticTextRef = new wxStaticText( this, wxID_ANY, _("Reference:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticTextRef->Wrap( -1 ); fgSizer1->Add( m_staticTextRef, 0, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 ); m_SearchTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), 0 ); m_SearchTextCtrl->SetMaxLength( 0 ); fgSizer1->Add( m_SearchTextCtrl, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 ); m_staticTextRef1 = new wxStaticText( this, wxID_ANY, _("Available:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticTextRef1->Wrap( -1 ); fgSizer1->Add( m_staticTextRef1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); wxArrayString m_choiceFpListChoices; m_choiceFpList = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFpListChoices, 0 ); m_choiceFpList->SetSelection( 0 ); fgSizer1->Add( m_choiceFpList, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); bSizerUpper->Add( fgSizer1, 1, wxEXPAND, 5 ); bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 ); m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 ); m_sdbSizer = new wxStdDialogButtonSizer(); m_sdbSizerOK = new wxButton( this, wxID_OK ); m_sdbSizer->AddButton( m_sdbSizerOK ); m_sdbSizerCancel = new wxButton( this, wxID_CANCEL ); m_sdbSizer->AddButton( m_sdbSizerCancel ); m_sdbSizer->Realize(); bSizerMain->Add( m_sdbSizer, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 ); this->SetSizer( bSizerMain ); this->Layout(); this->Centre( wxBOTH ); // Connect Events this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) ); m_choiceFpList->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this ); }
GSFrame::GSFrame(wxWindow* parent, const wxString& title) : wxFrame(parent, wxID_ANY, title) { CellVideoOutResolution res = ResolutionTable[ResolutionIdToNum(Ini.GSResolution.GetValue())]; SetClientSize(res.width, res.height); wxGetApp().Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(GSFrame::OnKeyDown), (wxObject*)0, this); Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(GSFrame::OnClose)); }
DIALOG_GET_FOOTPRINT_BY_NAME_BASE::~DIALOG_GET_FOOTPRINT_BY_NAME_BASE() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::onClose ) ); m_choiceFpList->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GET_FOOTPRINT_BY_NAME_BASE::OnSelectFootprint ), NULL, this ); }
AddPropertyDialog::AddPropertyDialog(Entity* entity) : wxutil::DialogBase(_(ADDPROPERTY_TITLE)), _entity(entity) { Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(AddPropertyDialog::_onDeleteEvent), NULL, this); wxPanel* mainPanel = loadNamedPanel(this, "AddPropertyDialogPanel"); _treeView = wxutil::TreeView::Create(mainPanel, wxBORDER_STATIC | wxDV_MULTIPLE | wxDV_NO_HEADER); mainPanel->GetSizer()->Prepend(_treeView, 1, wxEXPAND | wxALL, 6); wxButton* okButton = findNamedObject<wxButton>(mainPanel, "OkButton"); okButton->Connect(wxEVT_BUTTON, wxCommandEventHandler(AddPropertyDialog::_onOK), NULL, this); wxButton* cancelButton = findNamedObject<wxButton>(mainPanel, "CancelButton"); cancelButton->Connect(wxEVT_BUTTON, wxCommandEventHandler(AddPropertyDialog::_onCancel), NULL, this); FitToScreen(0.5f, 0.6f); // Populate the tree view with properties setupTreeView(); populateTreeView(); updateUsagePanel(); }
void SpectraMainFrame::ConnectEventHandlers(void) { Connect( wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(SpectraMainFrame::DoClose) ); Connect( wxID_OPEN, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(SpectraMainFrame::DoOpenDocument) ); Connect( SpectraMainFrameID_GenerateDoc, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(SpectraMainFrame::DoGenerateDocument) ); Connect( wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(SpectraMainFrame::DoShowAboutDialog) ); Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler(SpectraMainFrame::OnClose) ); SetExtraStyle(wxWS_EX_PROCESS_IDLE); wxIdleEvent::SetMode(wxIDLE_PROCESS_SPECIFIED); Connect( wxEVT_IDLE, wxIdleEventHandler(SpectraMainFrame::OnIdle) ); }
GRIBUIDialogBase::~GRIBUIDialogBase() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( GRIBUIDialogBase::OnClose ) ); this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( GRIBUIDialogBase::OnSize ) ); m_bpPrev->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnPrev ), NULL, this ); m_cRecordForecast->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( GRIBUIDialogBase::OnRecordForecast ), NULL, this ); m_bpNext->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnNext ), NULL, this ); m_bpNow->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnNow ), NULL, this ); m_bpOpenFile->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnOpenFile ), NULL, this ); m_bpSettings->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnSettings ), NULL, this ); m_bpRequest->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnRequest ), NULL, this ); m_tbPlayStop->Disconnect( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnPlayStop ), NULL, this ); m_sTimeline->Disconnect( wxEVT_SCROLL_TOP, wxScrollEventHandler( GRIBUIDialogBase::OnTimeline ), NULL, this ); m_sTimeline->Disconnect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( GRIBUIDialogBase::OnTimeline ), NULL, this ); m_sTimeline->Disconnect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( GRIBUIDialogBase::OnTimeline ), NULL, this ); m_sTimeline->Disconnect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( GRIBUIDialogBase::OnTimeline ), NULL, this ); m_sTimeline->Disconnect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( GRIBUIDialogBase::OnTimeline ), NULL, this ); m_sTimeline->Disconnect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( GRIBUIDialogBase::OnTimeline ), NULL, this ); m_sTimeline->Disconnect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( GRIBUIDialogBase::OnTimeline ), NULL, this ); m_sTimeline->Disconnect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( GRIBUIDialogBase::OnTimeline ), NULL, this ); m_sTimeline->Disconnect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( GRIBUIDialogBase::OnTimeline ), NULL, this ); m_cbWind->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); m_cbWindScat->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); m_cbWave->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); m_cbCurrent->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); m_cbWindGust->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); m_cbPressure->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); m_cbPrecipitation->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); m_cbCloud->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); m_cbAirTemperature->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); m_cbSeaTemperature->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( GRIBUIDialogBase::OnCBAny ), NULL, this ); }
m_Dialog::~m_Dialog() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( m_Dialog::OnClose ) ); m_button3111->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( m_Dialog::OnPSGPX ), NULL, this ); }
dialog_about_base::~dialog_about_base() { // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( dialog_about_base::OnClose ) ); m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_about_base::OnOkClick ), NULL, this ); }
CPropertyGridEditor::CPropertyGridEditor(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos, const wxSize &size, long style, const wxString &name) : super(parent, id, title, pos, size, style, name) , m_pGridProperty(NULL) { wxBoxSizer* pMainSizer = new wxBoxSizer(wxVERTICAL); m_pGrid = new wxGrid(this, wxID_ANY, wxPoint(0, 0)); m_pGrid->CreateGrid( 0, 0); pMainSizer->Add(m_pGrid, 1, wxALL, 0); wxBoxSizer* pButtonSizer = new wxBoxSizer(wxHORIZONTAL); m_pAppendButton = new wxButton(this, wxID_ANY, _T("添加")); m_pDeleteButton = new wxButton(this, wxID_ANY, _T("删除")); m_pConfirmButton = new wxButton(this, wxID_ANY, _T("确定")); m_pCancelButton = new wxButton(this, wxID_ANY, _T("取消")); pButtonSizer->Add(m_pAppendButton, 1, wxALL, 0); pButtonSizer->Add(m_pDeleteButton, 1, wxALL, 0); pButtonSizer->Add(m_pConfirmButton, 1, wxALL, 0); pButtonSizer->Add(m_pCancelButton, 1, wxALL, 0); pMainSizer->Add(pButtonSizer, 0, wxALL, 0); this->SetSizerAndFit(pMainSizer); this->Layout(); m_pAppendButton->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(CPropertyGridEditor::OnAppendBtnClicked), NULL, this); m_pDeleteButton->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(CPropertyGridEditor::OnDeleteBtnClicked), NULL, this); m_pConfirmButton->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(CPropertyGridEditor::OnConfirmBtnClicked), NULL, this); m_pCancelButton->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(CPropertyGridEditor::OnCancelBtnClicked), NULL, this); this->Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(CPropertyGridEditor::OnCloseBtnClicked), NULL, this); }
RenderFrame::RenderFrame(wxWindow* parent, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxFrame(parent, wxID_ANY, title, pos, size, style) { isThereImage = false; this->Connect(wxID_ANY, wxEVT_CLOSE_WINDOW, wxCloseEventHandler(RenderFrame::OnClose)); this->Connect(wxID_ANY, wxEVT_PAINT, wxPaintEventHandler(RenderFrame::OnPaint)); m_sizer = new wxBoxSizer(wxHORIZONTAL); m_sizer->SetMinSize(wxSize(512,512)); this->SetSizer(m_sizer); /* menus on top part */ wxMenuBar* menuBar = new wxMenuBar(); m_imageMenu = new wxMenu(); m_imageMenu->Append(wxID_SAVE, "Save image", "Save image on hard drive", false); m_imageMenu->Enable(wxID_SAVE, false); menuBar->Append(m_imageMenu, "Image"); this->SetMenuBar(menuBar); /* set best size based on image resolution */ this->SetBestFittingSize(); this->Connect(wxID_SAVE, wxEVT_MENU, wxCommandEventHandler(RenderFrame::OnSaveImage)); }
wxFrame * CFrame::CreateParentFrame(wxWindowID Id, const wxString& Title, wxWindow * Child) { wxFrame * Frame = new wxFrame(this, Id, Title, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE); Child->Reparent(Frame); wxBoxSizer * m_MainSizer = new wxBoxSizer(wxHORIZONTAL); m_MainSizer->Add(Child, 1, wxEXPAND); Frame->Connect(wxID_ANY, wxEVT_CLOSE_WINDOW, wxCloseEventHandler(CFrame::OnFloatingPageClosed), (wxObject*)0, this); if (Id == IDM_CONSOLEWINDOW_PARENT) { Frame->Connect(wxID_ANY, wxEVT_SIZE, wxSizeEventHandler(CFrame::OnFloatingPageSize), (wxObject*)0, this); } // Main sizer Frame->SetSizer(m_MainSizer); // Minimum frame size Frame->SetMinSize(wxSize(200, 200)); Frame->Show(); return Frame; }
FindInFilesDialogBase::~FindInFilesDialogBase() { this->Disconnect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(FindInFilesDialogBase::OnClose), NULL, this); m_btnAddPath->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnAddPath), NULL, this); m_btnRemovelPath->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnRemovePath), NULL, this); m_btnRemovelPath->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(FindInFilesDialogBase::OnRemovePathUI), NULL, this); m_btnClearPaths->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClearPaths), NULL, this); m_btnClearPaths->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(FindInFilesDialogBase::OnClearPathsUI), NULL, this); m_matchCase->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_matchWholeWord->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_regualrExpression->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_checkBoxSaveFilesBeforeSearching->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_checkBoxSeparateTab->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_printScope->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_checkBoxSkipMatchesFoundInComments->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_checkBoxSkipMatchesFoundInStrings->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_checkBoxHighlighStringComments->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_checkBoxHighlighStringComments->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(FindInFilesDialogBase::OnUseDiffColourForCommentsUI), NULL, this); m_find->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_find->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(FindInFilesDialogBase::OnFindWhatUI), NULL, this); m_replaceAll->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_replaceAll->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(FindInFilesDialogBase::OnFindWhatUI), NULL, this); m_stop->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); m_cancel->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(FindInFilesDialogBase::OnClick), NULL, this); }
Frame::Frame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); wxBoxSizer* bSizerTop; bSizerTop = new wxBoxSizer( wxVERTICAL ); m_splitterVert = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D ); m_splitterVert->SetSashGravity( 1 ); m_splitterVert->Connect( wxEVT_IDLE, wxIdleEventHandler( Frame::m_splitterVertOnIdle ), NULL, this ); m_panelLeft = new wxPanel( m_splitterVert, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxDOUBLE_BORDER|wxTAB_TRAVERSAL ); wxBoxSizer* bSizerLeft; bSizerLeft = new wxBoxSizer( wxHORIZONTAL ); m_splitterHoriz = new wxSplitterWindow( m_panelLeft, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D|wxDOUBLE_BORDER ); m_splitterHoriz->SetSashGravity( 1 ); m_splitterHoriz->Connect( wxEVT_IDLE, wxIdleEventHandler( Frame::m_splitterHorizOnIdle ), NULL, this ); m_panelMain = new EdViewPanel( m_splitterHoriz, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxDOUBLE_BORDER|wxTAB_TRAVERSAL ); m_panelBottom = new wxPanel( m_splitterHoriz, wxID_ANY, wxDefaultPosition, wxSize( -1,100 ), wxDOUBLE_BORDER|wxTAB_TRAVERSAL ); m_splitterHoriz->SplitHorizontally( m_panelMain, m_panelBottom, 559 ); bSizerLeft->Add( m_splitterHoriz, 1, wxEXPAND, 0 ); m_panelLeft->SetSizer( bSizerLeft ); m_panelLeft->Layout(); bSizerLeft->Fit( m_panelLeft ); m_panelRight = new wxPanel( m_splitterVert, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); wxBoxSizer* bSizerRight; bSizerRight = new wxBoxSizer( wxVERTICAL ); m_notebook = new wxNotebook( m_panelRight, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); bSizerRight->Add( m_notebook, 1, wxEXPAND | wxALL, 5 ); m_panelRight->SetSizer( bSizerRight ); m_panelRight->Layout(); bSizerRight->Fit( m_panelRight ); m_splitterVert->SplitVertically( m_panelLeft, m_panelRight, -300 ); bSizerTop->Add( m_splitterVert, 1, wxALIGN_BOTTOM|wxEXPAND, 5 ); this->SetSizer( bSizerTop ); this->Layout(); m_statusBar = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY ); m_menubar = new wxMenuBar( 0 ); m_menuFile = new wxMenu(); m_menubar->Append( m_menuFile, wxT("File") ); this->SetMenuBar( m_menubar ); m_toolBar = this->CreateToolBar( wxTB_HORIZONTAL, wxID_ANY ); m_toolBar->Realize(); this->Centre( wxBOTH ); // Connect Events this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( Frame::OnClose ) ); this->Connect( wxEVT_IDLE, wxIdleEventHandler( Frame::OnIdle ) ); }