Référence de la classe KoPageLayoutSize

#include <KoPageLayoutSize.h>

Graphe de collaboration de KoPageLayoutSize:

[légende]
Liste de tous les membres

Connecteurs publics

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

Signaux

void propertyChange (KoPageLayout &layout)

Fonctions membres publiques

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

Connecteurs protégés

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)

Attributs protégés

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

Fonctions membres privées

void updatePreview ()
void setValues ()

Attributs privés

KoUnit::Unit m_unit
KoPageLayout m_layout
bool m_blockSignals
bool m_haveBorders

Description détaillée

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

Définition à la ligne 38 du fichier KoPageLayoutSize.h.


Documentation des contructeurs et destructeur

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

Contructor

Paramètres:
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

Définition à la ligne 40 du fichier KoPageLayoutSize.cpp.

Références KoPageFormat::allFormats(), bottomChanged(), cpgFormat, ebrBottom, ebrLeft, ebrRight, ebrTop, epgHeight, epgWidth, KoPageLayout::format, formatChanged(), heightChanged(), leftChanged(), KoUnit::listOfUnitName(), m_layout, m_orientBox, m_orientGroup, m_unit, orientationChanged(), PG_CUSTOM, PG_LANDSCAPE, PG_PORTRAIT, pgPreview, rightChanged(), setEnableBorders(), KoPagePreview::setPageColumns(), setUnitInt(), setValues(), topChanged(), KoUnit::unitDescription(), updatePreview(), et widthChanged().

Voici le graphe d'appel pour cette fonction :


Documentation des fonctions membres

bool KoPageLayoutSize::queryClose (  ) 

Renvoie:
if the dialog is in a sane state and the values can be used.

Définition à la ligne 349 du fichier KoPageLayoutSize.cpp.

Références m_layout, KoPageLayout::ptBottom, KoPageLayout::ptHeight, KoPageLayout::ptLeft, KoPageLayout::ptRight, KoPageLayout::ptTop, et KoPageLayout::ptWidth.

Référencé par KoPageLayoutDia::slotOk().

void KoPageLayoutSize::setColumns ( KoColumns columns  ) 

Update the page preview widget with the param columns.

Paramètres:
columns the new columns

Définition à la ligne 365 du fichier KoPageLayoutSize.cpp.

Références pgPreview, et KoPagePreview::setPageColumns().

Référencé par KoPageLayoutDia::columnsUpdated().

Voici le graphe d'appel pour cette fonction :

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

Set a new unit for the widget updating the widgets.

Paramètres:
unit the new unit

Définition à la ligne 227 du fichier KoPageLayoutSize.cpp.

Références KoUnitDoubleSpinBox::changeValue(), ebrBottom, ebrLeft, ebrRight, ebrTop, epgHeight, epgWidth, KoUnit::fromUserValue(), m_blockSignals, m_layout, m_unit, KoPageLayout::ptBottom, KoPageLayout::ptHeight, KoPageLayout::ptLeft, KoPageLayout::ptRight, KoPageLayout::ptTop, KoPageLayout::ptWidth, KoUnitDoubleSpinBox::setMinMaxStep(), et KoUnitDoubleSpinBox::setUnit().

Référencé par setUnitInt(), et setValues().

void KoPageLayoutSize::setEnableBorders ( bool  on  )  [slot]

Enable the user to edit the page border size

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

Définition à la ligne 195 du fichier KoPageLayoutSize.cpp.

Références ebrBottom, ebrLeft, ebrRight, ebrTop, m_haveBorders, m_layout, propertyChange(), KoPageLayout::ptBottom, KoPageLayout::ptLeft, KoPageLayout::ptRight, KoPageLayout::ptTop, updatePreview(), et KoUnitDoubleSpinBox::value().

Référencé par KoPageLayoutSize(), et orientationChanged().

void KoPageLayoutSize::propertyChange ( KoPageLayout layout  )  [signal]

