Commit 656af4526acd00b629dd797f89dd00987e50dac5
1 parent
17431be7
Exists in
master
Segundo entregável
Showing
6 changed files
with
44 additions
and
11 deletions
Show diff stats
autohotkey/Bdrag.ahk
1 | -;######################## CÓPIA AUTOMÁTICA ########################## | 1 | +;######################## CÓPIA AUTOMÁTICA ########################### |
2 | ;# Bruno Santos # | 2 | ;# Bruno Santos # |
3 | ;# brunosantos@lavid.ufpb.br # | 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 | #ifndef _PYCLIP_H | 16 | #ifndef _PYCLIP_H |
2 | #define _PYCLIP_H | 17 | #define _PYCLIP_H |
3 | 18 |
include/pyTradutor.h
@@ -2,7 +2,8 @@ | @@ -2,7 +2,8 @@ | ||
2 | /* | 2 | /* |
3 | VLibras: Automatic contents translator from Portuguese to LIBRAS | 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 | VLibras-Core group at LAViD, Federal University of Paraiba | 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,9 +21,9 @@ DefaultDirName={sd}\vlibras-libs | ||
21 | DisableDirPage=yes | 21 | DisableDirPage=yes |
22 | DefaultGroupName={#MyAppName} | 22 | DefaultGroupName={#MyAppName} |
23 | DisableProgramGroupPage=yes | 23 | DisableProgramGroupPage=yes |
24 | -OutputDir="C:\Users\bruno\Desktop\saida" | 24 | +OutputDir="C:\Users\bruno\Desktop\output" |
25 | OutputBaseFilename=VLibras Installer | 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 | Compression=lzma | 27 | Compression=lzma |
28 | SolidCompression=yes | 28 | SolidCompression=yes |
29 | WizardImageFile = "C:\Users\bruno\Desktop\user_install\icons\avatar.bmp" | 29 | WizardImageFile = "C:\Users\bruno\Desktop\user_install\icons\avatar.bmp" |
@@ -40,11 +40,11 @@ Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescrip | @@ -40,11 +40,11 @@ Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescrip | ||
40 | Source: "C:\Users\bruno\Desktop\user_install\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs | 40 | Source: "C:\Users\bruno\Desktop\user_install\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs |
41 | 41 | ||
42 | [Icons] | 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 | Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}" | 44 | Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}" |
45 | Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" | 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 | [Run] | 49 | [Run] |
50 | Filename: {sd}\vlibras-libs\required\user_install.bat; Flags: runhidden | 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 | #include "pyClip.h" | 16 | #include "pyClip.h" |
2 | 17 | ||
3 | PyClip::PyClip() | 18 | PyClip::PyClip() |
@@ -5,7 +20,7 @@ PyClip::PyClip() | @@ -5,7 +20,7 @@ PyClip::PyClip() | ||
5 | // Initialize the Python interpreter | 20 | // Initialize the Python interpreter |
6 | Py_Initialize(); | 21 | Py_Initialize(); |
7 | 22 | ||
8 | - // Type conversion between C++ string to Py string | 23 | + // Call the Bdrag application and copy the clipboard |
9 | pName = PyString_FromString("Clipboard"); | 24 | pName = PyString_FromString("Clipboard"); |
10 | assert(pName!=NULL); | 25 | assert(pName!=NULL); |
11 | 26 | ||
@@ -21,9 +36,11 @@ PyClip::PyClip() | @@ -21,9 +36,11 @@ PyClip::PyClip() | ||
21 | //PyErr_Print(); | 36 | //PyErr_Print(); |
22 | assert(pDict!=NULL); | 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 | pFunc = PyDict_GetItemString(pDict, "clip"); | 40 | pFunc = PyDict_GetItemString(pDict, "clip"); |
41 | + // Start Bdrag | ||
26 | p_On = PyDict_GetItemString(pDict, "bdragOn"); | 42 | p_On = PyDict_GetItemString(pDict, "bdragOn"); |
43 | + // OFF Bdrag | ||
27 | p_Off = PyDict_GetItemString(pDict, "bdragOff"); | 44 | p_Off = PyDict_GetItemString(pDict, "bdragOff"); |
28 | 45 | ||
29 | //PyErr_Print(); | 46 | //PyErr_Print(); |
src/pyTradutor.cpp
@@ -2,7 +2,8 @@ | @@ -2,7 +2,8 @@ | ||
2 | /* | 2 | /* |
3 | VLibras: Automatic contents translator from Portuguese to LIBRAS | 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 | VLibras-Core group at LAViD, Federal University of Paraiba | 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,4 +66,3 @@ char * PyTradutor::convertStringToGlosa(const char * input) | ||
65 | return PyString_AsString(pResult); | 66 | return PyString_AsString(pResult); |
66 | 67 | ||
67 | } | 68 | } |
68 | - |