Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 importdialog.h 00003 ---------------- 00004 begin : Fri Jun 23 2006 00005 copyright : (C) 2006 by Michael Margraf 00006 email : michael.margraf@alumni.tu-berlin.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef IMPORTDIALOG_H 00019 #define IMPORTDIALOG_H 00020 00021 #include <QDialog> 00022 #include <QProcess> 00023 #include <QGridLayout> 00024 #include <QLabel> 00025 00026 class QTextEdit; 00027 class QLineEdit; 00028 class QGridLayout; 00029 class QPushButton; 00030 class QComboBox; 00031 class QLabel; 00032 00033 00034 class ImportDialog : public QDialog { 00035 Q_OBJECT 00036 public: 00037 ImportDialog(QWidget*); 00038 ~ImportDialog(); 00039 00040 private slots: 00041 void slotDisplayMsg(); 00042 void slotDisplayErr(); 00043 void slotProcessEnded(int status); 00044 void slotImport(); 00045 void slotAbort(); 00046 void slotBrowse(); 00047 void slotType(int); 00048 00049 private: 00050 void startSimulator(); 00051 00052 public: 00053 QGridLayout *all; 00054 00055 QLabel *OutputLabel; 00056 QProcess Process; 00057 QTextEdit *MsgText; 00058 QLineEdit *ImportEdit, *OutputEdit, *OutputData; 00059 QPushButton *ImportButt, *CancelButt, *AbortButt; 00060 QComboBox *OutType; 00061 }; 00062 00063 #endif