00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "cupsdsplash.h"
00021
00022 #include <tqlabel.h>
00023 #include <tqpixmap.h>
00024 #include <tqlayout.h>
00025 #include <tdelocale.h>
00026 #include <kstandarddirs.h>
00027
00028 CupsdSplash::CupsdSplash(TQWidget *parent, const char *name)
00029 : CupsdPage(parent, name)
00030 {
00031 setHeader(i18n("Welcome to the CUPS Server Configuration Tool"));
00032 setPageLabel(i18n("Welcome"));
00033 setPixmap("go");
00034
00035 TQVBoxLayout *main_ = new TQVBoxLayout(this, 10, 10);
00036 TQHBoxLayout *sub_ = new TQHBoxLayout(0, 0, 10);
00037 main_->addLayout(sub_);
00038
00039 TQLabel *cupslogo_ = new TQLabel(this);
00040 TQString logopath = locate("data", TQString("tdeprint/cups_logo.png"));
00041 cupslogo_->setPixmap(logopath.isEmpty() ? TQPixmap() : TQPixmap(logopath));
00042 cupslogo_->setAlignment(Qt::AlignCenter);
00043 TQLabel *kupslogo_ = new TQLabel(this);
00044 logopath = locate("data", TQString("tdeprint/kde_logo.png"));
00045 kupslogo_->setPixmap(logopath.isEmpty() ? TQPixmap() : TQPixmap(logopath));
00046 kupslogo_->setAlignment(Qt::AlignCenter);
00047
00048 TQLabel *helptxt_ = new TQLabel(this);
00049 helptxt_->setText(i18n( "<p>This tool will help you to configure graphically the server of the CUPS printing system. "
00050 "The available options are grouped into sets of related topics and can be accessed "
00051 "quickly through the icon view located on the left. Each option has a default value that is "
00052 "shown if it has not been previously set. This default value should be OK in most cases.</p><br>"
00053 "<p>You can access a short help message for each option using either the '?' button in the "
00054 "the title bar, or the button at the bottom of this dialog.</p>"));
00055
00056 sub_->addWidget(cupslogo_);
00057 sub_->addWidget(kupslogo_);
00058 main_->addWidget(helptxt_, 1);
00059 }
00060
00061 CupsdSplash::~CupsdSplash()
00062 {
00063 }
00064
00065 bool CupsdSplash::loadConfig(CupsdConf*, TQString&)
00066 {
00067 return true;
00068 }
00069
00070 bool CupsdSplash::saveConfig(CupsdConf*, TQString&)
00071 {
00072 return true;
00073 }