Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __XAP_GTKCOMBOBOXHELPERS_H__
00024 #define __XAP_GTKCOMBOBOXHELPERS_H__
00025
00026 #include <gtk/gtk.h>
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 void XAP_appendComboBoxTextAndInt(GtkComboBox * combo, const char * text, int value);
00037 void XAP_appendComboBoxTextAndString(GtkComboBox * combo, const char * text,
00038 const char * value);
00039 void XAP_appendComboBoxTextAndStringString(GtkComboBox * combo,
00040 const char * text,
00041 const char * value1,
00042 const char * value2);
00043 void XAP_appendComboBoxTextAndIntString(GtkComboBox * combo,
00044 const char * text,
00045 int value1,
00046 const char * value2);
00047 int XAP_comboBoxGetActiveInt(GtkComboBox * combo);
00048 std::string XAP_comboBoxGetActiveText(GtkComboBox * combo);
00049
00050
00051
00058 bool XAP_comboBoxSetActiveFromIntCol(GtkComboBox * combo,
00059 int col, int value);
00060
00061 #endif