Commit 656af4526acd00b629dd797f89dd00987e50dac5

Authored by bruno
1 parent 17431be7
Exists in master

Segundo entregável

autohotkey/Bdrag.ahk
1   -;######################## CÓPIA AUTOMÁTICA ##########################
  1 +;######################## CÓPIA AUTOMÁTICA ###########################
2 2 ;# Bruno Santos #
3 3 ;# brunosantos@lavid.ufpb.br #
4 4 ;#####################################################################
... ...
include/pyClip.h
  1 +//*****************************************************************
  2 +/*
  3 +VLibras: Automatic contents translator from Portuguese to LIBRAS
  4 +
  5 +Copyright (c) 2015 Bruno santos
  6 +VLibras-Core group at LAViD, Federal University of Paraiba
  7 +*/
  8 +//*****************************************************************
  9 +
  10 +/**
  11 +* \file pyClip.cpp
  12 +* \authors Bruno Santos
  13 +* \date Janeiro 2015
  14 +*/
  15 +
1 16 #ifndef _PYCLIP_H
2 17 #define _PYCLIP_H
3 18  
... ...
include/pyTradutor.h
... ... @@ -2,7 +2,8 @@
2 2 /*
3 3 VLibras: Automatic contents translator from Portuguese to LIBRAS
4 4  
5   -Copyright (c) 2015 Gustavo Sobral, Erickson Silva, Leonardo Araújo
  5 +Copyright (c) 2015 Gustavo Sobral, Erickson Silva, Leonardo Araújo,
  6 +Bruno Santos
6 7 VLibras-Core group at LAViD, Federal University of Paraiba
7 8 */
8 9 //*****************************************************************
... ...
install/inno setup/user_install.iss
... ... @@ -21,9 +21,9 @@ DefaultDirName={sd}\vlibras-libs
21 21 DisableDirPage=yes
22 22 DefaultGroupName={#MyAppName}
23 23 DisableProgramGroupPage=yes
24   -OutputDir="C:\Users\bruno\Desktop\saida"
  24 +OutputDir="C:\Users\bruno\Desktop\output"
25 25 OutputBaseFilename=VLibras Installer
26   -SetupIconFile="C:\Users\bruno\Desktop\user_install\icons\icon_deaf.ico"
  26 +SetupIconFile="C:\Users\bruno\Desktop\user_install\icons\icon_vlibras.ico"
27 27 Compression=lzma
28 28 SolidCompression=yes
29 29 WizardImageFile = "C:\Users\bruno\Desktop\user_install\icons\avatar.bmp"
... ... @@ -40,11 +40,11 @@ Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescrip
40 40 Source: "C:\Users\bruno\Desktop\user_install\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
41 41  
42 42 [Icons]
43   -Name: "{group}\{#MyAppName}"; Filename: "{app}\Player\{#MyAppExeName}"; IconFilename: "{app}\icons\icon_deaf.ico"
  43 +Name: "{group}\{#MyAppName}"; Filename: "{app}\Player\{#MyAppExeName}"; IconFilename: "{app}\icons\icon_vlibras.ico"
44 44 Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
45 45 Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
46   -Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\Player\{#MyAppExeName}"; Tasks: desktopicon; IconFilename: "{app}\icons\icon_deaf.ico"
47   -Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\Player\{#MyAppExeName}"; Tasks: quicklaunchicon; IconFilename: "{app}\icons\icon_deaf.ico"
  46 +Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\Player\{#MyAppExeName}"; Tasks: desktopicon; IconFilename: "{app}\icons\icon_vlibras.ico"
  47 +Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\Player\{#MyAppExeName}"; Tasks: quicklaunchicon; IconFilename: "{app}\icons\icon_vlibras.ico"
48 48  
49 49 [Run]
50 50 Filename: {sd}\vlibras-libs\required\user_install.bat; Flags: runhidden
... ...
src/pyClip.cpp
  1 +//*****************************************************************
  2 +/*
  3 +VLibras: Automatic contents translator from Portuguese to LIBRAS
  4 +
  5 +Copyright (c) 2015 Bruno santos
  6 +VLibras-Core group at LAViD, Federal University of Paraiba
  7 +*/
  8 +//*****************************************************************
  9 +
  10 +/**
  11 +* \file pyClip.cpp
  12 +* \authors Bruno Santos
  13 +* \date Janeiro 2015
  14 +*/
  15 +
1 16 #include "pyClip.h"
2 17  
3 18 PyClip::PyClip()
... ... @@ -5,7 +20,7 @@ PyClip::PyClip()
5 20 // Initialize the Python interpreter
6 21 Py_Initialize();
7 22  
8   - // Type conversion between C++ string to Py string
  23 + // Call the Bdrag application and copy the clipboard
9 24 pName = PyString_FromString("Clipboard");
10 25 assert(pName!=NULL);
11 26  
... ... @@ -21,9 +36,11 @@ PyClip::PyClip()
21 36 //PyErr_Print();
22 37 assert(pDict!=NULL);
23 38  
24   - // Return the object from dictionary pDict which has a key 'iniciar'
  39 + // Return the string of clipboard
25 40 pFunc = PyDict_GetItemString(pDict, "clip");
  41 + // Start Bdrag
26 42 p_On = PyDict_GetItemString(pDict, "bdragOn");
  43 + // OFF Bdrag
27 44 p_Off = PyDict_GetItemString(pDict, "bdragOff");
28 45  
29 46 //PyErr_Print();
... ...
src/pyTradutor.cpp
... ... @@ -2,7 +2,8 @@
2 2 /*
3 3 VLibras: Automatic contents translator from Portuguese to LIBRAS
4 4  
5   -Copyright (c) 2015 Gustavo Sobral, Erickson Silva, Leonardo Araújo
  5 +Copyright (c) 2015 Gustavo Sobral, Erickson Silva, Leonardo Araújo,
  6 +Bruno santos
6 7 VLibras-Core group at LAViD, Federal University of Paraiba
7 8 */
8 9 //*****************************************************************
... ... @@ -65,4 +66,3 @@ char * PyTradutor::convertStringToGlosa(const char * input)
65 66 return PyString_AsString(pResult);
66 67  
67 68 }
68   -
... ...