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 #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