Source: gdms/cepView.h


Annotated List
Files
Globals
Hierarchy
Index
/******************************************************************************
/////////////////////////////////////////////////////////////////////////////
// Name:        cepView.h
// Purpose:     View classes
// Author:      Julian Smart
// Modified by:
// Created:     04/01/98
// RCS-ID:      $Id: gdms___cepView_h.html,v 1.1.1.1 2002-11-23 05:46:22 root Exp $
// Copyright:   (c) Julian Smart and Markus Holzem
// Licence:     wxWindows license
/////////////////////////////////////////////////////////////////////////////
******************************************************************************/
#ifdef __GNUG__
// #pragma interface
#endif

#ifndef __VIEWSAMPLEH__
#define __VIEWSAMPLEH__

#include "wx/docview.h"

/**
 * an instance of a scrolled pane
 */
class cepCanvas:public wxScrolledWindow
{
public:
  wxView * view;

  cepCanvas (wxView * v, wxFrame * frame, const wxPoint & pos,
             const wxSize & size, long style);
  virtual void OnDraw (wxDC & dc);
  void OnMouseEvent (wxMouseEvent & event);

private:
    DECLARE_EVENT_TABLE () wxButton m_button;
};

class cepView:public wxView
{
public:
  wxFrame * frame;
  cepCanvas *canvas;

    cepView ()
  {
    canvas = (cepCanvas *) NULL;
    frame = (wxFrame *) NULL;
  }

   ~cepView ()
  {
  }

  bool OnCreate (wxDocument * doc, long flags);
  void OnDraw (wxDC * dc);
  void OnUpdate (wxView * sender, wxObject * hint = (wxObject *) NULL);
  bool OnClose (bool deleteWindow = TRUE);

  void OnCut (wxCommandEvent & event);

private:
DECLARE_DYNAMIC_CLASS (cepView) DECLARE_EVENT_TABLE ()};
#endif

Generated by: pob on trillian on Sat Aug 10 17:26:42 2002, using kdoc 2.0a53.