libgnomeuimm 2.28.0
ui-items-derived.h
Go to the documentation of this file.
1/*
2 * Copyright 2000-2002 The libgnomeuimm development team
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 *
18 */
19
20
21#ifndef LIBGNOMEUIMM_UI_ITEMS_DERIVED_H
22#define LIBGNOMEUIMM_UI_ITEMS_DERIVED_H
23
25
26namespace Gnome
27{
28
29namespace UI
30{
31
32namespace Items
33{
34
35class Separator : public Info
36{
37public:
40 operator Gtk::Menu_Helpers::Element();
41};
42
43
45class Item : public Info
46{
47protected:
49public:
50 Item(const Icon& icon, const Glib::ustring& label,
51 const Callback& cb = Callback(), const Glib::ustring& tip = Glib::ustring());
52 Item(const Glib::ustring& label, const Callback& cb = Callback(), const Glib::ustring& tip = Glib::ustring());
53
55};
56
58class ToggleItem : public Info
59{
60public:
61 ToggleItem(const Icon& icon, const Glib::ustring& label,
62 const Callback& cb = Callback(), const Glib::ustring& tip = Glib::ustring());
63 ToggleItem(const Glib::ustring& label, const Callback& cb = Callback(),
64 const Glib::ustring& tip = Glib::ustring());
66};
67
71class Help : public Info
72{
73public:
74 Help(const Glib::ustring& app_name);
76};
77
78
79// this tree can only hold Items.
80class RadioTree : public Info
81{
82public:
83 RadioTree(const Array<Info>& array);
85private:
86 static GnomeUIBuilderData build_data_;
87};
88
89} // namespace Items
90} // namespace UI
91} // namespace Gnome
92
93#endif //LIBGNOMEUIMM_UI_ITEMS_DERIVED_H
Definition: app-helper.h:190
Loads <prefix>/share/gnome/help/<app_name>/<locale>/topic.dat and creates menu items for each section...
Definition: ui-items-derived.h:72
Help(const Glib::ustring &app_name)
Icons represent a standard Pixmap with various states.
Definition: ui-items-icon.h:39
Definition: app-helper.h:57
sigc::slot< void > Callback
Definition: app-helper.h:94
Represents menu items and toolbar items.
Definition: ui-items-derived.h:46
Item(const Icon &icon, const Glib::ustring &label, const Callback &cb=Callback(), const Glib::ustring &tip=Glib::ustring())
Item(const Glib::ustring &label, const Callback &cb=Callback(), const Glib::ustring &tip=Glib::ustring())
Definition: ui-items-derived.h:81
RadioTree(const Array< Info > &array)
Definition: ui-items-derived.h:36
Represents toggle items and toggle buttons.
Definition: ui-items-derived.h:59
ToggleItem(const Glib::ustring &label, const Callback &cb=Callback(), const Glib::ustring &tip=Glib::ustring())
ToggleItem(const Icon &icon, const Glib::ustring &label, const Callback &cb=Callback(), const Glib::ustring &tip=Glib::ustring())
Definition: about.h:46