GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

toolitem.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2004 The GFC Development Team. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program 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 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00023 00024 #ifndef GFC_GTK_TOOL_ITEM_HH 00025 #define GFC_GTK_TOOL_ITEM_HH 00026 00027 #ifndef GFC_GTK_BIN_HH 00028 #include <gfc/gtk/bin.hh> 00029 #endif 00030 00031 #ifndef __GTK_TOOL_ITEM_H__ 00032 #include <gtk/gtktoolitem.h> 00033 #endif 00034 00035 namespace GFC { 00036 00037 namespace Gtk { 00038 00039 class Tooltips; 00040 00051 00052 class ToolItem : public Bin 00053 { 00054 friend class G::Object; 00055 00056 ToolItem(const ToolItem&); 00057 ToolItem& operator=(const ToolItem&); 00058 00059 protected: 00062 00063 explicit ToolItem(GtkToolItem *tool_item, bool owns_reference = false); 00069 00073 00074 typedef G::Signal<bool> CreateMenuProxySignalType; 00075 typedef G::SignalProxy<TypeInstance, CreateMenuProxySignalType> CreateMenuProxySignalProxy; 00076 static const CreateMenuProxySignalType create_menu_proxy_signal; 00082 00083 typedef G::Signal<void> ToolbarReconfiguredSignalType; 00084 typedef G::SignalProxy<TypeInstance, ToolbarReconfiguredSignalType> ToolbarReconfiguredSignalProxy; 00085 static const ToolbarReconfiguredSignalType toolbar_reconfigured_signal; 00090 00091 typedef G::Signal<bool, Tooltips&, const String&, const String&> SetTooltipSignalType; 00092 typedef G::SignalProxy<TypeInstance, SetTooltipSignalType> SetTooltipSignalProxy; 00093 static const SetTooltipSignalType set_tooltip_signal; 00102 00104 00105 public: 00108 00109 ToolItem(); 00111 00112 explicit ToolItem(Widget& widget); 00115 00116 virtual ~ToolItem(); 00118 00122 00123 GtkToolItem* gtk_tool_item() const; 00125 00126 operator GtkToolItem* () const; 00128 00129 bool get_homogeneous() const; 00132 00133 bool get_expand() const; 00136 00137 bool get_use_drag_window() const; 00140 00141 bool get_visible_horizontal() const; 00144 00145 bool get_visible_vertical() const; 00149 00150 bool get_is_important() const; 00153 00154 IconSize get_icon_size() const; 00160 00161 Orientation get_orientation() const; 00167 00168 ToolbarStyle get_toolbar_style() const; 00179 00180 ReliefStyle get_relief_style() const; 00186 00187 Widget* get_proxy_menu_item(const char *menu_item_id) const; 00188 Widget* get_proxy_menu_item(const String& menu_item_id) const; 00198 00199 Widget* retrieve_proxy_menu_item() const; 00203 00207 00208 void set_homogeneous(bool homogeneous); 00213 00214 void set_expand(bool expand); 00221 00222 void set_tooltip(Tooltips& tooltips, const char *tip_text, const char *tip_private = 0); 00223 void set_tooltip(Tooltips& tooltips, const String& tip_text, const String& tip_private = 0); 00229 00230 void set_use_drag_window(bool use_drag_window); 00238 00239 void set_visible_horizontal(bool visible_horizontal); 00242 00243 void set_visible_vertical(bool visible_vertical); 00250 00251 void set_is_important(bool is_important); 00259 00260 void set_proxy_menu_item(const char *menu_item_id, Widget *menu_item); 00261 void set_proxy_menu_item(const String& menu_item_id, Widget *menu_item); 00270 00274 00275 const CreateMenuProxySignalProxy sig_create_menu_proxy(); 00282 00283 const ToolbarReconfiguredSignalProxy sig_toolbar_reconfigured(); 00289 00290 const SetTooltipSignalProxy sig_set_tooltip(); 00292 00294 }; 00295 00296 } // namespace Gtk 00297 00298 } // namespace GFC 00299 00300 #include <gfc/gtk/inline/toolitem.inl> 00301 00302 #endif // GFC_GTK_TOOL_ITEM_HH 00303

Generated on Tue Aug 24 00:34:32 2004 for GFC-UI by doxygen 1.3.8