Scribus
Open source desktop publishing at your fingertips
PresetLayout Class Reference

This is inherited QComboBox widget used in MarginWidget as "Preset List". It contains functionality for margins setting in various ways. More...

#include <marginpresetlayout.h>

Inheritance diagram for PresetLayout:
Collaboration diagram for PresetLayout:

Public Types

enum  presetID {
  none = 0, gutenberg = 1, magazine = 2, fibonacci = 3,
  goldencut = 4, nineparts = 5
}
 Integerized indexes for tr() strings.
 

Public Member Functions

 PresetLayout (QWidget *parent=0)
 QComboBox like constructor. Values/names are set here. Tooltip etc. too.
 
MarginStruct getMargins (int index, double pageWidth, double pageHeight, double leftMargin)
 Compute the margins here. More...
 
bool needUpdate () const
 returns updateMargins value
 

Detailed Description

This is inherited QComboBox widget used in MarginWidget as "Preset List". It contains functionality for margins setting in various ways.

Author
Petr Vanek, petr@.nosp@m.yarp.nosp@m.en.cz

Member Function Documentation

MarginStruct PresetLayout::getMargins ( int  index,
double  pageWidth,
double  pageHeight,
double  leftMargin 
)

Compute the margins here.

Parameters
indexselected item
pageWidthwidth of the page. Taken from NewDoc dialog.
pageHeightheight of the page. Taken from NewDoc dialog.
leftMarginleadin margin value. The others margins are set in various ratios related to this one.

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