home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / video / security / compressPanel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.8 KB  |  67 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. #ifndef COMPRESS_PANEL_H
  18. #define COMPRESS_PANEL_H
  19.  
  20. #ifdef QT
  21. #include <qt.h>
  22. #endif
  23.  
  24. #include <cl.h>
  25. #include <Vk/VkComponent.h>
  26.  
  27. class CompressPanel : public VkComponent
  28. {
  29.  public:
  30.   CompressPanel(const char *, Widget);
  31.   virtual ~CompressPanel();
  32.   virtual const char *className();
  33.   int getNumAlgs() { return _nAlgs;}
  34.   char * getCompressor(int);
  35.   char * getCurrentCompressor();
  36.   void setCompressor(char *);
  37.   int getCurrentAlg() { return _currentAlg;}
  38.   char *getFileName();
  39.   void setFileName(char *);
  40.   void setFrameRate(float );
  41.   float getFrameRate() { return _rate;}
  42.  
  43.  private:
  44.   Widget _X_compressMenu;
  45.   Widget _X_filename;
  46.   Widget _X_framerate;
  47.   Widget _X_framelabel;
  48.   
  49.   XmString *buttonLabels;
  50.   int validCompression(int *);
  51.   char *_filename;
  52.   float _rate;
  53.   
  54.   int _nAlgs;
  55.   int _bufferLength;
  56.   char **_algs;
  57.   static int _currentAlg;
  58.   static void actCallback(Widget, XtPointer, XtPointer);
  59.   static void fileCallback(Widget, XtPointer, XtPointer);
  60.   static void rateCallback(Widget, XtPointer, XtPointer);
  61.   
  62.   
  63. };  
  64. #endif
  65.  
  66.  
  67.