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