|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.gui.QDialog
com.trolltech.qt.gui.QAbstractPageSetupDialog
com.trolltech.qt.gui.QPageSetupDialog
public class QPageSetupDialog
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer. On Windows and Mac OS X the page setup dialog is implemented using the native page setup dialogs.
Note that on Windows and Mac OS X custom paper sizes won't be reflected in the native page setup dialogs. Additionally, custom page margins set on a QPrinter
won't show in the native Mac OS X page setup dialog.
QPrinter
, and QPrintDialog
.
Nested Class Summary | |
---|---|
static class |
QPageSetupDialog.PageSetupDialogOption
Used to specify options to the page setup dialog |
static class |
QPageSetupDialog.PageSetupDialogOptions
|
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QDialog |
---|
QDialog.DialogCode |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget |
---|
QWidget.RenderFlag, QWidget.RenderFlags |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.gui.QDialog |
---|
accepted, finished, rejected |
Fields inherited from class com.trolltech.qt.gui.QWidget |
---|
customContextMenuRequested |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
QPageSetupDialog()
Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget. |
|
QPageSetupDialog(QPrinter printer)
Constructs a page setup dialog that configures printer with parent as the parent widget. |
|
QPageSetupDialog(QPrinter printer,
QWidget parent)
Constructs a page setup dialog that configures printer with parent as the parent widget. |
|
QPageSetupDialog(QWidget parent)
Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget. |
Method Summary | |
---|---|
void |
addEnabledOption(QPageSetupDialog.PageSetupDialogOption option)
Use setOption(option, true) instead. |
QPageSetupDialog.PageSetupDialogOptions |
enabledOptions()
Use options() instead. |
boolean |
isOptionEnabled(QPageSetupDialog.PageSetupDialogOption option)
Use testOption(option) instead. |
QPageSetupDialog.PageSetupDialogOptions |
options()
This property holds the various options that affect the look and feel of the dialog. |
void |
setEnabledOptions(QPageSetupDialog.PageSetupDialogOption[] options)
This is an overloaded method provided for convenience. |
void |
setEnabledOptions(QPageSetupDialog.PageSetupDialogOptions options)
Use setOptions(options) instead. |
void |
setOption(QPageSetupDialog.PageSetupDialogOption option)
Sets the given option to be enabled if on is true; otherwise, clears the given option. |
void |
setOption(QPageSetupDialog.PageSetupDialogOption option,
boolean on)
Sets the given option to be enabled if on is true; otherwise, clears the given option. |
void |
setOptions(QPageSetupDialog.PageSetupDialogOption[] options)
This is an overloaded method provided for convenience. |
void |
setOptions(QPageSetupDialog.PageSetupDialogOptions options)
This property holds the various options that affect the look and feel of the dialog. |
boolean |
testOption(QPageSetupDialog.PageSetupDialogOption option)
Returns true if the given option is enabled; otherwise, returns false. |
Methods inherited from class com.trolltech.qt.gui.QDialog |
---|
accept, done, exec, isSizeGripEnabled, open, reject, result, setModal, setResult, setSizeGripEnabled |
Methods inherited from class com.trolltech.qt.core.QObject |
---|
childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, startTimer, timerEvent, toString, userProperty |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QPageSetupDialog(QPrinter printer)
public QPageSetupDialog(QPrinter printer, QWidget parent)
public QPageSetupDialog()
QPrinter
with parent as the parent widget.
public QPageSetupDialog(QWidget parent)
QPrinter
with parent as the parent widget.
Method Detail |
---|
public final void addEnabledOption(QPageSetupDialog.PageSetupDialogOption option)
public final QPageSetupDialog.PageSetupDialogOptions enabledOptions()
options()
instead.
public final boolean isOptionEnabled(QPageSetupDialog.PageSetupDialogOption option)
public final QPageSetupDialog.PageSetupDialogOptions options()
Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).
setOption()
, and testOption()
.
public final void setEnabledOptions(QPageSetupDialog.PageSetupDialogOption[] options)
public final void setEnabledOptions(QPageSetupDialog.PageSetupDialogOptions options)
public final void setOption(QPageSetupDialog.PageSetupDialogOption option)
options
, and testOption()
.
public final void setOption(QPageSetupDialog.PageSetupDialogOption option, boolean on)
options
, and testOption()
.
public final void setOptions(QPageSetupDialog.PageSetupDialogOption[] options)
public final void setOptions(QPageSetupDialog.PageSetupDialogOptions options)
Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).
setOption()
, and testOption()
.
public final boolean testOption(QPageSetupDialog.PageSetupDialogOption option)
options
, and setOption()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |