Develop and Download Open Source Software

Browse CVS Repository

Annotation of /malonnote/mnFrame.h

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


Revision 1.10 - (hide annotations) (download) (as text)
Thu Sep 15 03:02:37 2005 UTC (18 years, 6 months ago) by maloninc
Branch: MAIN
Changes since 1.9: +4 -1 lines
File MIME type: text/x-chdr
implemet "Expand/Collpase/Clear All"

1 maloninc 1.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 maloninc 1.6 #include "mnHtmlWindow.h"
15 maloninc 1.4 #include "mnDialog.h"
16 maloninc 1.1
17 maloninc 1.7 #define LABEL_ITEM_TREE "Search Item"
18 maloninc 1.1 #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 maloninc 1.10 void addSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand=true);
28 maloninc 1.9 void showSearchResult(mnModel* wiki, bool isExpand=true);
29 maloninc 1.8 void makeHtml(WikiData* wikiData, bool highlight);
30     void highlightSelectedItem();
31 maloninc 1.1 void showSelectedItemText(wxTreeEvent& event);
32     wxTreeItemData* getSelectedItem();
33     wxString getSelectedLabel();
34     void removeSelectedItem();
35     bool isEditableTreeLabel(wxTreeItemId id);
36 maloninc 1.10 void expandAllTree();
37     void collapseAllTree();
38     void clearAllTree();
39 maloninc 1.1
40     private:
41     // begin wxGlade: mnFrame::methods
42     void set_properties();
43     void do_layout();
44     // end wxGlade
45     wxTreeItemId searchItemRoot;
46     wxEvtHandler* controller;
47 maloninc 1.3 wxGridSizer* rightPanelSizer;
48 maloninc 1.8 bool highlight;
49 maloninc 1.1
50     protected:
51     // begin wxGlade: mnFrame::attributes
52     wxStaticText* searchLaebl;
53     wxPanel* panel;
54     wxTextCtrl* searchTextCtrl;
55     wxTreeCtrl* searchTree;
56     wxPanel* leftPanel;
57 maloninc 1.3 wxTextCtrl* wikiPlainTextCtrl;
58 maloninc 1.6 mnHtmlWindow* wikiHtmlTextCtrl;
59 maloninc 1.1 wxPanel* rightPanel;
60     wxSplitterWindow* splitWindow;
61    
62     // begin add by hand
63     wxMenuBar* menuBar;
64     // end add by hand
65    
66     // end wxGlade
67     };
68    
69    
70     #endif // MNFRAME_H

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