Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

MainWindow Class Reference

The main program window. Contains all widgets. More...

#include <dutree.h>

Inheritance diagram for MainWindow:

Inheritance graph
[legend]
Collaboration diagram for MainWindow:

Collaboration graph
[legend]
List of all members.

Public Methods

 MainWindow ()
 Constructor prepares widgets.

virtual int delete_event_impl (GdkEventAny *event)
void modified (const ImageMap &)
 Updates the info when the TreeView is modified.

gint delayed_calc ()

Detailed Description

The main program window. Contains all widgets.


Constructor & Destructor Documentation

MainWindow::MainWindow  
 

Constructor prepares widgets.

01366                       :
01367    Gtk::Window(GTK_WINDOW_TOPLEVEL),
01368    child_button("Child"),
01369    next_button("Next"),
01370    prev_button("Prev"),
01371    parent_button("Parent"),
01372    curdir("./\n\n\n"),
01373    tview(300, 300),
01374    rbutton("Style", new RotateDrawerCmd(tview)),
01375    colorbutton("Color Scheme", new RotateColorCmd(tview))
01376 {
01377 // Handle destroy and clicked signals
01378    destroy.connect(slot(destroy_handler));
01379    set_border_width(10);
01380    child_button.clicked.connect(slot(this, &MainWindow::nav_child));
01381    next_button.clicked.connect(slot(this, &MainWindow::nav_next));
01382    parent_button.clicked.connect(slot(this, &MainWindow::nav_parent));
01383    prev_button.clicked.connect(slot(this, &MainWindow::nav_prev));
01384    
01385 // pack widgets into boxes 
01386 
01387    add(packer);
01388    packer.pack_start(buttons, false);
01389    buttons.pack_start(parent_button);
01390    buttons.pack_start(rbutton);
01391    buttons.pack_start(colorbutton);
01392    buttons.pack_start(hbox);
01393    packer.pack_start(curdir, false);
01394    packer.pack_start(tview);
01395    tview.set_watcher(*this);
01396    curdir.show();
01397    parent_button.show();
01398    rbutton.show();
01399    buttons.show();
01400    hbox.show();
01401    tview.show();
01402    packer.show();
01403    show_all();
01404    
01405 }


Member Function Documentation

int MainWindow::delete_event_impl GdkEventAny *    event [virtual]
 

01408 {
01409    return false;
01410 }

void MainWindow::modified const ImageMap   tv [virtual]
 

Updates the info when the TreeView is modified.

Implements Watcher< ImageMap >.

01431 {
01432    if (tview.isReady()) setInfo(tview.get_EnTree(), tview.get_top_EnTree());
01433 }

gint MainWindow::delayed_calc   [inline]
 

00307    {
00308       return false;
00309    }


The documentation for this class was generated from the following files:
Generated on Mon Apr 7 19:43:22 2003 for DuTree by doxygen1.2.18