home *** CD-ROM | disk | FTP | other *** search
- // mfcdevw.h : interface of the CMfcdemoView class
- // Copyright (C) 1990, 1998 LEAD Technologies, Inc.
- // All rights reserved.
-
-
- class CMfcdemoView : public CView
- {
- protected: // create from serialization only
- CMfcdemoView();
- DECLARE_DYNCREATE(CMfcdemoView)
-
- // Attributes
- public:
- CPalette *m_pPalette;
- float m_nZoom;
- int m_nEffect;
- CRect m_rcDst;
- int m_nRegionTool;
- int m_nRegionType;
- long m_xStart, m_yStart;
- BOOL m_bMovingFloater;
- CRect m_rcFloater;
- // Operations
- public:
- CMfcdemoDoc* GetDocument();
- CLead* GetDocLead();
- CLead* GetUndoLead();
- void OnChanged();
- void SetZoom(float nZoom);
- void BeginProcessing();
- void EndProcessing(int nRet);
- void SetRegionTool(int nNewRegionTool);
- void UpdateMasterDocument();
- void RestoreBackground();
- void SaveBackground();
- void OnImageRegiontransformationsFlip();
- void OnImageRegiontransformationsResize();
- void OnImageRegiontransformationsReverse();
- void OnImageRegiontransformationsRotate();
- void OnImageRegiontransformationsRotate(long nAngle, BOOL fResize = TRUE);
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMfcdemoView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual void OnInitialUpdate();
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
- virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~CMfcdemoView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMfcdemoView)
- afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam); // user message
- afx_msg void OnImageFlip();
- afx_msg void OnImageReverse();
- afx_msg void OnImageRotate180clockwise();
- afx_msg void OnImageRotate270clockwise();
- afx_msg void OnImageRotate90clockwise();
- afx_msg void OnColorGrayscale();
- afx_msg void OnColorHistogramequalize();
- afx_msg void OnColorInvert();
- afx_msg void OnColorStretchintensity();
- afx_msg void OnImageEffectsPosterize();
- afx_msg void OnColorBrightness();
- afx_msg void OnColorContrast();
- afx_msg void OnColorHistocontrast();
- afx_msg void OnColorHue();
- afx_msg void OnColorSaturation();
- afx_msg void OnImageEffectsAddnoise();
- afx_msg void OnImageEffectsAverage();
- afx_msg void OnImageEffectsDespeckle();
- afx_msg void OnImageEffectsMedian();
- afx_msg void OnImageEffectsMosaic();
- afx_msg void OnImageEffectsSharpen();
- afx_msg void OnImageBinaryfiltersDilation();
- afx_msg void OnImageBinaryfiltersErosion();
- afx_msg void OnImageSpatialfiltersGradient();
- afx_msg void OnImageSpatialfiltersLaplacian();
- afx_msg void OnImageSpatialfiltersLinesegment();
- afx_msg void OnImageSpatialfiltersPrewitt();
- afx_msg void OnImageSpatialfiltersShiftanddifference();
- afx_msg void OnImageSpatialfiltersSobel();
- afx_msg void OnColorGammacorrect();
- afx_msg void OnColorIntensitydetect();
- afx_msg void OnImageResize();
- afx_msg void OnImageRotateAnyangle();
- afx_msg void OnImageShear();
- afx_msg void OnColorColorresolution();
- afx_msg void OnViewZoom();
- afx_msg void OnViewNormal();
- afx_msg void OnViewPainteffects();
- afx_msg void OnViewSnapwindowtoimage();
- afx_msg void OnViewFitimagetowindow();
- afx_msg void OnImageEffectsEmboss();
- afx_msg void OnColorHalftone();
- afx_msg void OnColorFill();
- afx_msg void OnEditUndo();
- afx_msg void OnEditCopy();
- afx_msg void OnColorSeparation();
- afx_msg void OnImageEffectsEdgeenhance();
- afx_msg void OnUpdateImageEffectsEdgeenhance(CCmdUI* pCmdUI);
- afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
- afx_msg void OnImageDeskew();
- afx_msg void OnImageEffectsUnderlay();
- afx_msg void OnUpdateImageDeskew(CCmdUI* pCmdUI);
- afx_msg void OnUpdateImageBinaryfiltersDilation(CCmdUI* pCmdUI);
- afx_msg void OnUpdateImageBinaryfiltersErosion(CCmdUI* pCmdUI);
- afx_msg void OnUpdateImageEffectsDespeckle(CCmdUI* pCmdUI);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnToolnone();
- afx_msg void OnUpdateToolnone(CCmdUI* pCmdUI);
- afx_msg void OnToolellipse();
- afx_msg void OnUpdateToolellipse(CCmdUI* pCmdUI);
- afx_msg void OnToolfreehand();
- afx_msg void OnUpdateToolfreehand(CCmdUI* pCmdUI);
- afx_msg void OnToolrect();
- afx_msg void OnUpdateToolrect(CCmdUI* pCmdUI);
- afx_msg void OnToolrndrect();
- afx_msg void OnUpdateToolrndrect(CCmdUI* pCmdUI);
- afx_msg void OnUpdateImageRegiontransformationsCancel(CCmdUI* pCmdUI);
- afx_msg void OnImageRegiontransformationsCancel();
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnUpdateImageShear(CCmdUI* pCmdUI);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- void OnMouseDownLeadctrl1(short Button, short Shift, OLE_XPOS_PIXELS X, OLE_YPOS_PIXELS Y);
- void OnMouseMoveLeadctrl1(short Button, short Shift, OLE_XPOS_PIXELS X, OLE_YPOS_PIXELS Y);
- void OnMouseUpLeadctrl1(short Button, short Shift, OLE_XPOS_PIXELS X, OLE_YPOS_PIXELS Y);
- void OnRgnChangeLeadctrl1();
-
- CLeadContainer m_LeadContainer;
- CLead m_Lead;
- CLead m_Lead3;
- DECLARE_LEAD_DISPATCH_MAP(m_Lead)
- };
-
-
- #ifndef _DEBUG // debug version in mfcdevw.cpp
- inline CMfcdemoDoc* CMfcdemoView::GetDocument()
- { return (CMfcdemoDoc*)m_pDocument; }
- #endif
-