-/* Disabled until wxImageList q solved >>> seems it solved */
-/*
- wxBitmap *bmp;
- if ((new_child->m_mask & wxTREE_MASK_IMAGE) != 0) {
- if (m_imageList != NULL) {
-// if ((bmp = m_imageList->GetBitmap(new_child->m_image)) != NULL) {
- if ((bmp = m_imageList->GetBitmap(0)) != NULL) {
- if (bmp->Ok()) {
- GdkBitmap *mask = NULL;
- if (bmp->GetMask()) mask = bmp->GetMask()->GetBitmap();
- GtkWidget *pixmap = gtk_pixmap_new(bmp->GetPixmap(), mask);
-
-gtk_widget_unref(new_child->m_widget->plus_pix_widget);
-gtk_container_remove(GTK_CONTAINER(new_child->m_widget->pixmaps_box),
- new_child->m_widget->plus_pix_widget);
-gtk_container_add(GTK_CONTAINER(new_child->m_widget->pixmaps_box),
- pixmap);
- gtk_widget_show(pixmap);
- GTK_TREE_ITEM(new_child->m_widget)->plus_pix_widget = pixmap;
- }
- }
+ return (count != 0);
+}
+
+bool wxTreeCtrl::IsExpanded(const wxTreeItemId& item) const {
+ return (((GtkTreeItem *)item)->expanded != 0);
+}
+
+bool wxTreeCtrl::IsSelected(const wxTreeItemId& item) const {
+#warning "Need to implement IsSelected"
+ return FALSE;
+}
+
+wxTreeItemId wxTreeCtrl::GetRootItem() const {
+ return m_anchor;
+}
+
+wxTreeItemId wxTreeCtrl::GetSelection() const {
+#warning "Need to complete gtk_treectrl_next_selected_callback"
+ GtkTreeItem *next = NULL;
+
+ GList *list = gtk_container_children(GTK_CONTAINER(m_anchor));
+ next = GTK_TREE_ITEM(list->data);
+// gtk_container_foreach(GTK_CONTAINER(m_anchor), gtk_treectrl_next_selected_callback, &next);
+
+ return next;
+}
+
+wxTreeItemId wxTreeCtrl::GetParent(const wxTreeItemId& item) const {
+#warning "data 'parent' is missing!!!"
+ if (item.IsOk())
+ return (GtkTreeItem *)gtk_object_get_data(GTK_OBJECT((GtkTreeItem *)item), "parent");
+
+ return NULL;
+}
+
+wxTreeItemId wxTreeCtrl::GetFirstChild(const wxTreeItemId& item, long& cookie) const {
+#warning "Need to implement GetFirstChild"
+ return NULL;
+}
+
+wxTreeItemId wxTreeCtrl::GetNextChild(const wxTreeItemId& item, long& cookie) const {
+#warning "Need to implement GetNextChild"
+ return NULL;
+}
+
+wxTreeItemId wxTreeCtrl::GetNextSibling(const wxTreeItemId& item) const {
+#warning "Need to implement GetNextSibling"
+ return NULL;
+}
+
+wxTreeItemId wxTreeCtrl::GetPrevSibling(const wxTreeItemId& item) const {
+#warning "Need to implement GetPrevSibling"
+ return NULL;
+}
+
+wxTreeItemId wxTreeCtrl::GetFirstVisibleItem() const {
+#warning "Need to implement GetFirstVisibleItem"
+ return NULL;
+}
+
+wxTreeItemId wxTreeCtrl::GetNextVisible(const wxTreeItemId& item) const {
+#warning "Need to implement GetNextVisible"
+ return NULL;
+}
+
+wxTreeItemId wxTreeCtrl::GetPrevVisible(const wxTreeItemId& item) const {
+#warning "Need to implement GetPrevVisible"
+ return NULL;
+}
+
+wxTreeItemId wxTreeCtrl::AddRoot(const wxString& text, int image,
+ int selectedImage, wxTreeItemData *data) {
+ return p_InsertItem(0, text, image, selectedImage, data);
+}
+
+wxTreeItemId wxTreeCtrl::PrependItem(const wxTreeItemId& parent,
+ const wxString& text, int image, int selectedImage,
+ wxTreeItemData *data) {
+#warning "Need to implement PrependItem"
+ return NULL;
+}
+
+wxTreeItemId wxTreeCtrl::InsertItem(const wxTreeItemId& parent,
+ const wxTreeItemId& idPrevious, const wxString& text,
+ int image, int selectedImage, wxTreeItemData *data) {
+#warning "Need to implement InsertItem"
+ return NULL;
+}