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

kdeprint

  • kdeprint
  • management
kmpages.cpp
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 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 #include "kmpages.h"
21 #include "kminfopage.h"
22 #include "kmjobviewer.h"
23 #include "kmpropertypage.h"
24 #include "kminstancepage.h"
25 
26 #include <klocale.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("fileprint"), i18n("Instances"));
70  m_pages.append(instpage);
71 
72  // initialize pages
73  setPrinter(0);
74 }

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