Browse CVS Repository
Contents of /malonnote/mnNotePanel.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.2 -
( show annotations)
( download)
( as text)
Wed Dec 28 01:49:51 2005 UTC
(18 years, 2 months ago)
by maloninc
Branch: MAIN
CVS Tags: rel_1_7_1, dev_1_6-0004, dev_1_6-0003, dev_1_6-0002, dev_1_6-0005, HEAD
Changes since 1.1: +4 -0 lines
File MIME type: text/x-chdr
for WebKitCtrl
| 1 |
// -*- C++ -*- generated by wxGlade 0.3.5.1 on Wed Jun 29 12:57:38 2005 |
| 2 |
#ifndef MNNOTEPANEL_H |
| 3 |
#define MNNOTEPANEL_H |
| 4 |
|
| 5 |
#include <wx/wx.h> |
| 6 |
#include <wx/image.h> |
| 7 |
#include <wx/treectrl.h> |
| 8 |
|
| 9 |
#include "mnModel.h" |
| 10 |
#include "mnHtmlWindow.h" |
| 11 |
#include "mnDialog.h" |
| 12 |
|
| 13 |
#define MNLINK "http://mnlink.maloninc.com/" |
| 14 |
//#define MNLINK "mnlink:" |
| 15 |
#define MNDOC "http://mndoc.maloninc.com/" |
| 16 |
|
| 17 |
class mnNotePanelController; |
| 18 |
|
| 19 |
#define LABEL_ITEM_TREE "Search Item" |
| 20 |
|
| 21 |
class mnNotePanel: public wxPanel{ |
| 22 |
public: |
| 23 |
|
| 24 |
mnNotePanel(wxWindow* parent, wxString* dirName); |
| 25 |
|
| 26 |
void addSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand=true); |
| 27 |
void updateSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand=true); |
| 28 |
void makeHtml(WikiData* wikiData, bool highlight); |
| 29 |
void highlightSelectedItem(); |
| 30 |
void showSelectedItemText(wxTreeEvent& event); |
| 31 |
wxTreeItemData* getSelectedItem(); |
| 32 |
wxString getSelectedLabel(); |
| 33 |
wxTreeItemId getSelection(); |
| 34 |
void removeSelectedItem(); |
| 35 |
bool isEditableTreeLabel(wxTreeItemId id); |
| 36 |
void expandAllTree(); |
| 37 |
void collapseAllTree(); |
| 38 |
void clearAllTree(); |
| 39 |
mnNotePanelController* getController(); |
| 40 |
|
| 41 |
private: |
| 42 |
bool highlight; |
| 43 |
wxTreeItemId searchItemRoot; |
| 44 |
wxTreeCtrl* searchTree; |
| 45 |
mnHtmlWindow* wikiHtmlTextCtrl; |
| 46 |
mnNotePanelController* panelController; |
| 47 |
}; |
| 48 |
|
| 49 |
|
| 50 |
#endif // MNNOTEPANEL |
| |