From 368e96219033449c6dc0bd5b1864b5c682d71192 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 15 Jun 2005 12:43:52 +0200 Subject: ditch the ghostpdf name --- README | 6 +- apps/Jamfile | 20 +- apps/macosx/FzView.app/Contents/Info.plist | 44 ++ apps/macosx/FzView.app/Contents/PkgInfo | 1 + .../Resources/English.lproj/InfoPlist.strings | 7 + .../Resources/English.lproj/main.nib/classes.nib | 4 + .../Resources/English.lproj/main.nib/info.nib | 24 + .../Resources/English.lproj/main.nib/objects.xib | 516 +++++++++++++++++++++ .../FzView.app/Contents/Resources/macpdf.icns | Bin 0 -> 31574 bytes apps/macosx/GhostPDF.app/Contents/Info.plist | 44 -- apps/macosx/GhostPDF.app/Contents/PkgInfo | 1 - .../Resources/English.lproj/InfoPlist.strings | 7 - .../Resources/English.lproj/main.nib/classes.nib | 4 - .../Resources/English.lproj/main.nib/info.nib | 25 - .../Resources/English.lproj/main.nib/objects.xib | 516 --------------------- .../GhostPDF.app/Contents/Resources/macpdf.icns | Bin 31574 -> 0 bytes apps/mozilla/moz_winres.rc | 6 +- apps/unix/x11pdf.c | 6 +- apps/windows/winmain.c | 26 +- apps/windows/winres.rc | 4 +- 20 files changed, 630 insertions(+), 631 deletions(-) create mode 100644 apps/macosx/FzView.app/Contents/Info.plist create mode 100644 apps/macosx/FzView.app/Contents/PkgInfo create mode 100644 apps/macosx/FzView.app/Contents/Resources/English.lproj/InfoPlist.strings create mode 100644 apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/classes.nib create mode 100644 apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/info.nib create mode 100644 apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/objects.xib create mode 100644 apps/macosx/FzView.app/Contents/Resources/macpdf.icns delete mode 100644 apps/macosx/GhostPDF.app/Contents/Info.plist delete mode 100644 apps/macosx/GhostPDF.app/Contents/PkgInfo delete mode 100644 apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/InfoPlist.strings delete mode 100644 apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/classes.nib delete mode 100644 apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/info.nib delete mode 100644 apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/objects.xib delete mode 100644 apps/macosx/GhostPDF.app/Contents/Resources/macpdf.icns diff --git a/README b/README index 6dd42268..3fe47f14 100644 --- a/README +++ b/README @@ -3,11 +3,11 @@ README for the Fitz distribution. Fitz is a graphics library. MuPDF is a PDF parsing and manipulation library. Samus is a Metro parser. -GhostPDF is a PDF viewer using MuPDF and Fitz. +FzView is a PDF and Metro viewer application. For Windows, there is also a Mozilla plugin version of the viewer. -GhostPDF has three ports: X11, Windows and Carbon. -The Carbon port is broken, so don't bother trying it. +The Viewer has three ports: X11, Windows and Carbon. +The Carbon port is rotting, so don't bother trying it. This code is under the same licensing scheme as Ghostscript. AFPL and one year or major release later GPL. diff --git a/apps/Jamfile b/apps/Jamfile index a2452a4f..4accf75a 100644 --- a/apps/Jamfile +++ b/apps/Jamfile @@ -36,7 +36,7 @@ if $(OS) = MINGW { SubDir TOP apps windows ; - Main ghostpdf : + Main fzview : winmain.c winres.rc ; @@ -44,26 +44,26 @@ if $(OS) = MINGW WINLIBS = -lgdi32 -lcomdlg32 ; if $(BUILD) = release { WINLIBS += -mwindows ; } - LinkLibraries ghostpdf : libpdfapp $(FITZLIBS) ; + LinkLibraries fzview : libpdfapp $(FITZLIBS) ; - LINKLIBS on ghostpdf$(SUFEXE) = $(LINKLIBS) $(WINLIBS) ; + LINKLIBS on fzview$(SUFEXE) = $(LINKLIBS) $(WINLIBS) ; - InstallBin $(BINDIR) : ghostpdf$(SUFEXE) ; + InstallBin $(BINDIR) : fzview$(SUFEXE) ; } if $(HAVE_X11) = yes { SubDir TOP apps unix ; - Main ghostpdf : x11pdf.c ximage.c ; - LinkLibraries ghostpdf : libpdfapp $(FITZLIBS) ; - LINKLIBS on ghostpdf$(SUFEXE) = $(LINKLIBS) -lX11 -lXext ; + Main fzview : x11pdf.c ximage.c ; + LinkLibraries fzview : libpdfapp $(FITZLIBS) ; + LINKLIBS on fzview$(SUFEXE) = $(LINKLIBS) -lX11 -lXext ; } -if $(OS) = MACOSX +if $(OS) = noMACOSX { SubDir TOP apps macosx ; - MACBUNDLE = GhostPDF.app ; + MACBUNDLE = FzView.app ; XCopy $(MACBUNDLE)/Contents/Info.plist @@ -77,7 +77,7 @@ if $(OS) = MACOSX $(MACBUNDLE)/Contents/Resources/macpdf.icns ; - MACPDF = $(MACBUNDLE)/Contents/MacOS/ghostpdf ; + MACPDF = $(MACBUNDLE)/Contents/MacOS/fzview ; MkDir $(ALL_LOCATE_TARGET)/$(MACPDF:D) ; Depends $(MACPDF) : $(ALL_LOCATE_TARGET)/$(MACPDF:D) ; Main $(MACPDF) : macpdf.c ; diff --git a/apps/macosx/FzView.app/Contents/Info.plist b/apps/macosx/FzView.app/Contents/Info.plist new file mode 100644 index 00000000..5b7681b2 --- /dev/null +++ b/apps/macosx/FzView.app/Contents/Info.plist @@ -0,0 +1,44 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ghostpdf + CFBundleIconFile + macpdf.icns + CFBundleIdentifier + com.artofcode.GhostPDF + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + 0.1 + CSResourcesFileMapped + + + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + pdf + + CFBundleTypeIconFile + macpdf.icns + CFBundleTypeName + PDF Document + CFBundleTypeRole + Viewer + + + + NSAppleScriptEnabled + YES + + + diff --git a/apps/macosx/FzView.app/Contents/PkgInfo b/apps/macosx/FzView.app/Contents/PkgInfo new file mode 100644 index 00000000..bd04210f --- /dev/null +++ b/apps/macosx/FzView.app/Contents/PkgInfo @@ -0,0 +1 @@ +APPL???? \ No newline at end of file diff --git a/apps/macosx/FzView.app/Contents/Resources/English.lproj/InfoPlist.strings b/apps/macosx/FzView.app/Contents/Resources/English.lproj/InfoPlist.strings new file mode 100644 index 00000000..f3bc1127 --- /dev/null +++ b/apps/macosx/FzView.app/Contents/Resources/English.lproj/InfoPlist.strings @@ -0,0 +1,7 @@ +/* Localized versions of Info.plist keys */ + +CFBundleName = "GhostPDF"; +CFBundleShortVersionString = "GhostPDF version 1.0.0"; +CFBundleGetInfoString = "Copyright (C) 2005 artofcode LLC."; +NSHumanReadableCopyright = "Copyright (C) 2005 artofcode LLC."; + diff --git a/apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/classes.nib b/apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/classes.nib new file mode 100644 index 00000000..ea58db11 --- /dev/null +++ b/apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/classes.nib @@ -0,0 +1,4 @@ +{ +IBClasses = (); +IBVersion = 1; +} diff --git a/apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/info.nib b/apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/info.nib new file mode 100644 index 00000000..611a192f --- /dev/null +++ b/apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/info.nib @@ -0,0 +1,24 @@ + + + + + IBDocumentLocation + 54 19 356 240 0 0 1024 746 + IBEditorPositions + + 29 + 15 273 236 44 0 0 1024 746 + + IBFramework Version + 349.0 + IBOpenObjects + + 166 + 29 + + IBSystem Version + 7W98 + targetFramework + IBCarbonFramework + + diff --git a/apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/objects.xib b/apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/objects.xib new file mode 100644 index 00000000..143a0dd0 --- /dev/null +++ b/apps/macosx/FzView.app/Contents/Resources/English.lproj/main.nib/objects.xib @@ -0,0 +1,516 @@ + + + IBCarbonFramework + + NSApplication + + + + GhostPDF + + + MuView + + MuView + + + TRUE + About MuView + 0 + abou + + + _NSAppleMenu + + + + File + + File + + + TRUE + New + n + new + + + TRUE + Open… + o + open + + + TRUE + + + TRUE + Close + w + clos + + + TRUE + Save + s + save + + + TRUE + Save As… + S + svas + + + TRUE + Revert + r + rvrt + + + TRUE + + + TRUE + Page Setup… + P + page + + + TRUE + Print… + p + prnt + + + + + + Edit + + Edit + + + TRUE + Undo + z + undo + + + TRUE + Redo + Z + redo + + + TRUE + + + TRUE + Cut + x + cut + + + TRUE + Copy + c + copy + + + TRUE + Paste + v + past + + + TRUE + Delete + clea + + + TRUE + Select All + a + sall + + + TRUE + + + TRUE + Special Characters… + chrp + + + + + + Window + + Window + + + TRUE + TRUE + Minimize Window + m + mini + + + TRUE + TRUE + Minimize All Windows + m + 1572864 + mina + + + TRUE + Zoom + zoom + + + TRUE + + + TRUE + TRUE + Bring All to Front + bfrt + + + TRUE + TRUE + Arrange in Front + 1572864 + frnt + + + _NSWindowsMenu + + + + _NSMainMenu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 56 24 553 587 + Window + + 0 0 497 563 + 0 0 563 497 + + + 482 248 497 549 + 248 482 301 15 + + 1 + 2 + 2 + + + + -1 548 483 563 + 548 -1 15 484 + + 1 + 2 + 2 + + + + 482 23 498 47 + 23 482 24 16 + < + + 1 + 2 + + 0 + 3 + + + 482 46 498 70 + 46 482 24 16 + > + + 2 + + 0 + 3 + + + 482 92 498 112 + 92 482 20 16 + ( + + 2 + + 0 + 3 + + + 482 111 498 131 + 111 482 20 16 + ) + + 2 + + 0 + 3 + + + 485 199 495 237 + 199 485 38 10 + TRUE + 3 + + 2 + + TRUE + + + 482 0 498 24 + 0 482 24 16 + << + + 1 + 2 + + 0 + 3 + + + 482 69 498 93 + 69 482 24 16 + >> + + 2 + + 0 + 3 + + + 482 168 498 188 + 168 482 20 16 + + + + 2 + + 0 + 3 + + + 482 130 498 150 + 130 482 20 16 + - + + 2 + + 0 + 3 + + + 482 149 498 169 + 149 482 20 16 + % + + 2 + + 0 + 3 + + + 0 0 484 549 + 0 0 549 484 + Poof + 666 + + 1 + 1 + 2 + 2 + + com.artofcode.ghostpdf.View + + + + FALSE + TRUE + TRUE + FALSE + + + + + + + + + + + + + + + + + + + + + + + + + 200 83 330 337 + Password + + 0 0 130 254 + 0 0 254 130 + + + 20 20 36 234 + 20 20 214 16 + This document is encrypted. + + + 50 32 66 146 + 32 50 114 16 + Password: + + + 51 106 67 215 + 106 51 109 16 + TRUE + TRUE + TRUE + + + 90 132 110 202 + 132 90 70 20 + OK + 1 + + + 90 50 110 120 + 50 90 70 20 + Cancel + + + + FALSE + FALSE + TRUE + TRUE + 11 + FALSE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Files Owner + + MainWindow + + MenuBar + + PasswordWindow + + View1 + + + 239 + diff --git a/apps/macosx/FzView.app/Contents/Resources/macpdf.icns b/apps/macosx/FzView.app/Contents/Resources/macpdf.icns new file mode 100644 index 00000000..d11b8be1 Binary files /dev/null and b/apps/macosx/FzView.app/Contents/Resources/macpdf.icns differ diff --git a/apps/macosx/GhostPDF.app/Contents/Info.plist b/apps/macosx/GhostPDF.app/Contents/Info.plist deleted file mode 100644 index 5b7681b2..00000000 --- a/apps/macosx/GhostPDF.app/Contents/Info.plist +++ /dev/null @@ -1,44 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - ghostpdf - CFBundleIconFile - macpdf.icns - CFBundleIdentifier - com.artofcode.GhostPDF - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleSignature - ???? - CFBundleVersion - 0.1 - CSResourcesFileMapped - - - CFBundleDocumentTypes - - - CFBundleTypeExtensions - - pdf - - CFBundleTypeIconFile - macpdf.icns - CFBundleTypeName - PDF Document - CFBundleTypeRole - Viewer - - - - NSAppleScriptEnabled - YES - - - diff --git a/apps/macosx/GhostPDF.app/Contents/PkgInfo b/apps/macosx/GhostPDF.app/Contents/PkgInfo deleted file mode 100644 index bd04210f..00000000 --- a/apps/macosx/GhostPDF.app/Contents/PkgInfo +++ /dev/null @@ -1 +0,0 @@ -APPL???? \ No newline at end of file diff --git a/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/InfoPlist.strings b/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/InfoPlist.strings deleted file mode 100644 index f3bc1127..00000000 --- a/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/InfoPlist.strings +++ /dev/null @@ -1,7 +0,0 @@ -/* Localized versions of Info.plist keys */ - -CFBundleName = "GhostPDF"; -CFBundleShortVersionString = "GhostPDF version 1.0.0"; -CFBundleGetInfoString = "Copyright (C) 2005 artofcode LLC."; -NSHumanReadableCopyright = "Copyright (C) 2005 artofcode LLC."; - diff --git a/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/classes.nib b/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/classes.nib deleted file mode 100644 index ea58db11..00000000 --- a/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/classes.nib +++ /dev/null @@ -1,4 +0,0 @@ -{ -IBClasses = (); -IBVersion = 1; -} diff --git a/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/info.nib b/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/info.nib deleted file mode 100644 index 40806e42..00000000 --- a/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/info.nib +++ /dev/null @@ -1,25 +0,0 @@ - - - - - IBDocumentLocation - 64 19 356 240 0 0 1152 746 - IBEditorPositions - - 29 - 17 273 236 44 0 0 1152 746 - - IBFramework Version - 364.0 - IBOpenObjects - - 231 - 166 - 29 - - IBSystem Version - 7W98 - targetFramework - IBCarbonFramework - - diff --git a/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/objects.xib b/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/objects.xib deleted file mode 100644 index dba01432..00000000 --- a/apps/macosx/GhostPDF.app/Contents/Resources/English.lproj/main.nib/objects.xib +++ /dev/null @@ -1,516 +0,0 @@ - - - IBCarbonFramework - - NSApplication - - - - GhostPDF - - - GhostPDF - - GhostPDF - - - TRUE - About GhostPDF - 0 - abou - - - _NSAppleMenu - - - - File - - File - - - TRUE - New - n - new - - - TRUE - Open… - o - open - - - TRUE - - - TRUE - Close - w - clos - - - TRUE - Save - s - save - - - TRUE - Save As… - S - svas - - - TRUE - Revert - r - rvrt - - - TRUE - - - TRUE - Page Setup… - P - page - - - TRUE - Print… - p - prnt - - - - - - Edit - - Edit - - - TRUE - Undo - z - undo - - - TRUE - Redo - Z - redo - - - TRUE - - - TRUE - Cut - x - cut - - - TRUE - Copy - c - copy - - - TRUE - Paste - v - past - - - TRUE - Delete - clea - - - TRUE - Select All - a - sall - - - TRUE - - - TRUE - Special Characters… - chrp - - - - - - Window - - Window - - - TRUE - TRUE - Minimize Window - m - mini - - - TRUE - TRUE - Minimize All Windows - m - 1572864 - mina - - - TRUE - Zoom - zoom - - - TRUE - - - TRUE - TRUE - Bring All to Front - bfrt - - - TRUE - TRUE - Arrange in Front - 1572864 - frnt - - - _NSWindowsMenu - - - - _NSMainMenu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 56 24 553 587 - Window - - 0 0 497 563 - 0 0 563 497 - - - 482 248 497 549 - 248 482 301 15 - - 1 - 2 - 2 - - - - -1 548 483 563 - 548 -1 15 484 - - 1 - 2 - 2 - - - - 482 23 498 47 - 23 482 24 16 - < - - 1 - 2 - - 0 - 3 - - - 482 46 498 70 - 46 482 24 16 - > - - 2 - - 0 - 3 - - - 482 92 498 112 - 92 482 20 16 - ( - - 2 - - 0 - 3 - - - 482 111 498 131 - 111 482 20 16 - ) - - 2 - - 0 - 3 - - - 485 199 495 237 - 199 485 38 10 - TRUE - 3 - - 2 - - TRUE - - - 482 0 498 24 - 0 482 24 16 - << - - 1 - 2 - - 0 - 3 - - - 482 69 498 93 - 69 482 24 16 - >> - - 2 - - 0 - 3 - - - 482 168 498 188 - 168 482 20 16 - + - - 2 - - 0 - 3 - - - 482 130 498 150 - 130 482 20 16 - - - - 2 - - 0 - 3 - - - 482 149 498 169 - 149 482 20 16 - % - - 2 - - 0 - 3 - - - 0 0 484 549 - 0 0 549 484 - Poof - 666 - - 1 - 1 - 2 - 2 - - com.artofcode.ghostpdf.View - - - - FALSE - TRUE - TRUE - FALSE - - - - - - - - - - - - - - - - - - - - - - - - - 200 83 330 337 - Password - - 0 0 130 254 - 0 0 254 130 - - - 20 20 36 234 - 20 20 214 16 - This PDF document is encrypted. - - - 50 32 66 146 - 32 50 114 16 - Password: - - - 51 106 67 215 - 106 51 109 16 - TRUE - TRUE - TRUE - - - 90 132 110 202 - 132 90 70 20 - OK - 1 - - - 90 50 110 120 - 50 90 70 20 - Cancel - - - - FALSE - FALSE - TRUE - TRUE - 11 - FALSE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Files Owner - - MainWindow - - MenuBar - - PasswordWindow - - View1 - - - 239 - diff --git a/apps/macosx/GhostPDF.app/Contents/Resources/macpdf.icns b/apps/macosx/GhostPDF.app/Contents/Resources/macpdf.icns deleted file mode 100644 index d11b8be1..00000000 Binary files a/apps/macosx/GhostPDF.app/Contents/Resources/macpdf.icns and /dev/null differ diff --git a/apps/mozilla/moz_winres.rc b/apps/mozilla/moz_winres.rc index 189d3aea..da421383 100644 --- a/apps/mozilla/moz_winres.rc +++ b/apps/mozilla/moz_winres.rc @@ -1,5 +1,5 @@ // -// GhostPDF Plugin description +// MuPDF Plugin description // 1 VERSIONINFO @@ -9,9 +9,9 @@ BEGIN BEGIN BLOCK "040904e4" BEGIN - VALUE "ProductName", "GhostPDF Plug-in\0" + VALUE "ProductName", "MuPDF Plug-in\0" VALUE "OriginalFilename", "npmupdf.dll\0" - VALUE "FileDescription", "The GhostPDF plugin allows you to browse PDF files with a simple light-weight scrolling interface.
See ghostpdf.com for more information.\0" + VALUE "FileDescription", "The MuPDF plugin allows you to browse PDF files with a simple light-weight scrolling interface.
See ghostscript.com for more information.\0" VALUE "MIMEType", "application/pdf|application/x-mupdf\0" VALUE "FileExtents", "pdf|foo" VALUE "FileOpenName", "Acrobat PDF File|Acrobat PDF File" diff --git a/apps/unix/x11pdf.c b/apps/unix/x11pdf.c index 72bccd69..5941d4d0 100644 --- a/apps/unix/x11pdf.c +++ b/apps/unix/x11pdf.c @@ -47,12 +47,12 @@ static pdfapp_t gapp; void winwarn(pdfapp_t *app, char *msg) { - fprintf(stderr, "ghostpdf: %s\n", msg); + fprintf(stderr, "fzview: %s\n", msg); } void winerror(pdfapp_t *app, char *msg) { - fprintf(stderr, "ghostpdf: %s\n", msg); + fprintf(stderr, "fzview: %s\n", msg); exit(1); } @@ -391,7 +391,7 @@ void onmouse(int x, int y, int btn, int modifiers, int state) void usage(void) { - fprintf(stderr, "usage: ghostpdf [-d password] [-z zoom] [-p pagenumber] file.pdf\n"); + fprintf(stderr, "usage: fzview [-d password] [-z zoom] [-p pagenumber] file.pdf\n"); exit(1); } diff --git a/apps/windows/winmain.c b/apps/windows/winmain.c index bc731a4e..cd06d41a 100644 --- a/apps/windows/winmain.c +++ b/apps/windows/winmain.c @@ -15,7 +15,7 @@ static HDC hdc; static HBRUSH bgbrush; static HBRUSH shbrush; static BITMAPINFO *dibinf; -static TCHAR szAppName[] = TEXT("ghostpdf"); +static TCHAR szAppName[] = TEXT("fzview"); static HCURSOR arrowcurs, handcurs, waitcurs; static LRESULT CALLBACK windproc(HWND, UINT, WPARAM, LPARAM); @@ -26,7 +26,7 @@ static int justcopied = 0; static pdfapp_t gapp; /* - * Associate GhostPDF with PDF files. + * Associate FzView with PDF files. */ void associate(char *argv0) @@ -43,22 +43,22 @@ void associate(char *argv0) KEY_WRITE, NULL, &key, &disp)) return; - if (RegSetValueEx(key, "", 0, REG_SZ, "GhostPDF", strlen("GhostPDF")+1)) + if (RegSetValueEx(key, "", 0, REG_SZ, "FzView", strlen("FzView")+1)) return; RegCloseKey(key); - /* HKEY_CLASSES_ROOT\GhostPDF */ + /* HKEY_CLASSES_ROOT\FzView */ if (RegCreateKeyEx(HKEY_CLASSES_ROOT, - "GhostPDF", 0, NULL, REG_OPTION_NON_VOLATILE, + "FzView", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &key, &disp)) return; if (RegSetValueEx(key, "", 0, REG_SZ, name, strlen(name)+1)) return; - /* HKEY_CLASSES_ROOT\GhostPDF\DefaultIcon */ + /* HKEY_CLASSES_ROOT\FzView\DefaultIcon */ if (RegCreateKeyEx(key, "DefaultIcon", 0, NULL, REG_OPTION_NON_VOLATILE, @@ -71,7 +71,7 @@ void associate(char *argv0) RegCloseKey(kicon); - /* HKEY_CLASSES_ROOT\GhostPDF\Shell\Open\Command */ + /* HKEY_CLASSES_ROOT\FzView\Shell\Open\Command */ if (RegCreateKeyEx(key, "shell", 0, NULL, REG_OPTION_NON_VOLATILE, @@ -103,12 +103,12 @@ void associate(char *argv0) void winwarn(pdfapp_t *app, char *msg) { - MessageBoxA(hwnd, msg, "GhostPDF: Warning", MB_ICONWARNING); + MessageBoxA(hwnd, msg, "FzView: Warning", MB_ICONWARNING); } void winerror(pdfapp_t *app, char *msg) { - MessageBoxA(hwnd, msg, "GhostPDF: Error", MB_ICONERROR); + MessageBoxA(hwnd, msg, "FzView: Error", MB_ICONERROR); exit(1); } @@ -122,7 +122,7 @@ int winfilename(char *buf, int len) ofn.lpstrFile = buf; ofn.nMaxFile = len; ofn.lpstrInitialDir = NULL; - ofn.lpstrTitle = "GhostPDF: Open PDF file"; + ofn.lpstrTitle = "FzView: Open PDF file"; ofn.lpstrFilter = "PDF Files (*.pdf)\0*.pdf\0All Files\0*\0\0"; ofn.Flags = OFN_FILEMUSTEXIST|OFN_HIDEREADONLY; return GetOpenFileName(&ofn); @@ -260,7 +260,7 @@ dlogaboutproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { case WM_INITDIALOG: SetDlgItemTextA(hwnd, 0x10, gapp.filename); - SetDlgItemTextA(hwnd, 2, "GhostPDF is Copyright (C) 2005 artofcode, LLC"); + SetDlgItemTextA(hwnd, 2, "FzView is Copyright (C) 2005 artofcode, LLC"); SetDlgItemTextA(hwnd, 3, pdfapp_usage(&gapp)); return TRUE; case WM_COMMAND: @@ -340,11 +340,11 @@ void winopen() hdc = NULL; - SetWindowTextA(hwnd, "GhostPDF"); + SetWindowTextA(hwnd, "FzView"); menu = GetSystemMenu(hwnd, 0); AppendMenu(menu, MF_SEPARATOR, 0, NULL); - AppendMenu(menu, MF_STRING, ID_ABOUT, "About GhostPDF..."); + AppendMenu(menu, MF_STRING, ID_ABOUT, "About FzView..."); AppendMenu(menu, MF_STRING, ID_DOCINFO, "Document Properties..."); SetCursor(arrowcurs); diff --git a/apps/windows/winres.rc b/apps/windows/winres.rc index dbe41204..cad44a1f 100644 --- a/apps/windows/winres.rc +++ b/apps/windows/winres.rc @@ -4,7 +4,7 @@ IDI_ICONDOC ICON "gsdoc.ico" IDD_DLOGPASS DIALOG 50, 50, 204, 60 //STYLE DS_MODALFRAME | WS_POPUP STYLE 128 | 0x80000000 -CAPTION " GhostPDF: Password " +CAPTION " FzView: Password " FONT 8, "MS Shell Dlg" BEGIN EDITTEXT 3, 57,20,140,12, 32 @@ -52,7 +52,7 @@ END IDD_DLOGABOUT DIALOG 50, 50, 200, 210 STYLE 128 | 0x80000000 -CAPTION " About GhostPDF " +CAPTION " About FzView " FONT 8, "MS Shell Dlg" BEGIN DEFPUSHBUTTON "Okay", 1, 200-10-50,210-7-14,50,14, 0x50010001 -- cgit v1.2.3