mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:10:48 +00:00
Moved the method [NSApplication runPageLayout:] to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14404 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f8ef1a48a0
commit
31351a93cd
2 changed files with 14 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
||||||
#ifndef _GNUstep_H_NSPageLayout
|
#ifndef _GNUstep_H_NSPageLayout
|
||||||
#define _GNUstep_H_NSPageLayout
|
#define _GNUstep_H_NSPageLayout
|
||||||
|
|
||||||
|
#include <AppKit/NSApplication.h>
|
||||||
#include <AppKit/NSPanel.h>
|
#include <AppKit/NSPanel.h>
|
||||||
|
|
||||||
@class NSPrintInfo;
|
@class NSPrintInfo;
|
||||||
|
@ -45,6 +46,10 @@ enum {
|
||||||
NSPLOKButton
|
NSPLOKButton
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@interface NSApplication (NSPageLayout)
|
||||||
|
- (void) runPageLayout: (id)sender;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface NSPageLayout : NSPanel
|
@interface NSPageLayout : NSPanel
|
||||||
{
|
{
|
||||||
NSSize _size;
|
NSSize _size;
|
||||||
|
|
|
@ -49,6 +49,15 @@ static NSPageLayout *shared_instance;
|
||||||
|
|
||||||
#define CONTROL(panel, name) [[panel contentView] viewWithTag: name]
|
#define CONTROL(panel, name) [[panel contentView] viewWithTag: name]
|
||||||
|
|
||||||
|
@implementation NSApplication (NSPageLayout)
|
||||||
|
|
||||||
|
- (void) runPageLayout: sender
|
||||||
|
{
|
||||||
|
[[NSPageLayout pageLayout] runModal];
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
<unit>
|
<unit>
|
||||||
<heading>NSPageLayout</heading>
|
<heading>NSPageLayout</heading>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue