AmitkTreeView

## AmitkTreeView AmitkTreeView |

## Synopsis

    enum                AmitkTreeViewMode;
                        AmitkTreeView;
    GtkWidget*          amitk_tree_view_new                 (AmitkTreeViewMode tree_mode,
                                                             AmitkPreferences *preferences,
                                                             GtkWidget *progress_dialog);
    void                amitk_tree_view_set_study           (AmitkTreeView *tree_view,
                                                             AmitkStudy *study);
    void                amitk_tree_view_expand_object       (AmitkTreeView *tree_view,
                                                             AmitkObject *object);
    void                amitk_tree_view_set_active_object   (AmitkTreeView *tree_view,
                                                             AmitkObject *object);
    GList*              amitk_tree_view_get_multiple_selection_objects
                                                            (AmitkTreeView *tree_view);

## Description

## Details

### enum AmitkTreeViewMode

    typedef enum {
      AMITK_TREE_VIEW_MODE_MAIN,
      AMITK_TREE_VIEW_MODE_MULTIPLE_SELECTION,
      AMITK_TREE_VIEW_MODE_NUM
    } AmitkTreeViewMode;

### AmitkTreeView

    typedef struct {
      GtkTreeView tree_view;
      AmitkTreeViewMode mode;

      AmitkStudy * study;
      AmitkObject * active_object;
      AmitkPreferences * preferences;
      GtkWidget * progress_dialog;

      GtkTreeViewColumn * select_column[AMITK_VIEW_MODE_NUM];
      AmitkViewMode prev_view_mode;
      gint mouse_x; /* the current mouse position */
      gint mouse_y;
      GtkTreePath * current_path;

      /* drag-n-drop info */
      gboolean drag_begin_possible;
      gint press_x;
      gint press_y;
      AmitkObject * src_object; /* not referenced */
      AmitkObject * dest_object; /* not referenced */
      GtkTargetList * drag_list;
    } AmitkTreeView;

### amitk_tree_view_new ()

    GtkWidget*          amitk_tree_view_new                 (AmitkTreeViewMode tree_mode,
                                                             AmitkPreferences *preferences,
                                                             GtkWidget *progress_dialog);

`tree_mode` : |
`preferences` : |
`progress_dialog` : |
Returns : |

### amitk_tree_view_set_study ()

    void                amitk_tree_view_set_study           (AmitkTreeView *tree_view,
                                                             AmitkStudy *study);

`tree_view` : |
`study` : |

### amitk_tree_view_expand_object ()

    void                amitk_tree_view_expand_object       (AmitkTreeView *tree_view,
                                                             AmitkObject *object);

`tree_view` : |
`object` : |

### amitk_tree_view_set_active_object ()

    void                amitk_tree_view_set_active_object   (AmitkTreeView *tree_view,
                                                             AmitkObject *object);

`tree_view` : |
`object` : |

### amitk_tree_view_get_multiple_selection_objects ()

    GList*              amitk_tree_view_get_multiple_selection_objects
                                                            (AmitkTreeView *tree_view);

`tree_view` : |
Returns : |