Corrected problem with guideline adjustment.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20928 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-03-19 10:31:38 +00:00
parent d10aef8928
commit e538fd2c68
6 changed files with 17 additions and 75 deletions

View file

@ -1,3 +1,11 @@
2005-03-19 05:39 Gregory John Casamento <greg_casamento@yahoo.com>
* GormViewEditor.m: Corrected problem with control snapping to
edge when the threshold for the guideline was set lower than 5.
* Resources/GormPrefGuideline.gorm: Set minimum of slider to 1.
* Resources/GormPrefHeaders.gorm: Adjusted sizing of table.
* Resources/GormPrefPalettes.gorm: Corrected background color
2005-03-19 04:57 Gregory John Casamento <greg_casamento@yahoo.com>
* Defaults.plist: Added default of 10 for "GuideSpacing".

View file

@ -560,6 +560,7 @@ static BOOL currently_displaying = NO;
{
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
int guideSpacing = [userDefaults integerForKey: @"GuideSpacing"];
int halfSpacing = guideSpacing / 2;
float leftOfFrame = NSMinX(frame);
float rightOfFrame = NSMaxX(frame);
float topOfFrame = NSMaxY(frame);
@ -624,7 +625,7 @@ static BOOL currently_displaying = NO;
|| gpi->knob == IBBottomLeftKnobPosition)
{
bests = [NSMutableArray arrayWithCapacity: 4];
minimum = 6;
minimum = (halfSpacing + 1);
count = [gpi->leftHints count];
for ( i = 0; i < count; i++ )
{
@ -663,7 +664,7 @@ static BOOL currently_displaying = NO;
|| gpi->knob == IBBottomRightKnobPosition)
{
bests = [NSMutableArray arrayWithCapacity: 4];
minimum = 6;
minimum = (halfSpacing + 1);
count = [gpi->rightHints count];
for ( i = 0; i < count; i++ )
{
@ -702,7 +703,7 @@ static BOOL currently_displaying = NO;
|| gpi->knob == IBTopMiddleKnobPosition)
{
bests = [NSMutableArray arrayWithCapacity: 4];
minimum = 6;
minimum = (halfSpacing + 1);
count = [gpi->topHints count];
for ( i = 0; i < count; i++ )
{
@ -740,7 +741,7 @@ static BOOL currently_displaying = NO;
|| gpi->knob == IBBottomMiddleKnobPosition)
{
bests = [NSMutableArray arrayWithCapacity: 4];
minimum = 6;
minimum = (halfSpacing + 1);
count = [gpi->bottomHints count];
for ( i = 0; i < count; i++ )
{
@ -868,6 +869,7 @@ static BOOL currently_displaying = NO;
{
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
int guideSpacing = [userDefaults integerForKey: @"GuideSpacing"];
int halfSpacing = guideSpacing / 2;
float leftOfFrame = NSMinX(frame);
float rightOfFrame = NSMaxX(frame);
float topOfFrame = NSMaxY(frame);
@ -923,7 +925,7 @@ static BOOL currently_displaying = NO;
float bestPosition = 0;
NSMutableArray *leftBests;
NSMutableArray *rightBests;
minimum = 6;
minimum = (halfSpacing + 1);
count = [gpi->leftHints count];
leftBests = [NSMutableArray arrayWithCapacity: 4];
@ -1010,7 +1012,7 @@ static BOOL currently_displaying = NO;
float bestPosition = 0;
NSMutableArray *bottomBests;
NSMutableArray *topBests;
minimum = 6;
minimum = (halfSpacing + 1);
count = [gpi->bottomHints count];
bottomBests = [NSMutableArray arrayWithCapacity: 4];

View file

@ -2,75 +2,7 @@
"## Comment" = "Do NOT change this file, Gorm maintains it";
FirstResponder = {
Actions = (
"alignCenter:",
"alignLeft:",
"arrangeInFront:",
"capitalizeWord:",
"changeFont:",
"close:",
"copy:",
"copyRuler:",
"delete:",
"deleteForward:",
"deleteToBeginningOfParagraph:",
"deleteToEndOfParagraph:",
"deleteWordBackward:",
"deminiaturize:",
"fax:",
"hideOtherApplications:",
"loosenKerning:",
"lowercaseWord:",
"miniaturize:",
"moveBackward:",
"moveDown:",
"moveForward:",
"moveLeft:",
"moveToBeginningOfDocument:",
"moveToBeginningOfParagraph:",
"moveToEndOfLine:",
"moveUp:",
"moveWordBackward:",
"moveWordForward:",
"newDocument:",
"openDocument:",
"orderFront:",
"orderFrontDataLinkPanel:",
"orderFrontFontPanel:",
"orderFrontStandardAboutPanel:",
"orderOut:",
"pageUp:",
"pasteAsPlainText:",
"pasteFont:",
"performClose:",
"performZoom:",
"raiseBaseline:",
"runPageLayout:",
"saveAllDocuments:",
"saveDocumentAs:",
"scrollLineDown:",
"scrollPageDown:",
"scrollViaScroller:",
"selectLine:",
"selectParagraph:",
"selectToMark:",
"selectWord:",
"showGuessPanel:",
"showWindow:",
"subscript:",
"swapWithMark:",
"takeFloatValueFrom:",
"takeObjectValueFrom:",
"terminate:",
"toggle:",
"toggleRuler:",
"toggleTraditionalCharacterShape:",
"transposeWords:",
"turnOffLigatures:",
"unhide:",
"unscript:",
"useAllLigatures:",
"useStandardLigatures:",
"zoom:"
"orderFrontFontPanel:"
);
Super = NSObject;
};