Skip to content

Commit

Permalink
- Adding source for DrawDemo_src_1.0b7 from http://www.apptree.net/dr…
Browse files Browse the repository at this point in the history
  • Loading branch information
grahammiln committed Jan 2, 2015
1 parent 6a68387 commit 4f972d8
Show file tree
Hide file tree
Showing 144 changed files with 69,025 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Code/DrawDemo_Prefix.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// Prefix header for all source files of the 'GCDrawDemo' target in the 'GCDrawDemo' project
//

#ifndef qDebug
#define NS_BLOCK_ASSERTIONS
#define NDEBUG
#endif

// To verify this project does not rely on symbols unavailable in its minimum OS version (i.e., its MACOSX_DEPLOYMENT_TARGET), temporarily set the following constant to 1 and rebuild all configurations from scratch. You will get a warning you are doing the test, but all other warnings indicate use of something beyond what is available in this project's minimum OS.
#if 0
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_MIN_REQUIRED
#warning Verifying symbol availability in minimum OS. All warnings besides this one indicate use of something beyond what is available in the project's minimum OS. You should not see this warning when building a release version for customers.
#endif

#define qUseLogEvent

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
65 changes: 65 additions & 0 deletions Code/DrawingSizeController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/* DrawingSizeController */

#import <Cocoa/Cocoa.h>


@class DKDrawing;



@interface DrawingSizeController : NSWindowController
{
IBOutlet id mBottomMarginTextField;
IBOutlet id mGridDivsTextField;
IBOutlet id mGridMajorsTextField;
IBOutlet id mGridPreviewCheckbox;
IBOutlet id mGridSpanTextField;
IBOutlet id mGridThemeColourWell;
IBOutlet id mHeightTextField;
IBOutlet id mLeftMarginTextField;
IBOutlet id mRightMarginTextField;
IBOutlet id mTopMarginTextField;
IBOutlet id mTweakMarginsCheckbox;
IBOutlet id mUnitsComboBox;
IBOutlet id mWidthTextField;
IBOutlet id mGridControlsBox;
IBOutlet id mGridDivsSpinControl;
IBOutlet id mGridMajorsSpinControl;
IBOutlet id mGridAbbrevUnitsText;
IBOutlet id mGridPrintCheckbox;
IBOutlet id mGridRulerStepsTextField;
IBOutlet id mGridRulerStepsSpinControl;
IBOutlet id mConversionFactorTextField;
IBOutlet id mConversionFactorSpinControl;
IBOutlet id mConversionFactorLabelText;
IBOutlet id mPaperColourWell;

DKDrawing* mDrawing;
BOOL mLivePreview;
float mUnitConversionFactor;
float mSavedSpan;
float mSavedCF;
int mSavedDivs;
int mSavedMajors;
NSString* mSavedUnits;
NSColor* mSavedGridColour;
NSColor* mSavedPaperColour;
}


- (void) beginDrawingSizeDialog:(NSWindow*) parent withDrawing:(DKDrawing*) drawing;

- (IBAction) cancelAction:(id)sender;
- (IBAction) gridDivsAction:(id)sender;
- (IBAction) gridMajorsAction:(id)sender;
- (IBAction) gridSpanAction:(id)sender;
- (IBAction) gridRulerStepsAction:(id) sender;
- (IBAction) gridThemeColourAction:(id)sender;
- (IBAction) gridPrintAction:(id) sender;
- (IBAction) livePreviewAction:(id)sender;
- (IBAction) okAction:(id)sender;
- (IBAction) unitsComboBoxAction:(id) sender;
- (IBAction) conversionFactorAction:(id) sender;
- (IBAction) paperColourAction:(id) sender;

@end
Loading

0 comments on commit 4f972d8

Please sign in to comment.