本文整理汇总了C++中wxCloseEventHandler函数的典型用法代码示例。如果您正苦于以下问题:C++ wxCloseEventHandler函数的具体用法?C++ wxCloseEventHandler怎么用?C++ wxCloseEventHandler使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wxCloseEventHandler函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wxCloseEventHandler
Frame::~Frame()
{
// Disconnect Events
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( Frame::OnClose ) );
this->Disconnect( wxEVT_IDLE, wxIdleEventHandler( Frame::OnIdle ) );
}
示例2: wxFrame
/**
* 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);
}
示例3: wxCloseEventHandler
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 );
}
示例4: wxDialog
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();
}
示例5: NETLIST_VIEW_DIALOG
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 );
}
示例6: Connect
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)
);
}
示例7: wxFrame
MyFrameT26::MyFrameT26(const wxString& title) :
wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(250, 130))
{
Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(MyFrameT26::OnClose));
Centre();
}
示例8: wxDialog
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 );
}
示例9: wxCloseEventHandler
MainFrameBase::~MainFrameBase()
{
// Disconnect Events
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( MainFrameBase::OnCloseFrame ) );
this->Disconnect( wxEVT_LEAVE_WINDOW, wxMouseEventHandler( MainFrameBase::MainFrameBaseOnLeaveWindow ) );
}
示例10: wxCloseEventHandler
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 ) );
}
示例11: wxCloseEventHandler
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 );
}
示例12: wxCloseEventHandler
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);
}
示例13: wxDialog
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 );
}
示例14: wxCloseEventHandler
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 );
}
示例15: wxFrame
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) );
}