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

tdeprint

  • tdeprint
  • management
kmpages.cpp
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 #include "kmpages.h"
21 #include "kminfopage.h"
22 #include "kmjobviewer.h"
23 #include "kmpropertypage.h"
24 #include "kminstancepage.h"
25 
26 #include <tdelocale.h>
27 #include <kiconloader.h>
28 #include <kdialog.h>
29 
30 KMPages::KMPages(TQWidget *parent, const char *name)
31 : TQTabWidget(parent,name)
32 {
33  m_pages.setAutoDelete(false);
34  initialize();
35 }
36 
37 KMPages::~KMPages()
38 {
39 }
40 
41 void KMPages::setPrinter(KMPrinter *p)
42 {
43  TQPtrListIterator<KMPrinterPage> it(m_pages);
44  for (int i=0;it.current();++it,i++)
45  it.current()->setPrinter(p);
46 }
47 
48 void KMPages::initialize()
49 {
50  setMargin(KDialog::marginHint());
51 
52  // Info page
53  KMInfoPage *infopage = new KMInfoPage(this, "InfoPage");
54  addTab(infopage, SmallIcon("help"), i18n("Information"));
55  m_pages.append(infopage);
56 
57  // Job page
58  KMJobViewer *jobviewer = new KMJobViewer(this, "JobViewer");
59  addTab(jobviewer, SmallIcon("folder"), i18n("Jobs"));
60  m_pages.append(jobviewer);
61 
62  // Property page
63  KMPropertyPage *proppage = new KMPropertyPage(this, "Property");
64  addTab(proppage, SmallIcon("configure"), i18n("Properties"));
65  m_pages.append(proppage);
66 
67  // Instance page
68  KMInstancePage *instpage = new KMInstancePage(this, "Instance");
69  addTab(instpage, SmallIcon("document-print"), i18n("Instances"));
70  m_pages.append(instpage);
71 
72  // initialize pages
73  setPrinter(0);
74 }

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.