X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fviews.h;h=a11cfaf8d8df918d3dbc7899b0f8298ded9ef1d4;hp=43751338e6ea68c031241c70d379154c114335ee;hb=1e88cf0f7fa4f690ea9f110e8ed3f2b5338d0a10;hpb=861c2186ce387ce809882315a8f26d640f1844fc diff --git a/src/views.h b/src/views.h index 4375133..a11cfaf 100644 --- a/src/views.h +++ b/src/views.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: views.h,v 1.5 2000/07/18 16:20:53 kevin Exp $ +** $Id: views.h,v 1.7 2000/08/25 15:59:13 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -64,8 +64,8 @@ public: void OnUpdate(wxView *sender, wxObject *hint = NULL); bool OnClose (bool deleteWindow = true); void OnProperties (wxCommandEvent& event); - void OnWindowAuto (wxCommandEvent& event); - void OnWindowMinMax (wxCommandEvent& event); + void OnScaleAuto (wxCommandEvent& event); + void OnScaleMinMax (wxCommandEvent& event); ImageFileDocument* GetDocument(void) { return dynamic_cast(wxView::GetDocument()); } @@ -144,9 +144,9 @@ public: virtual ~PhantomView(void); bool OnCreate(wxDocument *doc, long flags); - void OnDraw(wxDC* dc); void OnUpdate(wxView *sender, wxObject *hint = NULL); bool OnClose (bool deleteWindow = true); + void OnDraw(wxDC* dc); void OnProperties (wxCommandEvent& event); void OnRasterize (wxCommandEvent& event); void OnProjections (wxCommandEvent& event); @@ -157,12 +157,13 @@ public: DECLARE_EVENT_TABLE() }; -class PhantomCanvas: public wxPanel +class PhantomCanvas: public wxScrolledWindow { public: PhantomView* m_pView; PhantomCanvas (PhantomView* v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style); + virtual void OnDraw(wxDC& dc); };