lib

#include <KoPageLayoutSize.h>

Public Slots

void setUnit (KoUnit::Unit unit)
void setEnableBorders (bool on)

Signals

void propertyChange (KoPageLayout &layout)

Public Member Functions

 KoPageLayoutSize (TQWidget *parent, const KoPageLayout &layout, KoUnit::Unit unit, const KoColumns &columns, bool unitChooser, bool enableBorders)
bool queryClose ()
void setColumns (KoColumns &columns)
KoUnit::Unit unit ()

Protected Slots

void formatChanged (int)
void widthChanged (double)
void heightChanged (double)
void leftChanged (double)
void rightChanged (double)
void topChanged (double)
void bottomChanged (double)
void orientationChanged (int)
void setUnitInt (int unit)

Protected Attributes

TQComboBox * cpgFormat
KoUnitDoubleSpinBox * epgWidth
KoUnitDoubleSpinBox * epgHeight
KoUnitDoubleSpinBox * ebrLeft
KoUnitDoubleSpinBox * ebrRight
KoUnitDoubleSpinBox * ebrTop
KoUnitDoubleSpinBox * ebrBottom
KoPagePreview * pgPreview
TQButtonGroup * m_orientGroup

Detailed Description

This class is a widget that shows the KoPageLayout data structure and allows the user to change it.

Definition at line 37 of file KoPageLayoutSize.h.

Constructor & Destructor Documentation

◆ KoPageLayoutSize()

KoPageLayoutSize::KoPageLayoutSize ( TQWidget * parent,
const KoPageLayout & layout,
KoUnit::Unit unit,
const KoColumns & columns,
bool unitChooser,
bool enableBorders )

Contructor.

Parameters
parentthe parent widget
layoutthe page layout that this widget should be initialzed with.
unitthe unit-type (mm/cm/inch) that the dialog should show
columnsthe KoColumns (amout of columns) that the preview should be initialized with
unitChooserif true a combobox with the unit-type is shown for the user to change
enableBordersif true enable the user to change the margins (aka borders) of the page

Definition at line 37 of file KoPageLayoutSize.cpp.

Member Function Documentation

◆ bottomChanged

void KoPageLayoutSize::bottomChanged ( double bottom)
protectedslot

Definition at line 323 of file KoPageLayoutSize.cpp.

◆ formatChanged

void KoPageLayoutSize::formatChanged ( int format)
protectedslot

Definition at line 245 of file KoPageLayoutSize.cpp.

◆ heightChanged

void KoPageLayoutSize::heightChanged ( double height)
protectedslot

Definition at line 299 of file KoPageLayoutSize.cpp.

◆ leftChanged

void KoPageLayoutSize::leftChanged ( double left)
protectedslot

Definition at line 305 of file KoPageLayoutSize.cpp.

◆ orientationChanged

void KoPageLayoutSize::orientationChanged ( int which)
protectedslot

Definition at line 267 of file KoPageLayoutSize.cpp.

◆ propertyChange

void KoPageLayoutSize::propertyChange ( KoPageLayout & layout)
signal

Emitted whenever the user changed something in the dialog.

Parameters
layoutthe update layout structure with currently displayed info. Note that the info may not be fully correct and physically possible (in which case queryClose will return false)

◆ queryClose()

bool KoPageLayoutSize::queryClose ( )
Returns
if the dialog is in a sane state and the values can be used.

Definition at line 330 of file KoPageLayoutSize.cpp.

◆ rightChanged

void KoPageLayoutSize::rightChanged ( double right)
protectedslot

Definition at line 311 of file KoPageLayoutSize.cpp.

◆ setColumns()

void KoPageLayoutSize::setColumns ( KoColumns & columns)

Update the page preview widget with the param columns.

Parameters
columnsthe new columns

Definition at line 346 of file KoPageLayoutSize.cpp.

◆ setEnableBorders

void KoPageLayoutSize::setEnableBorders ( bool on)
slot

Enable the user to edit the page border size.

Parameters
onif true enable the user to change the margins (aka borders) of the page

Definition at line 176 of file KoPageLayoutSize.cpp.

◆ setUnit

void KoPageLayoutSize::setUnit ( KoUnit::Unit unit)
slot

Set a new unit for the widget updating the widgets.

Parameters
unitthe new unit

Definition at line 208 of file KoPageLayoutSize.cpp.

◆ setUnitInt

void KoPageLayoutSize::setUnitInt ( int unit)
protectedslot

Definition at line 241 of file KoPageLayoutSize.cpp.

◆ topChanged

void KoPageLayoutSize::topChanged ( double top)
protectedslot

Definition at line 317 of file KoPageLayoutSize.cpp.

◆ unit()

KoUnit::Unit KoPageLayoutSize::unit ( )
inline

Definition at line 64 of file KoPageLayoutSize.h.

◆ widthChanged

void KoPageLayoutSize::widthChanged ( double width)
protectedslot

Definition at line 293 of file KoPageLayoutSize.cpp.

Member Data Documentation

◆ cpgFormat

TQComboBox* KoPageLayoutSize::cpgFormat
protected

Definition at line 88 of file KoPageLayoutSize.h.

◆ ebrBottom

KoUnitDoubleSpinBox* KoPageLayoutSize::ebrBottom
protected

Definition at line 94 of file KoPageLayoutSize.h.

◆ ebrLeft

KoUnitDoubleSpinBox* KoPageLayoutSize::ebrLeft
protected

Definition at line 91 of file KoPageLayoutSize.h.

◆ ebrRight

KoUnitDoubleSpinBox* KoPageLayoutSize::ebrRight
protected

Definition at line 92 of file KoPageLayoutSize.h.

◆ ebrTop

KoUnitDoubleSpinBox* KoPageLayoutSize::ebrTop
protected

Definition at line 93 of file KoPageLayoutSize.h.

◆ epgHeight

KoUnitDoubleSpinBox* KoPageLayoutSize::epgHeight
protected

Definition at line 90 of file KoPageLayoutSize.h.

◆ epgWidth

KoUnitDoubleSpinBox* KoPageLayoutSize::epgWidth
protected

Definition at line 89 of file KoPageLayoutSize.h.

◆ m_orientGroup

TQButtonGroup* KoPageLayoutSize::m_orientGroup
protected

Definition at line 96 of file KoPageLayoutSize.h.

◆ pgPreview

KoPagePreview* KoPageLayoutSize::pgPreview
protected

Definition at line 95 of file KoPageLayoutSize.h.


The documentation for this class was generated from the following files: