Develop and Download Open Source Software

Browse CVS Repository

Contents of /malonnote/mnFrame.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.11 - (show annotations) (download) (as text)
Thu Sep 15 09:20:48 2005 UTC (18 years, 6 months ago) by maloninc
Branch: MAIN
CVS Tags: rel_1_3, dev_1_3-0008, dev_1_3-0005, dev_1_3-0006, dev_1_3-0007, dev_1_4-0001
Changes since 1.10: +2 -0 lines
File MIME type: text/x-chdr
implement effective update, but it's incomplete. (9/15)

1 // -*- C++ -*- generated by wxGlade 0.3.5.1 on Wed Jun 29 12:57:38 2005
2 #ifndef MNFRAME_H
3 #define MNFRAME_H
4
5 // begin wxGlade: dependencies
6 #include <wx/splitter.h>
7 #include <wx/treectrl.h>
8 // end wxGlade
9
10 #include <wx/wx.h>
11 #include <wx/image.h>
12
13 #include "mnModel.h"
14 #include "mnHtmlWindow.h"
15 #include "mnDialog.h"
16
17 #define LABEL_ITEM_TREE "Search Item"
18 #define LABEL_NEW_ITEM "[Editing...]"
19 #define APP_ICON_NAME "mnICON_APP_SMALL"
20
21 class mnFrame: public wxFrame {
22 public:
23 // begin wxGlade: mnFrame::ids
24 // end wxGlade
25
26 mnFrame(wxWindow* parent, int id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE);
27 void addSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand=true);
28 void updateSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand=true);
29 void showSearchResult(mnModel* wiki, bool isExpand=true);
30 void makeHtml(WikiData* wikiData, bool highlight);
31 void highlightSelectedItem();
32 void showSelectedItemText(wxTreeEvent& event);
33 wxTreeItemData* getSelectedItem();
34 wxString getSelectedLabel();
35 wxTreeItemId getSelection();
36 void removeSelectedItem();
37 bool isEditableTreeLabel(wxTreeItemId id);
38 void expandAllTree();
39 void collapseAllTree();
40 void clearAllTree();
41
42 private:
43 // begin wxGlade: mnFrame::methods
44 void set_properties();
45 void do_layout();
46 // end wxGlade
47 wxTreeItemId searchItemRoot;
48 wxEvtHandler* controller;
49 wxGridSizer* rightPanelSizer;
50 bool highlight;
51
52 protected:
53 // begin wxGlade: mnFrame::attributes
54 wxStaticText* searchLaebl;
55 wxPanel* panel;
56 wxTextCtrl* searchTextCtrl;
57 wxTreeCtrl* searchTree;
58 wxPanel* leftPanel;
59 wxTextCtrl* wikiPlainTextCtrl;
60 mnHtmlWindow* wikiHtmlTextCtrl;
61 wxPanel* rightPanel;
62 wxSplitterWindow* splitWindow;
63
64 // begin add by hand
65 wxMenuBar* menuBar;
66 // end add by hand
67
68 // end wxGlade
69 };
70
71
72 #endif // MNFRAME_H

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26