• 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 "ut_compiler.h"
00024 ABI_W_NO_CONST_QUAL
00025 #include <gtk/gtk.h>
00026 ABI_W_POP
00027 
00028 #include "ut_vector.h"
00029 #include <string>
00030 
00031 void XAP_makeGtkComboBoxText(GtkComboBox * combo, GType secondaryType);
00032 void XAP_makeGtkComboBoxText2(GtkComboBox * combo, GType secondaryType,
00033                               GType tertiaryType);
00034 void XAP_populateComboBoxWithIndex(GtkComboBox * combo,
00035                                    const UT_GenericVector<const char*> & vec);
00036 
00037 void XAP_appendComboBoxText(GtkComboBox* combo, const char* text);
00038 void XAP_appendComboBoxTextAndInt(GtkComboBox * combo, const char * text, int value);
00039 void XAP_appendComboBoxTextAndString(GtkComboBox * combo, const char * text,
00040                                      const char * value);
00041 void XAP_appendComboBoxTextAndStringString(GtkComboBox * combo,
00042                                            const char * text,
00043                                            const char * value1,
00044                                            const char * value2);
00045 void XAP_appendComboBoxTextAndIntString(GtkComboBox * combo,
00046                                            const char * text,
00047                                            int value1,
00048                                            const char * value2);
00049 int  XAP_comboBoxGetActiveInt(GtkComboBox * combo);
00050 std::string XAP_comboBoxGetActiveText(GtkComboBox * combo);
00051 
00052 
00053 
00060 bool XAP_comboBoxSetActiveFromIntCol(GtkComboBox * combo,
00061                                      int col, int value);
00062 
00063 #endif

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1