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

kdeprint

kxmlcommanddlg.h
00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License version 2 as published by the Free Software Foundation.
00008  *
00009  *  This library is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *  Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this library; see the file COPYING.LIB.  If not, write to
00016  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  *  Boston, MA 02110-1301, USA.
00018  **/
00019 
00020 #ifndef KXMLCOMMANDDLG_H
00021 #define KXMLCOMMANDDLG_H
00022 
00023 #include <tqwidget.h>
00024 #include <tqmap.h>
00025 #include <tqstringlist.h>
00026 #include <kdialogbase.h>
00027 
00028 class KListView;
00029 class TQListViewItem;
00030 class TQLineEdit;
00031 class TQComboBox;
00032 class TQWidgetStack;
00033 class TQToolButton;
00034 class KListBox;
00035 class TQListBoxItem;
00036 class TQTextEdit;
00037 class TQCheckBox;
00038 
00039 class DrGroup;
00040 class DrBase;
00041 class KXmlCommand;
00042 
00043 class KXmlCommandAdvancedDlg : public TQWidget
00044 {
00045     Q_OBJECT
00046 public:
00047     KXmlCommandAdvancedDlg(TQWidget *parent = 0, const char *name = 0);
00048     ~KXmlCommandAdvancedDlg();
00049 
00050     void setCommand(KXmlCommand*);
00051     static bool editCommand(KXmlCommand *xmlcmd, TQWidget *parent = 0);
00052 
00053 protected:
00054     void parseGroupItem(DrGroup*, TQListViewItem*);
00055     void parseXmlCommand(KXmlCommand*);
00056     void viewItem(TQListViewItem*);
00057     void removeItem(TQListViewItem*);
00058     void recreateGroup(TQListViewItem*, DrGroup*);
00059 
00060 protected slots:
00061     void slotSelectionChanged(TQListViewItem*);
00062     void slotTypeChanged(int);
00063     void slotAddValue();
00064     void slotRemoveValue();
00065     void slotApplyChanges();
00066     void slotAddGroup();
00067     void slotAddOption();
00068     void slotRemoveItem();
00069     void slotMoveUp();
00070     void slotMoveDown();
00071     void slotCommandChanged(const TQString&);
00072     void slotValueSelected(TQListViewItem*);
00073     void slotOptionRenamed(TQListViewItem*, int);
00074     void slotChanged();
00075 
00076 private:
00077     KListView   *m_view;
00078     TQLineEdit  *m_name, *m_desc, *m_format, *m_default, *m_command;
00079     TQComboBox  *m_type;
00080     TQWidget        *m_dummy;
00081     KListView   *m_values;
00082     TQLineEdit  *m_edit1, *m_edit2;
00083     TQWidgetStack   *m_stack;
00084     TQToolButton    *m_apply, *m_addgrp, *m_addopt, *m_delopt, *m_up, *m_down;
00085     TQLineEdit  *m_inputfile, *m_inputpipe, *m_outputfile, *m_outputpipe;
00086     TQToolButton    *m_addval, *m_delval;
00087     TQTextEdit *m_comment;
00088     TQCheckBox *m_persistent;
00089 
00090     KXmlCommand *m_xmlcmd;
00091     TQMap<TQString, DrBase*>    m_opts;
00092 };
00093 
00094 class KXmlCommandDlg : public KDialogBase
00095 {
00096     Q_OBJECT
00097 public:
00098     KXmlCommandDlg(TQWidget *parent = 0, const char *name = 0);
00099 
00100     void setCommand(KXmlCommand*);
00101     static bool editCommand(KXmlCommand*, TQWidget *parent = 0);
00102 
00103 protected slots:
00104     void slotAddMime();
00105     void slotRemoveMime();
00106     void slotEditCommand();
00107     void slotAddReq();
00108     void slotRemoveReq();
00109     void slotReqSelected(TQListViewItem*);
00110     void slotAvailableSelected(TQListBoxItem*);
00111     void slotSelectedSelected(TQListBoxItem*);
00112     void slotOk();
00113 
00114 private:
00115     TQLineEdit  *m_description;
00116     TQLabel     *m_idname;
00117     TQComboBox  *m_mimetype;
00118     KListBox    *m_availablemime, *m_selectedmime;
00119     TQToolButton    *m_addmime, *m_removemime;
00120     KListView   *m_requirements;
00121     TQToolButton    *m_removereq, *m_addreq;
00122 
00123     TQStringList    m_mimelist;
00124     KXmlCommand *m_cmd;
00125 };
00126 
00127 #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.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |