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

kdeprint

  • kdeprint
kpfilterpage.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <kdeprint@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 #ifndef KPFILTERPAGE_H
21 #define KPFILTERPAGE_H
22 
23 #include "kprintdialogpage.h"
24 
25 #include <tqdict.h>
26 #include <tqstringlist.h>
27 
28 class KListView;
29 class KXmlCommand;
30 class TQListViewItem;
31 class TQToolButton;
32 class TQTextBrowser;
33 
34 class KPFilterPage : public KPrintDialogPage
35 {
36  Q_OBJECT
37 public:
38  KPFilterPage(TQWidget *parent = 0, const char *name = 0);
39  ~KPFilterPage();
40 
41  void setOptions(const TQMap<TQString,TQString>& opts);
42  void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
43  bool isValid(TQString& msg);
44 
45 protected slots:
46  void slotAddClicked();
47  void slotRemoveClicked();
48  void slotUpClicked();
49  void slotDownClicked();
50  void slotConfigureClicked();
51  void slotItemSelected(TQListViewItem*);
52 
53 protected:
54  KXmlCommand* currentFilter();
55  void checkFilterChain();
56  void updateInfo();
57  TQStringList activeList();
58  void updateButton();
59 private:
60  KListView *m_view;
61  TQStringList m_filters; // <idname,description> pairs
62  TQDict<KXmlCommand> m_activefilters;
63  TQToolButton *m_add, *m_remove, *m_up, *m_down, *m_configure;
64  bool m_valid;
65  TQTextBrowser *m_info;
66 };
67 
68 #endif
KPrintDialogPage::setOptions
virtual void setOptions(const TQMap< TQString, TQString > &opts)
This function is called to update the current page with the options contained in opts.
Definition: kprintdialogpage.cpp:37
KPrintDialogPage
This class is intended to be used as base class for customized print dialog page. ...
Definition: kprintdialogpage.h:90
KPrintDialogPage::isValid
virtual bool isValid(TQString &msg)
Returns true if options selected in the page are valid (no conflict), false otherwise.
Definition: kprintdialogpage.cpp:45
KPrintDialogPage::getOptions
virtual void getOptions(TQMap< TQString, TQString > &opts, bool incldef=false)
This function is called to fill the structure opts with the selected options from this dialog page...
Definition: kprintdialogpage.cpp:41

kdeprint

Skip menu "kdeprint"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeprint

Skip menu "kdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeprint by doxygen 1.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |