예제 #1
0
HeapView::HeapView(Debugger& debugger, ProgramView& view)
    : DialogBox(btn_ok, "Heap View")
    , debugger_(debugger)
    , view_(view)
    , heap_(0)
    , box_(manage(new Gtk::VBox))
    , label_(manage(new Gtk::Label("", .0)))
    , tree_(0)
{
    get_vbox()->add(*box_);
    box_->pack_start(*label_, false, false);

    sortType_[0] = sortType_[1] = GTK_SORT_ASCENDING;

    debugger.enum_plugins(this);

    if (!heap_)
    {
        CHKPTR(label_)->set_text("Heap plugin not active.");
    }
    box_->set_border_width(10);
    Gtk_set_resizable(this, true);
}