parts/filter/shellinsertdlg.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2002 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef _SHELLINSERTDLG_H_ 00013 #define _SHELLINSERTDLG_H_ 00014 00015 #include <qdialog.h> 00016 00017 class QComboBox; 00018 class QPushButton; 00019 class KDevPlugin; 00020 class KProcess; 00021 00022 00023 class ShellInsertDialog : public QDialog 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 ShellInsertDialog(); 00029 ~ShellInsertDialog(); 00030 00031 virtual int exec(); 00032 00033 QString text() const 00034 { return QString::fromLocal8Bit(m_str); } 00035 00036 private slots: 00037 void slotStartClicked(); 00038 void slotReceivedStdout(KProcess *, char *text, int len); 00039 void slotProcessExited(KProcess *); 00040 void executeTextChanged( const QString &text); 00041 00042 private: 00043 QPushButton *start_button, *cancel_button; 00044 QComboBox *combo; 00045 KProcess *m_proc; 00046 QCString m_str; 00047 }; 00048 00049 #endif