예제 #1
0
파일: helpctrl.cpp 프로젝트: Ailick/rpcs3
wxHtmlHelpController::~wxHtmlHelpController()
{
    if (m_Config)
        WriteCustomization(m_Config, m_ConfigRoot);
    if (m_helpWindow)
        DestroyHelpWindow();
}
예제 #2
0
wxHtmlHelpController::~wxHtmlHelpController()
{
#if wxUSE_CONFIG
    if (m_Config)
        WriteCustomization(m_Config, m_ConfigRoot);
#endif // wxUSE_CONFIG
    if (m_helpWindow)
        DestroyHelpWindow();
}
예제 #3
0
파일: helpctrl.cpp 프로젝트: Ailick/rpcs3
void wxHtmlHelpController::OnCloseFrame(wxCloseEvent& evt)
{
    if (m_Config)
        WriteCustomization(m_Config, m_ConfigRoot);

    evt.Skip();

    OnQuit();

    if ( m_helpWindow )
        m_helpWindow->SetController(NULL);
    m_helpWindow = NULL;
    m_helpDialog = NULL;
    m_helpFrame = NULL;
}
예제 #4
0
void wxHtmlHelpController::OnCloseWindow(wxCloseEvent& event)
{
    int a, b;

    m_Cfg.navig_on = m_Splitter -> IsSplit();
    if (m_Cfg.navig_on)
        m_Cfg.sashpos = m_Splitter -> GetSashPosition();
    m_Frame -> GetPosition(&a, &b);
    m_Cfg.x = a, m_Cfg.y = b;
    m_Frame -> GetSize(&a, &b);
    m_Cfg.w = a, m_Cfg.h = b;

    if (m_Config) {
        WriteCustomization(m_Config, m_ConfigRoot);
        m_HtmlWin -> WriteCustomization(m_Config, m_ConfigRoot);
    }
    m_Frame = NULL;

    event.Skip();
}