Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqMovieParams.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqMovieParams.h
00004 //
00005 // Purpose: Interface of a class to create a movie menu and the movie parameter
00006 //          helper methods.
00007 //
00008 // Version: $Id: TxqMovieParams.h,v 1.5 2001/10/16 17:11:50 kgl Exp $
00009 //
00010 // Copyright (c) 2000 by Tech-X Corporation.  All rights reserved.
00011 //
00012 // Author:  Kelly G. Luetkemeyer
00013 //
00014 //--------------------------------------------------------------------
00015 
00016 #ifndef TXQ_MOVIE_PARAMS_H
00017 #define TXQ_MOVIE_PARAMS_H
00018 
00019 // Txq includes
00020 #include <TxqMovieConfigSet.h>
00021 #include <TxqMasterIoFrame.h>
00022 
00023 // Qt includes
00024 #include <qinputdialog.h>
00025 #include <qfiledialog.h>
00026 #include <qstring.h>
00027 #include <qpopupmenu.h>
00028 #include <qregexp.h>
00029 
00040 class TxqMovieParams : public QObject
00041 {
00042   Q_OBJECT
00043 
00044 public:
00045 
00055   TxqMovieParams(TxqMasterIoFrame *parent);
00056 
00060   virtual ~TxqMovieParams();
00061 
00065   QPopupMenu *getMovieMenu();
00066 
00072   bool getMovieFlag();
00073 
00081   void setBaseName(QString b);
00082 
00088   QString getMovieImageFileName(QString windowName, int currentStep=0);
00089 
00094   void writeMovieConfig(TxqMovieConfigSet &movieConfigSet);
00095 
00100   int getMaxMovieItersValue();
00101 
00107   int getIterPerMovieUpdateValue();
00108 
00113   QString getImageExt();
00114 
00115 public slots:
00116 
00123   void getIterPerMovieUpdate();
00124 
00131   void getMaxMovieIters();
00132 
00136   QString getMovieConfigFileDlog();
00137 
00141   void getMovieImageFileDlog();
00142 
00143 signals:
00144 
00145 protected:
00146 
00147 
00151   void createMovieMenu();
00152 
00158   QString getMovieDir(QString ext);
00159 
00164   int iterPerMovieUpdate;
00165 
00170   int maxMovieIters;
00171 
00172 private:
00173 
00177   TxqMovieParams();
00178 
00182   TxqMasterIoFrame *parent;
00183 
00187   TxqLog *txcerr;
00188 
00192   TxqLog *txcout;
00193 
00197   QPopupMenu *movieMenu;
00198 
00202   QString movieConfigFileName;
00203 
00207   QString imageFileName;
00208 
00213   QString imageExt;
00214 
00218   QString imagePrefix;
00219 
00223   QString baseName;
00224 
00230   bool movie;
00231 
00235   int movieFrameCount;
00236 
00240   int frameNumber;
00241 
00242 };
00243 #endif
Copyright Tech-X Corporation, all rights reserved.