Browse CVS Repository
Contents of /malonnote/mnFrame.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.7 -
( show annotations)
( download)
( as text)
Thu Aug 4 05:10:02 2005 UTC
(18 years, 7 months ago)
by maloninc
Branch: MAIN
CVS Tags: dev-1_0-0012, dev-1_0-0013, dev-1_0-0014, dev-1_0-0015, dev-1_0-0016, dev-1_0-0017, rel-1_1, rel-1_0, dev-1_1-0005, dev-1_1-0006, dev-1_1-0007, dev-1_1-0001, dev-1_1-0002, dev-1_1-0003, dev-1_1-0009, dev-1_1-0008
Changes since 1.6: +1 -4 lines
File MIME type: text/x-chdr
implemented clickable item.
And, v1.0 buggy version has complete
| 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(wxString* searchStr, WikiList* wikiList); |
| 28 |
void showSearchResult(mnModel* wiki); |
| 29 |
void showSelectedItemText(wxTreeEvent& event); |
| 30 |
wxTreeItemData* getSelectedItem(); |
| 31 |
wxString getSelectedLabel(); |
| 32 |
void removeSelectedItem(); |
| 33 |
bool isEditableTreeLabel(wxTreeItemId id); |
| 34 |
|
| 35 |
private: |
| 36 |
// begin wxGlade: mnFrame::methods |
| 37 |
void set_properties(); |
| 38 |
void do_layout(); |
| 39 |
// end wxGlade |
| 40 |
wxTreeItemId searchItemRoot; |
| 41 |
wxEvtHandler* controller; |
| 42 |
wxGridSizer* rightPanelSizer; |
| 43 |
|
| 44 |
protected: |
| 45 |
// begin wxGlade: mnFrame::attributes |
| 46 |
wxStaticText* searchLaebl; |
| 47 |
wxPanel* panel; |
| 48 |
wxTextCtrl* searchTextCtrl; |
| 49 |
wxTreeCtrl* searchTree; |
| 50 |
wxPanel* leftPanel; |
| 51 |
wxTextCtrl* wikiPlainTextCtrl; |
| 52 |
mnHtmlWindow* wikiHtmlTextCtrl; |
| 53 |
wxPanel* rightPanel; |
| 54 |
wxSplitterWindow* splitWindow; |
| 55 |
|
| 56 |
// begin add by hand |
| 57 |
wxMenuBar* menuBar; |
| 58 |
// end add by hand |
| 59 |
|
| 60 |
// end wxGlade |
| 61 |
}; |
| 62 |
|
| 63 |
|
| 64 |
#endif // MNFRAME_H |
| |