mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:20:38 +00:00
New NSPageLayout UI
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19767 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c7d52d3fd8
commit
73dbff47ec
18 changed files with 1071 additions and 584 deletions
|
@ -2,10 +2,13 @@
|
|||
|
||||
<abstract>Standard panel for querying user about page layout.</abstract>
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001,2004 Free Software Foundation, Inc.
|
||||
|
||||
Written By: Adam Fedor <fedor@gnu.org>
|
||||
Date: Oct 2001
|
||||
Author: Chad Hardin <cehardin@mac.com>
|
||||
Date: July 2004
|
||||
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
|
@ -34,25 +37,26 @@
|
|||
|
||||
@class NSPrintInfo;
|
||||
|
||||
|
||||
//
|
||||
// Note: not all of these tags are currently used in the
|
||||
// NSPageLayout panel, see below for details.
|
||||
//
|
||||
enum {
|
||||
NSPLImageButton = 0,
|
||||
NSPLTitleField = 1,
|
||||
NSPLPaperNameButton = 2,
|
||||
NSPLUnitsButton = 3,
|
||||
NSPLWidthField = 4, //Not OpenStep, but used in the panel.
|
||||
NSPLHeightField = 5, //Not OpenStep, but used in the panel.
|
||||
NSPLOrientationMatrix = 6,
|
||||
NSPLCancelButton = 7,
|
||||
NSPLOKButton = 8,
|
||||
NSPLPageLayout = 9, //Not OpenStep, previously used in this panel.
|
||||
//Not anymore though, this is now solely in the
|
||||
//Print Panel. This used to select the number
|
||||
//of pages printed per sheet of paper. It is
|
||||
//best kept in the Print Panel only though.
|
||||
NSPLScaleField = 10, //Not OpenStep, but used in this panel.
|
||||
NSPLWidthForm = 20, //These were added because they
|
||||
NSPLHeightForm = 21, //have been seen in OpenStep
|
||||
NSPLMiniPageView = 22 //Not OpenStep, but used in this panel.
|
||||
NSPLImageButton = 1, //Used.
|
||||
NSPLTitleField = 2, //Used.
|
||||
NSPLPaperNameButton = 3, //Used, only for the standard paper size
|
||||
//NSPopUpButton though. Not the
|
||||
//NSPopUpButton used to select custom
|
||||
//paper sizes.
|
||||
NSPLUnitsButton = 4, //NOT used.
|
||||
NSPLWidthField = 5, //NOT used.
|
||||
NSPLHeightField = 6, //NOT used.
|
||||
NSPLOrientationMatrix = 7, //Used.
|
||||
NSPLCancelButton = 8, //Used.
|
||||
NSPLOKButton = 9, //Used.
|
||||
NSPLPageLayout = 10, //NOT used.
|
||||
NSPLScaleField = 11 //Used.
|
||||
};
|
||||
|
||||
|
||||
|
@ -77,10 +81,10 @@ enum {
|
|||
- (int)runModalWithPrintInfo:(NSPrintInfo *)pInfo;
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (void)beginSheetWithPrintInfo:(NSPrintInfo *)printInfo
|
||||
modalForWindow:(NSWindow *)docWindow
|
||||
delegate:(id)delegate
|
||||
didEndSelector:(SEL)didEndSelector
|
||||
contextInfo:(void *)contextInfo;
|
||||
modalForWindow:(NSWindow *)docWindow
|
||||
delegate:(id)delegate
|
||||
didEndSelector:(SEL)didEndSelector
|
||||
contextInfo:(void *)contextInfo;
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -93,7 +97,7 @@ enum {
|
|||
// Updating the Panel's Display
|
||||
//
|
||||
- (void)convertOldFactor:(float *)old
|
||||
newFactor:(float *)new;
|
||||
newFactor:(float *)new;
|
||||
- (void)pickedButton:(id)sender;
|
||||
- (void)pickedOrientation:(id)sender;
|
||||
- (void)pickedPaperSize:(id)sender;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue