#include <gtk/gtk.h>
#include "vapiMacro.h"
#include "vapiGtkMacro.h"
#include "vapiGtkInterface.h"
#include "vapiImagesAux.h"
#include "vapiImages.h"
#include "vapiGtkImages.h"
#include "vapiMacroList.h"
#include "vapiMacroXML.h"
#include "vapiGtkEventsMacros.h"
Diagrama de dependências de inclusão para vapiGtkMacro.c:
Ir para o código fonte deste ficheiro.
Funções | |
void | vapiGtkApplyMacroThread (vMacroThread *MacroThread) |
void | vapiGtkApplyMacroUntilThread (vMacroThread *MacroThread) |
vBoolean | vapiGtkMacroCheckSelected () |
GtkFileFilter * | vapiGtkMacroFileFilterOpen () |
GtkFileFilter * | vapiGtkMacroFileFilterSave () |
gboolean | vapiGtkMacroTestXMLFileOpen (const GtkFileFilterInfo *filter_info, gpointer data) |
gboolean | vapiGtkMacroTestXMLFileSave (const GtkFileFilterInfo *filter_info, gpointer data) |
vMacroThread * | vapiGtkMacroThreadNew (vMacroHeader *MacroHeader, vImages *Images) |
void vapiGtkApplyMacroThread | ( | vMacroThread * | MacroThread | ) |
Definido na linha 15 do ficheiro vapiGtkMacro.c.
Referências _vImages::Actual, _vMacroThread::Images, _vMacroThread::MacroHeader, _vImages::Original, vapiApplyMacro(), vapiGtkMacroRunningStop(), vapiImagesAuxCloneImages(), vapiImagesSetActual(), vapiImagesSetOriginal(), vFALSE, vImagesInit() e vTRUE.
Referenciado por vapiGtkMacroApply().
00016 { 00017 vImages *tempImages = vImagesInit (); 00018 00019 tempImages = vapiImagesAuxCloneImages (MacroThread->Images); 00020 vapiApplyMacro (MacroThread->MacroHeader, tempImages, vTRUE, vFALSE); 00021 vapiGtkMacroRunningStop (); 00022 vapiImagesSetActual (MacroThread->Images, tempImages->Actual); 00023 vapiImagesSetOriginal (MacroThread->Images, tempImages->Original); 00024 free (tempImages); 00025 g_thread_exit (NULL); 00026 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
void vapiGtkApplyMacroUntilThread | ( | vMacroThread * | MacroThread | ) |
Definido na linha 112 do ficheiro vapiGtkMacro.c.
Referências _vMacroThread::Images, _vMacroThread::MacroHeader, _vMacroThread::Until, vapiApplyMacroUntil(), vapiGtkMacroRunningStop(), vapiImagesAuxCloneImages() e vImagesInit().
Referenciado por vapiGtkMacroSelectItem().
00113 { 00114 vImages *tempImages = vImagesInit (); 00115 00116 tempImages = vapiImagesAuxCloneImages (MacroThread->Images); 00117 00118 vapiApplyMacroUntil (MacroThread->MacroHeader, tempImages, 00119 MacroThread->Until); 00120 vapiGtkMacroRunningStop (); 00121 free (tempImages); 00122 g_thread_exit (NULL); 00123 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
vBoolean vapiGtkMacroCheckSelected | ( | ) |
Definido na linha 38 do ficheiro vapiGtkMacro.c.
Referências SelectedMacro, v_error_ui(), vFALSE e vTRUE.
Referenciado por vapiGtkMacroApply(), vapiGtkMacroDeleteItem(), vapiGtkMacroDeleteMacro(), vapiGtkMacroInsertItem(), vapiGtkMacroLauchDeleteDialog(), vapiGtkMacroLaunchChangeWindow(), vapiGtkMacroLaunchMacroSave(), vapiGtkMacroSaveToXML(), vapiGtkMacroSelectNext() e vapiGtkMacroUpdateItemOptions().
00039 { 00040 if (!(SelectedMacro >= 0)) 00041 { 00042 v_error_ui ("Não foi seleccionada nenhuma Macro"); 00043 return vTRUE; 00044 } 00045 return vFALSE; 00046 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
GtkFileFilter* vapiGtkMacroFileFilterOpen | ( | ) |
Definido na linha 82 do ficheiro vapiGtkMacro.c.
Referências vapiGtkMacroTestXMLFileOpen().
Referenciado por vapiGtkMacroLaunchMacroOpen().
00083 { 00084 GtkFileFilter *MacroFileFilter = gtk_file_filter_new (); 00085 gtk_file_filter_add_pattern (MacroFileFilter, "*.xml"); 00086 00087 gtk_file_filter_set_name (MacroFileFilter, "Vapi Macro *.xml"); 00088 00089 00090 gtk_file_filter_add_custom (MacroFileFilter, 00091 GTK_FILE_FILTER_FILENAME, 00092 &vapiGtkMacroTestXMLFileOpen, NULL, NULL); 00093 00094 return MacroFileFilter; 00095 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
GtkFileFilter* vapiGtkMacroFileFilterSave | ( | ) |
Definido na linha 98 do ficheiro vapiGtkMacro.c.
Referências vapiGtkMacroTestXMLFileSave().
Referenciado por vapiGtkMacroLaunchMacroSave().
00099 { 00100 GtkFileFilter *MacroFileFilter = gtk_file_filter_new (); 00101 gtk_file_filter_add_pattern (MacroFileFilter, "*.xml"); 00102 00103 gtk_file_filter_set_name (MacroFileFilter, "Vapi Macro *.xml"); 00104 gtk_file_filter_add_custom (MacroFileFilter, 00105 GTK_FILE_FILTER_FILENAME, 00106 &vapiGtkMacroTestXMLFileSave, NULL, NULL); 00107 00108 return MacroFileFilter; 00109 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
gboolean vapiGtkMacroTestXMLFileOpen | ( | const GtkFileFilterInfo * | filter_info, | |
gpointer | data | |||
) |
Definido na linha 49 do ficheiro vapiGtkMacro.c.
Referências vapiMacroFromXMLSetName().
Referenciado por vapiGtkMacroFileFilterOpen().
00051 { 00052 if (g_strrstr (filter_info->filename, ".xml") == NULL) 00053 { 00054 return FALSE; 00055 } 00056 if (vapiMacroFromXMLSetName (filter_info->filename) == NULL) 00057 { 00058 return FALSE; 00059 } 00060 else 00061 { 00062 return TRUE; 00063 } 00064 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
gboolean vapiGtkMacroTestXMLFileSave | ( | const GtkFileFilterInfo * | filter_info, | |
gpointer | data | |||
) |
Definido na linha 67 do ficheiro vapiGtkMacro.c.
Referenciado por vapiGtkMacroFileFilterSave().
00069 { 00070 if (g_strrstr (filter_info->filename, ".xml") == NULL) 00071 { 00072 return FALSE; 00073 } 00074 else 00075 { 00076 return TRUE; 00077 } 00078 }
Here is the caller graph for this function:
vMacroThread* vapiGtkMacroThreadNew | ( | vMacroHeader * | MacroHeader, | |
vImages * | Images | |||
) |
Definido na linha 29 do ficheiro vapiGtkMacro.c.
Referências _vMacroThread::Images e _vMacroThread::MacroHeader.
Referenciado por vapiGtkMacroApply() e vapiGtkMacroSelectItem().
00030 { 00031 vMacroThread *MacroThread = malloc (sizeof (vMacroThread)); 00032 MacroThread->Images = Images; 00033 MacroThread->MacroHeader = MacroHeader; 00034 return MacroThread; 00035 }
Here is the caller graph for this function: