Reference Manual

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

# accellabel.h

Go to the documentation of this file.

    00001 /*  Inti: Integrated Foundation Classes
    00002  *  Copyright (C) 2002 The Inti 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
    00025
    00026 #ifndef INTI_GTK_ACCEL_LABEL_H
    00027 #define INTI_GTK_ACCEL_LABEL_H
    00028
    00029 #ifndef INTI_GTK_LABEL_H
    00030 #include <inti/gtk/label.h>
    00031 #endif
    00032
    00033 #ifndef __GTK_ACCEL_LABEL_H__
    00034 #include <gtk/gtkaccellabel.h>
    00035 #endif
    00036
    00037 namespace Inti {
    00038
    00039 namespace Gtk {
    00040
    00041 class AccelLabelClass;
    00042
    00077
    00078 class AccelLabel : public Label
    00079 {
    00080         friend class G::Object;
    00081         friend class AccelLabelClass;
    00082
    00083         AccelLabel(const AccelLabel&);
    00084         AccelLabel& operator=(const AccelLabel&);
    00085
    00086 protected:
    00089
    00090         explicit AccelLabel(GtkAccelLabel *accel_label, bool reference = false);
    00097
    00099 //  Properties
    00100
    00101         typedef G::Property<GClosure*, void*> AccelClosurePropertyType;
    00102         typedef G::PropertyProxy<G::Object, AccelClosurePropertyType> AccelClosurePropertyProxy;
    00103         static const AccelClosurePropertyType accel_closure_property;
    00104
    00105         typedef G::Property<Widget*, G::Object*> AccelWidgetPropertyType;
    00106         typedef G::PropertyProxy<G::Object, AccelWidgetPropertyType> AccelWidgetPropertyProxy;
    00107         static const AccelWidgetPropertyType accel_widget_property;
    00108
    00109 public:
    00112
    00113         AccelLabel();
    00115
    00116         explicit AccelLabel(const String& str, bool use_underline = false);
    00120
    00121         virtual ~AccelLabel();
    00123
    00127
    00128         GtkAccelLabel* gtk_accel_label() const { return (GtkAccelLabel*)instance; }
    00130
    00131         GtkAccelLabelClass* gtk_accel_label_class() const;
    00133
    00134         operator GtkAccelLabel* () const;
    00136
    00137         Widget* get_accel_widget() const;
    00140
    00141         unsigned int get_accel_width() const;
    00147
    00151
    00152         void set_accel_widget(Widget& accel_widget);
    00155
    00156         void set_accel_closure(GClosure *accel_closure);
    00161
    00162         bool refetch();
    00168
    00172
    00173         const AccelClosurePropertyProxy prop_accel_closure()
    00174         {
    00175                 return AccelClosurePropertyProxy(this, &accel_closure_property);
    00176         }
    00178
    00179         const AccelWidgetPropertyProxy prop_accel_widget()
    00180         {
    00181                 return AccelWidgetPropertyProxy(this, &accel_widget_property);
    00182         }
    00184
    00186 };
    00187
    00188 } // namespace Gtk
    00189
    00190 } // namespace Inti
    00191
    00192 #endif // INTI_GTK_ACCEL_LABEL_H
    00193

Main Page - Footer