00001 /*************************************************************************** 00002 * Copyright (C) 2013 by James Fuller,,, * 00003 * james@slakware12 * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 #ifndef ZOOMWIN_H 00021 #define ZOOMWIN_H 00022 00023 #include <zoomBaseDlg.h> 00024 #include <qrect.h> 00025 00026 class QCanvas; 00027 class QCanvasView; 00028 00032 class ZoomWin : public zoomBaseDlg { 00033 public: 00034 typedef enum { 00035 none, 00036 page, 00037 height, 00038 width, 00039 user } ZoomPref; 00040 00041 ZoomWin ( QRect rectCanvas, 00042 QRect rectView ); 00043 00044 ~ZoomWin(); 00045 int zoomPercent (); 00046 void setZoomPercent ( int iZoomPercent ); 00047 ZoomPref zoomStyle (); 00048 00049 private: 00050 QRect rectCanvas; 00051 QRect rectView; 00052 // QCanvasView * canvasView; 00053 void setZoom ( double dZoom ); 00054 00055 public slots: 00056 virtual void slotNone (); 00057 virtual void slotPage (); 00058 virtual void slotWidth (); 00059 virtual void slotHeight (); 00060 virtual void slotUser (); 00061 }; 00062 00063 #endif