Classes | Functions

GTKCommon.cpp File Reference

#include "GTKCommon.h"
#include "ut_string.h"
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "ut_std_string.h"
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <sstream>
#include "ap_Frame.h"
#include "xap_App.h"
#include "xap_DialogFactory.h"
#include "xad_Document.h"
#include "pd_Document.h"
#include "ut_path.h"
#include "xap_Dialog_Id.h"

Classes

struct  FileTypeArray

Functions

std::string tostr (long v)
std::string tostr (GtkTextView *tv)
std::string tostr (GtkEntry *e)
std::string getSelectedText (GtkTreeView *tv, int colnum)
UT_uint32 getSelectedUInt (GtkTreeView *tv, int colnum)
void selectNext (GtkTreeView *tv)
GtkTreeIter getIterLast (GtkTreeView *tv)
void selectPrev (GtkTreeView *tv)
void append (GtkComboBoxText *combo, const std::list< std::string > &data)
std::string tostr (GtkComboBox *combo)
void setEntry (GtkWidget *w, const std::string &v)
void setEntry (GtkEntry *w, const std::string &v)
void setEntry (GtkEntry *w, time_t v)
void setEntry (GtkEntry *w, double v)
static void collect_cb_fe (GtkTreeModel *, GtkTreePath *, GtkTreeIter *iter, gpointer udata)
static gboolean collectall_cb_fe (GtkTreeModel *, GtkTreePath *, GtkTreeIter *iter, gpointer udata)
list_gtktreeiter_t getIterList (GtkWidget *w_treeview, bool useSelection)
 Get an STL list of all the selected GtkTreeIter* items in the view if useSelection is false then all of the GtkTreeIter* in the view are returned.
void clearSelection (GtkTreeView *tv)
void selectIter (GtkTreeView *tv, GtkTreeIter *iter)
void scrollToIter (GtkTreeView *tv, GtkTreeIter *iter, int colnum, gboolean start_editing)

Function Documentation

void append ( GtkComboBoxText *  combo,
const std::list< std::string > &  data 
)
void clearSelection ( GtkTreeView *  tv  ) 
static void collect_cb_fe ( GtkTreeModel *  ,
GtkTreePath *  ,
GtkTreeIter *  iter,
gpointer  udata 
) [static]

Referenced by getIterList().

static gboolean collectall_cb_fe ( GtkTreeModel *  ,
GtkTreePath *  ,
GtkTreeIter *  iter,
gpointer  udata 
) [static]

Referenced by getIterList().

GtkTreeIter getIterLast ( GtkTreeView *  tv  ) 

References UT_DEBUGMSG.

Referenced by selectPrev().

list_gtktreeiter_t getIterList ( GtkWidget *  w_treeview,
bool  useSelection 
)

Get an STL list of all the selected GtkTreeIter* items in the view if useSelection is false then all of the GtkTreeIter* in the view are returned.

References collect_cb_fe(), and collectall_cb_fe().

Referenced by AP_UnixDialog_RDFEditor::getSelection().

std::string getSelectedText ( GtkTreeView *  tv,
int  colnum 
)
UT_uint32 getSelectedUInt ( GtkTreeView *  tv,
int  colnum 
)
void scrollToIter ( GtkTreeView *  tv,
GtkTreeIter *  iter,
int  colnum,
gboolean  start_editing 
)
void selectIter ( GtkTreeView *  tv,
GtkTreeIter *  iter 
)
void selectNext ( GtkTreeView *  tv  ) 
void selectPrev ( GtkTreeView *  tv  ) 
void setEntry ( GtkEntry *  w,
time_t  v 
)

References toTimeString(), and UT_DEBUGMSG.

void setEntry ( GtkWidget *  w,
const std::string &  v 
)
void setEntry ( GtkEntry *  w,
double  v 
)

References tostr(), and UT_DEBUGMSG.

void setEntry ( GtkEntry *  w,
const std::string &  v 
)
std::string tostr ( GtkTextView *  tv  ) 

References d, and gchar.

std::string tostr ( GtkComboBox *  combo  ) 

References gchar, s, and UT_ASSERT.

std::string tostr ( long  v  ) 
std::string tostr ( GtkEntry *  e  )