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

tdeprint

  • tdeprint
  • management
kxmlcommanddlg.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <tdeprint@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 TDEListView;
29 class TQListViewItem;
30 class TQLineEdit;
31 class TQComboBox;
32 class TQWidgetStack;
33 class TQToolButton;
34 class TDEListBox;
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  TQ_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  TDEListView *m_view;
78  TQLineEdit *m_name, *m_desc, *m_format, *m_default, *m_command;
79  TQComboBox *m_type;
80  TQWidget *m_dummy;
81  TDEListView *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  TQ_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  TDEListBox *m_availablemime, *m_selectedmime;
119  TQToolButton *m_addmime, *m_removemime;
120  TDEListView *m_requirements;
121  TQToolButton *m_removereq, *m_addreq;
122 
123  TQStringList m_mimelist;
124  KXmlCommand *m_cmd;
125 };
126 
127 #endif

tdeprint

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

tdeprint

Skip menu "tdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.9.1
This website is maintained by Timothy Pearson.