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

tdeprint

  • tdeprint
  • management
kmwizard.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 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 KMWIZARD_H
21 #define KMWIZARD_H
22 
23 #include <tqdialog.h>
24 #include <tqintdict.h>
25 #include <tqvaluestack.h>
26 
27 #include <tdelibs_export.h>
28 
29 class TQWidgetStack;
30 class TQLabel;
31 class TQPushButton;
32 class KMWizardPage;
33 class KMPrinter;
34 class KMWBackend;
35 class SidePixmap;
36 
37 class TDEPRINT_EXPORT KMWizard : public TQDialog
38 {
39  TQ_OBJECT
40 public:
41  enum PageType {
42  Start = 0,
43  End,
44  Error,
45  Backend,
46  Driver,
47  File,
48  SMB,
49  TCP,
50  Local,
51  LPD,
52  IPP,
53  IPPSelect,
54  Class,
55  Password,
56  DriverTest,
57  DriverSelect,
58  Name,
59  Banners,
60  Custom = 100
61  };
62 
63  KMWizard(TQWidget *parent = 0, const char *name = 0);
64  ~KMWizard();
65 
66  void configure(int start, int end, bool inclusive = true);
67  void setCurrentPage(int ID, bool back = false);
68  void setPrinter(KMPrinter*);
69  KMPrinter* printer() { return m_printer; }
70  void addPage(KMWizardPage*);
71  KMWBackend* backendPage() { return m_backend; }
72  void setNextPage(int page, int next);
73 
74 public slots:
75  void enableWizard();
76  void disableWizard();
77 
78 protected slots:
79  void slotNext();
80  void slotPrev();
81  void slotHelp();
82 
83 private:
84  TQIntDict<KMWizardPage> m_pagepool;
85  TQValueStack<int> m_pagestack;
86 
87  TQWidgetStack *m_stack;
88  TQLabel *m_title;
89  TQPushButton *m_next, *m_prev;
90  int m_start, m_end;
91  bool m_inclusive;
92  KMPrinter *m_printer;
93 
94  // backend page
95  KMWBackend *m_backend;
96 
97  // side pixmap
98  SidePixmap *m_side;
99 };
100 
101 #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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.9.1
This website is maintained by Timothy Pearson.