kdeprint Library API Documentation

cupsdsplash.cpp

00001 /* 00002 * This file is part of the KDE libraries 00003 * Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License version 2 as published by the Free Software Foundation. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this library; see the file COPYING.LIB. If not, write to 00016 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 * Boston, MA 02111-1307, USA. 00018 **/ 00019 00020 #include "cupsdsplash.h" 00021 00022 #include <qlabel.h> 00023 #include <qpixmap.h> 00024 #include <qlayout.h> 00025 #include <klocale.h> 00026 #include <kstandarddirs.h> 00027 00028 CupsdSplash::CupsdSplash(QWidget *parent, const char *name) 00029 : CupsdPage(parent, name) 00030 { 00031 delete deflabel_; 00032 deflabel_ = 0; 00033 00034 header_ = i18n("Welcome to the CUPS server configuration tool"); 00035 00036 QVBoxLayout *main_ = new QVBoxLayout(this, 10, 10); 00037 QHBoxLayout *sub_ = new QHBoxLayout(0, 0, 10); 00038 main_->addLayout(sub_); 00039 00040 QLabel *cupslogo_ = new QLabel(this); 00041 QString logopath = locate("data", QString("kdeprint/cups_logo.png")); 00042 cupslogo_->setPixmap(logopath.isEmpty() ? QPixmap() : QPixmap(logopath)); 00043 cupslogo_->setAlignment(Qt::AlignCenter); 00044 QLabel *kupslogo_ = new QLabel(this); 00045 logopath = locate("data", QString("kdeprint/kde_logo.png")); 00046 kupslogo_->setPixmap(logopath.isEmpty() ? QPixmap() : QPixmap(logopath)); 00047 kupslogo_->setAlignment(Qt::AlignCenter); 00048 00049 QLabel *helptxt_ = new QLabel(this); 00050 helptxt_->setText(i18n("<p>This tool will help you to configure graphically the server of the CUPS printing system. " 00051 "The available options are classified in a hierarchical way " 00052 "and can be accessed quickly through the tree view located on the left. " 00053 "If this tree view is not visible, simply click (or double-click) on the first item in the view.</p><br>" 00054 "<p>Each option has a default value. If you want the server to use this value, " 00055 "simply check the box located on the right side of the corresponding option.</p>")); 00056 00057 sub_->addWidget(cupslogo_); 00058 sub_->addWidget(kupslogo_); 00059 main_->addWidget(helptxt_, 1); 00060 } 00061 00062 CupsdSplash::~CupsdSplash() 00063 { 00064 } 00065 00066 bool CupsdSplash::loadConfig(CupsdConf*, QString&) 00067 { 00068 return true; 00069 } 00070 00071 bool CupsdSplash::saveConfig(CupsdConf*, QString&) 00072 { 00073 return true; 00074 } 00075 00076 void CupsdSplash::setDefaults() 00077 { 00078 }
KDE Logo
This file is part of the documentation for kdeprint Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 16 17:23:16 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003