Robert Sesek [Thu, 11 Sep 2008 00:14:23 +0000 (20:14 -0400)]
Add radio buttons to allow people to choose either 1 or 2 copies to print
* English.lproj/MainMenu.xib: Draw out the NSMatrix
* Source/AppController.h: Add an NSMatrix IBO
* Source/AppController.m:
(uploadAndPrint:): Use the -# option for LPR and use __PRINT_#__ for BLU_DEBUG
Robert Sesek [Wed, 10 Sep 2008 23:40:21 +0000 (19:40 -0400)]
Clear the file after uploading (so people can't print the same document twice)
* Source/AppController.h: Add an IBO for the "go" button
* Source/AppController.m:
(uploadAndPrint:): Disable the "go" button
* English.lproj/MainMenu.xib: Hook up the IBO
* Source/DraggableImageView.h+m:
(clearFile): New method to clear the currently dropped file
Robert Sesek [Thu, 28 Aug 2008 19:39:20 +0000 (15:39 -0400)]
Show the help window for each new version
* English.lproj/MainMenu.xib: Don't make the main window key in the NIB
* Source/AppController.m:
(awakeFromNib): Make the main window key here, and then the help window if the version number is different
Robert Sesek [Tue, 26 Aug 2008 18:56:11 +0000 (14:56 -0400)]
Adding a help window that uses WebKit to display a Help.html file
* English.lproj/Help.html: New file
* English.lproj/MainMenu.xib: Setting up the help window
* PrintDrop.xcodeproj: Project updates for the help file and linking WebKit
* Source/AppController.h: Outlets for the help window
* Source/AppController.m:
(awakeFromNib): Center the help window and load the help file
Robert Sesek [Wed, 6 Aug 2008 20:17:50 +0000 (16:17 -0400)]
Use the original file name instead of the __bu_print_drop__.pdf
* Source/AppController.m:
(getUploadSafeName:): New method to get an upload-safe name
(uploadAndPrint:): Use the new upload-safe name rather than the hard-coded one
Robert Sesek [Thu, 28 Feb 2008 03:53:26 +0000 (22:53 -0500)]
Using polled reading and don't allow actual LPR-ing in debug mode
* Source/AppController.m:
([AppController readChannel:]): Use libssh2_poll_channel_read() to check and see if there's more to read as it's much faster
([AppController uploadAndPrint:]): If BLU_DEBUG, do not LPR anything, but rather touch a file
Robert Sesek [Wed, 27 Feb 2008 22:44:08 +0000 (17:44 -0500)]
Define a BLU_DEBUG so we can NSLog() the buffer in debug mode but not in release
* PrintDrop.xcodeproj: Define BLU_DEBUG for the PrintDrop-Debug target
* Source/AppController.m:
([AppController readChannel:]): If BLU_DEBUG is defined, NSLog() the buffer
Robert Sesek [Wed, 27 Feb 2008 19:59:39 +0000 (14:59 -0500)]
Adding a Printers.plist file so that the printers aren't hard-coded into PrintDrop but rather are in an XML file
* English.lproj/Printers.plist: New file
* PrintDrop.xcodeproj: Project updates for the plist file
* Source/AppController.h: Changing printers to be an NSArray instead of NSMutableArray
* Source/AppController.m:
([AppController init]): Simply load the plist instead of creating a NSMutableArray of NSDictionary's
Robert Sesek [Mon, 25 Feb 2008 23:22:27 +0000 (18:22 -0500)]
Renaming FileDropBoxView to DraggableImageView and making the GradientBackView repaint completely each time.
The draggable view is now an NSImageView subclass that resides in the NSBox instead of subclassing NSBox and programatically creating an NSImageView (that we couldn't drag on because it wouldn't be the responder to the drag op).
Robert Sesek [Mon, 25 Feb 2008 21:49:37 +0000 (16:49 -0500)]
Creating an empty subclass of NSBox to handle file drag-and-drop
* English.lproj/MainMenu.nib: Set the custom subclass
* PrintDrop.xcodeproj: Project updates for the new source files
* Source/FileDropBoxView.h: New file
* Source/FileDropBoxView.m: New file
Robert Sesek [Mon, 25 Feb 2008 21:45:00 +0000 (16:45 -0500)]
Adding a gradient NSView subclass to draw the pretty gradient
* English.lproj/MainMenu.nib: set the NSView subclass
* PrintDrop.xcodeproj: Project updates for the new source files
* Source/GradientBack.h: New file
* Source/GradientBack.m: New file