home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / feconvdl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.5 KB  |  80 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // FE_DialogConvert.h : header file
  20. //
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // FE_DialogConvert dialog
  24.  
  25. class FE_DialogConvert : public CDialog
  26. {
  27. // Construction
  28. public:
  29.     FE_DialogConvert(CWnd* pParent = NULL);   // standard constructor
  30.  
  31. // Dialog Data
  32.     //{{AFX_DATA(FE_DialogConvert)
  33.     enum { IDD = IDD_FECONVERTIMAGE };
  34.     int        m_imagetypevalue;
  35.     CString    m_outfilevalue;
  36.     CString    m_inputimagesize;
  37.     CString    m_inputimagetype;
  38.     int        m_qualityvalue;
  39.     //}}AFX_DATA
  40.  
  41.  
  42. // Overrides
  43.     // ClassWizard generated virtual function overrides
  44.     //{{AFX_VIRTUAL(FE_DialogConvert)
  45.     protected:
  46.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  47.     //}}AFX_VIRTUAL
  48.  
  49. // Implementation
  50. protected:
  51.  
  52.     // Generated message map functions
  53.     //{{AFX_MSG(FE_DialogConvert)
  54.     virtual BOOL OnInitDialog();
  55.     virtual void OnOK();
  56.     virtual void OnCancel();
  57.     afx_msg void OnJPEG();
  58.     afx_msg void OnPNG();
  59.     //}}AFX_MSG
  60.     DECLARE_MESSAGE_MAP()
  61. private:
  62.     int m_Doutputimagetype1; //0=JPEG 1=GIF
  63.     int m_Doutputimagequality1;//0-100
  64.     CString m_Doutfilename1;
  65.     CString m_Dinputimagetype;
  66.     int m_Dinputimagesize;
  67. public:
  68.     void setOutputImageType1(int p_int){m_Doutputimagetype1=p_int;}
  69.     void setOutputImageQuality1(int p_int){m_Doutputimagequality1=p_int;}
  70.     void setOutputFileName1(const char *p_string){m_Doutfilename1=p_string;}
  71.  
  72.     void setInputImageTypeString(const char *p_string){m_Dinputimagetype=p_string;}
  73.     void setInputImageSize(DWORD p_dword){m_Dinputimagesize=CASTINT(p_dword);}
  74.  
  75.     const CString &getOutputFileName1(){return m_Doutfilename1;}
  76.     int getOutputImageQuality1(){return m_Doutputimagequality1;}
  77.     int getOutputImageType1(){return m_Doutputimagetype1;}
  78.  
  79. };
  80.