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

pandatool/src/gtkbase/basicGtkDialog.cxx

Go to the documentation of this file.
00001 // Filename: basicGtkDialog.cxx
00002 // Created by:  drose (14Jul00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "basicGtkDialog.h"
00020 
00021 
00022 ////////////////////////////////////////////////////////////////////
00023 //     Function: BasicGtkDialog::Constructor
00024 //       Access: Public
00025 //  Description:
00026 ////////////////////////////////////////////////////////////////////
00027 BasicGtkDialog::
00028 BasicGtkDialog(bool free_store) : BasicGtkWindow(free_store) {
00029   _vbox = manage(new Gtk::VBox);
00030   _action_area = manage(new Gtk::HBox);
00031 
00032   Gtk::VBox *box0 = manage(new Gtk::VBox);
00033   Gtk::HSeparator *hsep = manage(new Gtk::HSeparator);
00034 
00035   add(*box0);
00036   box0->show();
00037   box0->pack_start(*_vbox);
00038   _vbox->show();
00039 
00040   box0->pack_start(*hsep);
00041   hsep->show();
00042 
00043   _action_area->set_border_width(10);
00044   box0->pack_start(*_action_area, false);
00045   _action_area->show();
00046 }
00047 
00048 ////////////////////////////////////////////////////////////////////
00049 //     Function: BasicGtkDialog::get_vbox
00050 //       Access: Public
00051 //  Description: Returns a pointer to the main part of the dialog
00052 //               window.
00053 ////////////////////////////////////////////////////////////////////
00054 Gtk::VBox *BasicGtkDialog::
00055 get_vbox() const {
00056   return _vbox;
00057 }
00058 
00059 ////////////////////////////////////////////////////////////////////
00060 //     Function: BasicGtkDialog::get_action_area
00061 //       Access: Public
00062 //  Description: Returns a pointer to part of the dialog reserved for
00063 //               action buttons.
00064 ////////////////////////////////////////////////////////////////////
00065 Gtk::HBox *BasicGtkDialog::
00066 get_action_area() const {
00067   return _action_area;
00068 }
00069 

Generated on Fri May 2 03:20:05 2003 for Panda-Tool by doxygen1.3