Back to index

Public Member Functions | Private Member Functions | Private Attributes
TreeViewMulti Class Reference

#include <actions.h>

List of all members.

Public Member Functions

 TreeViewMulti ()

Private Member Functions

virtual bool on_button_press_event (GdkEventButton *event)
virtual bool on_button_release_event (GdkEventButton *event)
virtual void on_drag_begin (const Glib::RefPtr< Gdk::DragContext > &context)

Private Attributes

bool pending
Gtk::TreePath path
Gtk::TreeViewColumn * column

Detailed Description

Definition at line 25 of file actions.h.

Constructor & Destructor Documentation

Definition at line 54 of file

                             : Gtk::TreeView(), pending(false) {
       get_selection()->set_select_function(sigc::group(&negate, sigc::ref(pending)));

Here is the call graph for this function:

Member Function Documentation

bool TreeViewMulti::on_button_press_event ( GdkEventButton *  event) [private, virtual]

Definition at line 26 of file

       int cell_x, cell_y;
       Gtk::TreeViewColumn *column;
       pending = (get_path_at_pos(event->x, event->y, path, column, cell_x, cell_y))
              && (get_selection()->is_selected(path))
              && !(event->state & (GDK_CONTROL_MASK|GDK_SHIFT_MASK));
       return Gtk::TreeView::on_button_press_event(event);
bool TreeViewMulti::on_button_release_event ( GdkEventButton *  event) [private, virtual]

Definition at line 35 of file

       if (pending) {
              pending = false;
       return Gtk::TreeView::on_button_release_event(event);
void TreeViewMulti::on_drag_begin ( const Glib::RefPtr< Gdk::DragContext > &  context) [private, virtual]

Definition at line 44 of file

       pending = false;
       if (get_selection()->count_selected_rows() <= 1)
              return Gtk::TreeView::on_drag_begin(context);
       Glib::RefPtr<Gdk::Pixbuf> pb = render_icon(Gtk::Stock::DND_MULTIPLE, Gtk::ICON_SIZE_DND);
       context->set_icon(pb, pb->get_width(), pb->get_height());

Member Data Documentation

Gtk::TreeViewColumn* TreeViewMulti::column [private]

Definition at line 28 of file actions.h.

Gtk::TreePath TreeViewMulti::path [private]

Definition at line 27 of file actions.h.

bool TreeViewMulti::pending [private]

Definition at line 26 of file actions.h.

The documentation for this class was generated from the following files: