1
/* This file is part of the KDE project
2
* Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
3
* Copyright (C) 2005 Thomas Zander <zander@kde.org>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; version 2.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
14
* You should have received a copy of the GNU Library General Public License
15
* along with this library; see the file COPYING.LIB. If not, write to
16
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
* Boston, MA 02110-1301, USA.
20
// Description: Page Layout Dialog (sources)
22
#ifndef kopagelayoutcolumns_h
23
#define kopagelayoutcolumns_h
26
#include <KoPageLayout.h>
27
#include <KoPageLayoutColumnsBase.h>
30
class KoUnitDoubleSpinBox;
34
* This class is a widget that shows the KoColumns data structure and allows the user to change it.
36
class KoPageLayoutColumns : public KoPageLayoutColumnsBase {
42
* @param parent the parent widget
43
* @param columns the KoColumns data structure that this dialog should be initialzed with
44
* @param unit the unit-type (mm/cm/inch) that the dialog should show
45
* @param layout the page layout that the preview should be initialzed with.
47
KoPageLayoutColumns(QWidget *parent, const KoColumns& columns, KoUnit::Unit unit, const KoPageLayout& layout);
50
* Update the page preview widget with the param layout.
51
* @param layout the new layout
53
void setLayout(KoPageLayout &layout);
57
* Enable the user to edit the columns
58
* @param on if true enable the user to change the columns count
60
void setEnableColumns(bool on);
63
void propertyChange(KoColumns &columns);
67
KoPagePreview *m_preview;
68
KoUnitDoubleSpinBox *m_spacing;
71
void nColChanged( int );
72
void nSpaceChanged( double );