00001 // Filename: basicGtkDialog.h 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 #ifndef BASICGTKDIALOG_H 00020 #define BASICGTKDIALOG_H 00021 00022 #include "basicGtkWindow.h" 00023 00024 #include <gtk--.h> 00025 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Class : BasicGtkDialog 00029 // Description : This looks like a wrapper around Gtk::Dialog. 00030 // Actually, it doesn't inherit from Gtk::Dialog at all, 00031 // but instead (indirectly) from Gtk::Window; it just 00032 // duplicates the default functionality of Gtk::Dialog 00033 // by defining get_vbox() and a get_action_area(). 00034 //////////////////////////////////////////////////////////////////// 00035 class BasicGtkDialog : public BasicGtkWindow { 00036 public: 00037 BasicGtkDialog(bool free_store = true); 00038 00039 Gtk::VBox *get_vbox() const; 00040 Gtk::HBox *get_action_area() const; 00041 00042 private: 00043 Gtk::VBox *_vbox; 00044 Gtk::HBox *_action_area; 00045 }; 00046 00047 00048 #endif