00001 /*************************************************************************** 00002 odindialog_process.h - description 00003 ------------------- 00004 begin : Sun Oct 2 21:30:11 CEST 2005 00005 copyright : (C) 2003 by Thies H. Jochimsen 00006 email : jochimse@cns.mpg.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 ODINDIALOG_PROCESS_H 00019 #define ODINDIALOG_PROCESS_H 00020 00021 #include <tjutils/tjprocess.h> // for forkResult 00022 00023 #include "odindialog_progress.h" 00024 00025 #define TIMER_INTERVAL 100 00026 00027 class ProcessDialog : public ProgressDisplayDialog { 00028 00029 public: 00030 ProcessDialog(QWidget *parent); 00031 00032 int execute_cmds(const svector& command_chain, bool log_std_streams=true); 00033 00034 private: 00035 void update_progbar(); 00036 00037 int progcount; 00038 }; 00039 00040 #endif
1.5.6