Reference Manual

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

# radiobutton.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_RADIO_BUTTON_H
    00027 #define INTI_GTK_RADIO_BUTTON_H
    00028
    00029 #ifndef INTI_GTK_CHECK_BUTTON_H
    00030 #include <inti/gtk/checkbutton.h>
    00031 #endif
    00032
    00033 #ifndef __GTK_RADIO_BUTTON_H__
    00034 #include <gtk/gtkradiobutton.h>
    00035 #endif
    00036
    00037 namespace Inti {
    00038
    00039 namespace Gtk {
    00040
    00041 class RadioButtonClass;
    00042
    00145
    00146 class RadioButton : public CheckButton
    00147 {
    00148         friend class G::Object;
    00149         friend class RadioButtonClass;
    00150
    00151         RadioButton(const RadioButton&);
    00152         RadioButton& operator=(const RadioButton&);
    00153
    00154 protected:
    00157
    00158         explicit RadioButton(GtkRadioButton *radio_button, bool reference = false);
    00165
    00167 //  Properties
    00168
    00169         typedef G::Property<RadioButton*, G::Object*> GroupPropertyType;
    00170         typedef G::PropertyProxy<G::Object, GroupPropertyType> GroupPropertyProxy;
    00171         static const GroupPropertyType group_property;
    00172
    00173 public:
    00174         typedef GSList Group;
    00176
    00179
    00180         RadioButton();
    00183
    00184         explicit RadioButton(Group *group);
    00189
    00190         explicit RadioButton(const RadioButton *group);
    00195
    00196         RadioButton(const String& label, bool use_underline = false);
    00200
    00201         RadioButton(Group *group, const String& label, bool use_underline = false);
    00206
    00207         RadioButton(const RadioButton *group, const String& label, bool use_underline = false);
    00212
    00213         virtual ~RadioButton();
    00215
    00219
    00220         GtkRadioButton* gtk_radio_button() const { return (GtkRadioButton*)instance; }
    00222
    00223         GtkRadioButtonClass* gtk_radio_button_class() const;
    00225
    00226         operator GtkRadioButton* () const;
    00228
    00229         Group* get_group() const;
    00232
    00236
    00237         void set_group(Group *group);
    00244
    00248
    00249         const GroupPropertyProxy prop_group()
    00250         {
    00251                 return GroupPropertyProxy(this, &group_property);
    00252         }
    00254
    00256 };
    00257
    00258 } // namespace Gtk
    00259
    00260 } // namespace Inti
    00261
    00262 #endif // INTI_GTK_RADIO_BUTTON_H
    00263

Main Page - Footer