camframe.cpp File Reference

(r1785/r1769)

#include "camtypes.h"
#include "camelot.h"
#include "camframe.h"
#include "wrkrect.h"
#include "menuops.h"
#include "qualops.h"
#include "zoomops.h"
#include "speedtst.h"
#include "oilmenus.h"
#include "csrstack.h"
#include "blobby.h"
#include "dbugtree.h"
#include "stdbars.h"
#include "rendwnd.h"
#include "ccolbar.h"
#include "dragmgr.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW

Functions

long wxT ("CCamFrame"))
long m_ChangingViewMode (false)

Variables

long type
long frame
long wxID_ANY
long title
long pos
long size


Define Documentation

#define new   CAM_DEBUG_NEW
 

Definition at line 128 of file camframe.cpp.


Function Documentation

long m_ChangingViewMode false   ) 
 

Definition at line 263 of file camframe.cpp.

00264 {
00265     wxASSERT( NULL == m_pMainFrame );
00266 
00267     m_pMainFrame = this;
00268     m_editMenu = (wxMenu *)NULL;
00269 
00270 #if defined(USE_WXAUI)
00271     m_pFrameManager = NULL;
00272 #endif
00273     m_pStatusBar = NULL;
00274 
00275     Create( frame, wxID_ANY, title, pos, size, type );
00276     
00277     wxBitmap            bitmapTmp;
00278     CamResource::LoadwxBitmap( bitmapTmp, _T("camelot.png") );
00279     m_iconAppIcon.CopyFromBitmap( bitmapTmp );
00280     SetIcon( m_iconAppIcon );
00281 }

long wxT "CCamFrame"   ) 
 


Variable Documentation

long frame
 

Definition at line 262 of file camframe.cpp.

long pos
 

Definition at line 262 of file camframe.cpp.

long size
 

Definition at line 262 of file camframe.cpp.

long title
 

Definition at line 262 of file camframe.cpp.

long type
 

/

IMPLEMENT_CLASS( CCamFrame, wxDocMDIParentFrame ) BEGIN_EVENT_TABLE( CCamFrame, wxDocMDIParentFrame )

EVT_MENU_RANGE( AUTO_MENU_ID_MIN, AUTO_MENU_ID_MAX, CCamFrame::OnMenuCommand )

EVT_MENU( _R(DOCVIEW_ZOOMIN), CCamFrame::OnZoomIn ) EVT_MENU( _R(DOCVIEW_ZOOMOUT), CCamFrame::OnZoomOut ) EVT_MENU( _R(DOCVIEW_ZOOMDRAWING), CCamFrame::OnZoomDrawing ) EVT_MENU( _R(DOCVIEW_ZOOMSPREAD), CCamFrame::OnZoomPage ) EVT_MENU( _R(DOCVIEW_ZOOMPREVIOUS), CCamFrame::OnZoomPrevious ) EVT_MENU( _R(DOCVIEW_QUALITYOUTLINE), CCamFrame::OnQualityOutline ) EVT_MENU( _R(DOCVIEW_QUALITYSIMPLE), CCamFrame::OnQualitySimple ) EVT_MENU( _R(DOCVIEW_QUALITYNORMAL), CCamFrame::OnQualityNormal ) EVT_MENU( _R(DOCVIEW_QUALITYANTIALIASED), CCamFrame::OnQualityAntialiased ) EVT_MENU( _R(DOCVIEW_BACKGROUNDRENDER), CCamFrame::OnBackgroundRender ) EVT_MENU( _R(DOCVIEW_CACHING), CCamFrame::OnCaching ) EVT_MENU( _R(DOCVIEW_DOUBLEBUFFER), CCamFrame::OnDoubleBuffer ) EVT_MENU( _R(DOCVIEW_TIMEREDRAW), CCamFrame::OnTimeRedraw ) if defined(_DEBUG) EVT_MENU( _R(DOCVIEW_BLOBBYDLG), CCamFrame::OnBlobbyDlg ) EVT_MENU( _R(DOCVIEW_BLOBBYBAR), CCamFrame::OnBlobbyBar ) EVT_MENU( _R(DEBUG_TREEVIEWDLG), CCamFrame::OnTreeView ) endif Using the dialog IDs here as menu IDs is a bodge, but should work EVT_MENU( _R(IDD_BUTTBAR_GENERAL), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_IMAGESETTING), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_WINDOW), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_ARRANGE), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_EDIT), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_FILE), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_GALLERIES), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_STANDARD), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_TOOLBAR), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_ANIMATION), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_FEATHER), CCamFrame::OnStandardBar ) EVT_MENU( _R(IDD_BUTTBAR_STATUS), CCamFrame::OnStandardBar )

EVT_MENU_OPEN( CCamFrame::OnInitMenuPopup )

EVT_UPDATE_UI( _R(IDD_BUTTBAR_GENERAL), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_IMAGESETTING), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_WINDOW), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_ARRANGE), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_EDIT), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_FILE), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_GALLERIES), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_STANDARD), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_TOOLBAR), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_ANIMATION), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_FEATHER), CCamFrame::OnUpdateStandardBar ) EVT_UPDATE_UI( _R(IDD_BUTTBAR_STATUS), CCamFrame::OnUpdateStandardBar )

EVT_UPDATE_UI( _R(DOCVIEW_ZOOMPREVIOUS), CCamFrame::OnUpdateZoomPrevious ) EVT_UPDATE_UI( _R(DOCVIEW_QUALITYOUTLINE), CCamFrame::OnUpdateQualityOutline ) EVT_UPDATE_UI( _R(DOCVIEW_QUALITYSIMPLE), CCamFrame::OnUpdateQualitySimple ) EVT_UPDATE_UI( _R(DOCVIEW_QUALITYNORMAL), CCamFrame::OnUpdateQualityNormal ) EVT_UPDATE_UI( _R(DOCVIEW_QUALITYANTIALIASED), CCamFrame::OnUpdateQualityAntialiased ) EVT_UPDATE_UI( _R(DOCVIEW_BACKGROUNDRENDER), CCamFrame::OnUpdateBackgroundRender ) EVT_UPDATE_UI( _R(DOCVIEW_CACHING), CCamFrame::OnUpdateCaching ) EVT_UPDATE_UI( _R(DOCVIEW_DOUBLEBUFFER), CCamFrame::OnUpdateDoubleBuffer ) if !defined(USE_WXAUI) EVT_SIZE(CCamFrame::OnSize) EVT_MOVE(CCamFrame::OnMove) endif

EVT_CLOSE(CCamFrame::OnCloseWindow) END_EVENT_TABLE()

/*!/

CCamFrame::CCamFrame( wxDocManager *manager, wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size, /*TYPENOTE: Correct

Definition at line 262 of file camframe.cpp.

long wxID_ANY
 

Definition at line 262 of file camframe.cpp.


Generated on Sat Nov 10 03:49:28 2007 for Camelot by  doxygen 1.4.4