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

#include "vapiGtkInterface.h"

Diagrama de dependências de inclusão para vapiGtkEventsOperations.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

void vapiGtkOperationApply (GtkWidget *widget, vapiTemp1Struct *temp)
void vapiGtkOperationShowOptions (GtkWidget *widget, vapiTemp1Struct *temp)


Documentação das funções

void vapiGtkOperationApply ( GtkWidget *  widget,
vapiTemp1Struct temp 
)

Definido na linha 14 do ficheiro vapiGtkEventsOperations.c.

Referências _vImages::Actual, _vapiWidgetStruct::imActual, _vapiTemp1Struct::Images, _vapiWidgetStruct::imWork, _vapiTemp1Struct::imWork, _vapiTemp1Struct::MacroList, _vapiTemp1Struct::OperationList, _vapiWidgetStruct::OptionsData, _vImages::Original, _vapiWidgetStruct::txtOperation, vapiApplyOperation(), vapiCheckOperations(), vapiGetOperationFromTxtOperation(), vapiGtkAuxCheckOperation(), vapiGtkMemoryFreeImWork(), vapiGtkOptionsGetOptions(), vapiGtkOptionsGetOptionsCustomOperations(), vapiGtkPutImage(), vapiImagesSameSize(), vapiMacroResultInit(), vapiOperationOptionsInit(), vImagesInit(), vOperationOptionsFree(), vResultFree() e _vapiTemp1Struct::Widgets.

Referenciado por vapiGtkConnectEvents() e vapiGtkOperationShowOptions().

00015 {
00016         vapiWidgetStruct *Widgets = temp->Widgets;
00017         vOptions *options;
00018         vEffect *Operation;
00019         vMacroResult *FakePreviousResult;
00020         vImages *tempImages;
00021         Operation =
00022                 vapiGetOperationFromTxtOperation (temp->Widgets->txtOperation,
00023                                                   temp->OperationList);
00024         if (vapiGtkAuxCheckOperation (Operation))
00025         {
00026                 return;
00027         }
00028         options = vapiOperationOptionsInit (Operation);
00029         vapiGtkOptionsGetOptions (options, Operation->OptionsSettings,
00030                                   &vapiGtkOptionsGetOptionsCustomOperations,
00031                                   &temp->Widgets->OptionsData);
00032         if (vapiCheckOperations
00033             (Operation, options, (vMacroList *) temp->MacroList))
00034         {
00035                 vOperationOptionsFree (options, Operation);
00036                 return;
00037         }
00038         tempImages = vImagesInit ();
00039         tempImages->Original = temp->Images->Original;
00040         tempImages->Actual = vapiImagesSameSize (temp->Images->Actual, 0);
00041         cvCopy (temp->Images->Actual, tempImages->Actual, NULL);
00042 
00043         FakePreviousResult = vapiMacroResultInit ();
00044 
00045 
00046         vapiApplyOperation (tempImages, Operation, options,
00047                             FakePreviousResult);
00048 
00049         vapiGtkMemoryFreeImWork ((IplImage *) temp->imWork);
00050         temp->imWork = tempImages->Actual;
00051 
00052         vapiGtkPutImage (Widgets->imActual, tempImages->Actual);
00053         vapiGtkPutImage (Widgets->imWork, temp->Images->Actual);
00054 
00055         free (tempImages);
00056         vOperationOptionsFree (options, Operation);
00057         vResultFree (FakePreviousResult);
00058 }

Grafo de chamadas desta função:

Here is the caller graph for this function:

void vapiGtkOperationShowOptions ( GtkWidget *  widget,
vapiTemp1Struct temp 
)

Definido na linha 62 do ficheiro vapiGtkEventsOperations.c.

Referências Lists, _vMacroItem::Operation, _vapiTemp1Struct::OperationList, _vMacroItem::Options, _vapiWidgetStruct::OptionsData, _vapiWidgetStruct::OptionsEvents, _vapiWidgetStruct::OptionsFrame, _vapiWidgetStruct::OptionsList, _vapiWidgetStruct::OptionsParent, _vEffect::OptionsSettings, _vapiWidgetStruct::txtOperation, vapiGetOperationFromTxtOperation(), vapiGtkMemoryFreeOptionsFrame(), vapiGtkOperationApply(), vapiGtkOptionsCreate(), vapiGtkOptionsCreateCustomOperations(), vapiGtkOptionsPopulate(), vapiGtkOptionsPopulateCustomOperations(), vapiOperationOptionsInit(), vOperationOptionsFree() e _vapiTemp1Struct::Widgets.

Referenciado por vapiGtkConnectEvents().

00063 {
00064         vMacroItem *FakeItem;
00065         vOptions *FakeOptions;
00066         GList **Lists[3];
00067 
00068         Lists[0] = &temp->Widgets->OptionsList;
00069         Lists[1] = &temp->Widgets->OptionsData;
00070         Lists[2] = &temp->Widgets->OptionsEvents;
00071 
00072         FakeItem = malloc (sizeof (vMacroItem));
00073 
00074         FakeItem->Operation =
00075                 vapiGetOperationFromTxtOperation (temp->Widgets->txtOperation,
00076                                                   temp->OperationList);
00077 
00078         if (FakeItem->Operation == NULL)
00079         {
00080                 vapiGtkMemoryFreeOptionsFrame (temp);
00081                 free (FakeItem);
00082                 return;
00083         }
00084 
00085         FakeOptions = vapiOperationOptionsInit (FakeItem->Operation);
00086 
00087         FakeItem->Options = FakeOptions;
00088 
00089         vapiGtkOptionsCreate (temp->Widgets->OptionsParent,
00090                               &temp->Widgets->OptionsFrame, Lists,
00091                               FakeOptions,
00092                               FakeItem->Operation->OptionsSettings,
00093                               &vapiGtkOptionsCreateCustomOperations,
00094                               G_CALLBACK (vapiGtkOperationApply), temp);
00095 
00096         vapiGtkOptionsPopulate (FakeItem->Options,
00097                                 FakeItem->Operation->OptionsSettings, Lists,
00098                                 &vapiGtkOptionsPopulateCustomOperations);
00099 
00100         vOperationOptionsFree (FakeOptions, FakeItem->Operation);
00101 
00102         free (FakeItem);
00103 }

Grafo de chamadas desta função:

Here is the caller graph for this function:


Gerado em Tue Jul 24 10:35:46 2007 para Vapi por  doxygen 1.5.1