| 4 |
#include <wx/wx.h> |
#include <wx/wx.h> |
| 5 |
#include <wx/treebase.h> |
#include <wx/treebase.h> |
| 6 |
|
|
| 7 |
|
#include "config.h" |
| 8 |
|
|
| 9 |
#define MAX_WIKI_TEXT_SIZE 10000 |
#define MAX_WIKI_TEXT_SIZE 10000 |
| 10 |
#define MAX_BUF_SIZE 1024 |
#define MAX_BUF_SIZE 1024 |
| 11 |
#define EXT_TAG ".txt" |
#define EXT_TAG ".txt" |
| 12 |
#define DATE_TAG ":''DATE'':" |
#define DATE_TAG ":''DATE'':" |
| 13 |
#define NEW_DATA DATE_TAG " %Y/%m/%d %H:%M:%S\n\n:''TYPE'': memo\n----\n" |
#define TYPE_TAG ":''TYPE'':" |
| 14 |
|
#define NEW_DATA DATE_TAG " %Y/%m/%d %H:%M:%S\n\n" TYPE_TAG " memo\n---------------------------------------------------------\n" |
| 15 |
|
|
| 16 |
|
#define ALLMEMO_TAG "malon-all" |
| 17 |
|
#define TYPESEARCH_TAG "malon-type:" |
| 18 |
|
|
| 19 |
#define CODE_SET_EUC_JP "eucJP" |
#define CODE_SET_EUC_JP "euc-jp" |
| 20 |
#ifdef __WXMAC__ |
#ifdef __WXMAC__ |
| 21 |
#define CODE_SET_SYSTEM "SJIS" |
#define CODE_SET_SYSTEM "CP932" |
| 22 |
|
#endif |
| 23 |
|
#ifdef __WXCOCOA__ |
| 24 |
|
#define CODE_SET_SYSTEM "CP932" |
| 25 |
#endif |
#endif |
| 26 |
#ifdef __WXMSW__ |
#ifdef __WXMSW__ |
| 27 |
#define CODE_SET_SYSTEM "SJIS" |
#define CODE_SET_SYSTEM "CP932" |
| 28 |
#endif |
#endif |
| 29 |
#ifdef __WXMOTIF__ |
#ifdef __WXMOTIF__ |
| 30 |
#define CODE_SET_SYSTEM "eucJP" |
#define CODE_SET_SYSTEM "eucJP" |
| 31 |
#endif |
#endif |
| 32 |
#ifdef __WXGTK__ |
#ifdef __WXGTK__ |
| 33 |
#define CODE_SET_SYSTEM "eucJP" |
#define CODE_SET_SYSTEM "euc-jp" |
| 34 |
#endif |
#endif |
| 35 |
#ifdef __WXX11__ |
#ifdef __WXX11__ |
| 36 |
#define CODE_SET_SYSTEM "eucJP" |
#define CODE_SET_SYSTEM "eucJP" |
| 37 |
#endif |
#endif |
| 38 |
|
|
| 39 |
|
#define MAC_BACKSLASH 0x80 |
| 40 |
|
|
| 41 |
|
|
| 42 |
class WikiData : wxTreeItemData{ |
class WikiData : wxTreeItemData{ |
| 72 |
mnModel(const char* dataDir); |
mnModel(const char* dataDir); |
| 73 |
~mnModel(); |
~mnModel(); |
| 74 |
WikiList* search(const char* searchStr); |
WikiList* search(const char* searchStr); |
| 75 |
|
void group(); |
| 76 |
|
bool normalSearch(char* tokenList[], FILE*fp, char* decodeFileNameBuf); |
| 77 |
|
bool typeSearch(char* typeStr, FILE*fp); |
| 78 |
void addWikiData(WikiData* wikiData); |
void addWikiData(WikiData* wikiData); |
| 79 |
void addSearchStr(wxString* searchStr); |
void addSearchStr(wxString* searchStr); |
| 80 |
void removeSearchStr(wxString searchStr); |
void removeSearchStr(wxString searchStr); |
| 81 |
void modSearchStr(wxString* oldStr, wxString* newStr); |
void modSearchStr(wxString* oldStr, wxString* newStr); |
| 82 |
const wxArrayString* getSearchStrList(); |
const wxArrayString* getSearchStrList(); |
| 83 |
WikiData* newWikiData(); |
WikiData* newWikiData(); |
| 84 |
|
const wxString* getWikiDataDir(); |
| 85 |
|
|
| 86 |
private: |
private: |
| 87 |
wxString* wikiDataDir; |
wxString* wikiDataDir; |