[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-usability
Subject: Fwd: KPrintAction proposal
From: "Aaron J. Seigo" <aseigo () mountlinux ! com>
Date: 2001-08-27 18:01:37
[Download RAW message or body]
Hi..
this was posted to kde-core-devel.. since it involves the GUI rather than new
capabilities i thought it might be of interest to the look and usability lists. this
development is the result of a thread by the subject of "Printing Questions" in
kde-devel.
---------- Forwarded Message ----------
Subject: KPrintAction proposal
Date: Mon, 27 Aug 2001 18:49:44 +0200
From: Michael Goffioul <goffioul@imec.be>
To: KDE Core Development <kde-core-devel@kde.org>, KDE Development <kde-devel@kde.org>
Following the thread on kde-devel, I implemented a KPrintAction class that
allows to easily add "Export" action in any app. You can find an example
in kwrite here: http://users.swing.be/kdeprint/kprintaction.png . I attached
the header file to give an overview of the available API.
I'd like to have comments about these issues:
- is it useful?
- should I commit it?
- is the API OK, or should something be changed?
Thanks.
Michael.
--
------------------------------------------------------------------
Michael Goffioul IMEC-DESICS-MIRA
e-mail: goffioul@imec.be (Mixed-Signal and RF Applications)
Tel: +32/16/28-8510 Kapeldreef, 75
Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM
------------------------------------------------------------------
-------------------------------------------------------
--
Aaron Seigo
["kprintaction.h" (text/plain)]
/*
* This file is part of the KDE libraries
* Copyright (c) 2001 Michael Goffioul <goffioul@imec.be>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License version 2 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
**/
#ifndef KPRINTACTION_H
#define KPRINTACTION_H
#include <kaction.h>
class KPrinter;
class KPrintAction : public KActionMenu
{
Q_OBJECT
public:
enum PrinterType { All, Regular, Specials };
KPrintAction(const QString& text, PrinterType type = All, QWidget *parentWidget = 0, \
QObject *parent = 0, const char *name = 0); KPrintAction(const QString& text, const \
QIconSet& icon, PrinterType type = All, QWidget *parentWidget = 0, QObject *parent = \
0, const char *name = 0); KPrintAction(const QString& text, const QString& icon, \
PrinterType type = All, QWidget *parentWidget = 0, QObject *parent = 0, const char \
*name = 0); virtual ~KPrintAction();
static KPrintAction* exportAll(QWidget *parentWidget = 0, QObject *parent = 0, const \
char *name = 0); static KPrintAction* exportRegular(QWidget *parentWidget = 0, \
QObject *parent = 0, const char *name = 0); static KPrintAction* \
exportSpecial(QWidget *parentWidget = 0, QObject *parent = 0, const char *name = 0);
signals:
void print(KPrinter*);
protected slots:
void slotAboutToShow();
void slotActivated(int);
protected:
void initialize(PrinterType type, QWidget *parentWidget);
private:
class KPrintActionPrivate;
KPrintActionPrivate *d;
};
#endif
_______________________________________________
kde-usability mailing list
kde-usability@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-usability
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic