Referência ao ficheiro src/vapiOperationList.h

This file has handlers for the Operation's List. The Operations List stores the Operation's information so that they can be called by the application. Mais...

#include "vapiTypes.h"
#include "vapiLists.h"
#include "vapiOperation.h"
#include "vapiGroups.h"

Diagrama de dependências de inclusão para vapiOperationList.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 vOperationList
 Defines an Opertion List, for ease of use. This stores the all the available operations, s that they can be called from Macros or standalone.

Funções

void vapiOperationListAddOperation (vEffect *Operation[], int OperationNumber)
 Adds an operation to the list, and the respective group name on the list of groups.
int vapiOperationListCountElements (vOperationList *OperationList)
 Counts The number of Operations in the list.
vOperationListvapiOperationListInit ()
vOperationListvapiOperationListNew ()
 New Operation List.
vEffectvapiOperationListSelectItem (vOperationList *OperationList, int Item)
 Selects an Operation from the List.
vEffectvapiOperationListSelectOperation (vOperationList *OperationList, const char *name)
 Selects an Operation from the List.


Descrição detalhada

This file has handlers for the Operation's List. The Operations List stores the Operation's information so that they can be called by the application.

Aviso:
some of the functions here are here for legacy problems on old code. Please use v_list* set of functions when possible in newly written code.

Definido no ficheiro vapiOperationList.h.


Documentação dos tipos

vOperationList

Defines an Opertion List, for ease of use. This stores the all the available operations, s that they can be called from Macros or standalone.

Definido na linha 18 do ficheiro vapiOperationList.h.


Documentação das funções

void vapiOperationListAddOperation ( vEffect Operation[],
int  OperationNumber 
)

Adds an operation to the list, and the respective group name on the list of groups.

Parâmetros:
Operation[] An Array of pointers for operations
OperationNumber the number of operations that are in the array

Definido na linha 85 do ficheiro vapiOperationList.c.

Referências GlobalOperationGroupList, GlobalOperationList e vapiOperationListAddOperationOne().

Referenciado por vapiAvailableEfects(), vapiImageOperations(), vapiIOOperations() e vapiTimerOperations().

00086 {
00087         int i;
00088         for (i = 0; i < OperationNumber; i++)
00089         {
00090                 if (Operation[i] == NULL)
00091                 {
00092                         continue;
00093                 }
00094                 vapiOperationListAddOperationOne (GlobalOperationList,
00095                                                   GlobalOperationGroupList,
00096                                                   Operation[i]);
00097         }
00098 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

int vapiOperationListCountElements ( vOperationList OperationList  ) 

Counts The number of Operations in the list.

Retorna:
Number of operations in the list.

Definido na linha 45 do ficheiro vapiOperationList.c.

Referências OperationList e v_list_count_elements().

Referenciado por vapiGtkSelectOperationPopulateGroup() e vapiOperationListSelectOperation().

00046 {
00047         return v_list_count_elements ((vList *) OperationList);
00048 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

vOperationList* vapiOperationListInit (  ) 

vOperationList* vapiOperationListNew (  ) 

New Operation List.

Definido na linha 32 do ficheiro vapiOperationList.c.

Referências OperationList e v_list_new().

Referenciado por vapiOperationListInit().

00033 {
00034         vOperationList *OperationList = (vOperationList *) v_list_new ();
00035         return OperationList;
00036 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

vEffect* vapiOperationListSelectItem ( vOperationList OperationList,
int  Item 
)

Selects an Operation from the List.

Parâmetros:
Item Operation's position in the list.
Retorna:
the pointer for the operation.
Aviso:
do not free this pointer.

Definido na linha 51 do ficheiro vapiOperationList.c.

Referências OperationList e v_list_get().

Referenciado por vapiGtkSelectOperationPopulateGroup() e vapiOperationListSelectOperation().

00052 {
00053         return ((vEffect *) v_list_get ((vList *) OperationList, Item));
00054 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

vEffect* vapiOperationListSelectOperation ( vOperationList OperationList,
const char *  name 
)

Selects an Operation from the List.

Parâmetros:
name Operation's name.
Retorna:
the pointer for the operation.
Aviso:
do not free this pointer.

Definido na linha 57 do ficheiro vapiOperationList.c.

Referências _vEffect::name, OperationList, v_list_get(), vapiOperationListCountElements() e vapiOperationListSelectItem().

Referenciado por vapiCalibrateCameraCreateMacro(), vapiCalibrateCameraGetColourAOptions(), vapiCalibrateCameraGetColourBOptions(), vapiGetOperationFromTxtOperation(), vapiGtkSelectOperationSelect(), vapiGtkSelectOperationSelectToUse(), vapiGtkSelectOperationSelectToUseFromButton() e vapiMacroFromXML().

00059 {
00060         vEffect *item;
00061         int ListSize, i;
00062         ListSize = vapiOperationListCountElements (OperationList);
00063 
00064         for (i = 0; i < ListSize; i++)
00065         {
00066                 item = vapiOperationListSelectItem (OperationList, i);
00067                 if (!strcmp (name, item->name))
00068                 {
00069                         return ((vEffect *)
00070                                 v_list_get ((vList *) OperationList, i));
00071                 }
00072         }
00073         return NULL;
00074 }

Grafo de chamadas desta função:

Here is the caller graph for this function:


Gerado em Tue Jul 24 10:39:00 2007 para Vapi por  doxygen 1.5.1