MagicSmoke
$VERSION$
|
dialog that allows to select which labels on a sheet of paper are used More...
#include <labeldlg.h>
Public Slots | |
bool | conditionalExec (MLabelConfig::LabelType) |
shows the dialog if necessary - this depends on the local configuration for this label type if not shown it returns true (presuming the user would have wanted to print) if shown it returns true if the user clicked "Ok" and false otherwise More... | |
Public Member Functions | |
MLabelDialog (QWidget *parent, QPrinter *printer, int numlabels, QSizeF labelsize) | |
creates a label dialog More... | |
~MLabelDialog () | |
deletes the label dialog and stores its current settings More... | |
bool | labelNeedsPageTurn (int n) const |
returns whether this label is on a new page More... | |
QPointF | labelOffset (int n) const |
returns the offset of label number n; relative to the coordinate system of the given paint device; starts at the bottom left of the page More... | |
bool | oneLabelPerPage () const |
returns whether there is only one label per page More... | |
Static Public Member Functions | |
static bool | selectPrinter (MLabelConfig::LabelType type, QPrinter &printer, bool force=false) |
configures the printer for this particular label type whether the dialog is shown depends on settings and printer availability More... | |
dialog that allows to select which labels on a sheet of paper are used
MLabelDialog::MLabelDialog | ( | QWidget * | parent, |
QPrinter * | printer, | ||
int | numlabels, | ||
QSizeF | labelsize | ||
) |
MLabelDialog::~MLabelDialog | ( | ) |
deletes the label dialog and stores its current settings
|
slot |
shows the dialog if necessary - this depends on the local configuration for this label type if not shown it returns true (presuming the user would have wanted to print) if shown it returns true if the user clicked "Ok" and false otherwise
References oneLabelPerPage(), MLabelConfig::PageAskAlways, MLabelConfig::PageAskIfNeeded, and MLabelConfig::PageAskNever.
bool MLabelDialog::labelNeedsPageTurn | ( | int | n | ) | const |
returns whether this label is on a new page
References COLS.
QPointF MLabelDialog::labelOffset | ( | int | n | ) | const |
returns the offset of label number n; relative to the coordinate system of the given paint device; starts at the bottom left of the page
bool MLabelDialog::oneLabelPerPage | ( | ) | const |
returns whether there is only one label per page
Referenced by conditionalExec().
|
inlinestatic |
configures the printer for this particular label type whether the dialog is shown depends on settings and printer availability
type | type of label |
printer | pointer to the QPrinter object to be configured |
force | if true: force showing the printer dialog |
References MLabelConfig::selectPrinter().