#include "vapiOperationList.h"
#include "vapiMacro.h"
#include "vapiLists.h"
Diagrama de dependências de inclusão para vapiMacroList.h:

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

Ir para o código fonte deste ficheiro.
Definições de tipos | |
| typedef vList | vMacroList | 
| this is defined only to make the code easier to interpret.   | |
Funções | |
| void | vapiLoadExampleMacros (vMacroList *MacroList, vOperationList *OperationList) | 
| Loads the defined example macros. This is only used in the main function at start.   | |
| void | vapiMacroListAddItem (vMacroList *MacroList, vMacroHeader *MacroHeader) | 
| add one Macro to the List.   | |
| int | vapiMacroListCountElements (vMacroList *MacroList) | 
| count list elements   | |
| void | vapiMacroListDeleteItem (vMacroList *MacroList, int Delete) | 
| Delete one Macro from the List.   | |
| int | vapiMacroListMacroExist (vMacroList *MacroList, char *string, int WhatToReturn) | 
| Checks if a Macro exists in the list and/or returns its index.   | |
| vMacroList * | vapiMacroListNew () | 
| Start a new List of Macros.   | |
| vMacroHeader * | vapiMacroListSelectItem (vMacroList *MacroList, int Item) | 
| Select a macro from the list, from the requested position.   | |
Definido no ficheiro vapiMacroList.h.
this is defined only to make the code easier to interpret.
Definido na linha 15 do ficheiro vapiMacroList.h.
| void vapiLoadExampleMacros | ( | vMacroList * | MacroList, | |
| vOperationList * | OperationList | |||
| ) | 
Loads the defined example macros. This is only used in the main function at start.
Definido na linha 69 do ficheiro vapiMacroList.c.
Referências MacroList, OperationList e vapiMacroXMLLoadToList().
Referenciado por main().
00070 { 00071 int numberOfExampleMacros = 8, i; 00072 char *ExampleMacros[8]; 00073 00074 ExampleMacros[0] = "Macros_exemplo/fusivel_azul.xml"; 00075 ExampleMacros[1] = "Macros_exemplo/fusivelermelho.xml"; 00076 ExampleMacros[2] = "Macros_exemplo/fusivel_rosa.xml"; 00077 ExampleMacros[3] = "Macros_exemplo/DetectarFusiveis.xml"; 00078 ExampleMacros[4] = "Macros_exemplo/comprimidos.xml"; 00079 ExampleMacros[5] = "Macros_exemplo/OCRermelho.xml"; 00080 ExampleMacros[6] = "Macros_exemplo/pattern_match.xml"; 00081 ExampleMacros[7] = "Macros_exemplo/pattern_search.xml"; 00082 00083 00084 for (i = 0; i < numberOfExampleMacros; i++) 00085 { 00086 00087 vapiMacroXMLLoadToList (MacroList, OperationList, 00088 ExampleMacros[i]); 00089 } 00090 00091 00092 }
Grafo de chamadas desta função:

Here is the caller graph for this function:

| void vapiMacroListAddItem | ( | vMacroList * | MacroList, | |
| vMacroHeader * | MacroHeader | |||
| ) | 
add one Macro to the List.
Definido na linha 18 do ficheiro vapiMacroList.c.
Referências MacroList e v_list_append().
Referenciado por vapiGtkMacroCreate() e vapiMacroXMLLoadToList().
00019 { 00020 v_list_append ((vList *) MacroList, MacroHeader); 00021 }
Grafo de chamadas desta função:

Here is the caller graph for this function:

| int vapiMacroListCountElements | ( | vMacroList * | MacroList | ) | 
count list elements
Definido na linha 25 do ficheiro vapiMacroList.c.
Referências MacroList e v_list_count_elements().
Referenciado por vapiGtkCbMacroStart(), vapiGtkMacroOpenFromXML(), vapiMacroListMacroExist() e vapiMacroListToText().
00026 { 00027 return v_list_count_elements ((vList *) MacroList); 00028 }
Grafo de chamadas desta função:

Here is the caller graph for this function:

