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

tdeprint

  • tdeprint
  • management
kmconfigjobs.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 "kmconfigjobs.h"
21
22#include <tqgroupbox.h>
23#include <tqlayout.h>
24
25#include <knuminput.h>
26#include <tdelocale.h>
27#include <tdeconfig.h>
28#include <kdialog.h>
29
30KMConfigJobs::KMConfigJobs(TQWidget *parent, const char *name)
31: KMConfigPage(parent, name)
32{
33 setPageName(i18n("Jobs"));
34 setPageHeader(i18n("Print Job Settings"));
35 setPagePixmap("application-x-executable");
36
37 TQGroupBox *box = new TQGroupBox(0, TQt::Vertical, i18n("Jobs Shown"), this);
38
39 m_limit = new KIntNumInput(box);
40 m_limit->setRange(0, 9999, 1, true);
41 m_limit->setSpecialValueText(i18n("Unlimited"));
42 m_limit->setLabel(i18n("Maximum number of jobs shown:"));
43
44 TQVBoxLayout *l0 = new TQVBoxLayout(this, 0, KDialog::spacingHint());
45 l0->addWidget(box, 0);
46 l0->addStretch(1);
47 TQVBoxLayout *l1 = new TQVBoxLayout(box->layout(), KDialog::spacingHint());
48 l1->addWidget(m_limit);
49}
50
51void KMConfigJobs::loadConfig(TDEConfig *conf)
52{
53 conf->setGroup("Jobs");
54 m_limit->setValue(conf->readNumEntry("Limit", 0));
55}
56
57void KMConfigJobs::saveConfig(TDEConfig *conf)
58{
59 conf->setGroup("Jobs");
60 conf->writeEntry("Limit", m_limit->value());
61}
62
63#include "kmconfigjobs.moc"

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.4
This website is maintained by Timothy Pearson.