#include <gtk/gtk.h>
#include "vapiTypes.h"
Diagrama de dependências de inclusão para vapiGtkTable.h:
Este grafo mostra quais são os ficheiros que incluem directamente ou indirectamente este ficheiro:
Ir para o código fonte deste ficheiro.
Funções | |
int | vapiGtkComboBoxGetActiveRow (GtkWidget *ComboBox) |
void | vapiGtkComboBoxSetActive (GtkWidget *ComboBox, int row) |
int | vapiGtkTableGetSelectedRow (GtkWidget *Table) |
void | vapiGtkTableGetValueFromSelection (GtkWidget *Table, GValue *gvalue, int Column) |
vBoolean | vapiGtkTableSelectRow (GtkWidget *Table, int row) |
vBoolean | vapiGtkTreeModelSelectRow (GtkTreeModel *treeModel, GtkTreeIter *iter, int row) |
int vapiGtkComboBoxGetActiveRow | ( | GtkWidget * | ComboBox | ) |
Definido na linha 98 do ficheiro vapiGtkTable.c.
Referenciado por vapiGtkMacroSelect().
00099 { 00100 GtkTreeIter iter; 00101 GtkTreePath *path; 00102 gint *itemNum; 00103 GtkTreeModel *treeModel; 00104 00105 path = gtk_tree_path_new (); 00106 treeModel = gtk_combo_box_get_model ((GtkComboBox *) ComboBox); 00107 if (!gtk_combo_box_get_active_iter ((GtkComboBox *) ComboBox, &iter)) 00108 { 00109 return -1; 00110 } 00111 00112 path = gtk_tree_model_get_path (treeModel, &iter); 00113 00114 itemNum = gtk_tree_path_get_indices (path); 00115 00116 return itemNum[0]; 00117 }
Here is the caller graph for this function:
void vapiGtkComboBoxSetActive | ( | GtkWidget * | ComboBox, | |
int | row | |||
) |
Definido na linha 22 do ficheiro vapiGtkTable.c.
Referências vapiGtkTreeModelSelectRow().
Referenciado por vapiGtkMacroCreate().
00023 { 00024 GtkTreeModel *treeModel; 00025 GtkTreeIter iter; 00026 treeModel = gtk_combo_box_get_model ((GtkComboBox *) ComboBox); 00027 vapiGtkTreeModelSelectRow (treeModel, &iter, row); 00028 00029 gtk_combo_box_set_active_iter ((GtkComboBox *) ComboBox, &iter); 00030 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
int vapiGtkTableGetSelectedRow | ( | GtkWidget * | Table | ) |
Definido na linha 54 do ficheiro vapiGtkTable.c.
Referências v_error().
Referenciado por vapiGtkMacroTableGetSelected() e vapiGtkWindowIOConfiguredGetActiveTable().
00055 { 00056 GtkTreeIter iter; 00057 GtkTreeModel *model; 00058 GtkTreePath *path; 00059 gint *itemNum; 00060 GtkTreeSelection *selection; 00061 00062 path = gtk_tree_path_new (); 00063 selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (Table)); 00064 if (gtk_tree_selection_get_selected (selection, &model, &iter)) 00065 { 00066 path = gtk_tree_model_get_path (model, &iter); 00067 itemNum = gtk_tree_path_get_indices (path); 00068 return itemNum[0]; 00069 } 00070 else 00071 { 00072 v_error ("Nenhuma linha seleccionada"); 00073 return -1; 00074 } 00075 00076 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
void vapiGtkTableGetValueFromSelection | ( | GtkWidget * | Table, | |
GValue * | gvalue, | |||
int | Column | |||
) |
Definido na linha 79 do ficheiro vapiGtkTable.c.
Referenciado por vapiGtkSelectOperationSelectToUse(), vapiGtkWindowIOAddSelectIO(), vapiGtkWindowIOConfiguredRemove(), vapiGtkWindowIOConfiguredSaveChanges() e vapiGtkWindowIOConfiguredSelect().
00081 { 00082 GtkTreeModel *treeModel; 00083 GtkTreeIter iter; 00084 GtkTreeSelection *treeSelection; 00085 /* 00086 *GValue gvalue = { 00087 * 0, 00088 *}; 00089 */ 00090 00091 treeSelection = gtk_tree_view_get_selection ((GtkTreeView *) Table); 00092 gtk_tree_selection_get_selected (treeSelection, &treeModel, &iter); 00093 00094 gtk_tree_model_get_value (treeModel, &iter, Column, gvalue); 00095 }
Here is the caller graph for this function:
vBoolean vapiGtkTableSelectRow | ( | GtkWidget * | Table, | |
int | row | |||
) |
Definido na linha 6 do ficheiro vapiGtkTable.c.
Referências vapiGtkTreeModelSelectRow(), vFALSE e vTRUE.
Referenciado por vapiGtkMacroTableSelectRow().
00007 { 00008 GtkTreeModel *treeModel; 00009 GtkTreeSelection *treeSelection; 00010 GtkTreeIter iter; 00011 treeModel = gtk_tree_view_get_model ((GtkTreeView *) Table); 00012 if (vapiGtkTreeModelSelectRow (treeModel, &iter, row)) 00013 { 00014 return vTRUE; 00015 } 00016 treeSelection = gtk_tree_view_get_selection ((GtkTreeView *) Table); 00017 gtk_tree_selection_select_iter (treeSelection, &iter); 00018 return vFALSE; 00019 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
vBoolean vapiGtkTreeModelSelectRow | ( | GtkTreeModel * | treeModel, | |
GtkTreeIter * | iter, | |||
int | row | |||
) |
Definido na linha 33 do ficheiro vapiGtkTable.c.
Referenciado por vapiGtkComboBoxSetActive() e vapiGtkTableSelectRow().
00035 { 00036 int i; 00037 00038 gtk_tree_model_get_iter_first ((GtkTreeModel *) treeModel, iter); 00039 00040 if (row > 0) 00041 { 00042 for (i = 0; i < row; i++) 00043 { 00044 if (!gtk_tree_model_iter_next (treeModel, iter)) 00045 { 00046 return vTRUE; 00047 } 00048 } 00049 } 00050 return vFALSE; 00051 }
Here is the caller graph for this function: