20 #ifndef KXMLCOMMANDDLG_H
21 #define KXMLCOMMANDDLG_H
25 #include <tqstringlist.h>
26 #include <kdialogbase.h>
43 class KXmlCommandAdvancedDlg :
public TQWidget
47 KXmlCommandAdvancedDlg(TQWidget *parent = 0,
const char *name = 0);
48 ~KXmlCommandAdvancedDlg();
50 void setCommand(KXmlCommand*);
51 static bool editCommand(KXmlCommand *xmlcmd, TQWidget *parent = 0);
54 void parseGroupItem(DrGroup*, TQListViewItem*);
55 void parseXmlCommand(KXmlCommand*);
56 void viewItem(TQListViewItem*);
57 void removeItem(TQListViewItem*);
58 void recreateGroup(TQListViewItem*, DrGroup*);
61 void slotSelectionChanged(TQListViewItem*);
62 void slotTypeChanged(
int);
64 void slotRemoveValue();
65 void slotApplyChanges();
68 void slotRemoveItem();
71 void slotCommandChanged(
const TQString&);
72 void slotValueSelected(TQListViewItem*);
73 void slotOptionRenamed(TQListViewItem*,
int);
78 TQLineEdit *m_name, *m_desc, *m_format, *m_default, *m_command;
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;
90 KXmlCommand *m_xmlcmd;
91 TQMap<TQString, DrBase*> m_opts;
94 class KXmlCommandDlg :
public KDialogBase
98 KXmlCommandDlg(TQWidget *parent = 0,
const char *name = 0);
100 void setCommand(KXmlCommand*);
101 static bool editCommand(KXmlCommand*, TQWidget *parent = 0);
105 void slotRemoveMime();
106 void slotEditCommand();
108 void slotRemoveReq();
109 void slotReqSelected(TQListViewItem*);
110 void slotAvailableSelected(TQListBoxItem*);
111 void slotSelectedSelected(TQListBoxItem*);
115 TQLineEdit *m_description;
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;
123 TQStringList m_mimelist;