Emitted whenever the user changed something in the dialog.

Paramètres:
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)

Référencé par bottomChanged(), formatChanged(), heightChanged(), leftChanged(), rightChanged(), setEnableBorders(), topChanged(), et widthChanged().

void KoPageLayoutSize::formatChanged ( int   )  [protected, slot]

Définition à la ligne 264 du fichier KoPageLayoutSize.cpp.

Références KoUnitDoubleSpinBox::changeValue(), epgHeight, epgWidth, KoPageLayout::format, KoPageFormat::height(), m_layout, MM_TO_POINT, KoPageLayout::orientation, PG_CUSTOM, propertyChange(), KoPageLayout::ptHeight, KoPageLayout::ptWidth, updatePreview(), et KoPageFormat::width().

Référencé par KoPageLayoutSize().

void KoPageLayoutSize::widthChanged ( double   )  [protected, slot]

Définition à la ligne 312 du fichier KoPageLayoutSize.cpp.

Références m_blockSignals, m_layout, propertyChange(), KoPageLayout::ptWidth, et updatePreview().

Référencé par KoPageLayoutSize().

void KoPageLayoutSize::heightChanged ( double   )  [protected, slot]

Définition à la ligne 318 du fichier KoPageLayoutSize.cpp.

Références m_blockSignals, m_layout, propertyChange(), KoPageLayout::ptHeight, et updatePreview().

Référencé par KoPageLayoutSize().

void KoPageLayoutSize::leftChanged ( double   )  [protected, slot]

Définition à la ligne 324 du fichier KoPageLayoutSize.cpp.

Références m_blockSignals, m_layout, propertyChange(), KoPageLayout::ptLeft, et updatePreview().

Référencé par KoPageLayoutSize().

void KoPageLayoutSize::rightChanged ( double   )  [protected, slot]

Définition à la ligne 330 du fichier KoPageLayoutSize.cpp.

Références m_blockSignals, m_layout, propertyChange(), KoPageLayout::ptRight, et updatePreview().

Référencé par KoPageLayoutSize().

void KoPageLayoutSize::topChanged ( double   )  [protected, slot]

Définition à la ligne 336 du fichier KoPageLayoutSize.cpp.

Références m_blockSignals, m_layout, propertyChange(), KoPageLayout::ptTop, et updatePreview().

Référencé par KoPageLayoutSize().

void KoPageLayoutSize::bottomChanged ( double   )  [protected, slot]

Définition à la ligne 342 du fichier KoPageLayoutSize.cpp.

Références m_blockSignals, m_layout, propertyChange(), KoPageLayout::ptBottom, et updatePreview().

Référencé par KoPageLayoutSize().

void KoPageLayoutSize::orientationChanged ( int   )  [protected, slot]

Définition à la ligne 286 du fichier KoPageLayoutSize.cpp.

Références KoUnitDoubleSpinBox::changeValue(), ebrBottom, ebrLeft, ebrRight, ebrTop, epgHeight, epgWidth, m_blockSignals, m_haveBorders, m_layout, KoPageLayout::orientation, PG_LANDSCAPE, PG_PORTRAIT, setEnableBorders(), et KoUnitDoubleSpinBox::value().

Référencé par KoPageLayoutSize().

void KoPageLayoutSize::setUnitInt ( int  unit  )  [protected, slot]

Définition à la ligne 260 du fichier KoPageLayoutSize.cpp.

Références setUnit().

Référencé par KoPageLayoutSize().

void KoPageLayoutSize::updatePreview (  )  [private]

Définition à la ligne 213 du fichier KoPageLayoutSize.cpp.

Références m_layout, pgPreview, et KoPagePreview::setPageLayout().

Référencé par bottomChanged(), formatChanged(), heightChanged(), KoPageLayoutSize(), leftChanged(), rightChanged(), setEnableBorders(), setValues(), topChanged(), et widthChanged().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoPageLayoutSize::setValues (  )  [private]

