/* * go-action-combo-text.h: A custom GOActionCombo to handle lists of text * * Copyright (C) 2003-2005 Jody Goldberg (jody@gnome.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ #ifndef _GO_ACTION_COMBO_TEXT_H_ #define _GO_ACTION_COMBO_TEXT_H_ #include G_BEGIN_DECLS #define GO_TYPE_ACTION_COMBO_TEXT (go_action_combo_text_get_type ()) #define GO_ACTION_COMBO_TEXT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_ACTION_COMBO_TEXT, GOActionComboText)) #define GO_IS_ACTION_COMBO_TEXT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_ACTION_COMBO_TEXT)) typedef struct _GOActionComboText GOActionComboText; typedef enum { /* begin the search from : */ GO_ACTION_COMBO_SEARCH_FROM_TOP, /* the top of the list */ GO_ACTION_COMBO_SEARCH_CURRENT, /* the current selection */ GO_ACTION_COMBO_SEARCH_NEXT /* the next element after current */ } GOActionComboTextSearchDir; GType go_action_combo_text_get_type (void); void go_action_combo_text_add_item (GOActionComboText *a, char const *item); void go_action_combo_text_set_width (GOActionComboText *a, char const *largest_elem); char const *go_action_combo_text_get_entry (GOActionComboText const *a); void go_action_combo_text_set_entry (GOActionComboText *taction, char const *text, GOActionComboTextSearchDir dir); G_END_DECLS #endif /* _GO_ACTION_COMBO_TEXT_H_ */