Referência ao ficheiro src/interface/vapiGtkWindowSelectOperation.h

#include "vapiGtkInterface.h"
#include "vapiGroups.h"

Diagrama de dependências de inclusão para vapiGtkWindowSelectOperation.h:

Este grafo mostra quais são os ficheiros que incluem directamente ou indirectamente este ficheiro:

Ir para o código fonte deste ficheiro.

Estruturas de Dados

struct  _vapiGtkWindowSelectGroupStruct

Definições de tipos

typedef _vapiGtkWindowSelectGroupStruct vapiGtkWindowSelectGroupStruct

Funções

void vapiGtkSelectOperationPopulateGroup (const char *GroupName, vapiGtkWindowSelectGroupStruct *GroupStruct)
void vapiGtkSelectOperationSelect (GtkTreeSelection *selection, vapiGtkWindowSelectGroupStruct *GroupStruct)
void vapiGtkSelectOperationSelectGroup (GtkWidget *button, vapiGtkWindowSelectGroupStruct *GroupStruct)
void vapiGtkSelectOperationSelectToUse (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, vapiGtkWindowSelectGroupStruct *GroupStruct)
void vapiGtkSelectOperationSelectToUseFromButton (GtkWidget *button, vapiGtkWindowSelectGroupStruct *GroupStruct)
void vapiGtkSelectOperationStartWindow (vGroupList *GroupList, vapiGtkWindowSelectGroupStruct *GroupStruct, GtkWidget *vBoxOperationGroups)


Documentação dos tipos

typedef struct _vapiGtkWindowSelectGroupStruct vapiGtkWindowSelectGroupStruct


Documentação das funções

void vapiGtkSelectOperationPopulateGroup ( const char *  GroupName,
vapiGtkWindowSelectGroupStruct GroupStruct 
)

Definido na linha 124 do ficheiro vapiGtkWindowSelectOperation.c.

Referências _vEffect::briefDescription, _vEffect::Group, _vEffect::name, OperationList, _vapiGtkWindowSelectGroupStruct::OperationList, vapiOperationListCountElements() e vapiOperationListSelectItem().

Referenciado por vapiGtkSelectOperationSelectGroup() e vapiGtkSelectOperationStartWindow().

