Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnFrame.h

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

revision 1.11 by maloninc, Thu Sep 15 09:20:48 2005 UTC revision 1.13 by maloninc, Tue Oct 4 12:45:02 2005 UTC
# Line 10  Line 10 
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"  #include "mnHtmlWindow.h"
16  #include "mnDialog.h"  #include "mnDialog.h"
17    
18  #define LABEL_ITEM_TREE   "Search Item"  #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(mnModel* wiki, wxString* searchStr, bool isExpand=true);          void addNotePanel(wxString* dirName);
26          void            updateSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand=true);          mnNotePanel* getNotePanel();
         void            showSearchResult(mnModel* wiki, bool isExpand=true);  
         void            makeHtml(WikiData* wikiData, bool highlight);  
         void            highlightSelectedItem();  
         void            showSelectedItemText(wxTreeEvent& event);  
         wxTreeItemData* getSelectedItem();  
         wxString        getSelectedLabel();  
         wxTreeItemId    getSelection();  
         void            removeSelectedItem();  
         bool            isEditableTreeLabel(wxTreeItemId id);  
         void            expandAllTree();  
         void            collapseAllTree();  
         void            clearAllTree();  
27    
28  private:  private:
29      // begin wxGlade: mnFrame::methods      wxTextCtrl*    searchTextCtrl;
30      void set_properties();          wxNotebook*    noteBook;
     void do_layout();  
     // end wxGlade  
         wxTreeItemId searchItemRoot;  
         wxEvtHandler* controller;  
     wxGridSizer* rightPanelSizer;  
         bool highlight;  
   
 protected:  
     // begin wxGlade: mnFrame::attributes  
     wxStaticText* searchLaebl;  
     wxPanel* panel;  
     wxTextCtrl* searchTextCtrl;  
     wxTreeCtrl* searchTree;  
     wxPanel* leftPanel;  
     wxTextCtrl* wikiPlainTextCtrl;  
     mnHtmlWindow* wikiHtmlTextCtrl;  
     wxPanel* rightPanel;  
     wxSplitterWindow* splitWindow;  
   
     // begin add by hand  
     wxMenuBar* menuBar;  
     // end add by hand  
   
     // end wxGlade  
31  };  };
32    
33    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.13

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