| 7 |
#include "mnModel.h" |
#include "mnModel.h" |
| 8 |
#include "mnNotePanel.h" |
#include "mnNotePanel.h" |
| 9 |
|
|
| 10 |
|
#ifdef __WXMSW__ |
| 11 |
|
#define DOCS_DIR "\\docs\\" |
| 12 |
|
#define MKDIR "cmd /c mkdir \"%s\"" |
| 13 |
|
#else |
| 14 |
|
#define DOCS_DIR "/docs/" |
| 15 |
|
#define MKDIR "mkdir \'%s\'" |
| 16 |
|
#endif |
| 17 |
|
|
| 18 |
class mnNotePanelController: public wxEvtHandler{ |
class mnNotePanelController: public wxEvtHandler{ |
| 19 |
public: |
public: |
| 20 |
mnNotePanelController(mnNotePanel* inPanel, wxString* inWikiDir); |
mnNotePanelController(mnNotePanel* inPanel, wxString* inWikiDir); |
| 37 |
void handleExit(wxCommandEvent& event); |
void handleExit(wxCommandEvent& event); |
| 38 |
void handleClose(wxCloseEvent& event); |
void handleClose(wxCloseEvent& event); |
| 39 |
void handleAbout(wxCommandEvent& event); |
void handleAbout(wxCommandEvent& event); |
| 40 |
|
#ifdef __WXMAC__ |
| 41 |
|
void handleLinkClick(wxWebKitStateChangedEvent& myEvent); |
| 42 |
|
#else |
| 43 |
void handleLinkClick(wxCommandEvent &event); |
void handleLinkClick(wxCommandEvent &event); |
| 44 |
|
#endif |
| 45 |
void handleOpenDocsDir(wxCommandEvent &event); |
void handleOpenDocsDir(wxCommandEvent &event); |
| 46 |
void openUrl(wxString& url); |
void openUrl(wxString& url); |
| 47 |
void openDoc(wxString& doc); |
void openDoc(wxString& doc); |
| 48 |
|
void openDir(wxString& dir); |
| 49 |
const wxString* getWikiDataDir(); |
const wxString* getWikiDataDir(); |
| 50 |
|
wxString delPercent(const wxString& str); |
| 51 |
|
void readAll(wxTimerEvent& event); |
| 52 |
|
|
| 53 |
private: |
private: |
| 54 |
mnModel* wiki; |
mnModel* wiki; |