Functions

xap_GtkComboBoxHelpers.h File Reference

#include "ut_compiler.h"
#include <gtk/gtk.h>
#include "ut_vector.h"
#include <string>

Go to the source code of this file.

Functions

ABI_W_NO_CONST_QUAL ABI_W_POP void XAP_makeGtkComboBoxText (GtkComboBox *combo, GType secondaryType)
void XAP_makeGtkComboBoxText2 (GtkComboBox *combo, GType secondaryType, GType tertiaryType)
void XAP_populateComboBoxWithIndex (GtkComboBox *combo, const UT_GenericVector< const char * > &vec)
void XAP_appendComboBoxText (GtkComboBox *combo, const char *text)
void XAP_appendComboBoxTextAndInt (GtkComboBox *combo, const char *text, int value)
void XAP_appendComboBoxTextAndString (GtkComboBox *combo, const char *text, const char *value)
void XAP_appendComboBoxTextAndStringString (GtkComboBox *combo, const char *text, const char *value1, const char *value2)
void XAP_appendComboBoxTextAndIntString (GtkComboBox *combo, const char *text, int value1, const char *value2)
int XAP_comboBoxGetActiveInt (GtkComboBox *combo)
std::string XAP_comboBoxGetActiveText (GtkComboBox *combo)
bool XAP_comboBoxSetActiveFromIntCol (GtkComboBox *combo, int col, int value)
 set the active item based on a column value

Function Documentation

void XAP_appendComboBoxText ( GtkComboBox *  combo,
const char *  text 
)
void XAP_appendComboBoxTextAndInt ( GtkComboBox *  combo,
const char *  text,
int  value 
)
void XAP_appendComboBoxTextAndIntString ( GtkComboBox *  combo,
const char *  text,
int  value1,
const char *  value2 
)
void XAP_appendComboBoxTextAndString ( GtkComboBox *  combo,
const char *  text,
const char *  value 
)
void XAP_appendComboBoxTextAndStringString ( GtkComboBox *  combo,
const char *  text,
const char *  value1,
const char *  value2 
)
int XAP_comboBoxGetActiveInt ( GtkComboBox *  combo  ) 
std::string XAP_comboBoxGetActiveText ( GtkComboBox *  combo  ) 

Referenced by s_OnXMLIDChanged().

bool XAP_comboBoxSetActiveFromIntCol ( GtkComboBox *  combo,
int  col,
int  value 
)

set the active item based on a column value

Parameters:
combo the combobox
col the column
value the value to look for
Returns:
true if set, false if not found.

Referenced by AP_UnixDialog_PageSetup::_constructWindow(), AP_UnixDialog_FormatTOC::_fillGUI(), AP_UnixDialog_Paragraph::_populateWindowData(), AP_UnixDialog_Paragraph::_syncControls(), AP_UnixDialog_PageSetup::event_PageSizeChanged(), and AP_UnixDialog_FormatFootnotes::refreshVals().

ABI_W_NO_CONST_QUAL ABI_W_POP void XAP_makeGtkComboBoxText ( GtkComboBox *  combo,
GType  secondaryType 
)
void XAP_makeGtkComboBoxText2 ( GtkComboBox *  combo,
GType  secondaryType,
GType  tertiaryType 
)
void XAP_populateComboBoxWithIndex ( GtkComboBox *  combo,
const UT_GenericVector< const char * > &  vec 
)