Définition à la ligne 217 du fichier KoPageLayoutSize.cpp.

Références cpgFormat, KoPageLayout::format, m_layout, m_orientGroup, m_unit, KoPageLayout::orientation, setUnit(), et updatePreview().

Référencé par KoPageLayoutSize().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

QComboBox* KoPageLayoutSize::cpgFormat [protected]

Définition à la ligne 87 du fichier KoPageLayoutSize.h.

Référencé par KoPageLayoutSize(), et setValues().

KoUnitDoubleSpinBox* KoPageLayoutSize::epgWidth [protected]

Définition à la ligne 88 du fichier KoPageLayoutSize.h.

Référencé par formatChanged(), KoPageLayoutSize(), orientationChanged(), et setUnit().

KoUnitDoubleSpinBox* KoPageLayoutSize::epgHeight [protected]

Définition à la ligne 89 du fichier KoPageLayoutSize.h.

Référencé par formatChanged(), KoPageLayoutSize(), orientationChanged(), et setUnit().

KoUnitDoubleSpinBox* KoPageLayoutSize::ebrLeft [protected]

Définition à la ligne 90 du fichier KoPageLayoutSize.h.

Référencé par KoPageLayoutSize(), orientationChanged(), setEnableBorders(), et setUnit().

KoUnitDoubleSpinBox* KoPageLayoutSize::ebrRight [protected]

Définition à la ligne 91 du fichier KoPageLayoutSize.h.

Référencé par KoPageLayoutSize(), orientationChanged(), setEnableBorders(), et setUnit().

KoUnitDoubleSpinBox* KoPageLayoutSize::ebrTop [protected]

Définition à la ligne 92 du fichier KoPageLayoutSize.h.

Référencé par KoPageLayoutSize(), orientationChanged(), setEnableBorders(), et setUnit().

KoUnitDoubleSpinBox* KoPageLayoutSize::ebrBottom [protected]

Définition à la ligne 93 du fichier KoPageLayoutSize.h.

Référencé par KoPageLayoutSize(), orientationChanged(), setEnableBorders(), et setUnit().

KoPagePreview* KoPageLayoutSize::pgPreview [protected]

Définition à la ligne 94 du fichier KoPageLayoutSize.h.

Référencé par KoPageLayoutSize(), setColumns(), et updatePreview().

QGroupBox* KoPageLayoutSize::m_orientBox [protected]

Définition à la ligne 95 du fichier KoPageLayoutSize.h.

Référencé par KoPageLayoutSize().

QButtonGroup* KoPageLayoutSize::m_orientGroup [protected]

Définition à la ligne 96 du fichier KoPageLayoutSize.h.

Référencé par KoPageLayoutSize(), et setValues().

KoUnit::Unit KoPageLayoutSize::m_unit [private]

Définition à la ligne 113 du fichier KoPageLayoutSize.h.

Référencé par KoPageLayoutSize(), setUnit(), et setValues().

KoPageLayout KoPageLayoutSize::m_layout [private]

Définition à la ligne 114 du fichier KoPageLayoutSize.h.

Référencé par bottomChanged(), formatChanged(), heightChanged(), KoPageLayoutSize(), leftChanged(), orientationChanged(), queryClose(), rightChanged(), setEnableBorders(), setUnit(), setValues(), topChanged(), updatePreview(), et widthChanged().

bool KoPageLayoutSize::m_blockSignals [private]

Définition à la ligne 116 du fichier KoPageLayoutSize.h.

Référencé par bottomChanged(), heightChanged(), leftChanged(), orientationChanged(), rightChanged(), setUnit(), topChanged(), et widthChanged().

bool KoPageLayoutSize::m_haveBorders [private]

Définition à la ligne 116 du fichier KoPageLayoutSize.h.

Référencé par orientationChanged(), et setEnableBorders().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:47:00 2006 pour KPlato par  doxygen 1.5.1-p1