Fixed SetFonts methods to properly accept a Python list for the sizes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -183,94 +183,4 @@ public:
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef DO_WE_NEED_TO_KEEP_THIS
|
||||
class wxHtmlHelpSystem : public wxHtmlHelpController {
|
||||
public:
|
||||
wxHtmlHelpSystem() {};
|
||||
~wxHtmlHelpSystem() {};
|
||||
|
||||
bool AddBookParam(const wxString& title, const wxString& contfile,
|
||||
const wxString& indexfile=wxEmptyString, const wxString& deftopic=wxEmptyString,
|
||||
const wxString& path=wxEmptyString, bool show_wait_msg=FALSE);
|
||||
// Alternative to AddBook(wxString& hhpfile)
|
||||
wxToolBar* CreateToolBar(wxFrame* frame);
|
||||
// creates a dockable toolbar for the frame, containing hide/show, back and forward buttons
|
||||
wxTreeCtrl* CreateContentsTree(wxWindow* parent);
|
||||
// creates a treecontrol with imagelist for books, folders etc and id wxID_HTML_TREECTRL
|
||||
wxListBox* CreateIndexList(wxWindow* parent);
|
||||
// creates a listbox with the right id
|
||||
virtual void CreateHelpWindow();
|
||||
// Slightly different version than in wxHtmlHelpController; uses helpers above
|
||||
// Do nothing if the window already exists
|
||||
void SetControls(wxFrame* frame, wxHtmlWindow* htmlwin,
|
||||
wxTreeCtrl* contents=NULL, wxListBox* index=NULL,
|
||||
wxListBox* searchlist=NULL);
|
||||
// alternative for CreateHelpWindow(), sets frame, htmlwindow, contents tree, index
|
||||
// listbox and searchlist listbox. If null, their functionality won't be used
|
||||
|
||||
// Some extra accessor functions
|
||||
wxFrame* GetFrame() { return m_Frame; }
|
||||
wxHtmlWindow* GetHtmlWindow() { return m_HtmlWin; }
|
||||
wxTreeCtrl* GetContentsTree() { return m_ContentsBox; }
|
||||
wxListBox* GetIndexList() { return m_IndexBox; }
|
||||
wxListBox* GetSearchList() { return m_SearchList; }
|
||||
wxImageList* GetContentsImageList() { return m_ContentsImageList; }
|
||||
// public interface for wxHtmlHelpControllers handlers, so wxPython can call them
|
||||
void OnToolbar(wxCommandEvent& event);
|
||||
void OnContentsSel(wxTreeEvent& event) {wxHtmlHelpController::OnContentsSel(event);}
|
||||
void OnIndexSel(wxCommandEvent& event) {wxHtmlHelpController::OnIndexSel(event);}
|
||||
void OnSearchSel(wxCommandEvent& event) {wxHtmlHelpController::OnSearchSel(event);}
|
||||
void OnSearch(wxCommandEvent& event) {wxHtmlHelpController::OnSearch(event);}
|
||||
void OnCloseWindow(wxCloseEvent& event);
|
||||
|
||||
// some more protected functions that should be accessible from wxPython
|
||||
void RefreshLists();
|
||||
void CreateContents() { if (!m_IndexBox) return; wxHtmlHelpController::CreateContents(); }
|
||||
// Adds items to m_Contents tree control
|
||||
void CreateIndex() { if (! m_ContentsBox) return; wxHtmlHelpController::CreateIndex(); }
|
||||
// Adds items to m_IndexList
|
||||
};
|
||||
|
||||
// just for fun, an Altavista-like search engine (the gems that Vaclav has hidden in wxHtml...)
|
||||
// but not for wxMSW because it's not DLL exported
|
||||
//#ifndef __WXMSW__
|
||||
#ifdef THIS_IS_NOT_DEFINED_OKAY
|
||||
class wxSearchEngine
|
||||
{
|
||||
public:
|
||||
wxSearchEngine() : wxObject() {m_Keyword = NULL;}
|
||||
~wxSearchEngine() {if (m_Keyword) free(m_Keyword);}
|
||||
|
||||
void LookFor(const wxString& keyword);
|
||||
// Sets the keyword we will be searching for
|
||||
|
||||
bool Scan(wxInputStream *stream);
|
||||
// Scans the stream for the keyword.
|
||||
// Returns TRUE if the stream contains keyword, fALSE otherwise
|
||||
%addmethods {
|
||||
bool ScanFile(const wxString& filename) {
|
||||
if (filename.IsEmpty())
|
||||
return false;
|
||||
wxFileInputStream istr(filename);
|
||||
return self->Scan(&istr);
|
||||
}
|
||||
}
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
//---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user