• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeprint
 

kdeprint

  • kdeprint
marginwidget.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001-2002 Michael Goffioul <kdeprint@swing.be>
4  *
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 version 2 as published by the Free Software Foundation.
8  *
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.
13  *
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.
18  **/
19 
20 #ifndef MARGINWIDGET_H
21 #define MARGINWIDGET_H
22 
23 #include <tqwidget.h>
24 #include <tqvaluevector.h>
25 
26 #include <kdelibs_export.h>
27 
28 class MarginValueWidget;
29 class MarginPreview;
30 class TQCheckBox;
31 class TQComboBox;
32 
33 class KDEPRINT_EXPORT MarginWidget : public TQWidget
34 {
35  Q_OBJECT
36 public:
37  MarginWidget(TQWidget *parent = 0, const char *name = 0, bool allowMetricUnit = true);
38  ~MarginWidget();
39 
40  void setSymetricMargins(bool on);
41  void setPageSize(float w, float h);
42  void setOrientation(int orient);
43  float top() const;
44  void setTop(float val);
45  float bottom() const;
46  void setBottom(float val);
47  float left() const;
48  void setLeft(float val);
49  float right() const;
50  void setRight(float val);
51  void setResolution(int dpi);
52  void setDefaultMargins(float t, float b, float l, float r);
53  void setCustomEnabled(bool on);
54  bool isCustomEnabled() const;
55 
56 protected slots:
57  void slotMarginValueChanged();
58  void slotMarginPreviewChanged(int, float);
59  void slotCustomMarginsToggled(bool);
60 
61 protected:
62  void resetDefault();
63 
64 private:
65  MarginValueWidget *m_top, *m_bottom, *m_left, *m_right;
66  MarginPreview *m_preview;
67  TQComboBox *m_units;
68  TQCheckBox *m_custom;
69  bool m_symetric, m_block;
70  TQValueVector<float> m_default;
71  TQValueVector<float> m_pagesize;
72  bool m_landscape;
73 };
74 
75 #endif

kdeprint

Skip menu "kdeprint"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeprint

Skip menu "kdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeprint by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |