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

tdeprint

  • tdeprint
  • rlpr
kmproprlpr.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 "kmproprlpr.h"
21 #include "kmprinter.h"
22 #include "kmwizard.h"
23 
24 #include <tqlabel.h>
25 #include <tqlayout.h>
26 #include <tdelocale.h>
27 
28 KMPropRlpr::KMPropRlpr(TQWidget *parent, const char *name)
29 : KMPropWidget(parent,name)
30 {
31  m_host = new TQLabel("",this);
32  m_queue = new TQLabel("",this);
33 
34  TQLabel *l1 = new TQLabel(i18n("Host:"), this);
35  TQLabel *l2 = new TQLabel(i18n("Queue:"), this);
36 
37  // layout
38  TQGridLayout *main_ = new TQGridLayout(this, 3, 2, 10, 7);
39  main_->setColStretch(0,0);
40  main_->setColStretch(1,1);
41  main_->setRowStretch(2,1);
42  main_->addWidget(l1,0,0);
43  main_->addWidget(l2,1,0);
44  main_->addWidget(m_host,0,1);
45  main_->addWidget(m_queue,1,1);
46 
47  m_pixmap = "connect_established";
48  m_title = i18n("Queue");
49  m_header = i18n("Remote LPD Queue Settings");
50 }
51 
52 KMPropRlpr::~KMPropRlpr()
53 {
54 }
55 
56 void KMPropRlpr::setPrinter(KMPrinter *p)
57 {
58  if (p && !p->isSpecial())
59  {
60  m_host->setText(p->option("host"));
61  m_queue->setText(p->option("queue"));
62  emit enable(true);
63  }
64  else
65  {
66  emit enable(false);
67  m_host->setText("");
68  m_queue->setText("");
69  }
70 }
71 
72 void KMPropRlpr::configureWizard(KMWizard *w)
73 {
74  w->configure(KMWizard::Custom+1,KMWizard::Custom+1,true);
75 }

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.