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

tdeprint

  • tdeprint
marginwidget.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001-2002 Michael Goffioul <tdeprint@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 <tdelibs_export.h>
27 
28 class MarginValueWidget;
29 class MarginPreview;
30 class TQCheckBox;
31 class TQComboBox;
32 
33 class TDEPRINT_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

tdeprint

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

tdeprint

Skip menu "tdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.8.8
This website is maintained by Timothy Pearson.