Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

main.h

Go to the documentation of this file.
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEMM_MAIN_H 00004 #define _LIBGNOMEMM_MAIN_H 00005 00006 #include <glibmm.h> 00007 00008 /* $Id: main.hg,v 1.6 2002/11/28 12:10:05 murrayc Exp $ */ 00009 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in 00010 00011 /* main.h 00012 * 00013 * Copyright (C) 1998 EMC Capital Management Inc. 00014 * Developed by Havoc Pennington <hp@pobox.com> 00015 * 00016 * Copyright (C) 1999 The Gtk-- Development Team 00017 * 00018 * This library is free software; you can redistribute it and/or 00019 * modify it under the terms of the GNU Library General Public 00020 * License as published by the Free Software Foundation; either 00021 * version 2 of the License, or (at your option) any later version. 00022 * 00023 * This library is distributed in the hope that it will be useful, 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00026 * Library General Public License for more details. 00027 * 00028 * You should have received a copy of the GNU Library General Public 00029 * License along with this library; if not, write to the Free 00030 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00031 */ 00032 00033 #include <libgnomemm/moduleinfo.h> 00034 #include <libgnomemm/program.h> 00035 #include <gtkmm/main.h> 00036 //#include <libgnome/libgnome.h> 00037 00038 00039 namespace Gnome 00040 { 00041 00042 class Main : public Gtk::Main 00043 { 00044 public: 00045 00046 /* app_version should be defined in your auto-generated config.h file. 00047 * The ModuleInfo should come from a call such as Gnome::ui_module_info_get() 00048 */ 00049 Main(const Glib::ustring& app_id, const Glib::ustring& app_version, 00050 const ModuleInfo& module_info, 00051 int argc, char** argv); 00052 00053 Main(const Glib::ustring& app_id, const Glib::ustring& app_version, 00054 const ModuleInfo& module_info, 00055 int argc, char **argv, 00056 const struct poptOption *options, int flags, poptContext *return_ctx); 00057 00058 ~Main(); 00059 00060 protected: 00061 Main(); 00062 void set_ids(const Glib::ustring& app_id,const Glib::ustring& app_version); 00063 00064 static char* app_id_; 00065 static char* app_version_; 00066 00067 Glib::RefPtr<Program> m_refProgram; 00068 }; 00069 00070 } /* namespace Gnome */ 00071 00072 00073 #endif /* _LIBGNOMEMM_MAIN_H */ 00074

Generated on Tue Jul 20 21:56:53 2004 for libgnomemm by doxygen 1.3.7