X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c32bfc1090c21533a11daf2c293d546d45383b49..9707f3fddd230958262eb90d8f706376c8367cbd:/src/html/helpfrm.cpp diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index 45c2efaba1..614eea2641 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -49,6 +49,7 @@ #include "bitmaps/folder.xpm" #include "bitmaps/page.xpm" #include "bitmaps/help.xpm" +#include "bitmaps/helproot.xpm" #endif #include "wx/stream.h" @@ -101,6 +102,7 @@ void wxHtmlHelpFrame::Init(wxHtmlHelpData* data) m_ContentsImageList -> Add(wxICON(book)); m_ContentsImageList -> Add(wxICON(folder)); m_ContentsImageList -> Add(wxICON(page)); + m_ContentsImageList -> Add(wxICON(helproot)); m_ContentsBox = NULL; m_IndexBox = NULL; @@ -140,7 +142,7 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id, const wxString& ti wxFrame::Create(parent, id, _("Help"), wxPoint(m_Cfg.x, m_Cfg.y), wxSize(m_Cfg.w, m_Cfg.h)); -#ifdef __WXMSW__ +#if defined(__WXMSW__) || (__WXPM__) wxIcon frameIcon("wxhelp", wxBITMAP_TYPE_ICO_RESOURCE, 32, 32); #else wxIcon frameIcon(help_xpm); @@ -148,6 +150,10 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id, const wxString& ti if (frameIcon.Ok()) SetIcon(frameIcon); + GetPosition(&m_Cfg.x, &m_Cfg.y); + + SetIcon(wxICON(help)); + int notebook_page = 0; CreateStatusBar(); @@ -159,7 +165,7 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id, const wxString& ti toolBar -> SetMargins(2, 2); wxBitmap* toolBarBitmaps[3]; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || (__WXPM__) toolBarBitmaps[0] = new wxBitmap("panel"); toolBarBitmaps[1] = new wxBitmap("back"); toolBarBitmaps[2] = new wxBitmap("forward"); @@ -433,6 +439,8 @@ void wxHtmlHelpFrame::CreateContents(bool show_progress) m_ContentsBox -> DeleteAllItems(); roots[0] = m_ContentsBox -> AddRoot(_("(Help)")); + m_ContentsBox -> SetItemImage(roots[0], IMG_RootFolder); + m_ContentsBox -> SetItemSelectedImage(roots[0], IMG_RootFolder); imaged[0] = TRUE; for (i = 0; i < cnt; i++, it++) { @@ -614,7 +622,7 @@ void wxHtmlHelpFrame::OnContentsSel(wxTreeEvent& event) void wxHtmlHelpFrame::OnIndexSel(wxCommandEvent& WXUNUSED(event)) { - wxHtmlContentsItem *it = (wxHtmlContentsItem*) m_IndexBox -> GetClientData(m_IndexBox -> GetSelection()); + wxHtmlContentsItem *it = (wxHtmlContentsItem*) m_IndexBox -> GetClientData(m_IndexBox -> GetSelection()); m_HtmlWin -> LoadPage(it -> m_Book -> GetBasePath() + it -> m_Page); } @@ -637,6 +645,7 @@ void wxHtmlHelpFrame::OnCloseWindow(wxCloseEvent& evt) { GetSize(&m_Cfg.w, &m_Cfg.h); GetPosition(&m_Cfg.x, &m_Cfg.y); + if (m_Splitter && m_Cfg.navig_on) m_Cfg.sashpos = m_Splitter -> GetSashPosition(); if (m_Config)