]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
Do archive name case conversion for wxMac and wxMotif
[wxWidgets.git] / src / msw / treectrl.cpp
index 01d81982851675e4d4cdd7a4d2aac8a8a47dd892..d18f109ad9c241a0280a5ad5d30dde2bfd6d6989 100644 (file)
@@ -470,7 +470,69 @@ private:
 // wxWin macros
 // ----------------------------------------------------------------------------
 
+#if wxUSE_EXTENDED_RTTI
+WX_DEFINE_FLAGS( wxTreeCtrlStyle )
+
+WX_BEGIN_FLAGS( wxTreeCtrlStyle )
+    // new style border flags, we put them first to
+    // use them for streaming out
+    WX_FLAGS_MEMBER(wxBORDER_SIMPLE)
+    WX_FLAGS_MEMBER(wxBORDER_SUNKEN)
+    WX_FLAGS_MEMBER(wxBORDER_DOUBLE)
+    WX_FLAGS_MEMBER(wxBORDER_RAISED)
+    WX_FLAGS_MEMBER(wxBORDER_STATIC)
+    WX_FLAGS_MEMBER(wxBORDER_NONE)
+    
+    // old style border flags
+    WX_FLAGS_MEMBER(wxSIMPLE_BORDER)
+    WX_FLAGS_MEMBER(wxSUNKEN_BORDER)
+    WX_FLAGS_MEMBER(wxDOUBLE_BORDER)
+    WX_FLAGS_MEMBER(wxRAISED_BORDER)
+    WX_FLAGS_MEMBER(wxSTATIC_BORDER)
+    WX_FLAGS_MEMBER(wxNO_BORDER)
+
+    // standard window styles
+    WX_FLAGS_MEMBER(wxTAB_TRAVERSAL)
+    WX_FLAGS_MEMBER(wxCLIP_CHILDREN)
+    WX_FLAGS_MEMBER(wxTRANSPARENT_WINDOW)
+    WX_FLAGS_MEMBER(wxWANTS_CHARS)
+    WX_FLAGS_MEMBER(wxNO_FULL_REPAINT_ON_RESIZE)
+    WX_FLAGS_MEMBER(wxALWAYS_SHOW_SB )
+    WX_FLAGS_MEMBER(wxVSCROLL)
+    WX_FLAGS_MEMBER(wxHSCROLL)
+
+    WX_FLAGS_MEMBER(wxTR_EDIT_LABELS)
+    WX_FLAGS_MEMBER(wxTR_NO_BUTTONS)
+    WX_FLAGS_MEMBER(wxTR_HAS_BUTTONS)
+    WX_FLAGS_MEMBER(wxTR_TWIST_BUTTONS)
+    WX_FLAGS_MEMBER(wxTR_NO_LINES)
+    WX_FLAGS_MEMBER(wxTR_FULL_ROW_HIGHLIGHT)
+    WX_FLAGS_MEMBER(wxTR_LINES_AT_ROOT)
+    WX_FLAGS_MEMBER(wxTR_HIDE_ROOT)
+    WX_FLAGS_MEMBER(wxTR_ROW_LINES)
+    WX_FLAGS_MEMBER(wxTR_HAS_VARIABLE_ROW_HEIGHT)
+    WX_FLAGS_MEMBER(wxTR_SINGLE)
+    WX_FLAGS_MEMBER(wxTR_MULTIPLE)
+    WX_FLAGS_MEMBER(wxTR_EXTENDED)
+    WX_FLAGS_MEMBER(wxTR_DEFAULT_STYLE)
+
+WX_END_FLAGS( wxTreeCtrlStyle )
+
+IMPLEMENT_DYNAMIC_CLASS_XTI(wxTreeCtrl, wxControl,"wx/treectrl.h")
+
+WX_BEGIN_PROPERTIES_TABLE(wxTreeCtrl)
+    WX_EVENT_PROPERTY( TextUpdated , wxEVT_COMMAND_TEXT_UPDATED , wxCommandEvent ) 
+    WX_EVENT_RANGE_PROPERTY( TreeEvent , wxEVT_COMMAND_TREE_BEGIN_DRAG , wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK , wxTreeEvent )
+    WX_PROPERTY_FLAGS( WindowStyle , wxTreeCtrlStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
+WX_END_PROPERTIES_TABLE()
+
+WX_BEGIN_HANDLERS_TABLE(wxTreeCtrl)
+WX_END_HANDLERS_TABLE()
+
+WX_CONSTRUCTOR_5( wxTreeCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle ) 
+#else
 IMPLEMENT_DYNAMIC_CLASS(wxTreeCtrl, wxControl)
+#endif
 
 // ----------------------------------------------------------------------------
 // constants