NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class renders the contents of a single page on the DocumentationBrowser. It also governs the browsing history of the current tab. More...
#include <helpviewer.hpp>
Public Member Functions | |
HelpViewer (wxWindow *parent, NumeReWindow *m_main, DocumentationBrowser *_browser) | |
virtual bool | SetPage (const wxString &source) |
Set the contents to be displayed in this window. More... | |
bool | ShowPageOnItem (wxString docID) |
Public member function to display a content in the viewer window. The type of the content is determined in this function and handled correspondingly. More... | |
bool | HistoryGoBack () |
Public member function to go one step back in the history. More... | |
bool | HistoryGoForward () |
Public member function to go one step forward in the history. More... | |
bool | GoHome () |
Public member function to return to the home page. More... | |
bool | GoIndex () |
Public member function to display the index page. More... | |
bool | Print () |
Public member function to open the print preview page. More... | |
Private Member Functions | |
void | OnKeyDown (wxKeyEvent &event) |
Event handler, which gets fired when the user presses a key. More... | |
void | OnEnter (wxMouseEvent &event) |
Event handler to automatically focus the window below the mouse pointer. More... | |
void | OnLinkClick (wxHtmlLinkEvent &event) |
Event handler for the case that the user clicks on a link in the document. More... | |
DECLARE_EVENT_TABLE () | |
Private Attributes | |
NumeReWindow * | m_mainFrame |
DocumentationBrowser * | m_browser |
std::vector< wxString > | vHistory |
size_t | m_nHistoryPointer |
This class renders the contents of a single page on the DocumentationBrowser. It also governs the browsing history of the current tab.
Definition at line 35 of file helpviewer.hpp.
|
inline |
Definition at line 38 of file helpviewer.hpp.
|
private |
bool HelpViewer::GoHome | ( | ) |
Public member function to return to the home page.
Definition at line 239 of file helpviewer.cpp.
References ShowPageOnItem().
Referenced by DocumentationBrowser::OnToolbarEvent().
bool HelpViewer::GoIndex | ( | ) |
Public member function to display the index page.
Definition at line 252 of file helpviewer.cpp.
References ShowPageOnItem().
Referenced by DocumentationBrowser::OnToolbarEvent().
bool HelpViewer::HistoryGoBack | ( | ) |
Public member function to go one step back in the history.
Definition at line 177 of file helpviewer.cpp.
References NumeReWindow::GetDocContent(), m_mainFrame, m_nHistoryPointer, SetPage(), and vHistory.
Referenced by DocumentationBrowser::OnToolbarEvent(), and ShowPageOnItem().
bool HelpViewer::HistoryGoForward | ( | ) |
Public member function to go one step forward in the history.
Definition at line 208 of file helpviewer.cpp.
References NumeReWindow::GetDocContent(), m_mainFrame, m_nHistoryPointer, SetPage(), and vHistory.
Referenced by DocumentationBrowser::OnToolbarEvent(), and ShowPageOnItem().
|
private |
Event handler to automatically focus the window below the mouse pointer.
event | wxMouseEvent& |
Definition at line 342 of file helpviewer.cpp.
|
private |
Event handler, which gets fired when the user presses a key.
event | wxKeyEvent& |
Definition at line 326 of file helpviewer.cpp.
References m_browser.
|
private |
Event handler for the case that the user clicks on a link in the document.
event | wxHtmlLinkEvent& |
Definition at line 357 of file helpviewer.cpp.
References ShowPageOnItem().
bool HelpViewer::Print | ( | ) |
Public member function to open the print preview page.
Definition at line 265 of file helpviewer.cpp.
References _guilang, NumeReWindow::DeterminePrintSize(), g_printData, Language::get(), NumeReWindow::GetDocContent(), m_mainFrame, m_nHistoryPointer, NumeReWindow::OnPrintSetup(), and vHistory.
Referenced by DocumentationBrowser::OnToolbarEvent().
|
virtual |
Set the contents to be displayed in this window.
source | const wxString& |
Definition at line 45 of file helpviewer.cpp.
Referenced by HistoryGoBack(), HistoryGoForward(), and ShowPageOnItem().
bool HelpViewer::ShowPageOnItem | ( | wxString | docID | ) |
Public member function to display a content in the viewer window. The type of the content is determined in this function and handled correspondingly.
docID | wxString |
Definition at line 67 of file helpviewer.cpp.
References DocumentationBrowser::createNewPage(), NumeReWindow::GetDocContent(), HistoryGoBack(), HistoryGoForward(), m_browser, m_mainFrame, m_nHistoryPointer, SetPage(), and vHistory.
Referenced by DocumentationBrowser::createNewPage(), GoHome(), GoIndex(), OnLinkClick(), and DocumentationBrowser::OnTreeClick().
|
private |
Definition at line 54 of file helpviewer.hpp.
Referenced by OnKeyDown(), and ShowPageOnItem().
|
private |
Definition at line 53 of file helpviewer.hpp.
Referenced by HistoryGoBack(), HistoryGoForward(), Print(), and ShowPageOnItem().
|
private |
Definition at line 56 of file helpviewer.hpp.
Referenced by HistoryGoBack(), HistoryGoForward(), Print(), and ShowPageOnItem().
|
private |
Definition at line 55 of file helpviewer.hpp.
Referenced by HistoryGoBack(), HistoryGoForward(), Print(), and ShowPageOnItem().