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

tdeprint

  • tdeprint
posterpreview.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 POSTERPREVIEW_H
21 #define POSTERPREVIEW_H
22 
23 #include <tqframe.h>
24 #include <tqvaluelist.h>
25 
26 class TDEProcess;
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( TDEProcess*, char*, int );
59  void slotProcessExited( TDEProcess* );
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  TDEProcess *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 */

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.