| 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 |
|
|
| 18 |
#define CODE_SET_EUC_JP "eucJP" |
#define CODE_SET_EUC_JP "euc-jp" |
| 19 |
#ifdef __WXMAC__ |
#ifdef __WXMAC__ |
| 20 |
#define CODE_SET_SYSTEM "SJIS" |
#define CODE_SET_SYSTEM "CP932" |
| 21 |
#endif |
#endif |
| 22 |
#ifdef __WXCOCOA__ |
#ifdef __WXCOCOA__ |
| 23 |
#define CODE_SET_SYSTEM "SJIS" |
#define CODE_SET_SYSTEM "CP932" |
| 24 |
#endif |
#endif |
| 25 |
#ifdef __WXMSW__ |
#ifdef __WXMSW__ |
| 26 |
#define CODE_SET_SYSTEM "SJIS" |
#define CODE_SET_SYSTEM "CP932" |
| 27 |
#endif |
#endif |
| 28 |
#ifdef __WXMOTIF__ |
#ifdef __WXMOTIF__ |
| 29 |
#define CODE_SET_SYSTEM "eucJP" |
#define CODE_SET_SYSTEM "eucJP" |
| 30 |
#endif |
#endif |
| 31 |
#ifdef __WXGTK__ |
#ifdef __WXGTK__ |
| 32 |
#define CODE_SET_SYSTEM "eucJP" |
#define CODE_SET_SYSTEM "euc-jp" |
| 33 |
#endif |
#endif |
| 34 |
#ifdef __WXX11__ |
#ifdef __WXX11__ |
| 35 |
#define CODE_SET_SYSTEM "eucJP" |
#define CODE_SET_SYSTEM "eucJP" |
| 36 |
#endif |
#endif |
| 37 |
|
|
| 38 |
|
#define MAC_BACKSLASH 0x80 |
| 39 |
|
|
| 40 |
|
|
| 41 |
class WikiData : wxTreeItemData{ |
class WikiData : wxTreeItemData{ |
| 77 |
void modSearchStr(wxString* oldStr, wxString* newStr); |
void modSearchStr(wxString* oldStr, wxString* newStr); |
| 78 |
const wxArrayString* getSearchStrList(); |
const wxArrayString* getSearchStrList(); |
| 79 |
WikiData* newWikiData(); |
WikiData* newWikiData(); |
| 80 |
|
const wxString* getWikiDataDir(); |
| 81 |
|
|
| 82 |
private: |
private: |
| 83 |
wxString* wikiDataDir; |
wxString* wikiDataDir; |