| 10 |
#include <wx/wx.h> |
#include <wx/wx.h> |
| 11 |
#include <wx/image.h> |
#include <wx/image.h> |
| 12 |
|
|
| 13 |
|
#include "mnNotePanel.h" |
| 14 |
#include "mnModel.h" |
#include "mnModel.h" |
| 15 |
|
#include "mnHtmlWindow.h" |
| 16 |
|
#include "mnDialog.h" |
| 17 |
|
|
| 18 |
#define LABEL_ITEM_TREE "Item Tree" |
#define LABEL_ITEM_TREE "Search Item" |
|
#define LABEL_NEW_ITEM "[Editing...]" |
|
| 19 |
#define APP_ICON_NAME "mnICON_APP_SMALL" |
#define APP_ICON_NAME "mnICON_APP_SMALL" |
| 20 |
|
|
| 21 |
class mnFrame: public wxFrame { |
class mnFrame: public wxFrame { |
| 22 |
public: |
public: |
|
// begin wxGlade: mnFrame::ids |
|
|
// end wxGlade |
|
| 23 |
|
|
| 24 |
mnFrame(wxWindow* parent, int id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE); |
mnFrame(wxWindow* parent); |
| 25 |
void addSearchResult(wxString* searchStr, WikiList* wikiList); |
void addNotePanel(wxString* dirName); |
| 26 |
void showSearchResult(mnModel* wiki); |
mnNotePanel* getNotePanel(); |
| 27 |
void showSelectedItemText(wxTreeEvent& event); |
wxNotebook* getNotebook(); |
| 28 |
wxTreeItemData* getSelectedItem(); |
void removeSelectedNotePanel(); |
| 29 |
wxString getSelectedLabel(); |
void setFocusToSearchTextCtrl(); |
|
void removeSelectedItem(); |
|
|
wxString getPlainText(); |
|
|
void showNewItem(WikiData* data); |
|
|
bool isEditableTreeLabel(wxTreeItemId id); |
|
|
bool isNewItem(wxTreeItemId id); |
|
| 30 |
|
|
| 31 |
private: |
private: |
| 32 |
// begin wxGlade: mnFrame::methods |
wxTextCtrl* searchTextCtrl; |
| 33 |
void set_properties(); |
wxNotebook* noteBook; |
|
void do_layout(); |
|
|
// end wxGlade |
|
|
wxTreeItemId searchItemRoot; |
|
|
wxTreeItemId newItemRoot; |
|
|
wxEvtHandler* controller; |
|
|
|
|
|
protected: |
|
|
// begin wxGlade: mnFrame::attributes |
|
|
wxStaticText* searchLaebl; |
|
|
wxPanel* panel; |
|
|
wxTextCtrl* searchTextCtrl; |
|
|
wxTreeCtrl* searchTree; |
|
|
wxPanel* leftPanel; |
|
|
wxTextCtrl* wikiPlainTextCtrl; |
|
|
wxPanel* rightPanel; |
|
|
wxSplitterWindow* splitWindow; |
|
|
|
|
|
// begin add by hand |
|
|
wxMenuBar* menuBar; |
|
|
// end add by hand |
|
|
|
|
|
// end wxGlade |
|
| 34 |
}; |
}; |
| 35 |
|
|
| 36 |
|
|