Changeset 94
- Timestamp:
- Jul 17, 2021, 9:24:00 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NLS/br/goqresbr.rc
r91 r94 39 39 } 40 40 41 RCDATA LANG_ID {"55"} 42 41 43 MENU IDM_SSWPOPUP 42 44 { … … 85 87 LTEXT "Utilit rio de captura de Telas/Janelas\n" 86 88 "Copyright (c) 1998-2007 Thorsten Thielen\n" 87 "Copyright (c) 2018-20 19The Netlabs Gotcha Group\n"89 "Copyright (c) 2018-2021 The Netlabs Gotcha Group\n" 88 90 "All rights reserved\n" 89 91 "WWW: http://trac.netlabs.org/gotcha\n" … … 218 220 LTEXT "Utilit rio de captura de Telas/Janelas\n" 219 221 "Copyright (c) 1998-2007 Thorsten Thielen\n" 220 "Copyright (c) 2018-20 19The Netlabs Gotcha Group\n"222 "Copyright (c) 2018-2021 The Netlabs Gotcha Group\n" 221 223 "All rights reserved\n" 222 "WWW: http://trac.netlabs.org/gotcha", WID_ NIL,224 "WWW: http://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 223 225 5, 62, 190, 26, DT_WORDBREAK 224 GROUPBOX "Programa", WID_NIL, 5, 5, 95, 46226 /*GROUPBOX "Programa", WID_NIL, 5, 5, 95, 46 225 227 LISTBOX WID_LB_LANGUAGES, 9, 9, 88, 34, LS_NOADJUSTPOS 226 228 GROUPBOX "Ajuda Online", WID_NIL, 104, 5, 95, 46 … … 228 230 LTEXT "Nota: Estas opäes farÆo efeito somente na pr¢xima " 229 231 "vez em que o programa for iniciado.", 230 WID_ST_LANGNOTE, 5, 50, 184, 8, DT_WORDBREAK //translation update 232 WID_ST_LANGNOTE, 5, 50, 184, 8, DT_WORDBREAK //translation update*/ 231 233 END 232 234 END … … 281 283 IDS_ERROR_SEMAPHOREFAILED "Semaphore creation failed" 282 284 IDS_ERROR_SEMAPHOREFAILEDMSG "Try restarting Gotcha Quiet" 283 } 285 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 286 287 } 288 289 STRINGTABLE 290 { 291 LANG_COPYRIGHT "Utilit rio de captura de Telas/Janelas\nCopyright (c) 1998-2007 Thorsten Thielen\n2018-2019 Netlabs Gotcha Group All rights Reserved\nWWW: http://trac.netlabs.org/gotcha" 292 LANG_PROGRAM "Programa" 293 LANG_HELPFILE "Ajuda Online" 294 LANG_RESTART "Nota: Estas opäes farÆo efeito somente na pr¢xima vez em que o programa for iniciado." 295 } -
trunk/NLS/br/gotresbr.rc
r91 r94 33 33 etc. */ 34 34 RCDATA DLL_ID { "Gotcha!", 1, "Portugus Brasileiro" } 35 36 RCDATA LANG_ID {"55"} 35 37 36 38 MENU IDM_SSWPOPUP … … 225 227 "Copyright (c) 1998-2007 Thorsten Thielen\n" 226 228 "2018-2019 Netlabs Gotcha Group All rights Reserved\n" 227 "WWW: http://trac.netlabs.org/gotcha", WID_ NIL,229 "WWW: http://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 228 230 10, 92, 190, 26, DT_WORDBREAK 229 231 GROUPBOX "Programa", WID_NIL, 10, 5, 112, 66 230 232 LISTBOX WID_LB_LANGUAGES, 14, 10, 105, 53, LS_NOADJUSTPOS 233 #if 0 231 234 GROUPBOX "Ajuda Online", WID_NIL, 134, 5, 112, 66 232 235 LISTBOX WID_LB_LANGUAGESHELP, 137, 10, 105, 53, LS_NOADJUSTPOS 236 #endif 233 237 LTEXT "Nota: Estas opäes farÆo efeito somente na pr¢xima " 234 238 "vez em que o programa for iniciado.", … … 252 256 IDS_ERROR_INIFILENOTOPEN "O arquivo INI (""%s"") nÆo pde ser aberto! Valores defaults serÆo utilizados." 253 257 254 IDS_ERROR_HELPERHEADING "ERRO NO SISTEMA DE AJUDA" 255 IDS_ERROR_COULDNOTINITHELP "NÆo foi poss¡vel inicializar a ajuda online." 256 IDS_ERROR_COULDNOTINITHELPFILE "NÆo foi poss¡vel inicializar a ajuda online. O arquivo de ajuda '%s' existe no diret¢rio de Gotcha?" 258 IDS_ERROR_HELPERHEADING "ERRO NO SISTEMA DE AJUDA" 259 IDS_ERROR_COULDNOTINITHELP "NÆo foi poss¡vel inicializar a ajuda online." 260 IDS_ERROR_COULDNOTINITHELPFILE "NÆo foi poss¡vel inicializar a ajuda online. O arquivo de ajuda '%s' existe no diret¢rio de Gotcha?" 261 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 262 257 263 258 264 IDS_PAGESAVE "Salvando" … … 279 285 IDS_WISHCONTINUE "Do you wish to continue?" 280 286 } 287 288 STRINGTABLE 289 { 290 LANG_COPYRIGHT "Utilit rio de captura de Telas/Janelas\nCopyright ž 1998-2007 Thorsten Thielen 2018-2019 Netlabs Gotcha Group All rights Reserved\nWWW: http://trac.netlabs.org/gotcha" 291 LANG_PROGRAM "Programa" 292 LANG_HELPFILE "Ajuda Online" 293 LANG_RESTART "Nota: Estas opäes farÆo efeito somente na pr¢xima vez em que o programa for iniciado." 294 } -
trunk/NLS/cz/goqrescz.rc
r91 r94 33 33 "Gotchaq!", /* What program is the dll for? */ 34 34 1, /* Version number of the dll */ 35 " ¬esky", /* Name of the language for the list */35 "eçtina", /* Name of the language for the list */ 36 36 /* "Thorsten Thielen", /* Translator's name */ 37 37 /* "English", /* Language to be used for online help */ 38 38 /* "Gotcha_en", /* Name of the help file */ 39 39 } 40 41 RCDATA LANG_ID {"420"} 42 43 CODEPAGE 852 40 44 41 45 MENU IDM_SSWPOPUP … … 223 227 "Copyright (c) 2018-2019 The Netlabs Gotcha Group\n" 224 228 "All rights reserved. " 225 "WWW: http://trac.netlabs.org/gotcha", WID_ NIL,229 "WWW: http://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 226 230 5, 67, 190, 26, DT_WORDBREAK 227 GROUPBOX "Program", WID_NIL, 5, 2, 95, 46231 /*GROUPBOX "Program", WID_ST_PROGRAM, 5, 2, 95, 46 228 232 LISTBOX WID_LB_LANGUAGES, 9, 6, 88, 34, LS_NOADJUSTPOS 229 GROUPBOX "N povØda", WID_ NIL, 104, 2, 95, 46233 GROUPBOX "N povØda", WID_ST_HELPFILE, 104, 2, 95, 46 230 234 LISTBOX WID_LB_LANGUAGESHELP, 107, 6, 88, 34, LS_NOADJUSTPOS 231 235 LTEXT "Pozn mka: Tato nastaven¡ se poprv projev¡ pýi " 232 236 "pý¡çt¡m spuçtØn¡ programu.", 233 WID_ST_LANGNOTE, 5, 47, 184, 16, DT_WORDBREAK //translation update 237 WID_ST_LANGNOTE, 5, 47, 184, 16, DT_WORDBREAK //translation update*/ 234 238 END 235 239 END … … 288 292 IDS_ERROR_SEMAPHOREFAILED "Semaphore creation failed" 289 293 IDS_ERROR_SEMAPHOREFAILEDMSG "Try restarting Gotcha Quiet" 294 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 295 290 296 } 297 298 STRINGTABLE 299 { 300 LANG_COPYRIGHT "N stroj pro sejmut¡ obrazovky/okna\nCopyright (c) 1998-2007 Thorsten Thielen\n2018-2019 Netlabs Gotcha Group All rights Reserved\nWWW: http://trac.netlabs.org/gotcha" 301 LANG_PROGRAM "Program" 302 LANG_HELPFILE "N povØda" 303 LANG_RESTART "Pozn mka: Tato nastaven¡ se poprv projev¡ pýi pý¡çt¡m spuçtØn¡ programu." 304 } -
trunk/NLS/cz/gotrescz.rc
r91 r94 23 23 /* Please do NOT try to translate the following statement :-) */ 24 24 RCINCLUDE "..\common.rc" 25 25 CODEPAGE 852 26 26 /* Pros¡m, upravte jmno jazyka (ale ponechte ¡slo) :-) 27 27 If possible use the name your language is called "in itself" … … 35 35 "Gotcha!", /* Pro kterì program je urena tato knihovna DLL? */ 36 36 1, /* ¬¡slo verze knihovny DLL */ 37 "¬e sky", /* Jmno jazyka pro uveden¡ do seznamu */37 "¬eçtina", /* Jmno jazyka pro uveden¡ do seznamu */ 38 38 /* "Tom ç Hajnì", /* Jmno pýekladatele, Tomas Hajny */ 39 39 /* "¬eçtina", /* Jazyk pou§itì pro n povØdu */ 40 40 /* "czech", /* Jmno souboru s n povØdou */ 41 41 } 42 43 RCDATA LANG_ID {"420"} 44 42 45 43 46 MENU IDM_SSWPOPUP … … 157 160 BEGIN 158 161 NOTEBOOK WID_NB_SETTINGS, 5, 21, 270, 170, BKS_BACKPAGESTR | 159 BKS_MAJORTABTOP | BKS_ROUNDEDTABS | 160 BKS_TABTEXTCENTER | BKS_SPIRALBIND | WS_GROUP | 161 BKS_TABBEDDIALOG 162 BKS_MAJORTABTOP | BKS_TABBEDDIALOG 162 163 DEFPUSHBUTTON "~Ok", WID_PB_OK, 5, 4, 60, 14 163 164 PUSHBUTTON "O~bnovit", WID_PB_UNDO, 70, 4, 60, 14 … … 244 245 "Copyright (c) 1998-2007 Thorsten Thielen\n" 245 246 "2018-2019 Netlabs Gotcha Group All rights Reserved\n" 246 "WWW: http://trac.netlabs.org/gotcha", WID_ NIL,247 "WWW: http://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 247 248 10, 92, 190, 26, DT_WORDBREAK 248 249 GROUPBOX "Program", WID_NIL, 10, 5, 112, 66 249 250 LISTBOX WID_LB_LANGUAGES, 14, 10, 105, 53, LS_NOADJUSTPOS 251 #if 0 250 252 GROUPBOX "N povØda", WID_NIL, 134, 5, 112, 66 251 253 LISTBOX WID_LB_LANGUAGESHELP, 137, 10, 105, 53, LS_NOADJUSTPOS 252 LTEXT "Pozn mka: Tato nastaven¡ se poprv projev¡ pýi " 253 "pý¡çt¡m spuçtØn¡ programu."254 WID_ST_LANGNOTE, 10, 70, 184, 16, DT_WORDBREAK254 #endif 255 LTEXT "Pozn mka: Tato nastaven¡ se poprv projev¡ pýi pý¡çt¡m spuçtØn¡ programu.", 256 WID_ST_LANGNOTE, 10, 70, 214, 16 255 257 END 256 258 END … … 272 274 IDS_ERROR_INIFILENOTOPEN "Nebylo mo§n otevý¡t konfiguran¡ soubor INI (""%s"")! Budou pou§ita standardn¡ nastaven¡." 273 275 274 IDS_ERROR_HELPERHEADING "CHYBA NµPOVD·DY" 275 IDS_ERROR_COULDNOTINITHELP "Nemohu inicializovat n povØdu." 276 IDS_ERROR_COULDNOTINITHELPFILE "Nemohu inicializovat n povØdu. Existuje v adres ýi produktu Gotcha! soubor ""%s""?" 277 278 IDS_PAGESAVE "Ukl d n¡" 276 IDS_ERROR_HELPERHEADING "CHYBA NµPOVD·DY" 277 IDS_ERROR_COULDNOTINITHELP "Nemohu inicializovat n povØdu." 278 IDS_ERROR_COULDNOTINITHELPFILE "Nemohu inicializovat n povØdu. Existuje v adres ýi produktu Gotcha! soubor ""%s""?" 279 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 280 281 IDS_PAGESAVE "Ulo§it"/* "Ukl d n¡ "*/ 279 282 IDS_PAGESNAPSHOT "Momentky" 280 283 IDS_CAPTURE "R 281 284 zn" 282 285 IDS_PAGELANGUAGE "Jazyk" 283 284 // IDS_SETTINGSTITLE "Nastaven¡"285 286 286 287 IDS_BMF_JPG "JPEG Interchange File Format (jpg)" … … 300 301 IDS_OK "~Ok" 301 302 IDS_CANCEL "Zruçit" 302 IDS_WISHCONTINUE "Do you wish to continue?" 303 IDS_WISHCONTINUE "Do you wish to continue?" 304 IDS_UNDO "O~bnovit" 305 IDS_HELP "N povØda" 306 307 // IDS_SETTINGSTITLE "Nastaven¡" 303 308 } 309 310 STRINGTABLE 311 { 312 LANG_COPYRIGHT "N stroj pro sejmut¡ obrazovky/okna\nCopyright (c) 1998-2007 Thorsten Thielen\n2018-2019 Netlabs Gotcha Group All rights Reserved\nWWW: http://trac.netlabs.org/gotcha" 313 LANG_PROGRAM "Program" 314 LANG_HELPFILE "N povØda" 315 LANG_RESTART "Pozn mka: Tato nastaven¡ se poprv projev¡ pýi pý¡çt¡m spuçtØn¡ programu." 316 } -
trunk/NLS/de/goqresde.rc
r91 r94 38 38 /* "Gotcha_en", /* Name of the help file */ 39 39 } 40 41 RCDATA LANG_ID {"49"} 40 42 41 43 MENU IDM_SSWPOPUP … … 221 223 "Copyright (c) 2018-2019 The Netlabs Gotcha Group\n" 222 224 "All rights reserved. " 223 "WWW: http://trac.netlabs.org/gotcha", WID_ NIL,225 "WWW: http://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 224 226 5, 67, 190, 26, DT_WORDBREAK 225 GROUPBOX "Programm", WID_NIL, 5, 2, 95, 46227 /*GROUPBOX "Programm", WID_NIL, 5, 2, 95, 46 226 228 LISTBOX WID_LB_LANGUAGES, 9, 6, 88, 34, LS_NOADJUSTPOS 227 229 GROUPBOX "Onlinehilfe", WID_NIL, 104, 2, 95, 46 … … 229 231 LTEXT "Hinweis: Diese Einstellungen werden erst beim nchsten " 230 232 "Starten des Programmes wirksam.", 231 WID_ST_LANGNOTE, 5, 47, 184, 16, DT_WORDBREAK //translation update 233 WID_ST_LANGNOTE, 5, 47, 184, 16, DT_WORDBREAK //translation update*/ 232 234 END 233 235 END … … 282 284 IDS_ERROR_SEMAPHOREFAILED "Semaphore creation failed" 283 285 IDS_ERROR_SEMAPHOREFAILEDMSG "Try restarting Gotcha Quiet" 284 } 286 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 287 288 } 289 290 STRINGTABLE 291 { 292 LANG_COPYRIGHT "Bildschirm/Fenster-Screenshot-Programm\nCopyright (c) 1998-2007 Thorsten Thielen\nCopyright (c) 2018-2019 The Netlabs Gotcha Group\nAll rights reserved. WWW: http://trac.netlabs.org/gotcha" 293 LANG_PROGRAM "Programm" 294 LANG_HELPFILE "Onlinehilfe" 295 LANG_RESTART "Starten des Programmes wirksam." 296 } -
trunk/NLS/de/gotresde.rc
r91 r94 30 30 etc. */ 31 31 RCDATA DLL_ID { "Gotcha!", 1, "Deutsch" } 32 33 RCDATA LANG_ID {"49"} 32 34 33 35 MENU IDM_SSWPOPUP … … 226 228 "Copyright (c) 1998-2007 Thorsten Thielen\n" 227 229 "2018-2019 Netlabs Gotcha Group All rights Reserved\n" 228 "WWW: http://trac.netlabs.org/gotcha", WID_ NIL,230 "WWW: http://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 229 231 10, 92, 190, 26, DT_WORDBREAK 230 232 GROUPBOX "Programm", WID_NIL, 10, 5, 112, 66 231 233 LISTBOX WID_LB_LANGUAGES, 14, 10, 105, 53, LS_NOADJUSTPOS 234 #if 0 232 235 GROUPBOX "Onlinehilfe", WID_NIL, 134, 5, 112, 66 233 236 LISTBOX WID_LB_LANGUAGESHELP, 137, 10, 105, 53, LS_NOADJUSTPOS 237 #endif 234 238 LTEXT "Hinweis: Diese Einstellungen werden erst beim nchsten " 235 239 "Starten des Programmes wirksam.", … … 253 257 IDS_ERROR_INIFILENOTOPEN "Konnten die INI-Datei (""%s"") nicht ffnen. Standarteinstellungen werden benutzt." 254 258 255 IDS_ERROR_HELPERHEADING "HILFE-FEHLER" 256 IDS_ERROR_COULDNOTINITHELP "Konnte Online-Hilfe nicht initialisieren." 257 IDS_ERROR_COULDNOTINITHELPFILE "Konnte Online-Hilfe nicht initialisieren. Existiert die Hilfedatei '%s' in Gotcha!s Verzeichnis?" 259 IDS_ERROR_HELPERHEADING "HILFE-FEHLER" 260 IDS_ERROR_COULDNOTINITHELP "Konnte Online-Hilfe nicht initialisieren." 261 IDS_ERROR_COULDNOTINITHELPFILE "Konnte Online-Hilfe nicht initialisieren. Existiert die Hilfedatei '%s' in Gotcha!s Verzeichnis?" 262 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 258 263 259 264 IDS_PAGESAVE "Speichern" … … 280 285 IDS_WISHCONTINUE "Do you wish to continue?" 281 286 } 287 288 STRINGTABLE 289 { 290 LANG_COPYRIGHT "Bildschirm/Fenster-Screenshot-Programm\nCopyright ž 1998-2007 Thorsten Thielen 2018-2019 The Netlabs Gotcha Group All rights reserved.\nWWW: http://trac.netlabs.org/gotcha" 291 LANG_PROGRAM "Programm" 292 LANG_HELPFILE "Onlinehilfe" 293 LANG_RESTART "Starten des Programmes wirksam." 294 } -
trunk/NLS/en/goqresen.rc
r91 r94 38 38 /* "Gotcha_en", /* Name of the help file */ 39 39 } 40 41 RCDATA LANG_ID {"1"} 40 42 41 43 ACCELTABLE 1 LOADONCALL … … 241 243 "Copyright (c) 1998-2007 Thorsten Thielen\n" 242 244 "2018-2020 Netlabs Gotcha! team. All rights reserved.\n" 243 "WWW: https://trac.netlabs.org/gotcha", WID_ NIL,245 "WWW: https://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 244 246 5, 62, 190, 26, DT_WORDBREAK 245 GROUPBOX "Program", WID_NIL, 5, 5, 95, 46247 /*GROUPBOX "Program", WID_ST_PROGRAM, 5, 5, 95, 46 246 248 LISTBOX WID_LB_LANGUAGES, 9, 9, 88, 34, LS_NOADJUSTPOS 247 GROUPBOX "Online help", WID_ NIL, 104, 5, 95, 46249 GROUPBOX "Online help", WID_ST_HELPFILE, 104, 5, 95, 46 248 250 LISTBOX WID_LB_LANGUAGESHELP, 107, 9, 88, 34, LS_NOADJUSTPOS 249 251 LTEXT "Note: A restart is required for these settings to take effect", 250 WID_ST_LANGNOTE, 5, 50, 184, 8, DT_WORDBREAK 252 WID_ST_LANGNOTE, 5, 50, 184, 8, DT_WORDBREAK*/ // Must inable the WM_DESTROY code 251 253 END 252 254 END … … 272 274 273 275 IDS_MAINWIN "Gotcha!" 274 IDS_PAGESAVE "Sav ing"276 IDS_PAGESAVE "Save" 275 277 IDS_CAPTURE "Capture" 276 IDS_PAGELANGUAGE " Language"278 IDS_PAGELANGUAGE "About" 277 279 278 280 IDS_BMF_JPG "JPEG Interchange File Format (jpg)" … … 299 301 IDS_ERROR_SEMAPHOREFAILED "Semaphore creation failed" 300 302 IDS_ERROR_SEMAPHOREFAILEDMSG "Try restarting Gotcha Quiet" 303 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 304 301 305 } 306 307 STRINGTABLE 308 { 309 LANG_COPYRIGHT "Screen/window capture utility\nCopyright ž 1998-2007 Thorsten Thielen 2018-2020 Netlabs Gotcha! team. All rights reserved.\nWWW: https://trac.netlabs.org/gotcha" 310 LANG_PROGRAM "Program" 311 LANG_HELPFILE "Online help" 312 LANG_RESTART "Note: A restart is required for these settings to take effect" 313 } -
trunk/NLS/en/gotresen.rc
r91 r94 21 21 /* Please do NOT try to translate the following statement :-) */ 22 22 RCINCLUDE "..\common.rc" 23 23 CODEPAGE 852 24 24 /* Please adjust the name of the language (but leave the number alone :-) 25 25 If possible use the name your language is called "in itself" … … 39 39 } 40 40 41 RCDATA LANG_ID {"1"} 42 41 43 MENU IDM_SSWPOPUP 42 44 { … … 83 85 WINDOW "", FID_CLIENT, 0, 0, 200, 85, "thth.wc.gotcha.main", 84 86 FS_NOBYTEALIGN | NOT WS_VISIBLE 85 /*BEGIN87 BEGIN 86 88 GROUPBOX "Save image to", WID_TEST, 4, 51, 90, 30 87 89 AUTORADIOBUTTON "~Clipboard", WID_RB_CLIPBOARD, 10, 63, 78, 10, WS_TABSTOP … … 98 100 PUSHBUTTON "S~ettings", WID_PB_SETTINGS, 70, 4, 60, 12 99 101 PUSHBUTTON "~About", WID_PB_ABOUT, 5, 4, 60, 12 100 END */102 END 101 103 END 102 104 END … … 155 157 BEGIN 156 158 NOTEBOOK WID_NB_SETTINGS, 5, 21, 270, 170, BKS_BACKPAGESTR | 157 BKS_MAJORTABTOP | BKS_ROUNDEDTABS | 158 BKS_TABTEXTCENTER | BKS_SPIRALBIND | WS_GROUP | 159 BKS_TABBEDDIALOG 159 BKS_MAJORTABBOTTOM | WS_GROUP | BKS_TABBEDDIALOG 160 160 DEFPUSHBUTTON "~Ok", WID_PB_OK, 5, 4, 60, 14 161 161 PUSHBUTTON "~Undo", WID_PB_UNDO, 70, 4, 60, 14 … … 230 230 WS_VISIBLE 231 231 BEGIN 232 LTEXT PSZ_NAMEVERSION, WID_NIL, 10, 118, 150, 8232 LTEXT PSZ_NAMEVERSION, WID_NIL, 5, 118, 150, 8 233 233 PRESPARAMS PP_FOREGROUNDCOLOR, 0x00C80A0AL 234 234 LTEXT "Screen/window capture utility\n" 235 235 "Copyright (c) 1998-2007 Thorsten Thielen\n" 236 236 "2018-2020 Netlabs Gotcha! team. All rights reserved.\n" 237 "WWW: https://trac.netlabs.org/gotcha", WID_NIL, 238 10, 92, 190, 26, DT_WORDBREAK 239 GROUPBOX "Program", WID_NIL, 10, 5, 112, 66 240 LISTBOX WID_LB_LANGUAGES, 14, 10, 105, 53, LS_NOADJUSTPOS 241 GROUPBOX "Online help", WID_NIL, 134, 5, 112, 66 242 LISTBOX WID_LB_LANGUAGESHELP, 137, 10, 105, 53, LS_NOADJUSTPOS 237 "WWW: https://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 238 5, 92, 190, 26, DT_WORDBREAK 239 GROUPBOX "Program", WID_ST_PROGRAM, 5, 5, 95, 46 240 LISTBOX WID_LB_LANGUAGES, 9, 9, 88, 34, LS_NOADJUSTPOS 241 #if 0 242 GROUPBOX "Online help", WID_ST_HELPFILE, 104, 5, 95, 46 243 LISTBOX WID_LB_LANGUAGESHELP, 107, 9, 88, 34, LS_NOADJUSTPOS 244 #endif 243 245 LTEXT "Note: A restart is required for these settings to take effect", 244 WID_ST_LANGNOTE, 10, 74, 184, 8, DT_WORDBREAK246 WID_ST_LANGNOTE, 5, 50, 184, 8, DT_WORDBREAK 245 247 END 246 248 END … … 261 263 IDS_ERROR_INIFILENOTOPEN "The INI-file (""%s"") could not be opened! Defaults will be used." 262 264 263 IDS_ERROR_HELPERHEADING "HELP ERROR" 264 IDS_ERROR_COULDNOTINITHELP "Could not initialize online help." 265 IDS_ERROR_COULDNOTINITHELPFILE "Could not initialize online help. Does helpfile '%s' exist in Gotcha's directory?" 266 267 IDS_PAGESAVE "Saving" 268 IDS_PAGESNAPSHOT "Snapshot" 269 IDS_CAPTURE "Misc" 265 IDS_ERROR_HELPERHEADING "HELP ERROR" 266 IDS_ERROR_COULDNOTINITHELP "Could not initialize online help." 267 IDS_ERROR_COULDNOTINITHELPFILE "Could not initialize online help. Does helpfile '%s' exist in Gotcha's directory?" 268 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 269 270 271 IDS_PAGESAVE "Save" 272 IDS_PAGESNAPSHOT "Capture Type" 273 IDS_CAPTURE "Capture Options" 270 274 IDS_PAGELANGUAGE "Language" 271 275 … … 288 292 IDS_WISHCONTINUE "Do you wish to continue?" 289 293 } 294 295 STRINGTABLE 296 { 297 LANG_COPYRIGHT "Screen/window capture utility\nCopyright ž 1998-2007 Thorsten Thielen 2018-2020 Netlabs Gotcha! team. All rights reserved.\nWWW: https://trac.netlabs.org/gotcha" 298 LANG_PROGRAM "Program" 299 LANG_HELPFILE "Online help" 300 LANG_RESTART "Note: A restart is required for these settings to take effect" 301 } -
trunk/NLS/es/goqreses.rc
r91 r94 38 38 /* "Gotcha_en", /* Name of the help file */ 39 39 } 40 41 RCDATA LANG_ID {"34"} 40 42 41 43 MENU IDM_SSWPOPUP … … 239 241 "Copyright ž 1998-2007 Thorsten Thielen\n" 240 242 "2018-2020 Equipo Gotcha! de Netlabs, todos los derechos reservados\n" 241 "WWW: https://trac.netlabs.org/gotcha", WID_ NIL,243 "WWW: https://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 242 244 5, 62, 190, 26, DT_WORDBREAK 243 GROUPBOX "Programa", WID_NIL, 5, 5, 95, 46245 /*GROUPBOX "Programa", WID_NIL, 5, 5, 95, 46 244 246 LISTBOX WID_LB_LANGUAGES, 9, 9, 88, 34, LS_NOADJUSTPOS 245 247 GROUPBOX "Archivo de ayuda", WID_NIL, 104, 5, 95, 46 246 248 LISTBOX WID_LB_LANGUAGESHELP, 107, 9, 88, 34, LS_NOADJUSTPOS 247 249 LTEXT "Nota: estas dos opciones requieren reiniciar el programa", 248 WID_ST_LANGNOTE, 5, 50, 184, 8, DT_WORDBREAK 250 WID_ST_LANGNOTE, 5, 50, 184, 8, DT_WORDBREAK*/ 249 251 END 250 252 END … … 299 301 IDS_ERROR_SEMAPHOREFAILED "Semaphore creation failed" 300 302 IDS_ERROR_SEMAPHOREFAILEDMSG "Try restarting Gotcha Quiet" 303 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 304 301 305 } 306 307 STRINGTABLE 308 { 309 LANG_COPYRIGHT "Herramienta de captura de pantalla/ventanas\nCopyright ž 1998-2007 Thorsten Thielen\n2018-2020 Equipo Gotcha! de Netlabs, todos los derechos reservados\nWWW: https://trac.netlabs.org/gotcha" 310 LANG_PROGRAM "Programa" 311 LANG_HELPFILE "Archivo de ayuda" 312 LANG_RESTART "Nota: estas dos opciones requieren reiniciar el programa" 313 } -
trunk/NLS/es/gotreses.rc
r91 r94 53 53 MENUITEM "Cerrar", WID_CB_SSWENABLE 54 54 } 55 56 RCDATA LANG_ID {"34"} 55 57 56 58 ACCELTABLE 1 PRELOAD … … 235 237 "Copyright ž 1998-2007 Thorsten Thielen\n" 236 238 "2018-2020 Equipo Gotcha! de Netlabs, todos los derechos reservados\n" 237 "WWW: https://trac.netlabs.org/gotcha", WID_ NIL,239 "WWW: https://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 238 240 10, 92, 190, 26, DT_WORDBREAK 239 241 GROUPBOX "Programa", WID_NIL, 10, 5, 112, 66 240 242 LISTBOX WID_LB_LANGUAGES, 14, 10, 105, 53, LS_NOADJUSTPOS 243 #if 0 241 244 GROUPBOX "Archivo de ayuda", WID_NIL, 134, 5, 112, 66 242 245 LISTBOX WID_LB_LANGUAGESHELP, 137, 10, 105, 53, LS_NOADJUSTPOS 246 #endif 243 247 LTEXT "Nota: estas dos opciones requieren reiniciar el programa", 244 WID_ST_LANGNOTE, 10, 7 4, 184, 8, DT_WORDBREAK248 WID_ST_LANGNOTE, 10, 70, 184, 8, DT_WORDBREAK 245 249 END 246 250 END … … 261 265 IDS_ERROR_INIFILENOTOPEN "No se pudo abrir su archivo INI (®%s¯)! Se usar n las opciones por omisi¢n." 262 266 263 IDS_ERROR_HELPERHEADING "ERROR DE AYUDA" 264 IDS_ERROR_COULDNOTINITHELP "No se pudo inicializar la ayuda." 265 IDS_ERROR_COULDNOTINITHELPFILE "No se pudo inicializar la ayuda. šEst el archivo ®%s¯ en el directorio de Gotcha?" 267 IDS_ERROR_HELPERHEADING "ERROR DE AYUDA" 268 IDS_ERROR_COULDNOTINITHELP "No se pudo inicializar la ayuda." 269 IDS_ERROR_COULDNOTINITHELPFILE "No se pudo inicializar la ayuda. šEst el archivo ®%s¯ en el directorio de Gotcha?" 270 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 266 271 267 272 IDS_PAGESAVE "Guardar" … … 288 293 IDS_WISHCONTINUE "šDesea continuar?" 289 294 } 295 296 STRINGTABLE 297 { 298 LANG_COPYRIGHT "Herramienta de captura de pantalla/ventanas\nCopyright ž 1998-2007 Thorsten Thielen 2018-2020 Equipo Gotcha! de Netlabs, todos los derechos reservados.\nWWW: https://trac.netlabs.org/gotcha" 299 LANG_PROGRAM "Programa" 300 LANG_HELPFILE "Archivo de ayuda" 301 LANG_RESTART "Nota: estas dos opciones requieren reiniciar el programa" 302 } -
trunk/NLS/it/goqresit.rc
r91 r94 38 38 /* "Gotcha_en", /* Name of the help file */ 39 39 } 40 41 RCDATA LANG_ID {"39"} 40 42 41 43 MENU IDM_SSWPOPUP … … 224 226 "Copyright (c) 2018-2019 The Netlabs Gotcha Group\n" 225 227 "All rights reserved\n" 226 "WWW: http://trac.netlabs.org/gotcha", WID_ NIL,228 "WWW: http://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 227 229 5, 62, 190, 26, DT_WORDBREAK 228 GROUPBOX "Programma", WID_NIL, 5, 5, 95, 46230 /*GROUPBOX "Programma", WID_NIL, 5, 5, 95, 46 229 231 LISTBOX WID_LB_LANGUAGES, 9, 9, 88, 34, LS_NOADJUSTPOS 230 232 GROUPBOX "Aiuto in linea", WID_NIL, 104, 5, 95, 46 … … 232 234 LTEXT "Nota: queste impostazioni avranno effetto solo dopo " 233 235 "il prossimo avvio del programma.", 234 WID_ST_LANGNOTE, 5, 50, 184, 8, DT_WORDBREAK //translation update 236 WID_ST_LANGNOTE, 5, 50, 184, 8, DT_WORDBREAK //translation update */ 235 237 END 236 238 END … … 286 288 IDS_ERROR_SEMAPHOREFAILED "Semaphore creation failed" 287 289 IDS_ERROR_SEMAPHOREFAILEDMSG "Try restarting Gotcha Quiet" 290 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 291 288 292 } 293 294 STRINGTABLE 295 { 296 LANG_COPYRIGHT "Utilit 297 per la cattura di finestre e schermate.\nCopyright (c) 1998-2007 Thorsten Thielen\nCopyright (c) 2018-2019 The Netlabs Gotcha Group\nAll rights reserved\nWWW: http://trac.netlabs.org/gotcha" 298 LANG_PROGRAM "Programma" 299 LANG_HELPFILE "Aiuto in linea" 300 LANG_RESTART "Nota: queste impostazioni avranno effetto solo dopo il prossimo avvio del programma." 301 } -
trunk/NLS/it/gotresit.rc
r91 r94 74 74 /* "Gotcha_it.hlp", /* Name of the help file */ 75 75 } 76 77 RCDATA LANG_ID {"39"} 76 78 77 79 MENU IDM_SSWPOPUP … … 295 297 "Copyright (c) 1998-2007 Thorsten Thielen\n" 296 298 "2018-2019 Netlabs Gotcha Group All rights Reserved\n" 297 "WWW: http://trac.netlabs.org/gotcha", WID_ NIL,298 10, 92, 190, 26, DT_WORDBREAK299 "WWW: http://trac.netlabs.org/gotcha", WID_ST_COPYRIGHT, 300 10, 92, 190, 36, DT_WORDBREAK 299 301 GROUPBOX "Programma", WID_NIL, 10, 5, 112, 66 300 302 LISTBOX WID_LB_LANGUAGES, 14, 10, 105, 53, LS_NOADJUSTPOS 303 #if 0 301 304 GROUPBOX "Programma", WID_NIL, 134, 5, 112, 66 302 305 LISTBOX WID_LB_LANGUAGESHELP, 137, 10, 105, 53, LS_NOADJUSTPOS 306 #endif 303 307 LTEXT "Nota: queste impostazioni avranno effetto solo dopo " 304 308 "il prossimo avvio del programma.", … … 326 330 IDS_ERROR_COULDNOTINITHELP "Non riesco ad inizializzare l'aiuto in linea." 327 331 IDS_ERROR_COULDNOTINITHELPFILE "Non riesco ad inizializzare l'aiuto in linea. L'archivio di aiuto '%s' presente nella cartella di ""Gotcha!""?" 332 IDS_ERROR_RESOURSEMODFAILED "Could not (re)load resource module '%s' (return code %d). Make sure the DLL is in the LIBPATH. If this is the case, try deleting GOTCHA.INI and restart. If this fails, contact the author (ygk@qwest.net)." 328 333 329 334 IDS_PAGESAVE "Registrazione" … … 351 356 } 352 357 358 STRINGTABLE 359 { 360 LANG_COPYRIGHT "Utilit 361 per la cattura di finestre e schermate\nCopyright ž 1998-2007 Thorsten Thielen\n2018-2019 The Netlabs Gotcha Group\nAll rights reserved.\nWWW: http://trac.netlabs.org/gotcha" 362 LANG_PROGRAM "Programma" 363 LANG_HELPFILE "Aiuto in linea" 364 LANG_RESTART "Nota: queste impostazioni avranno effetto solo dopo il prossimo avvio del programma." 365 } -
trunk/gotcha.cpp
r92 r94 92 92 g_usePMps = TRUE; 93 93 } 94 if (stricmp (argv[i], "-i") == 0) 95 { 96 g_installer = TRUE; 97 pset->SetFileSaveStyle (FSS_NUMFILES); 98 pset->SetNumSaveDir ("Z:\\"); 99 } 94 100 #endif 95 101 } … … 113 119 hab = WinInitialize (0); 114 120 HMQ hmq = WinCreateMsgQueue (hab, 0); 121 int rc; 115 122 116 123 // Load settings moved up here so the string table is available for the already running error 117 124 pset = new SETTINGS; 118 //DisplayError("DEBUG", "%d", Version());119 #ifdef _QUIET_120 if ((Version() < 2))121 {122 DisplayError(RSTR (IDS_ERROR_DLLOUTDATED),123 RSTR (IDS_ERROR_DLLOUTDATEDMSG));124 exit (0);125 }126 int rc;127 HMTX hmtx = NULLHANDLE;128 // running multiple instances orphans all but the first hook unloaded129 rc = DosOpenMutexSem("\\SEM32\\GOTCHA", &hmtx);130 if (!rc) {131 DisplayError(RSTR (IDS_ERROR_ALREADYRUNNING),132 RSTR (IDS_ERROR_ALREADYRUNNINGMSG));133 exit (0);134 }135 rc = DosCreateMutexSem("\\SEM32\\GOTCHA", &hmtx, 0, FALSE);136 if (rc) {137 DisplayError(RSTR (IDS_ERROR_SEMAPHOREFAILED),138 RSTR (IDS_ERROR_SEMAPHOREFAILEDMSG));139 exit (0);140 }141 #endif142 143 // register our window classes144 WinRegisterClass (hab, "thth.wc.gotcha.main", WindowProcedure, 0L,145 sizeof (ULONG)*2L);146 #ifndef _QUIET_147 WinRegisterClass (hab, "thth.wc.gotcha.snapshot", wpSnapshot,148 CS_SIZEREDRAW, sizeof (ULONG)*2L);149 #endif150 // load the settings151 //pset = new SETTINGS;152 125 153 126 pset->idleSetInIni = pset->QueryFlag(SEI_IDLEPRIORITY); … … 156 129 pset->pForceSaveFile = pset->QueryForceSaveFile(); 157 130 pset->bSerialCapture = pset->SerialCapture (); 158 #ifndef _QUIET_ 131 //DisplayError("DEBUG", "%d", Version()); 132 #if 0 133 #ifdef _QUIET_ 134 HINI hini = PrfOpenProfile (hab, "gotchaq.ini"); 135 #else 136 HINI hini = PrfOpenProfile (hab, "gotcha.ini"); 137 #endif 138 BOOL fLChange = FALSE; 139 ULONG ulDataSize; 140 PrfQueryProfileSize(hini, "Language", "LangChangeRequested", &ulDataSize ); 141 PrfQueryProfileData(hini, "Language", "LangChangeRequested", &fLChange, &ulDataSize); 142 if (!fLChange) { 143 CHAR *lang = getenv("LANG"); 144 #ifdef _QUIET_ 145 PSZ psz = "goqresen"; 146 #else 147 PSZ psz = "gotresen"; 148 #endif 149 PSZ pszh = "gotcha_en"; 150 if (lang) { 151 if (!strnicmp(lang, "es", 2)) { 152 psz = "gotreses"; 153 pszh = "gotcha_es"; 154 } 155 else if (!strnicmp(lang, "cs", 2)) { 156 psz = "gotrescz"; 157 } 158 else if (!strnicmp(lang, "de", 2)) { 159 psz = "gotresde"; 160 } 161 else if (!strnicmp(lang, "it", 2)) { 162 psz = "gotresit"; 163 pszh = "gotcha_it"; 164 } 165 else if (!strnicmp(lang, "br", 2)) { 166 psz = "gotresbr"; 167 pszh = "gotcha_br"; 168 } 169 } 170 pset->SetString(SEI_LANGUAGE, psz); 171 pset->SetString (SEI_LANGUAGEHELP, pszh); 172 173 pset->Save (); 174 pset->ReloadResources (pset->QueryString(SEI_LANGUAGE)); 175 //fLChange = FALSE; 176 //PrfWriteProfileData(hini, "Language", "LangChangeRequested", &fLChange, sizeof(BOOL)); 177 } 178 if (hini) 179 PrfCloseProfile (hini); 180 #endif 181 #ifdef _QUIET_ 182 CheckCmdlineArgs (argc, argv); 183 if ((Version() < 2)) 184 { 185 if (! g_installer) 186 DisplayError(RSTR (IDS_ERROR_DLLOUTDATED), 187 RSTR (IDS_ERROR_DLLOUTDATEDMSG)); 188 exit (0); 189 } 190 HMTX hmtx = NULLHANDLE; 191 // running multiple instances orphans all but the first hook unloaded 192 rc = DosOpenMutexSem("\\SEM32\\GOTCHA", &hmtx); 193 if (!rc) { 194 if (! g_installer) 195 DisplayError(RSTR (IDS_ERROR_ALREADYRUNNING), 196 RSTR (IDS_ERROR_ALREADYRUNNINGMSG)); 197 exit (0); 198 } 199 rc = DosCreateMutexSem("\\SEM32\\GOTCHA", &hmtx, 0, FALSE); 200 if (rc) { 201 if (! g_installer) 202 DisplayError(RSTR (IDS_ERROR_SEMAPHOREFAILED), 203 RSTR (IDS_ERROR_SEMAPHOREFAILEDMSG)); 204 exit (0); 205 } 206 #endif 207 208 // register our window classes 209 WinRegisterClass (hab, "thth.wc.gotcha.main", WindowProcedure, 0L, 210 sizeof (ULONG)*2L); 211 #ifndef _QUIET_ 212 WinRegisterClass (hab, "thth.wc.gotcha.snapshot", wpSnapshot, 213 CS_SIZEREDRAW, sizeof (ULONG)*2L); 214 159 215 // check cmd line args and if "-a" found take screenshot and exit 160 216 if (CheckCmdlineArgs (argc, argv)) … … 210 266 0,0, 0,0, SWP_SHOW); 211 267 #endif 212 213 268 g_phelp = new Helper(hwndFrame); 214 269 -
trunk/gotcha.h
r68 r94 47 47 #include "settings.h" 48 48 49 //#define _PMPRINTF_ 50 //#include "PMPRINTF.H" 49 #if 1 50 #define _PMPRINTF_ 51 #include "PMPRINTF.H" 52 #endif 51 53 52 54 #define PSZ_EXTENSION ".bmp" -
trunk/id.h
r91 r94 19 19 20 20 #define DLL_ID 1 21 #define LANG_ID 2 21 22 22 23 #define ID_DLG_MAIN 1 … … 72 73 #define WID_LB_LANGUAGES 39 73 74 #define WID_LB_LANGUAGESHELP 40 74 #define WID_ST_LANGNOTE 4175 75 #define WID_PB_HELP 42 76 76 #define WID_LB_FILEFORMAT 43 77 77 #define WID_PB_EXIT 44 78 78 #define WID_PB_SETCAPTURETYPE 45 79 80 // These must be sequential with END last 81 #define WID_ST_COPYRIGHT 400 82 #define WID_ST_PROGRAM 401 83 #define WID_ST_HELPFILE 402 84 #define WID_ST_LANGNOTE 403 85 #define WID_ST_END 404 79 86 80 87 #define IDM_SSWPOPUP 1 … … 130 137 #define SEI_UPDATE178DONE 27 131 138 139 #define EN 1 140 #define CZ 420 141 #define IT 39 142 #define DE 49 143 #define ES 34 144 #define RU 7 145 #define JP 81 146 #define PL 48 147 #define BR 55 132 148 133 149 #define IDS_SETTINGS 3 … … 172 188 #define IDS_ERROR_SEMAPHOREFAILED 44 173 189 #define IDS_ERROR_SEMAPHOREFAILEDMSG 45 190 #define IDS_ERROR_RESOURSEMODFAILED 46 191 #define IDS_UNDO 47 192 #define IDS_HELP 48 193 194 #define LANG_COPYRIGHT 300 195 #define LANG_PROGRAM 301 196 #define LANG_HELPFILE 302 197 #define LANG_RESTART 303 174 198 175 199 #define MAIN_HELP_TABLE 1 -
trunk/mainwin.cpp
r92 r94 181 181 rcl.yTop - rcl.yBottom, 182 182 SWP_SHOW | SWP_MOVE | SWP_SIZE | SWP_ZORDER); 183 HMQ hmq; 184 BOOL bUniCodeFont; 185 CHAR ucFont[FACESIZE]; 186 187 if (pset->GetLangID() == RU) { 188 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 189 WinSetCp(hmq, 866); 190 bUniCodeFont = TRUE; 191 } 192 else if (pset->GetLangID() == CZ || pset->GetLangID() == PL) { 193 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 194 WinSetCp(hmq, 852); 195 bUniCodeFont = TRUE; 196 } 197 else { 198 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 199 WinSetCp(hmq, 850); 200 } 201 202 if (pset->GetLangID() == RU || pset->GetLangID() == CZ || pset->GetLangID() == PL) { 203 strcpy(ucFont, "9.Times New Roman MT 30"); 204 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 205 } 206 else 207 WinRemovePresParam(hwnd, PP_FONTNAMESIZE); 183 208 #endif 184 209 } -
trunk/makefile
r86 r94 18 18 GOTREVISION = $(%GOTREVISION) 19 19 !else 20 GOTREVISION = 020 GOTREVISION = 1 21 21 !endif 22 22 !ifdef %GOTFIXLEVEL … … 108 108 rstring.obj, & 109 109 settings.obj & 110 lib dll\gotchdll.lib lib mmpm2.lib lib $(GBMPATH)\gbm.lib lib $(SRCDIR)\tools\gbmmemw.lib lib $(PMPRINTFPATH)\pmprintf.lib 110 lib dll\gotchdll.lib lib mmpm2.lib lib $(GBMPATH)\gbm.lib lib $(SRCDIR)\tools\gbmmemw.lib lib $(PMPRINTFPATH)\pmprintf.lib lib libconv.lib 111 111 $(RC) $(RFLAGS) $(SRCDIR)\$(GOTCHAEXE).res $(GOTCHAEXE).exe 112 112 $(PERL) $(MAPSYMW) $(GOTCHAEXE).map -
trunk/settings.cpp
r92 r94 18 18 ***/ 19 19 #include <direct.h> 20 #include <uconv.h> 20 21 #include "settings.h" 21 22 #include "ctype.h" … … 32 33 USHORT ausDef[7] = { 0 }; 33 34 USHORT ausDefSSW[7] = { 0 }; 35 BOOL g_installer = FALSE; 34 36 35 37 ImageFormatInfo Settings::ifi[BMF_INVALID] = … … 109 111 //DisplayError( "NOT Updated", "true" ); 110 112 } 111 113 #ifdef _QUIET_ 114 HINI hini = PrfOpenProfile (hab, "gotchaq.ini"); 115 #else 116 HINI hini = PrfOpenProfile (hab, "gotcha.ini"); 117 #endif 118 BOOL fLChange = FALSE; 119 ULONG ulDataSize; 120 PrfQueryProfileSize(hini, "Language", "LangChangeRequested", &ulDataSize ); 121 PrfQueryProfileData(hini, "Language", "LangChangeRequested", &fLChange, &ulDataSize); 122 if (!fLChange) { 123 CHAR *lang = getenv("LANG"); 124 #ifdef _QUIET_ 125 PSZ psz = "goqresen"; 126 #else 127 PSZ psz = "gotresen"; 128 #endif 129 PSZ pszh = "gotcha_en"; 130 if (lang) { 131 if (!strnicmp(lang, "es", 2)) { 132 psz = "gotreses"; 133 pszh = "gotcha_es"; 134 } 135 else if (!strnicmp(lang, "cs", 2)) { 136 psz = "gotrescz"; 137 } 138 else if (!strnicmp(lang, "de", 2)) { 139 psz = "gotresde"; 140 } 141 else if (!strnicmp(lang, "it", 2)) { 142 psz = "gotresit"; 143 pszh = "gotcha_it"; 144 } 145 else if (!strnicmp(lang, "br", 2)) { 146 psz = "gotresbr"; 147 pszh = "gotcha_br"; 148 } 149 } 150 SetString(SEI_LANGUAGE, psz); 151 SetString (SEI_LANGUAGEHELP, pszh); 152 Save (); 153 } 154 if (hini) 155 PrfCloseProfile (hini); 112 156 // to get the error msgs in default language 113 157 ReloadResources (QueryString(SEI_LANGUAGE)); 114 115 if (Error () == 1) 116 { 117 FileNotOpenError (); 118 ReloadResources (QueryString(SEI_LANGUAGE)); 158 #ifdef _QUIET_ 159 if (!g_installer) { 160 #endif 161 if (Error () == 1) 162 { 163 FileNotOpenError (); 164 ReloadResources (QueryString(SEI_LANGUAGE)); 165 } 166 else if (Error () == 2) 167 { 168 VersionError (); 169 ReloadResources (QueryString(SEI_LANGUAGE)); 170 } 171 #ifdef _QUIET_ 119 172 } 120 else if (Error () == 2) 121 { 122 VersionError (); 123 ReloadResources (QueryString(SEI_LANGUAGE)); 124 } 173 #endif 125 174 } 126 175 … … 135 184 } 136 185 137 // ** FileNotOpenError **************************************************** /* fold00*/186 // ** FileNotOpenError **************************************************** /*FOLD00*/ 138 187 139 188 USHORT SETTINGS :: FileNotOpenError (VOID) … … 159 208 160 209 // load the main dialog window 161 hwndDlg = WinLoadDlg (HWND_DESKTOP, hwndFrame, PFNWP(DialogProcedure),210 hwndDlg = WinLoadDlg (HWND_DESKTOP, hwndFrame, (DialogProcedure), 162 211 GETMODULE, ID_DLG_SETTINGS, this); 163 212 // FIXME YUKKI! YUKKI!! YUKKI!!! But I'm too lazy to do it better now :-) … … 199 248 200 249 idPage[0] = (ULONG) 201 WinSendMsg (hwnd NB, BKM_INSERTPAGE, 0L,250 WinSendMsg (hwndDlg, BKM_INSERTPAGE, 0L, 202 251 MPFROM2SHORT (BKA_MAJOR | BKA_AUTOPAGESIZE, 203 252 BKA_LAST)); 204 WinSendMsg (hwnd NB, BKM_SETTABTEXT, MPFROMLONG (idPage[0]),253 WinSendMsg (hwndDlg, BKM_SETTABTEXT, MPFROMLONG (idPage[0]), 205 254 MPFROMP (pszPageTab[COUNT_PAGES-1])); 206 255 hwndPage[0] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page4Procedure, … … 214 263 for (i = 0; i < cPages; i++) 215 264 { 265 //BOOKPAGEINFO pi; 216 266 idPage[i] = (ULONG) 217 267 WinSendMsg (hwndNB, BKM_INSERTPAGE, 0L, 218 268 MPFROM2SHORT (BKA_MAJOR | BKA_AUTOPAGESIZE, 219 269 BKA_LAST)); 220 WinSendMsg (hwndNB, BKM_SETTABTEXT, 221 MPFROMLONG (idPage[i]), MPFROMP (pszPageTab[i])); 270 #if 0 271 pi.cb = sizeof(pi); 272 pi.fl = BFA_PAGEFROMDLGRES | BFA_MAJORTABTEXT; 273 pi.bLoadDlg = TRUE; 274 pi.hmodPageDlg = g_hmod; 275 switch (i) { 276 #ifndef _QUIET_ 277 case 0: 278 pi.idPageDlg = ID_DLG_SETTINGSPAGE1; 279 pi.pfnPageDlgProc = NULL; //(PFN) Page1Procedure; 280 break; 281 #else 282 case 0: 283 pi.idPageDlg = ID_DLG_SETTINGSPAGE0; 284 pi.pfnPageDlgProc = NULL; //(PFN) WindowProcedure; 285 break; 286 #endif 287 case 1: 288 pi.idPageDlg = ID_DLG_SETTINGSPAGE2; 289 pi.pfnPageDlgProc = NULL; //(PFN) Page2Procedure; 290 break; 291 #ifndef _QUIET_ 292 case 2: 293 pi.idPageDlg = ID_DLG_SETTINGSPAGE3; 294 pi.pfnPageDlgProc = NULL; //(PFN) Page3Procedure; 295 break; 296 #else 297 case 2: 298 pi.idPageDlg = ID_DLG_SETTINGSPAGE1; 299 pi.pfnPageDlgProc = NULL; //(PFN) Page1Procedure; 300 break; 301 #endif 302 case 3: 303 pi.idPageDlg = ID_DLG_SETTINGSPAGE4; 304 pi.pfnPageDlgProc = NULL; //(PFN) Page4Procedure; 305 break; 306 } 307 pi.cbMajorTab = strlen(pszPageTab[i]); 308 pi.pszMajorTab = pszPageTab[i]; 309 pi.cbMinorTab = strlen(pszPageTab[i]); 310 pi.pszMinorTab = pszPageTab[i]; 311 pi.cbStatusLine = 0; 312 pi.pszStatusLine = NULL; 313 #endif 314 if (pset->GetLangID() == CZ || pset->GetLangID() == RU || pset->GetLangID() == PL) { 315 UniChar target[300]; 316 CHAR ucLangStr[300]; 317 UconvObject uconv_object866 = NULL; 318 UconvObject uconv_object852 = NULL; 319 UconvObject uconv_object1207 = NULL; 320 UconvObject uconv_object850 = NULL; 321 HAB hab; 322 CHAR ucFont[FACESIZE]; 323 324 UniCreateUconvObject((UniChar *)L"IBM-852", &uconv_object852); 325 UniCreateUconvObject((UniChar *)L"IBM-850", &uconv_object850); 326 UniCreateUconvObject((UniChar *)L"IBM-866", &uconv_object866); 327 UniCreateUconvObject((UniChar *)L"IBM-1207", &uconv_object1207); 328 329 strcpy(ucLangStr, pszPageTab[i]); 330 if (pset->GetLangID() == CZ || pset->GetLangID() == PL) { 331 332 UniStrToUcs( uconv_object852, target, ucLangStr, 299); 333 } 334 else if (pset->GetLangID() == RU) 335 UniStrToUcs( uconv_object866, target, ucLangStr, 299); 336 else { 337 UniStrToUcs( uconv_object850, target, ucLangStr, 299); 338 } 339 UniStrFromUcs( uconv_object1207, ucLangStr, target, 300); 340 WinSendMsg (hwndNB, BKM_SETTABTEXT, 341 MPFROMLONG (idPage[i]), MPFROMP (ucLangStr)); 342 /*pi.cbMajorTab = strlen(ucLangStr) + 10; 343 pi.pszMajorTab = ucLangStr; 344 pi.cbMinorTab = 0; 345 pi.pszMinorTab = "";*/ 346 if (uconv_object866) 347 UniFreeUconvObject(uconv_object866); 348 if (uconv_object852) 349 UniFreeUconvObject(uconv_object852); 350 if (uconv_object850) 351 UniFreeUconvObject(uconv_object850); 352 if (uconv_object1207) 353 UniFreeUconvObject(uconv_object1207); 354 } 355 else 356 WinSendMsg (hwndNB, BKM_SETTABTEXT, 357 MPFROMLONG (idPage[i]), MPFROMP (pszPageTab[i])); 358 //WinSendMsg(hwndNB, BKM_SETPAGEINFO, MPFROMLONG(idPage[i]), 359 // MPFROMP(&pi)); 222 360 } 223 361 #ifndef _QUIET_ … … 301 439 } 302 440 441 ULONG winhDrawFormattedText(HPS hps, PRECTL prcl, const char *pcszText, ULONG flCmd); 442 303 443 // ** DialogProcedure ***************************************************** /*FOLD00*/ 304 444 305 MRESULT EXPENTRY 306 SETTINGS :: DialogProcedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 445 MRESULT EXPENTRY SETTINGS :: DialogProcedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 307 446 { 308 447 static PSETTINGS pset = NULL; … … 322 461 LogDebug( "DialogProcedure: end WM_INITDLG" ); 323 462 #endif 463 CHAR ucFont[FACESIZE]; 464 if (pset->GetLangID() == CZ || pset->GetLangID() == RU || pset->GetLangID() == PL) { 465 HMQ hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 466 WinSetCp(hmq, 1207); 467 strcpy(ucFont, "8.Times New Roman MT 30"); 468 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 469 470 UniChar target[300]; 471 CHAR ucLangStr[300]; 472 UconvObject uconv_object866 = NULL; 473 UconvObject uconv_object860 = NULL; 474 UconvObject uconv_object852 = NULL; 475 UconvObject uconv_object1207 = NULL; 476 UconvObject uconv_object850 = NULL; 477 HAB hab; 478 CHAR ucFont[FACESIZE]; 479 480 UniCreateUconvObject((UniChar *)L"IBM-852", &uconv_object852); 481 UniCreateUconvObject((UniChar *)L"IBM-850", &uconv_object850); 482 UniCreateUconvObject((UniChar *)L"IBM-866", &uconv_object866); 483 UniCreateUconvObject((UniChar *)L"IBM-1207", &uconv_object1207); 484 485 WinLoadString(hab, g_hmod, IDS_UNDO, sizeof(ucLangStr), ucLangStr); 486 if (pset->GetLangID() == CZ || pset->GetLangID() == PL) { 487 488 UniStrToUcs( uconv_object852, target, ucLangStr, 299); 489 } 490 else if (pset->GetLangID() == RU) 491 UniStrToUcs( uconv_object866, target, ucLangStr, 299); 492 else { 493 UniStrToUcs( uconv_object850, target, ucLangStr, 299); 494 } 495 UniStrFromUcs( uconv_object1207, ucLangStr, target, 300); 496 WinSetDlgItemText(hwnd, WID_PB_UNDO, ucLangStr); 497 WinLoadString(hab, g_hmod, IDS_HELP, sizeof(ucLangStr), ucLangStr); 498 499 if (pset->GetLangID() == CZ || pset->GetLangID() == PL) { 500 501 UniStrToUcs( uconv_object852, target, ucLangStr, 299); 502 } 503 else if (pset->GetLangID() == RU) 504 UniStrToUcs( uconv_object866, target, ucLangStr, 299); 505 else { 506 UniStrToUcs( uconv_object850, target, ucLangStr, 299); 507 } 508 UniStrFromUcs( uconv_object1207, ucLangStr, target, 300); 509 WinSetDlgItemText(hwnd, WID_PB_HELP, ucLangStr); 510 if (uconv_object866) 511 UniFreeUconvObject(uconv_object866); 512 if (uconv_object852) 513 UniFreeUconvObject(uconv_object852); 514 if (uconv_object850) 515 UniFreeUconvObject(uconv_object850); 516 if (uconv_object1207) 517 UniFreeUconvObject(uconv_object1207); 518 } 519 else { 520 strcpy(ucFont, "10.WarpSans"); 521 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 522 } 523 324 524 return MRESULT (FALSE); 325 525 … … 437 637 // ** Page1Procedure ****************************************************** /*FOLD00*/ 438 638 439 MRESULT EXPENTRY 440 SETTINGS :: Page1Procedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 639 MRESULT EXPENTRY SETTINGS :: Page1Procedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 441 640 { 442 641 static PSETTINGS pset = NULL; … … 458 657 } 459 658 } 659 HMQ hmq; 660 BOOL bUniCodeFont; 661 CHAR ucFont[FACESIZE]; 662 663 if (pset->GetLangID() == RU) { 664 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 665 WinSetCp(hmq, 866); 666 bUniCodeFont = TRUE; 667 } 668 else if (pset->GetLangID() == CZ || pset->GetLangID() == PL) { 669 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 670 WinSetCp(hmq, 852); 671 bUniCodeFont = TRUE; 672 } 673 else { 674 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 675 WinSetCp(hmq, 850); 676 } 677 678 if (bUniCodeFont) { 679 strcpy(ucFont, "8.Times New Roman MT 30"); 680 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 681 } 682 else { 683 strcpy(ucFont, "10.WarpSans"); 684 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 685 } 686 460 687 #ifdef _DOLOGDEBUG_ 461 688 LogDebug( "Page1Procedure: end WM_INITDLG" ); … … 463 690 return MRESULT (FALSE); 464 691 } 692 693 case WM_DRAWITEM: 694 695 POWNERITEM poItem; 696 HPS hps; 697 RECTL rcl, // window area 698 rclClip; // clipping region for drawn text 699 POINTL ptl; // current text position 700 FATTRS fontAttrs; // current font attributes 701 FONTMETRICS fm; // current font metr 702 703 704 poItem = POWNERITEM (mp2); 705 706 //hps = WinBeginPaint( hwnd, NULLHANDLE, NULLHANDLE ); 707 memset( &fontAttrs, 0, sizeof(FATTRS) ); 708 PmpfF(("PageID %i", poItem->hItem)); 709 // set the font attributes and create the logical font 710 fontAttrs.usRecordLength = sizeof(FATTRS); 711 fontAttrs.usCodePage = 852; 712 fontAttrs.fsType = FATTR_TYPE_MBCS; 713 fontAttrs.fsFontUse = FATTR_FONTUSE_NOMIX; 714 strcpy( fontAttrs.szFacename, "10.WarpSans"); 715 GpiCreateLogFont( poItem->hps, NULL, 1L, &fontAttrs ); 716 GpiSetCharSet( poItem->hps, 1L ); 717 // paint the window background 718 //WinQueryWindowRect( hwnd, &rcl ); ???? 719 WinFillRect( hps, &poItem->rclItem, SYSCLR_WINDOW ); 720 GpiQueryFontMetrics( poItem->hps, sizeof(FONTMETRICS), &fm ); 721 rclClip.xLeft = poItem->rclItem.xLeft + fm.lAveCharWidth; 722 rclClip.yBottom = poItem->rclItem.yBottom + fm.lXHeight; 723 rclClip.xRight = poItem->rclItem.xRight - fm.lAveCharWidth; 724 rclClip.yTop = poItem->rclItem.yTop - fm.lXHeight; 725 ptl.x = rclClip.xLeft; 726 ptl.y = rclClip.yTop - fm.lExternalLeading - fm.lMaxAscender; 727 GpiCharStringPosAt( poItem->hps, &ptl, &rclClip, CHS_CLIP, 728 /*Strlen(pszPageTab[i])*/5, (PCH) /*pszPageTab[i]*/ "Test", NULL ); 729 WinEndPaint( hps ); 730 731 //poItem->hwnd = hwndNB; /* Window handle. */ 732 //poItem->hps = hps; /* Presentation-space handle. */ 733 //poItem->fsState = BKS_BACKPAGESTR | BKS_MAJORTABTOP | BKS_TABBEDDIALOG; /* State. */ 734 //poItem->fsAttribute = BKA_MAJOR | BKA_AUTOPAGESIZE; /* Attribute. */ 735 //poItem->rclItem; ???? /* Item rectangle. */ 736 //poItem->hItem = idPage[i]; 737 738 break; 465 739 466 740 case WM_COMMAND: … … 623 897 // ** Page2Procedure ****************************************************** /*FOLD00*/ 624 898 625 MRESULT EXPENTRY 626 SETTINGS :: Page2Procedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 899 MRESULT EXPENTRY SETTINGS :: Page2Procedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 627 900 { 628 901 static PSETTINGS pset = NULL; … … 638 911 LogDebug( "Page1Procedure: end WM_INITDLG" ); 639 912 #endif 913 HMQ hmq; 914 BOOL bUniCodeFont; 915 CHAR ucFont[FACESIZE]; 916 917 if (pset->GetLangID() == RU) { 918 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 919 WinSetCp(hmq, 866); 920 bUniCodeFont = TRUE; 921 } 922 else if (pset->GetLangID() == CZ || pset->GetLangID() == PL) { 923 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 924 WinSetCp(hmq, 852); 925 bUniCodeFont = TRUE; 926 } 927 else { 928 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 929 WinSetCp(hmq, 850); 930 } 931 932 if (bUniCodeFont) { 933 strcpy(ucFont, "8.Times New Roman MT 30"); 934 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 935 } 936 //else 937 // WinRemovePresParam(hwnd, PP_FONTNAMESIZE); 640 938 return MRESULT (FALSE); 641 939 … … 819 1117 // ** Page3Procedure ****************************************************** /*FOLD00*/ 820 1118 821 MRESULT EXPENTRY 822 SETTINGS :: Page3Procedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 1119 MRESULT EXPENTRY SETTINGS :: Page3Procedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 823 1120 { 824 1121 static PSETTINGS pset = NULL; … … 834 1131 LogDebug( "Page3Procedure: end WM_INITDLG" ); 835 1132 #endif 1133 HMQ hmq; 1134 BOOL bUniCodeFont; 1135 CHAR ucFont[FACESIZE]; 1136 1137 if (pset->GetLangID() == RU) { 1138 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 1139 WinSetCp(hmq, 866); 1140 bUniCodeFont = TRUE; 1141 } 1142 else if (pset->GetLangID() == CZ || pset->GetLangID() == PL) { 1143 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 1144 WinSetCp(hmq, 852); 1145 bUniCodeFont = TRUE; 1146 } 1147 else { 1148 hmq = WinQueryWindowULong( hwnd, QWL_HMQ); 1149 WinSetCp(hmq, 850); 1150 } 1151 1152 if (bUniCodeFont) { 1153 strcpy(ucFont, "8.Times New Roman MT 30"); 1154 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 1155 } 1156 //else 1157 // WinRemovePresParam(hwnd, PP_FONTNAMESIZE); 836 1158 return MRESULT (FALSE); 837 1159 … … 946 1268 // ** Page4Procedure ****************************************************** /*FOLD00*/ 947 1269 948 MRESULT EXPENTRY 949 SETTINGS :: Page4Procedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 1270 MRESULT EXPENTRY SETTINGS :: Page4Procedure (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 950 1271 { 951 1272 static PSETTINGS pset = NULL; … … 959 1280 #endif 960 1281 pset = PSETTINGS (mp2); 961 1282 HMQ hmq = WinQueryWindowULong(hwnd /*WinWindowFromID(hwnd, ID_DLG_SETTINGSPAGE4)*/, QWL_HMQ); 1283 WinSetCp(hmq, 1207); // UPF-8 Unicode 1284 WinRemovePresParam(hwnd, PP_FONTNAMESIZE); 962 1285 pset->GetLanguages(WinWindowFromID (hwnd, WID_LB_LANGUAGES)); 963 1286 … … 1006 1329 LogDebug( "Page4Procedure: end WM_INITDLG" ); 1007 1330 #endif 1008 } 1331 1332 UniChar target[300]; 1333 CHAR ucLangStr[300]; 1334 UconvObject uconv_object866 = NULL; 1335 UconvObject uconv_object860 = NULL; 1336 UconvObject uconv_object852 = NULL; 1337 UconvObject uconv_object1207 = NULL; 1338 UconvObject uconv_object850 = NULL; 1339 int result; 1340 int i; 1341 HAB hab; 1342 CHAR ucFont[FACESIZE]; 1343 1344 UniCreateUconvObject((UniChar *)L"IBM-852", &uconv_object852); 1345 UniCreateUconvObject((UniChar *)L"IBM-850", &uconv_object850); 1346 UniCreateUconvObject((UniChar *)L"IBM-866", &uconv_object866); 1347 1348 UniCreateUconvObject((UniChar *)L"IBM-1207", &uconv_object1207); 1349 for (i = 0; i < WID_ST_END - 400; i++) { 1350 WinLoadString(hab, g_hmod, LANG_COPYRIGHT + i, sizeof(ucLangStr), ucLangStr); 1351 if (pset->GetLangID() == 420 || 1352 pset->GetLangID() == PL) { 1353 1354 UniStrToUcs( uconv_object852, target, ucLangStr, 299); 1355 } 1356 else if (pset->GetLangID() == RU) 1357 UniStrToUcs( uconv_object866, target, ucLangStr, 299); 1358 else { 1359 UniStrToUcs( uconv_object850, target, ucLangStr, 299); 1360 } 1361 UniStrFromUcs( uconv_object1207, ucLangStr, target, 300); 1362 WinSetDlgItemText(hwnd, WID_ST_COPYRIGHT + i, ucLangStr); 1363 } 1364 1365 if (uconv_object866) 1366 UniFreeUconvObject(uconv_object866); 1367 if (uconv_object852) 1368 UniFreeUconvObject(uconv_object852); 1369 if (uconv_object850) 1370 UniFreeUconvObject(uconv_object850); 1371 if (uconv_object1207) 1372 UniFreeUconvObject(uconv_object1207); 1373 1374 if (pset->GetLangID() == RU || pset->GetLangID() == CZ || pset->GetLangID() == PL || 1375 pset->GetLangID() == IT) { 1376 strcpy(ucFont, "8.Times New Roman MT 30"); 1377 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 1378 } 1379 1380 // WinRemovePresParam(hwnd, PP_FONTNAMESIZE);*/ 1381 //HMQ hmq = WinQueryWindowULong(hwnd /*WinWindowFromID(hwnd, WID_LB_LANGUAGES)*/, QWL_HMQ); 1382 //WinSetCp(hmq, 1207); // UPF-8 Unicode 1009 1383 return MRESULT (FALSE); 1384 } 1010 1385 1011 1386 case WM_COMMAND: … … 1076 1451 1077 1452 case WM_DESTROY: 1453 #ifndef _QUIET_ 1078 1454 { 1079 1455 CHAR ach[_MAX_FNAME]; 1456 BOOL fChanged = TRUE; 1080 1457 1081 1458 ULONG ul = USHORT (WinSendDlgItemMsg (hwnd, WID_LB_LANGUAGES, … … 1085 1462 LM_QUERYITEMHANDLE, 1086 1463 MPFROMLONG(ul), NULL)); 1087 pset->SetString(SEI_LANGUAGE, psz); 1088 1464 if (stricmp (pset->QueryString(SEI_LANGUAGE), psz) == 0) 1465 fChanged = FALSE; 1466 else 1467 pset->SetString(SEI_LANGUAGE, psz); 1468 #if 0 1089 1469 ul = USHORT (WinSendDlgItemMsg (hwnd, WID_LB_LANGUAGESHELP, 1090 1470 LM_QUERYSELECTION, … … 1092 1472 WinSendDlgItemMsg (hwnd, WID_LB_LANGUAGESHELP, LM_QUERYITEMTEXT, 1093 1473 MPFROM2SHORT (ul, sizeof (ach)), MPFROMP (ach)); 1094 pset->SetString (SEI_LANGUAGEHELP, ach); 1095 1096 if (saveum) 1474 if (stricmp (pset->QueryString(SEI_LANGUAGEHELP), ach) == 0 && !fChanged) 1475 fChanged = FALSE; 1476 else 1477 pset->SetString (SEI_LANGUAGEHELP, ach); 1478 #endif 1479 if (fChanged) { 1480 if (!stricmp(psz, "gotreses") || !stricmp(psz, "goqreses")) 1481 strcpy(ach, "gotcha_es"); 1482 else if (!stricmp(psz, "gotresbr") || !stricmp(psz, "goqresbr")) 1483 strcpy(ach, "gotcha_br"); 1484 else if (!stricmp(psz, "gotresit") || !stricmp(psz, "goqresit")) 1485 strcpy(ach, "gotcha_it"); 1486 else 1487 strcpy(ach, "gotcha_en"); 1488 pset->SetString (SEI_LANGUAGEHELP, ach); 1489 } 1490 if (saveum && fChanged) { 1097 1491 pset->Save (); 1098 } 1492 #ifdef _QUIET_ 1493 HINI hini = PrfOpenProfile (hab, "gotchaq.ini"); 1494 #else 1495 HINI hini = PrfOpenProfile (hab, "gotcha.ini"); 1496 #endif 1497 BOOL fLChanged = TRUE; 1498 PrfWriteProfileData(hini, "Language", "LangChangeRequested", &fLChanged, sizeof(BOOL)); 1499 if (hini) 1500 PrfCloseProfile (hini); 1501 } 1502 } 1503 #endif 1099 1504 return MRESULT (FALSE); 1100 1505 } … … 1114 1519 } 1115 1520 1116 // ** QueryWindowData ***************************************************** /* fold00*/1521 // ** QueryWindowData ***************************************************** /*FOLD00*/ 1117 1522 1118 1523 VOID SETTINGS :: QueryWindowData (SWP *pswp, USHORT us[7], BOOL f) … … 1158 1563 if ((rc = DosLoadModule(PSZ(NULL), 0, psz, &g_hmod))) 1159 1564 { 1160 DisplayError("Error", 1161 "Could not (re)load resource module '%s' (return code %d). " 1162 "Make sure the DLL is in the LIBPATH. If this is the case, " 1163 "try deleting GOTCHA.INI and restart. If this fails, contact " 1164 "the author (ygk@qwest.net).", psz, rc); 1565 DisplayError(RSTR(IDS_HEADER_ERROR), 1566 RSTR(IDS_ERROR_RESOURSEMODFAILED), psz, rc); 1165 1567 exit(1); 1166 1568 } 1167 1569 PVOID pv; 1570 INT Lang; 1571 1572 DosGetResource(g_hmod, RT_RCDATA, LANG_ID, &pv); 1573 Lang = atoi((PCHAR) pv); 1574 SetLangID(Lang); 1168 1575 ResourceString::Module(g_hmod); 1169 1576 #ifdef _QUIET_ … … 1236 1643 if ((rc = DosLoadModule(PSZ(NULL), 0, findbuf.achName, &hmod)) == NO_ERROR) { 1237 1644 PVOID pv; 1645 PVOID pl; 1646 1238 1647 if (DosGetResource(hmod, RT_RCDATA, DLL_ID, &pv) == NO_ERROR) { 1239 1648 #ifdef _QUIET_ … … 1242 1651 if (strcmp(PSZ(pv), "Gotcha!") == 0) { 1243 1652 #endif 1244 psz = PSZ(pv)+strlen(PSZ(pv))+3; 1245 ul = WinInsertLboxItem (hwnd, LIT_END, psz); 1653 psz = PSZ(pv)+strlen(PSZ(pv)) + 3; 1654 1655 INT Lang; 1656 1657 DosGetResource(hmod, RT_RCDATA, LANG_ID, &pl); 1658 Lang = atoi((PCHAR) pl); 1659 #if 1 1660 UniChar target[300]; 1661 CHAR ucLangStr[300]; 1662 UconvObject uconv_object866 = NULL; 1663 UconvObject uconv_object852 = NULL; 1664 UconvObject uconv_object1207 = NULL; 1665 UconvObject uconv_object850 = NULL; 1666 int i; 1667 1668 strcpy(ucLangStr, psz); 1669 UniCreateUconvObject((UniChar *)L"IBM-852", &uconv_object852); 1670 UniCreateUconvObject((UniChar *)L"IBM-850", &uconv_object850); 1671 UniCreateUconvObject((UniChar *)L"IBM-866", &uconv_object866); 1672 UniCreateUconvObject((UniChar *)L"IBM-1207", &uconv_object1207); 1673 1674 if (Lang == CZ) { 1675 UniStrToUcs( uconv_object852, target, ucLangStr, 299); 1676 } 1677 else { 1678 UniStrToUcs( uconv_object850, target, ucLangStr, 299); 1679 } 1680 /*if (Lang == RU) { 1681 UniStrToUcs( uconv_object866, target, ucLangStr, 299); 1682 } */ 1683 UniStrFromUcs( uconv_object1207, ucLangStr, target, 300); 1684 Lang = 0; 1685 if (uconv_object866) 1686 UniFreeUconvObject(uconv_object866); 1687 if (uconv_object852) 1688 UniFreeUconvObject(uconv_object852); 1689 if (uconv_object850) 1690 UniFreeUconvObject(uconv_object850); 1691 if (uconv_object1207) 1692 UniFreeUconvObject(uconv_object1207); 1693 1694 1695 #endif 1696 ul = WinInsertLboxItem (hwnd, LIT_END,/*psz*/ucLangStr); 1246 1697 WinSendMsg(hwnd, LM_SETITEMHANDLE, MPFROMLONG(ul), 1247 1698 MPFROMP (strdup(findbuf.achName))); 1248 1699 } 1700 if (pl) 1701 DosFreeResource(pl); 1249 1702 DosFreeResource(pv); 1250 1703 } … … 1308 1761 1309 1762 // ************************************************************************ 1763 1764 ULONG winhDrawFormattedText(HPS hps, // in: presentation space; its settings 1765 // are used, but not altered 1766 PRECTL prcl, // in/out: rectangle to use for drawing 1767 // (modified) 1768 const char *pcszText, // in: text to draw (zero-terminated) 1769 ULONG flCmd) // in: flags like in WinDrawText; I have 1770 // only tested DT_TOP and DT_LEFT though. 1771 // DT_WORDBREAK | DT_TEXTATTRS are always 1772 // set. 1773 // You can specify DT_QUERYEXTENT to only 1774 // have prcl calculated without drawing. 1775 { 1776 PSZ p = (PSZ)pcszText; 1777 LONG lDrawn = 1, 1778 lTotalDrawn = 0, 1779 lLineCount = 0, 1780 lOrigYTop = prcl->yTop; 1781 ULONG ulTextLen = strlen(pcszText), 1782 ulCharHeight, 1783 flCmd2, 1784 xLeftmost = prcl->xRight, 1785 xRightmost = prcl->xLeft; 1786 RECTL rcl2; 1787 1788 flCmd2 = flCmd | DT_WORDBREAK | DT_TEXTATTRS; 1789 1790 ulCharHeight = 30;//gpihQueryLineSpacing(hps); 1791 1792 while ( (lDrawn) 1793 && (lTotalDrawn < ulTextLen) 1794 ) 1795 { 1796 memcpy(&rcl2, prcl, sizeof(rcl2)); 1797 lDrawn = WinDrawText(hps, 1798 ulTextLen-lTotalDrawn, 1799 p, 1800 &rcl2, 1801 0, 0, // colors 1802 flCmd2); 1803 1804 // update char counters 1805 p += lDrawn; 1806 lTotalDrawn += lDrawn; 1807 1808 // update x extents 1809 if (rcl2.xLeft < xLeftmost) 1810 xLeftmost = rcl2.xLeft; 1811 if (rcl2.xRight > xRightmost) 1812 xRightmost = rcl2.xRight; 1813 1814 // update y for next line 1815 prcl->yTop -= ulCharHeight; 1816 1817 // increase line count 1818 lLineCount++; 1819 } 1820 prcl->xLeft = xLeftmost; 1821 prcl->xRight = xRightmost; 1822 prcl->yBottom = prcl->yTop; 1823 prcl->yTop = lOrigYTop; 1824 1825 return lLineCount; 1826 } -
trunk/settings.h
r92 r94 32 32 #endif 33 33 34 extern BOOL g_installer; 34 35 // this should be increased every time the format of the proFile changes 35 36 #define L_PROFILEVERSION 2 … … 132 133 } 133 134 135 VOID SetLangID(INT Language) {LangID = Language;} 136 INT GetLangID(VOID) {return LangID;} 137 134 138 VOID SelectLanguage (VOID); 135 139 … … 181 185 BOOL fAutoLanguage; 182 186 HWND hwndDlg; 187 INT LangID; 183 188 184 189 static ImageFormatInfo ifi[];
Note:
See TracChangeset
for help on using the changeset viewer.