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

ui-items-derived.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2000-2002 The libgnomeuimm development team
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the Free
00016  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017  *
00018  */
00019 
00020 
00021 #ifndef LIBGNOMEUIMM_UI_ITEMS_DERIVED_H
00022 #define LIBGNOMEUIMM_UI_ITEMS_DERIVED_H
00023 
00024 #include <libgnomeuimm/app-helper.h>
00025 
00026 namespace Gnome
00027 {
00028 
00029 namespace UI
00030 {
00031 
00032 namespace Items
00033 {
00034 
00035 class Separator : public Info
00036 {
00037 public:
00038   Separator();
00039   ~Separator();
00040   operator Gtk::Menu_Helpers::Element();
00041 };
00042 
00043 
00045 class Item : public Info
00046 {
00047 protected:
00048   Item();
00049 public:
00050   Item(const Icon& icon, const Glib::ustring& label,
00051        const Callback& cb, const Glib::ustring& tip = Glib::ustring());
00052     
00053   Item(const Icon& icon, const Glib::ustring& label,
00054        const CallbackWithWidget& cb = CallbackWithWidget(), const Glib::ustring& tip = Glib::ustring());
00055     
00056   Item(const Glib::ustring& label, const Callback& cb, const Glib::ustring& tip = Glib::ustring());
00057     
00058   Item(const Glib::ustring& label, const CallbackWithWidget& cb = CallbackWithWidget(), const Glib::ustring& tip = Glib::ustring());
00059   ~Item();
00060 };
00061 
00063 class ToggleItem : public Info
00064 {
00065 public:
00066   ToggleItem(const Icon& icon, const Glib::ustring& label,
00067              const Callback& cb = Callback(), const Glib::ustring& tip = Glib::ustring());
00068   ToggleItem(const Icon& icon, const Glib::ustring& label,
00069              const CallbackWithWidget& cb = CallbackWithWidget(), const Glib::ustring& tip = Glib::ustring());
00070   ToggleItem(const Glib::ustring& label, const Callback& cb = Callback(),
00071              const Glib::ustring& tip = Glib::ustring());
00072   ~ToggleItem();
00073 };
00074 
00078 class Help : public Info
00079 {
00080 public:
00081   Help(const Glib::ustring& app_name);
00082   ~Help();
00083 };
00084 
00085 
00086 // this tree can only hold Items.
00087 class RadioTree : public Info
00088 {
00089 public:
00090   RadioTree(const Array<Info>& array);
00091   ~RadioTree();
00092 private:
00093   static GnomeUIBuilderData build_data_;
00094 };
00095 
00096 } // namespace Items
00097 } // namespace UI
00098 } // namespace Gnome
00099 
00100 #endif //LIBGNOMEUIMM_UI_ITEMS_DERIVED_H

Generated on Sun Sep 11 19:04:58 2005 for libgnomeuimm by  doxygen 1.4.4