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 
26 namespace Gnome
27 {
28 
29 namespace UI
30 {
31 
32 namespace Items
33 {
34 
35 class Separator : public Info
36 {
37 public:
38  Separator();
39  ~Separator();
40  operator Gtk::Menu_Helpers::Element();
41 };
42 
43 
45 class Item : public Info
46 {
47 protected:
48  Item();
49 public:
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 
54  ~Item();
55 };
56 
58 class ToggleItem : public Info
59 {
60 public:
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());
65  ~ToggleItem();
66 };
67 
71 class Help : public Info
72 {
73 public:
74  Help(const Glib::ustring& app_name);
75  ~Help();
76 };
77 
78 
79 // this tree can only hold Items.
80 class RadioTree : public Info
81 {
82 public:
83  RadioTree(const Array<Info>& array);
84  ~RadioTree();
85 private:
86  static GnomeUIBuilderData build_data_;
87 };
88 
89 } // namespace Items
90 } // namespace UI
91 } // namespace Gnome
92 
93 #endif //LIBGNOMEUIMM_UI_ITEMS_DERIVED_H