X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fgraph3dview.h;h=a8b3e8c59fd83b63939a55b02b222354c9e63b36;hb=d952113d9428857800f2e31230131f53c67d8db9;hp=ec53d03a469e81f5f7c8d987fff736362efc15d3;hpb=2093dcb9760e9261299ebbab4f8ff203e4d9af77;p=ctsim.git diff --git a/src/graph3dview.h b/src/graph3dview.h index ec53d03..a8b3e8c 100644 --- a/src/graph3dview.h +++ b/src/graph3dview.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: graph3dview.h,v 1.11 2002/06/03 16:57:22 kevin Exp $ +** $Id$ ** ** 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 @@ -37,14 +37,14 @@ class Graph3dFileCanvas; -class Graph3dFileView : public wxView +class Graph3dFileView : public wxView { friend class Graph3dFileCanvas; private: - DECLARE_DYNAMIC_CLASS(Graph3dFileView) + DECLARE_DYNAMIC_CLASS(Graph3dFileView) DECLARE_EVENT_TABLE() - + wxMenu* m_pFileMenu; wxMenu *m_pViewMenu; wxStatusBar* m_pStatusBar; @@ -87,7 +87,7 @@ private: wxDocChildFrame* CreateChildFrame(wxDocument *doc, wxView *view); #endif - wxWindow* getFrameForChild() + wxWindow* getFrameForChild() #if CTSIM_MDI { return theApp->getMainFrame(); } #else @@ -114,14 +114,16 @@ public: void OnScaleSet (wxCommandEvent& event); void OnScaleAuto (wxCommandEvent& event); void OnScaleFull (wxCommandEvent& event); - + + void setInitialClientSize(); + #if CTSIM_MDI wxDocMDIChildFrame* getFrame() { return m_pFrame; } #else wxDocChildFrame* getFrame() { return m_pFrame; } #endif Graph3dFileCanvas* getCanvas() { return m_pCanvas; } - Graph3dFileDocument* GetDocument() + Graph3dFileDocument* GetDocument() { return dynamic_cast(wxView::GetDocument()); } }; @@ -139,7 +141,7 @@ public: const wxSize& size = wxDefaultSize, long style = 0); virtual ~Graph3dFileCanvas(); - virtual void OnDraw(wxDC& dc); + void OnPaint(wxPaintEvent& event); virtual wxSize GetBestSize() const; void OnSize(wxSizeEvent& event); void OnEraseBackground(wxEraseEvent& event);