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

kdeprint

  • kdeprint
  • management
kxmlcommanddlg.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 KXMLCOMMANDDLG_H
21 #define KXMLCOMMANDDLG_H
22 
23 #include <tqwidget.h>
24 #include <tqmap.h>
25 #include <tqstringlist.h>
26 #include <kdialogbase.h>
27 
28 class KListView;
29 class TQListViewItem;
30 class TQLineEdit;
31 class TQComboBox;
32 class TQWidgetStack;
33 class TQToolButton;
34 class KListBox;
35 class TQListBoxItem;
36 class TQTextEdit;
37 class TQCheckBox;
38 
39 class DrGroup;
40 class DrBase;
41 class KXmlCommand;
42 
43 class KXmlCommandAdvancedDlg : public TQWidget
44 {
45  Q_OBJECT
46 public:
47  KXmlCommandAdvancedDlg(TQWidget *parent = 0, const char *name = 0);
48  ~KXmlCommandAdvancedDlg();
49 
50  void setCommand(KXmlCommand*);
51  static bool editCommand(KXmlCommand *xmlcmd, TQWidget *parent = 0);
52 
53 protected:
54  void parseGroupItem(DrGroup*, TQListViewItem*);
55  void parseXmlCommand(KXmlCommand*);
56  void viewItem(TQListViewItem*);
57  void removeItem(TQListViewItem*);
58  void recreateGroup(TQListViewItem*, DrGroup*);
59 
60 protected slots:
61  void slotSelectionChanged(TQListViewItem*);
62  void slotTypeChanged(int);
63  void slotAddValue();
64  void slotRemoveValue();
65  void slotApplyChanges();
66  void slotAddGroup();
67  void slotAddOption();
68  void slotRemoveItem();
69  void slotMoveUp();
70  void slotMoveDown();
71  void slotCommandChanged(const TQString&);
72  void slotValueSelected(TQListViewItem*);
73  void slotOptionRenamed(TQListViewItem*, int);
74  void slotChanged();
75 
76 private:
77  KListView *m_view;
78  TQLineEdit *m_name, *m_desc, *m_format, *m_default, *m_command;
79  TQComboBox *m_type;
80  TQWidget *m_dummy;
81  KListView *m_values;
82  TQLineEdit *m_edit1, *m_edit2;
83  TQWidgetStack *m_stack;
84  TQToolButton *m_apply, *m_addgrp, *m_addopt, *m_delopt, *m_up, *m_down;
85  TQLineEdit *m_inputfile, *m_inputpipe, *m_outputfile, *m_outputpipe;
86  TQToolButton *m_addval, *m_delval;
87  TQTextEdit *m_comment;
88  TQCheckBox *m_persistent;
89 
90  KXmlCommand *m_xmlcmd;
91  TQMap<TQString, DrBase*> m_opts;
92 };
93 
94 class KXmlCommandDlg : public KDialogBase
95 {
96  Q_OBJECT
97 public:
98  KXmlCommandDlg(TQWidget *parent = 0, const char *name = 0);
99 
100  void setCommand(KXmlCommand*);
101  static bool editCommand(KXmlCommand*, TQWidget *parent = 0);
102 
103 protected slots:
104  void slotAddMime();
105  void slotRemoveMime();
106  void slotEditCommand();
107  void slotAddReq();
108  void slotRemoveReq();
109  void slotReqSelected(TQListViewItem*);
110  void slotAvailableSelected(TQListBoxItem*);
111  void slotSelectedSelected(TQListBoxItem*);
112  void slotOk();
113 
114 private:
115  TQLineEdit *m_description;
116  TQLabel *m_idname;
117  TQComboBox *m_mimetype;
118  KListBox *m_availablemime, *m_selectedmime;
119  TQToolButton *m_addmime, *m_removemime;
120  KListView *m_requirements;
121  TQToolButton *m_removereq, *m_addreq;
122 
123  TQStringList m_mimelist;
124  KXmlCommand *m_cmd;
125 };
126 
127 #endif

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. |