• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_GtkComboBoxHelpers.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2009,2012 Hubert Figuiere
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (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 General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 #ifndef __XAP_GTKCOMBOBOXHELPERS_H__
00021 #define __XAP_GTKCOMBOBOXHELPERS_H__
00022 
00023 #include <gtk/gtk.h>
00024 
00025 #include "ut_vector.h"
00026 #include <string>
00027 
00028 void XAP_makeGtkComboBoxText(GtkComboBox * combo, GType secondaryType);
00029 void XAP_makeGtkComboBoxText2(GtkComboBox * combo, GType secondaryType,
00030                               GType tertiaryType);
00031 void XAP_populateComboBoxWithIndex(GtkComboBox * combo,
00032                                    const UT_GenericVector<const char*> & vec);
00033 
00034 void XAP_appendComboBoxText(GtkComboBox* combo, const char* text);
00035 void XAP_appendComboBoxTextAndInt(GtkComboBox * combo, const char * text, int value);
00036 void XAP_appendComboBoxTextAndString(GtkComboBox * combo, const char * text,
00037                                      const char * value);
00038 void XAP_appendComboBoxTextAndStringString(GtkComboBox * combo,
00039                                            const char * text,
00040                                            const char * value1,
00041                                            const char * value2);
00042 void XAP_appendComboBoxTextAndIntString(GtkComboBox * combo,
00043                                            const char * text,
00044                                            int value1,
00045                                            const char * value2);
00046 int  XAP_comboBoxGetActiveInt(GtkComboBox * combo);
00047 std::string XAP_comboBoxGetActiveText(GtkComboBox * combo);
00048 
00049 
00050 
00057 bool XAP_comboBoxSetActiveFromIntCol(GtkComboBox * combo,
00058                                      int col, int value);
00059 
00060 #endif

Generated on Tue May 21 2013 for AbiWord by  doxygen 1.7.1