Main Page · Namespace List · Alphabetical List · Class List · File List · Namespace Members · Class Members · File Members · Related Pages

guiprintermanualsetup.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005-2006 by Jens Lukowski
00003  *   jens.lukowski@fh-swf.de
00004  *
00005  *   This file contains the definition of the manual printersetup GUI
00006  *
00007  *   PLEASE NOTICE: If not stated otherwise, whenever we speak of 'printer
00008  *                  drivers' or simply 'drivers', we mean the PPD files
00009  *                  and not the actual drivers.
00010  *
00011  *   $Id: guiprintermanualsetup.h,v 1.6 2006/04/23 16:06:22 hbci Exp $
00012  *
00013  *   This program is free software; you can redistribute it and/or modify
00014  *   it under the terms of the GNU General Public License as published by
00015  *   the Free Software Foundation; either version 2 of the License, or
00016  *   (at your option) any later version.
00017  *
00018  *   This program is distributed in the hope that it will be useful,
00019  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  *   GNU General Public License for more details.
00022  *
00023  *   You should have received a copy of the GNU General Public License
00024  *   along with this program; if not, write to the Free Software Foundation,
00025  *   Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00026  ***************************************************************************/
00027 #ifndef GUIPRINTERMANUALSETUP_H
00028 #define GUIPRINTERMANUALSETUP_H
00029 
00030 // App includes
00031 #include "guiprintermanualsetupbase.h"
00032 #include "globalsprintersetup.h"
00033 
00034 // The namespace we use for the printersetup.
00035 using namespace LinuxPrinterSetup;
00036 
00037 // Forward declarations
00038 class PrinterSetupDb;
00039 
00040 
00053 class GuiPrinterManualSetup : public GuiPrinterManualSetupBase
00054 {
00055   Q_OBJECT
00056 
00057 public:
00058 
00059 
00065   GuiPrinterManualSetup( QWidget* parent = 0, const char* name = 0 );
00066 
00067 
00071   ~GuiPrinterManualSetup();
00072 
00073 
00074 public slots:
00075 
00076 
00085   void show();
00086 
00087 
00088 signals:
00089 
00090 
00096   void back();
00097 
00098 
00106   void helpRequest( const QString& page );
00107 
00108 
00115   void showSmallHelp( const QString& page );
00116 
00117 
00118 protected slots:
00119 
00120 
00128   virtual void on_listBox_drivers_highlighted( QListBoxItem * item );
00129 
00130 
00139   virtual void on_pushButton_saveSettings_clicked();
00140 
00141 
00148   virtual void on_listBox_manufacturers_highlighted( QListBoxItem * item );
00149 
00150 
00157   virtual void on_listBox_models_highlighted( QListBoxItem * item );
00158 
00159 
00163   virtual void on_pushButton_help_clicked();
00164 
00165 
00172   virtual void on_comboBox_ports_activated( const QString & itemtext );
00173 
00174 
00180   virtual void on_pushButton_driverDetails_clicked();
00181 
00182 
00183 private:
00184 
00185 
00196   friend void LinuxPrinterSetup::showPrinterDriverDetails( const QString & driverName );
00197 
00198 
00209   friend void LinuxPrinterSetup::installPrinter(  QWidget * widget,
00210                                                   const QString & printerName,
00211                                                   const QString & deviceUri,
00212                                                   const QString & ppdFilePath
00213                                                );
00214 
00215 
00228   friend void LinuxPrinterSetup::testPrintRequest(  QWidget * widget,
00229                                                     const QString & printerName
00230                                                  );
00231 
00232 
00238   void readPorts();
00239 
00240 
00247   void enableWidgets( int wf );
00248 
00249 
00259   enum WidgetFlag {
00260     NoneFlag           = 0,
00261     ManufacturersFlag  = 1,
00262     ModelsFlag         = 2,
00263     DriversFlag        = 4,
00264     DetailsFlag        = 8,
00265     PortsFlag          = 16,
00266     SaveSettingsFlag   = 32,
00267     AllFlags           = 63
00268   };
00269 
00270 
00274   PrinterSetupDb * m_db;
00275 
00276 
00280   QString m_translationRecommended;
00281 };
00282 
00283 #endif
00284 


To get more information, please visit our project site hosted at SourceForge.net Logo
To support this project, please click on this image: Support This Project

Copyright © 2005-2006 Linux Printer Setup Documentation generated by Doxygen 1.4.4 LPS 1.0 (Disclaimer)