00127 {
00128         int i, NumberOfOperations;
00129         GtkTreeStore *treeStore;
00130         GtkTreeIter iter;
00131         GtkTextBuffer *MessagesBuffer;
00132         vEffect *Operation;
00133         treeStore = gtk_tree_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
00134         NumberOfOperations =
00135                 vapiOperationListCountElements (GroupStruct->OperationList);
00136         if (NumberOfOperations == 0)
00137         {
00138                 return;
00139         }
00140 
00141         for (i = 0; i < NumberOfOperations; i++)
00142         {
00143                 Operation =
00144                         vapiOperationListSelectItem (GroupStruct->
00145                                                      OperationList, i);
00146                 if (!strcmp (Operation->Group, GroupName)
00147                     || !strcmp ("Todas", GroupName))
00148                 {
00149                         gtk_tree_store_append (treeStore, &iter, NULL);
00150                         gtk_tree_store_set (treeStore, &iter, 0,
00151                                             Operation->name, 1,
00152                                             Operation->briefDescription, -1);
00153                 }
00154         }
00155 
00156         gtk_tree_view_set_model ((GtkTreeView *) GroupStruct->
00157                                  OperationTreeView,
00158                                  GTK_TREE_MODEL (treeStore));
00159         gtk_tree_view_columns_autosize ((GtkTreeView *) GroupStruct->
00160                                         OperationTreeView);
00161         g_object_unref (treeStore);
00162 
00163         /*
00164          * Colocar a caixa da descrição vazia.
00165          */
00166         MessagesBuffer =
00167                 gtk_text_view_get_buffer ((GtkTextView *) GroupStruct->
00168                                           txtOperationDescription);
00169 
00170         gtk_text_buffer_set_text (MessagesBuffer, " ", -1);
00171 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

void vapiGtkSelectOperationSelect ( GtkTreeSelection *  selection,
vapiGtkWindowSelectGroupStruct GroupStruct 
)

Definido na linha 606 do ficheiro vapiGtkWindowSelectOperation.c.

Referências _vEffect::longDescription, OperationList, _vapiGtkWindowSelectGroupStruct::OperationTreeView, vapiGtkSelectOperationSelectGetOptions() e vapiOperationListSelectOperation().

Referenciado por vapiGtkSelectOperationStartOperationList().

00609 {
00610 
00611         vEffect *Operation;
00612         GtkTreeModel *treeModel;
00613         GtkTextBuffer *MessagesBuffer;
00614         GtkTreeIter iter;
00615         GValue gvalue = {
00616                 0,
00617         };
00618         char *OperationName;
00619         treeModel =
00620                 gtk_tree_view_get_model ((GtkTreeView *)
00621                                          GroupStruct->OperationTreeView);
00622         if (!gtk_tree_selection_get_selected (selection, &treeModel, &iter))
00623         {
00624                 return;
00625         }
00626         gtk_tree_model_get_value (treeModel, &iter, 0, &gvalue);
00627         OperationName = (char *) g_value_get_string (&gvalue);
00628         gtk_statusbar_push (GroupStruct->
00629                             stSelectOperation, 0,
00630                             g_strdup_printf
00631                             ("Seleccionada a Operação \"%s\" ",
00632                              OperationName));
00633         Operation =
00634                 vapiOperationListSelectOperation (GroupStruct->
00635                                                   OperationList,
00636                                                   OperationName);
00637         MessagesBuffer =
00638                 gtk_text_view_get_buffer ((GtkTextView *)
00639                                           GroupStruct->
00640                                           txtOperationDescription);
00641         gtk_text_buffer_set_text (MessagesBuffer,
00642                                   Operation->longDescription, -1);
00643         vapiGtkSelectOperationSelectGetOptions (Operation, GroupStruct);
00644 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

void vapiGtkSelectOperationSelectGroup ( GtkWidget *  button,
vapiGtkWindowSelectGroupStruct GroupStruct 
)

Definido na linha 103 do ficheiro vapiGtkWindowSelectOperation.c.

Referências _vapiGtkWindowSelectGroupStruct::GroupButtonList, _vapiGtkWindowSelectGroupStruct::GroupList, _vapiGtkWindowSelectGroupStruct::stSelectOperation, vapiGroupListSelectItem(), vapiGtkSelectGroupButton() e vapiGtkSelectOperationPopulateGroup().

Referenciado por vapiGtkSelectOperationStartWindow().

00106 {
00107         int group;
00108         group = vapiGtkSelectGroupButton (button,
00109                                           GroupStruct->GroupList,
00110                                           &GroupStruct->GroupButtonList);
00111         if (group == -1)
00112         {
00113                 return;
00114         }
00115 
00116         vapiGtkSelectOperationPopulateGroup (vapiGroupListSelectItem
00117                                              (GroupStruct->GroupList, group),
00118                                              GroupStruct);
00119         gtk_statusbar_push (GroupStruct->stSelectOperation, 0,
00120                             "Seleccione uma Operação");
00121 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

void vapiGtkSelectOperationSelectToUse ( GtkTreeView *  tree_view,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
vapiGtkWindowSelectGroupStruct GroupStruct 
)

Definido na linha 647 do ficheiro vapiGtkWindowSelectOperation.c.

Referências _vEffect::name, OperationList, _vapiGtkWindowSelectGroupStruct::OperationTreeView, _vapiGtkWindowSelectGroupStruct::txtOperation, vapiGtkTableGetValueFromSelection(), vapiOperationListSelectOperation() e _vapiGtkWindowSelectGroupStruct::winSelectOperation.

Referenciado por vapiGtkSelectOperationStartWindow().

00652 {
00653         vEffect *Operation;
00654         GValue gvalue = {
00655                 0,
00656         };
00657         char *OperationName;
00658 
00659 
00660         vapiGtkTableGetValueFromSelection (GroupStruct->OperationTreeView,
00661                                            &gvalue, 0);
00662 
00663         OperationName = (char *) g_value_get_string (&gvalue);
00664 
00665         Operation =
00666                 vapiOperationListSelectOperation (GroupStruct->
00667                                                   OperationList,
00668                                                   OperationName);
00669         gtk_entry_set_text ((GtkEntry *) GroupStruct->txtOperation,
00670                             Operation->name);
00671         gtk_widget_hide (GroupStruct->winSelectOperation);
00672 
00673 
00674 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

void vapiGtkSelectOperationSelectToUseFromButton ( GtkWidget *  button,
vapiGtkWindowSelectGroupStruct GroupStruct 
)

Definido na linha 677 do ficheiro vapiGtkWindowSelectOperation.c.

Referências _vEffect::name, OperationList, _vapiGtkWindowSelectGroupStruct::OperationTreeView, _vapiGtkWindowSelectGroupStruct::txtOperation, vapiOperationListSelectOperation() e _vapiGtkWindowSelectGroupStruct::winSelectOperation.

Referenciado por vapiGtkSelectOperationStartWindow().

00680 {
00681         vEffect *Operation;
00682         GtkTreeModel *treeModel;
00683         GtkTreeSelection *selection;
00684         GtkTreeIter iter;
00685         GValue gvalue = {
00686                 0,
00687         };
00688         char *OperationName;
00689         treeModel =
00690                 gtk_tree_view_get_model ((GtkTreeView *)
00691                                          GroupStruct->OperationTreeView);
00692         selection = gtk_tree_view_get_selection ((GtkTreeView *)
00693                                                  GroupStruct->
00694                                                  OperationTreeView);
00695         if (!gtk_tree_selection_get_selected (selection, &treeModel, &iter))
00696         {
00697                 return;
00698         }
00699 
00700         gtk_tree_selection_get_selected (selection, &treeModel, &iter);
00701 
00702         gtk_tree_model_get_value (treeModel, &iter, 0, &gvalue);
00703         OperationName = (char *) g_value_get_string (&gvalue);
00704 
00705         Operation =
00706                 vapiOperationListSelectOperation (GroupStruct->
00707                                                   OperationList,
00708                                                   OperationName);
00709         gtk_entry_set_text ((GtkEntry *) GroupStruct->txtOperation,
00710                             Operation->name);
00711         gtk_widget_hide (GroupStruct->winSelectOperation);
00712 
00713 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

void vapiGtkSelectOperationStartWindow ( vGroupList GroupList,
vapiGtkWindowSelectGroupStruct GroupStruct,
GtkWidget *  vBoxOperationGroups 
)

Definido na linha 73 do ficheiro vapiGtkWindowSelectOperation.c.

Referências _vapiGtkWindowSelectGroupStruct::btSelectOperation, _vapiGtkWindowSelectGroupStruct::GroupButtonList, _vapiGtkWindowSelectGroupStruct::GroupList, _vapiGtkWindowSelectGroupStruct::OperationTreeView, _vapiGtkWindowSelectGroupStruct::stSelectOperation, vapiGtkGroupButtons(), vapiGtkSelectOperationPopulateGroup(), vapiGtkSelectOperationSelectGroup(), vapiGtkSelectOperationSelectToUse(), vapiGtkSelectOperationSelectToUseFromButton() e vapiGtkSelectOperationStartOperationList().

Referenciado por interface_os_linux().

00077 {
00078         vapiGtkSelectOperationStartOperationList (GroupStruct);
00079         GroupStruct->GroupList = GroupList;
00080         vapiGtkGroupButtons (GroupList,
00081                              &GroupStruct->GroupButtonList,
00082                              vBoxOperationGroups, G_CALLBACK
00083                              (vapiGtkSelectOperationSelectGroup),
00084                              GroupStruct);
00085         vapiGtkSelectOperationPopulateGroup ("Todas", GroupStruct);
00086         gtk_statusbar_push (GroupStruct->stSelectOperation, 0,
00087                             "Seleccione um Grupo de Operações e/ou uma Operação");
00088 
00089         g_signal_connect (G_OBJECT (GroupStruct->OperationTreeView),
00090                           "row-activated",
00091                           G_CALLBACK (vapiGtkSelectOperationSelectToUse),
00092                           GroupStruct);
00093 
00094         g_signal_connect (G_OBJECT (GroupStruct->btSelectOperation),
00095                           "clicked",
00096                           G_CALLBACK
00097                           (vapiGtkSelectOperationSelectToUseFromButton),
00098                           GroupStruct);
00099 }

Grafo de chamadas desta função:

Here is the caller graph for this function:


Gerado em Tue Jul 24 10:37:14 2007 para Vapi por  doxygen 1.5.1