1 // $Id: container.hh,v 1.21 2002/05/31 07:12:10 christof Exp $ 2 /* glade--: C++ frontend for glade (Gtk+ User Interface Builder) 3 * Copyright (C) 1999 Adolf Petig GmbH & Co. KG, written by Christof Petig 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 */ 19 20 #ifndef CONTAINER_HH 21 #define CONTAINER_HH 22 #include "widget.hh" 23 24 class Gtk_Container : public Gtk_Widget 25 { 26 protected: 27 // this lives within menu.cc 28 virtual void PushMenuElem(const Widget &w,CxxFile &f,const std::string &instance) const; 29 public: 30 typedef Gtk_Widget Parent; DefaultSeparateClass(const Widget & w) const31 virtual bool DefaultSeparateClass(const Widget &w) const 32 { return true; } 33 virtual void AddChild(const Widget &w,CxxFile &f,const std::string &instance) const; 34 virtual void AddChildren(const Widget &w,CxxFile &f,const std::string &instance,const WriterBase &writer_for_subw, const Widget &widget_for_subw) const; 35 // void ConfigureChildren(CxxFile &f,const Widget &w,const std::string &instance) const; 36 virtual void Configure(const Widget &w,CxxFile &f,const std::string &instance) const; 37 virtual void AdditionalMemberVars(const Widget &w, CxxFile &f,bool container=false) const; 38 virtual void GHInclude(const Widget &w,CxxFile &f) const; NeedExplicitCtor(const Widget & w) const39 virtual bool NeedExplicitCtor(const Widget &w) const 40 { return false; } ConstructionArgs(Widget const & w,CxxFile & f) const41 virtual void ConstructionArgs(Widget const &w, CxxFile &f) const 42 { f.FunctionArg(); } 43 }; 44 #endif 45