Main Page - Header
Author: The Inti Development Team

Reference Manual

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

# combo.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
    00021
    00022 #ifndef INTI_GTK_COMBO_H
    00023 #define INTI_GTK_COMBO_H
    00024
    00025 #ifndef INTI_GTK_HBOX_H
    00026 #include <inti/gtk/box.h>
    00027 #endif
    00028
    00029 #ifndef __GTK_SMART_COMBO_H__
    00030 #include <gtk/gtkcombo.h>
    00031 #endif
    00032
    00033 namespace Inti {
    00034
    00035 namespace Gtk {
    00036
    00037 class Button;
    00038 class ComboClass;
    00039 class Entry;
    00040 class Item;
    00041 class ScrolledWindow;
    00042 class Window;
    00043
    00079
    00080 class Combo : public HBox
    00081 {
    00082         friend class G::Object;
    00083         friend class ComboClass;
    00084
    00085         Combo(const Combo&);
    00086         Combo& operator=(const Combo&);
    00087
    00088 protected:
    00091
    00092         explicit Combo(GtkCombo *combo, bool reference = false);
    00099
    00101 //  Properties
    00102
    00103         typedef G::Property<bool> EnableArrowKeysPropertyType;
    00104         typedef G::PropertyProxy<G::Object, EnableArrowKeysPropertyType> EnableArrowKeysPropertyProxy;
    00105         static const EnableArrowKeysPropertyType enable_arrow_keys_property;
    00106
    00107         typedef G::Property<bool> EnableArrowsAlwaysPropertyType;
    00108         typedef G::PropertyProxy<G::Object, EnableArrowsAlwaysPropertyType> EnableArrowsAlwaysPropertyProxy;
    00109         static const EnableArrowsAlwaysPropertyType enable_arrows_always_property;
    00110
    00111         typedef G::Property<bool> CaseSensitivePropertyType;
    00112         typedef G::PropertyProxy<G::Object, CaseSensitivePropertyType> CaseSensitivePropertyProxy;
    00113         static const CaseSensitivePropertyType case_sensitive_property;
    00114
    00115         typedef G::Property<bool> AllowEmptyPropertyType;
    00116         typedef G::PropertyProxy<G::Object, AllowEmptyPropertyType> AllowEmptyPropertyProxy;
    00117         static const AllowEmptyPropertyType allow_empty_property;
    00118
    00119         typedef G::Property<bool> ValueInListPropertyType;
    00120         typedef G::PropertyProxy<G::Object, ValueInListPropertyType> ValueInListPropertyProxy;
    00121         static const ValueInListPropertyType value_in_list_property;
    00122
    00123 public:
    00126
    00127         Combo();
    00129
    00130         virtual ~Combo();
    00132
    00136
    00137         GtkCombo* gtk_combo() const { return (GtkCombo*)instance; }
    00139
    00140         GtkComboClass* gtk_combo_class() const;
    00142
    00143         operator GtkCombo* () const;
    00145
    00146         Entry* entry() const;
    00148
    00149         Widget* list() const;
    00152
    00156
    00157         void set_value_in_list(bool value_in_list, bool ok_if_empty);
    00166
    00167         void set_use_arrows(bool use_arrows);
    00171
    00172         void set_use_arrows_always(bool use_arrows_always);
    00176
    00177         void set_case_sensitive(bool case_sensitive);
    00184
    00185         void set_item_string(Item& item, const String& item_value);
    00192
    00193         void set_popdown_strings(const std::vector<String>& strings);
    00196
    00197         void disable_activate();
    00201
    00205
    00206         const EnableArrowKeysPropertyProxy prop_enable_arrow_keys()
    00207         {
    00208                 return EnableArrowKeysPropertyProxy(this, &enable_arrow_keys_property);
    00209         }
    00211
    00212         const EnableArrowsAlwaysPropertyProxy prop_enable_arrows_always()
    00213         {
    00214                 return EnableArrowsAlwaysPropertyProxy(this, &enable_arrows_always_property);
    00215         }
    00217
    00218         const CaseSensitivePropertyProxy prop_case_sensitive()
    00219         {
    00220                 return CaseSensitivePropertyProxy(this, &case_sensitive_property);
    00221         }
    00223
    00224         const AllowEmptyPropertyProxy prop_allow_empty()
    00225         {
    00226                 return AllowEmptyPropertyProxy(this, &allow_empty_property);
    00227         }
    00229
    00230         const ValueInListPropertyProxy prop_value_in_list()
    00231         {
    00232                 return ValueInListPropertyProxy(this, &value_in_list_property);
    00233         }
    00235
    00237 };
    00238
    00239 } // namespace Gtk
    00240
    00241 } // namespace Inti
    00242
    00243 #endif // INTI_GTK_COMBO_H
    00244
    00245

Main Page - Footer