| void vapiMacroListDeleteItem | ( | vMacroList * | MacroList, | |
| int | Delete | |||
| ) | 
Delete one Macro from the List.
| Delete | the number of the macro to delete. | 
Definido na linha 31 do ficheiro vapiMacroList.c.
Referências MacroList, v_list_delete_item() e vapiMacroDelete().
Referenciado por vapiGtkMacroDeleteMacro().
00032 { 00033 v_list_delete_item ((vList *) MacroList, 00034 (vFreeFunction *) & vapiMacroDelete, Delete); 00035 }
Grafo de chamadas desta função:

Here is the caller graph for this function:

| int vapiMacroListMacroExist | ( | vMacroList * | MacroList, | |
| char * | string, | |||
| int | WhatToReturn | |||
| ) | 
Checks if a Macro exists in the list and/or returns its index.
Definido na linha 100 do ficheiro vapiMacroList.c.
Referências MacroList, _vMacroHeader::MacroName, vapiMacroListCountElements() e vapiMacroListSelectItem().
Referenciado por vapiCheckOperations(), vapiGtkMacroCreate(), vapiGtkMacrosTableSetSelectedMacro(), vapiGtkMacroTableModel(), vapiGtkMacroTablesApplyUntil() e vapiMacroXMLLoadToList().
00102 { 00103 00104 int i, ListSize; 00105 vMacroHeader *MacroHeader; 00106 /* 00107 * Verificar se já existe a Macro. 00108 */ 00109 00110 ListSize = vapiMacroListCountElements ((vMacroList *) MacroList); 00111 for (i = 0; i < ListSize; i++) 00112 { 00113 MacroHeader = 00114 vapiMacroListSelectItem ((vMacroList *) MacroList, i); 00115 if (!strcmp (MacroHeader->MacroName, string)) 00116 { 00117 if (WhatToReturn) 00118 { 00119 return -1; 00120 } 00121 else 00122 { 00123 return i; 00124 } 00125 } 00126 } 00127 if (!WhatToReturn) 00128 { 00129 return -3; 00130 } 00131 00132 return -2; 00133 }
Grafo de chamadas desta função:

Here is the caller graph for this function:

| vMacroList* vapiMacroListNew | ( | ) | 
Start a new List of Macros.
Definido na linha 12 do ficheiro vapiMacroList.c.
Referências v_list_new().
Referenciado por main().
00013 { 00014 return (vMacroList *) v_list_new (); 00015 }
Grafo de chamadas desta função:

Here is the caller graph for this function:

| vMacroHeader* vapiMacroListSelectItem | ( | vMacroList * | MacroList, | |
| int | Item | |||
| ) | 
Select a macro from the list, from the requested position.
| Item | the position of the macro | 
Definido na linha 38 do ficheiro vapiMacroList.c.
Referências MacroList e v_list_get().
Referenciado por vapiCheckOperations(), vapiGtkCbMacroStart(), vapiGtkMacroAppendItem(), vapiGtkMacroApply(), vapiGtkMacroChange(), vapiGtkMacroDeleteItem(), vapiGtkMacroInsertItem(), vapiGtkMacroItemMoveDown(), vapiGtkMacroItemMoveToBottom(), vapiGtkMacroItemMoveToTop(), vapiGtkMacroItemMoveUp(), vapiGtkMacroLauchDeleteDialog(), vapiGtkMacroLaunchChangeWindow(), vapiGtkMacroOpenFromXML(), vapiGtkMacroSaveToXML(), vapiGtkMacroSelect(), vapiGtkMacroSelectItem(), vapiGtkMacroSelectNext(), vapiGtkMacroTable(), vapiGtkMacroTableAux(), vapiGtkMacroTablesApplyUntil(), vapiGtkMacroUpdateItemOptions(), vapiMacroListMacroExist() e vapiMacroListToText().
00039 { 00040 return ((vMacroHeader *) v_list_get ((vList *) MacroList, Item)); 00041 }
Grafo de chamadas desta função:

Here is the caller graph for this function:

 1.5.1