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

tdeprint

  • tdeprint
  • cups
  • cupsdconf2
cupsdsplash.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 "cupsdsplash.h"
21 
22 #include <tqlabel.h>
23 #include <tqpixmap.h>
24 #include <tqlayout.h>
25 #include <tdelocale.h>
26 #include <kstandarddirs.h>
27 
28 CupsdSplash::CupsdSplash(TQWidget *parent, const char *name)
29  : CupsdPage(parent, name)
30 {
31  setHeader(i18n("Welcome to the CUPS Server Configuration Tool"));
32  setPageLabel(i18n("Welcome"));
33  setPixmap("go");
34 
35  TQVBoxLayout *main_ = new TQVBoxLayout(this, 10, 10);
36  TQHBoxLayout *sub_ = new TQHBoxLayout(0, 0, 10);
37  main_->addLayout(sub_);
38 
39  TQLabel *cupslogo_ = new TQLabel(this);
40  TQString logopath = locate("data", TQString("tdeprint/cups_logo.png"));
41  cupslogo_->setPixmap(logopath.isEmpty() ? TQPixmap() : TQPixmap(logopath));
42  cupslogo_->setAlignment(TQt::AlignCenter);
43  TQLabel *kupslogo_ = new TQLabel(this);
44  logopath = locate("data", TQString("tdeprint/kde_logo.png"));
45  kupslogo_->setPixmap(logopath.isEmpty() ? TQPixmap() : TQPixmap(logopath));
46  kupslogo_->setAlignment(TQt::AlignCenter);
47 
48  TQLabel *helptxt_ = new TQLabel(this);
49  helptxt_->setText(i18n( "<p>This tool will help you to configure graphically the server of the CUPS printing system. "
50  "The available options are grouped into sets of related topics and can be accessed "
51  "quickly through the icon view located on the left. Each option has a default value that is "
52  "shown if it has not been previously set. This default value should be OK in most cases.</p><br>"
53  "<p>You can access a short help message for each option using either the '?' button in the "
54  "the title bar, or the button at the bottom of this dialog.</p>"));
55 
56  sub_->addWidget(cupslogo_);
57  sub_->addWidget(kupslogo_);
58  main_->addWidget(helptxt_, 1);
59 }
60 
61 CupsdSplash::~CupsdSplash()
62 {
63 }
64 
65 bool CupsdSplash::loadConfig(CupsdConf*, TQString&)
66 {
67  return true;
68 }
69 
70 bool CupsdSplash::saveConfig(CupsdConf*, TQString&)
71 {
72  return true;
73 }

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.