#include <chmframe.h>
Inheritance diagram for CHMFrame:
Public Member Functions | |
CHMFrame (const wxString &title, const wxString &booksDir, const wxPoint &pos, const wxSize &size, const wxString &normalFont=wxEmptyString, const wxString &fixedFont=wxEmptyString, const int fontSize=CHM_DEFAULT_FONT_SIZE, const int sashPosition=CONTENTS_MARGIN) | |
Brings the frame into existence. | |
~CHMFrame () | |
Cleans up. | |
bool | LoadCHM (const wxString &archive) |
Attempts to load a .chm file and display it's home page. | |
bool | LoadContextID (const int contextID) |
Attempts to load a context-ID from within the current chm file. | |
void | UpdateCHMInfo () |
Fills the index and the contents tree. | |
Protected Member Functions | |
void | OnQuit (wxCommandEvent &event) |
Called when the user closes the window. | |
void | OnAbout (wxCommandEvent &event) |
Called when the user clicks on About. | |
void | OnOpen (wxCommandEvent &event) |
Called when the user wants to open a file. | |
void | OnChangeFonts (wxCommandEvent &event) |
Called when the user wants to change the fonts. | |
void | OnHome (wxCommandEvent &event) |
Called when the user wants to see the default page. | |
void | OnHistoryForward (wxCommandEvent &event) |
Called when the user wants to go forward in the history. | |
void | OnHistoryBack (wxCommandEvent &event) |
Called when the user wants to go back in the history. | |
void | OnShowContents (wxCommandEvent &event) |
Called when the user wants to either disable or enable the contents tree panel on the left. | |
void | OnPrint (wxCommandEvent &event) |
Called when the user wants to print the displayed page. | |
void | OnHistFile (wxCommandEvent &event) |
Called when the user selects a file from the file history. | |
void | OnAddBookmark (wxCommandEvent &event) |
Called when the user clicks on the Add button. | |
void | OnRemoveBookmark (wxCommandEvent &event) |
Called when the user clicks on the Remove button. | |
void | OnBookmarkSel (wxCommandEvent &event) |
Called when the user chooses a bookmark from the wxChoice control. | |
void | OnSelectionChanged (wxTreeEvent &event) |
Called when an item in the contents tree is clicked. | |
void | OnCloseWindow (wxCloseEvent &event) |
Cleanup code. This saves the window position and last open dir. | |
Private Member Functions | |
wxMenuBar * | CreateMenu () |
Helper. Creates the menu. | |
bool | InitToolBar (wxToolBar *toolbar) |
Helper. Initializes the frame toolbar. | |
wxPanel * | CreateContentsPanel () |
Helper. Creates the contents panel. | |
void | LoadBookmarks () |
Helper. Loads the bookmarks for the currently opened CHM file. | |
void | SaveBookmarks () |
Helper. Saves the bookmarks for the currently opened CHM file. | |
Private Attributes | |
CHMHtmlWindow * | _html |
wxTreeCtrl * | _tcl |
wxSplitterWindow * | _sw |
wxMenu * | _menuFile |
wxToolBar * | _tb |
wxHtmlEasyPrinting * | _ep |
wxNotebook * | _nb |
wxComboBox * | _cb |
CHMSearchPanel * | _csp |
CHMIndexPanel * | _cip |
wxString | _openPath |
wxArrayString * | _normalFonts |
wxArrayString * | _fixedFonts |
wxString | _normalFont |
wxString | _fixedFont |
int | _fontSize |
bool | _bookmarkSel |
bool | _bookmarksDeleted |
int | _sashPos |
wxFont | _font |
wxFileHistory | _fh |
wxMutex | _mutex |
|
Brings the frame into existence.
|
|
Attempts to load a .chm file and display it's home page.
|
|
Attempts to load a context-ID from within the current chm file.
|