lib

KoPageLayoutSize Class Reference

#include <KoPageLayoutSize.h>

List of all members.


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.


Public Slots

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

Signals

void propertyChange (KoPageLayout &layout)

Public Member Functions

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

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

QComboBox * cpgFormat
KoUnitDoubleSpinBoxepgWidth
KoUnitDoubleSpinBoxepgHeight
KoUnitDoubleSpinBoxebrLeft
KoUnitDoubleSpinBoxebrRight
KoUnitDoubleSpinBoxebrTop
KoUnitDoubleSpinBoxebrBottom
KoPagePreviewpgPreview
QButtonGroup * m_orientGroup

Constructor & Destructor Documentation

KoPageLayoutSize::KoPageLayoutSize QWidget *  parent,
const KoPageLayout layout,
KoUnit::Unit  unit,
const KoColumns columns,
bool  unitChooser,
bool  enableBorders
 

Contructor.

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

Definition at line 37 of file KoPageLayoutSize.cpp.


Member Function Documentation

void KoPageLayoutSize::propertyChange KoPageLayout layout  )  [signal]
 

Emitted whenever the user changed something in the dialog.

Parameters:
layout the 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)

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.

void KoPageLayoutSize::setColumns KoColumns columns  ) 
 

Update the page preview widget with the param columns.

Parameters:
columns the new columns

Definition at line 346 of file KoPageLayoutSize.cpp.

void KoPageLayoutSize::setEnableBorders bool  on  )  [slot]
 

Enable the user to edit the page border size.

Parameters:
on if true enable the user to change the margins (aka borders) of the page

Definition at line 176 of file KoPageLayoutSize.cpp.

void KoPageLayoutSize::setUnit KoUnit::Unit  unit  )  [slot]
 

Set a new unit for the widget updating the widgets.

Parameters:
unit the new unit

Definition at line 208 of file KoPageLayoutSize.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys