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

kdeprint

  • kdeprint
posterpreview.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 POSTERPREVIEW_H
21 #define POSTERPREVIEW_H
22 
23 #include <tqframe.h>
24 #include <tqvaluelist.h>
25 
26 class KProcess;
27 
28 class PosterPreview : public TQFrame
29 {
30  Q_OBJECT
31 public:
32  PosterPreview( TQWidget *parent = 0, const char *name = 0 );
33  PosterPreview( const TQString& postersize, const TQString& mediasize, TQWidget *parent = 0, const char *name = 0 );
34  ~PosterPreview();
35 
36 public slots:
37  void setPosterSize( int );
38  void setPosterSize( const TQString& );
39  void setMediaSize( int );
40  void setMediaSize( const TQString& );
41  void setCutMargin( int );
42  void updatePoster();
43  void setSelectedPages( const TQString& );
44 
45 signals:
46  void selectionChanged( const TQString& );
47 
48 protected:
49  void parseBuffer();
50  void drawContents( TQPainter* );
51  void init();
52  void setDirty();
53  void mouseMoveEvent( TQMouseEvent* );
54  void mousePressEvent( TQMouseEvent* );
55  void emitSelectedPages();
56 
57 protected slots:
58  void slotProcessStderr( KProcess*, char*, int );
59  void slotProcessExited( KProcess* );
60 
61 private:
62  int m_rows, m_cols;
63  int m_pw, m_ph; // page size
64  int m_mw, m_mh; // cur margins
65  TQRect m_posterbb; // poster bounding box (without any margin)
66  KProcess *m_process;
67  TQString m_buffer;
68  TQString m_postersize, m_mediasize;
69  int m_cutmargin;
70  bool m_dirty;
71  TQRect m_boundingrect;
72  TQValueList<int> m_selectedpages;
73 };
74 
75 #endif /* POSTERPREVIEW_H */

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.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |