/* Copyright (C) 2019-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: WxdkdrawFrame.wxc */ /** @file WxdkdrawFrame.cpp The WxdkdrawFrame module. */ #line 4375 "WxdkdrawFrame.wxc" #include "wxdkdraw.h" #ifndef WXDKDRAWAPPH_INCLUDED #include "WxdkdrawApp.h" #endif #ifndef WXDKDRAWFRAME_H_INCLUDED #include "WxdkdrawFrame.h" #endif #if !defined(__WXMSW__) #include "gui-img/icons/wxdkdraw.xpm" #endif /* Bitmaps for Buttons and dialogs. */ #include "gui-img/wxdkdraw/buttons/wxd-bbox.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bbulletf.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bbullet.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bcarc.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bcircle.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bcopy.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bdel.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bellipse.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bfliph.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bflipv.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bgroup.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bgroup3.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bmove.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bmvpoint.xpm" #include "gui-img/wxdkdraw/buttons/wxd-boarc.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bpolygon.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bpolyline.xpm" #include "gui-img/wxdkdraw/buttons/wxd-brectangle.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bsplineca.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bsplineci.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bsplineoa.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bsplineoi.xpm" #include "gui-img/wxdkdraw/buttons/wxd-btext.xpm" #include "gui-img/wxdkdraw/buttons/wxd-blib.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bimg.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bungroup.xpm" #include "gui-img/wxdkdraw/buttons/wxd-baddpoint.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bdelpoint.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bdetails.xpm" #include "gui-img/wxdkdraw/buttons/wxd-tb-borders.xpm" #include "gui-img/wxdkdraw/buttons/wxd-tb-open.xpm" #include "gui-img/wxdkdraw/buttons/wxd-tb-save.xpm" #include "gui-img/wxdkdraw/buttons/wxd-tb-zoom-11.xpm" #include "gui-img/wxdkdraw/buttons/wxd-tb-zoom-in.xpm" #include "gui-img/wxdkdraw/buttons/wxd-tb-zoom-out.xpm" #include "gui-img/wxdkdraw/buttons/wxd-bmodifys.xpm" #include "gui-img/wxdkdraw/buttons/wxd-brotleft.xpm" #include "gui-img/wxdkdraw/buttons/wxd-brotright.xpm" #include "gui-img/wxdkdraw/styles/wxd-as00.xpm" #include "gui-img/wxdkdraw/styles/wxd-as01.xpm" #include "gui-img/wxdkdraw/styles/wxd-as02.xpm" #include "gui-img/wxdkdraw/styles/wxd-as03.xpm" #include "gui-img/wxdkdraw/styles/wxd-as04.xpm" #include "gui-img/wxdkdraw/styles/wxd-as05.xpm" #include "gui-img/wxdkdraw/styles/wxd-as06.xpm" #include "gui-img/wxdkdraw/styles/wxd-as07.xpm" #include "gui-img/wxdkdraw/styles/wxd-as08.xpm" #include "gui-img/wxdkdraw/styles/wxd-as09.xpm" #include "gui-img/wxdkdraw/styles/wxd-as10.xpm" #include "gui-img/wxdkdraw/styles/wxd-as11.xpm" #include "gui-img/wxdkdraw/styles/wxd-as12.xpm" #include "gui-img/wxdkdraw/styles/wxd-as13.xpm" #include "gui-img/wxdkdraw/styles/wxd-as14.xpm" #include "gui-img/wxdkdraw/styles/wxd-as15.xpm" #include "gui-img/wxdkdraw/styles/wxd-as16.xpm" #include "gui-img/wxdkdraw/styles/wxd-as17.xpm" #include "gui-img/wxdkdraw/styles/wxd-as18.xpm" #include "gui-img/wxdkdraw/styles/wxd-as19.xpm" #include "gui-img/wxdkdraw/styles/wxd-as20.xpm" #include "gui-img/wxdkdraw/styles/wxd-as21.xpm" #include "gui-img/wxdkdraw/styles/wxd-as22.xpm" #include "gui-img/wxdkdraw/styles/wxd-as23.xpm" #include "gui-img/wxdkdraw/styles/wxd-as24.xpm" #include "gui-img/wxdkdraw/styles/wxd-as25.xpm" #include "gui-img/wxdkdraw/styles/wxd-as26.xpm" #include "gui-img/wxdkdraw/styles/wxd-as27.xpm" #include "gui-img/wxdkdraw/styles/wxd-as28.xpm" #include "gui-img/wxdkdraw/styles/wxd-as29.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs00.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs01.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs02.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs03.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs04.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs05.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs06.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs07.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs08.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs09.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs10.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs11.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs12.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs13.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs14.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs15.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs16.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs17.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs18.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs19.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs20.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs21.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs22.xpm" #include "gui-img/wxdkdraw/styles/wxd-fs23.xpm" #include "gui-img/wxdkdraw/styles/wxd-js1.xpm" #include "gui-img/wxdkdraw/styles/wxd-js2.xpm" #include "gui-img/wxdkdraw/styles/wxd-js3.xpm" #include "gui-img/wxdkdraw/styles/wxd-ls1.xpm" #include "gui-img/wxdkdraw/styles/wxd-ls2.xpm" #include "gui-img/wxdkdraw/styles/wxd-ls3.xpm" #include "gui-img/wxdkdraw/styles/wxd-ls4.xpm" #include "gui-img/wxdkdraw/styles/wxd-ls5.xpm" #include "gui-img/wxdkdraw/styles/wxd-ls6.xpm" #include "gui-img/wxdkdraw/styles/wxd-lc1.xpm" #include "gui-img/wxdkdraw/styles/wxd-lc2.xpm" #include "gui-img/wxdkdraw/styles/wxd-lc3.xpm" #include "gui-img/wxdkdraw/styles/wxd-ts00.xpm" #include "gui-img/wxdkdraw/styles/wxd-ts01.xpm" #include "gui-img/wxdkdraw/styles/wxd-ts02.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn00.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn01.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn02.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn03.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn04.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn05.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn06.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn07.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn08.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn09.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn10.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn11.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn12.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn13.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn14.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn15.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn16.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn17.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn18.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn19.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn20.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn21.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn22.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn23.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn24.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn25.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn26.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn27.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn28.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn29.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn30.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn31.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn32.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn33.xpm" #include "gui-img/wxdkdraw/font-names/wxd-fn34.xpm" #line 4541 "WxdkdrawFrame.wxc" /** Array containing the images to visualize line styles. */ const char ** const WxdkdrawFrame::ms_ls_images[] = { xpm_wxd_ls1, xpm_wxd_ls2, xpm_wxd_ls3, xpm_wxd_ls4, xpm_wxd_ls5, xpm_wxd_ls6 }; /** Array containing the images to visualize line cap styles. */ const char ** const WxdkdrawFrame::ms_lc_images[] = { xpm_wxd_lc1, xpm_wxd_lc2, xpm_wxd_lc3 }; /** Array containing the images to visualize line join styles. */ const char ** const WxdkdrawFrame::ms_lj_images[] = { xpm_wxd_js1, xpm_wxd_js2, xpm_wxd_js3 }; /** Array containing the images to visualize arrow heads. */ const char ** const WxdkdrawFrame::ms_arrow_images[] = { xpm_wxd_as00, xpm_wxd_as01, xpm_wxd_as02, xpm_wxd_as03, xpm_wxd_as04, xpm_wxd_as05, xpm_wxd_as06, xpm_wxd_as07, xpm_wxd_as08, xpm_wxd_as09, xpm_wxd_as10, xpm_wxd_as11, xpm_wxd_as12, xpm_wxd_as13, xpm_wxd_as14, xpm_wxd_as15, xpm_wxd_as16, xpm_wxd_as17, xpm_wxd_as18, xpm_wxd_as19, xpm_wxd_as20, xpm_wxd_as21, xpm_wxd_as22, xpm_wxd_as23, xpm_wxd_as24, xpm_wxd_as25, xpm_wxd_as26, xpm_wxd_as27, xpm_wxd_as28, xpm_wxd_as29 }; /** Array containing the images to visualize fill styles. */ const char ** const WxdkdrawFrame::ms_fs_images[] = { xpm_wxd_fs00, xpm_wxd_fs01, xpm_wxd_fs02, xpm_wxd_fs03, xpm_wxd_fs04, xpm_wxd_fs05, xpm_wxd_fs06, xpm_wxd_fs07, xpm_wxd_fs08, xpm_wxd_fs09, xpm_wxd_fs10, xpm_wxd_fs11, xpm_wxd_fs12, xpm_wxd_fs13, xpm_wxd_fs14, xpm_wxd_fs15, xpm_wxd_fs16, xpm_wxd_fs17, xpm_wxd_fs18, xpm_wxd_fs19, xpm_wxd_fs20, xpm_wxd_fs21, xpm_wxd_fs22, xpm_wxd_fs23, }; /** Array containing the images to visualize text alignments. */ const char ** const WxdkdrawFrame::ms_ta_images[] = { xpm_wxd_ts00, xpm_wxd_ts01, xpm_wxd_ts02 }; /** Array containing the images to visualize fonts. */ const char ** const WxdkdrawFrame::ms_fn_images[] = { xpm_wxd_fn00, xpm_wxd_fn01, xpm_wxd_fn02, xpm_wxd_fn03, xpm_wxd_fn04, xpm_wxd_fn05, xpm_wxd_fn06, xpm_wxd_fn07, xpm_wxd_fn08, xpm_wxd_fn09, xpm_wxd_fn10, xpm_wxd_fn11, xpm_wxd_fn12, xpm_wxd_fn13, xpm_wxd_fn14, xpm_wxd_fn15, xpm_wxd_fn16, xpm_wxd_fn17, xpm_wxd_fn18, xpm_wxd_fn19, xpm_wxd_fn20, xpm_wxd_fn21, xpm_wxd_fn22, xpm_wxd_fn23, xpm_wxd_fn24, xpm_wxd_fn25, xpm_wxd_fn26, xpm_wxd_fn27, xpm_wxd_fn28, xpm_wxd_fn29, xpm_wxd_fn30, xpm_wxd_fn31, xpm_wxd_fn32, xpm_wxd_fn33, xpm_wxd_fn34 }; /** Subdirectory for wxdkdraw library in datadir. */ static const wxChar libsubdir[] = { #if DK4_HAVE_BACKSLASH_AS_SEP wxT("\\dktools\\wxdkdraw\\library") #else wxT("/dktools/wxdkdraw/library") #endif }; #line 4632 "WxdkdrawFrame.wxc" WxdkdrawFrame::WxdkdrawFrame( int wxid, Dk4WxApplicationHelper *applicationHelper, Dk4WxHelpController *hc, int argc, wxChar **argv, wxChar const * const *localizedTexts, wxChar const * const *nlWx, dkChar const * const *nlDk ) : Dk4WxFrame(nlWx[0], applicationHelper, hc, wxid), m_sFileFull(wxEmptyString), m_sFileShort(wxEmptyString), m_sFileDir(wxEmptyString), m_sImageDir(wxEmptyString), m_sLibraryDir(wxEmptyString), m_sLibraryShort(wxEmptyString), m_szMousePosPix(0,0) { #line 4651 "WxdkdrawFrame.wxc" /* __CHANGE__ 012: Add further local variables. */ wxString saGridChoices[] = { /* Choice texts for grid */ wxString(localizedTexts[156]), wxString(localizedTexts[157]) }; wxString saGridBase[] = { /* Choice texts for grid base */ wxString(localizedTexts[158]), wxString(localizedTexts[159]) }; wxString saPointMoveMode[] = { wxString(localizedTexts[414]), wxString(localizedTexts[415]) }; const wxChar *pShare; /* Shared directory */ double a1; /* Start angle for fish scales */ double a2; /* End angle for fish scales */ double kappa; /* Kappa value for fish scales */ /* __CHANGE__ 012: Initialize further local variables. */ sTexts = localizedTexts; sNlWx = nlWx; sNlDk = nlDk; #if defined(__WXMSW__) wxIcon wxdkdraw_icon(sNlWx[4]); #else wxIcon wxdkdraw_icon(xpm_wxdkdraw); #endif /* __CHANGE__ 011: Initialize further class members. */ #line 4685 "WxdkdrawFrame.wxc" wxdrd_status_init(&m_oStatusReader); wxdwr_status_init(&m_oStatusWriter, pAppHelp->GetWxEncoding()); m_pDrw = NULL; /* Drawing is opened later in first idle event */ m_bIsFirstIdle = true; /* The idle event processed next is first at all */ m_bActive = false; /* Not yet active because no drawing yet */ m_bModified = false; /* No changes applied yet */ m_bHaveName = false; /* File name not known yet */ m_bMousePos = false; /* Mouse position not yet known */ m_bMouseDiff = false; /* Shift vector not yet known */ #line 4695 "WxdkdrawFrame.wxc" m_iState = S_NOOP; /* No operation in progress */ m_iWheelControl = 0; /* No wheel movement with pressed control key */ m_iWheelShift = 0; /* No wheel movement with pressed shift key */ m_iWheelNormal = 0; /* No wheel movement yet */ m_uCurrent = 0U; /* No current point to edit */ m_iObjToCreate = WXD_OT_GROUP_END; /* Object type to create */ m_bSplineInterpolated = false; m_bAcceptablePoint = false; m_bUpdate = false; /* No need to update frame */ m_bAppendPoint = false; m_bHaveCornerPoint = false; m_ptMousePosRaw.x = (int32_t)0L; m_ptMousePosRaw.y = (int32_t)0L; m_ptMousePosGrid.x = (int32_t)0L; m_ptMousePosGrid.y = (int32_t)0L; m_ptMouseMoveStart.x = (int32_t)0L; m_ptMouseMoveStart.y = (int32_t)0L; m_ptMouseMoveDiff.x = (int32_t)0L; m_ptMouseMoveDiff.y = (int32_t)0L; m_ptPointMoveOri.x = (int32_t)0L; m_ptPointMoveOri.y = (int32_t)0L; wxdobj_det_init_ellipse(&m_ellPointMoveOri); m_bSnap = true; m_pStyle = NULL; m_pCurrent = NULL; wxdobj_obj_init(&m_oStyle, WXD_OT_TEXT, NULL); wxdobj_obj_init(&m_oBorder, WXD_OT_BOX, NULL); dk4error_init(&m_oErrorReport); /* Check first filename. */ if (1 < argc) { wxFileName wxfn(argv[1]); if (wxfn.IsFileReadable()) { m_sFileFull = wxfn.GetFullPath(); m_sFileShort = wxfn.GetFullName(); m_sFileDir = wxfn.GetPath(); m_bHaveName = true; } else { m_sFileFull = wxfn.GetFullPath(); m_sFileShort = wxfn.GetFullName(); m_sFileDir = wxfn.GetPath(); m_bHaveName = true; } } dkctGUILayoutOK = false; dkctGUIContentsPanel = NULL; mainSizer = NULL; mbMain = NULL; menuFile = NULL; menuAdd = NULL; menuEdit = NULL; menuView = NULL; menuOptions = NULL; menuHelp = NULL; miFileNew = NULL; miFileOpen = NULL; miFileSave = NULL; miFileSaveAs = NULL; miFileExit = NULL; miAddPolyline = NULL; miAddPolygon = NULL; miAddRectangle = NULL; miAddRoundedBox = NULL; miAddCircle = NULL; miAddEllipse = NULL; miAddArcOpen = NULL; miAddArcClosed = NULL; miAddSplineAO = NULL; miAddSplineAC = NULL; miAddSplineIO = NULL; miAddSplineIC = NULL; miAddConnector = NULL; miAddPin = NULL; miAddText = NULL; miAddImage = NULL; miAddLibelem = NULL; miEditCopy = NULL; miEditMove = NULL; miEditDelete = NULL; miEditPointAdd = NULL; miEditPointRemove = NULL; miEditPointMove = NULL; miEditModifySpline = NULL; miEditFlipH = NULL; miEditFlipV = NULL; miEditRotLeft = NULL; miEditRotRight = NULL; miEditDetails = NULL; mEditGroup = NULL; miEditUngroup = NULL; miEditChangeSize = NULL; mEditConvert = NULL; miEditGroupElements = NULL; miEditGroupIncluding = NULL; miPolygonToPolyline = NULL; miPolylineToPolygon = NULL; miClosedToOpenArc = NULL; miOpenToClosedArc = NULL; miClosedToOpenSpline = NULL; miOpenToClosedSpline = NULL; miClosedToOpenIntSpline = NULL; miOpenToClosedIntSpline = NULL; miWhiteFilledToDot = NULL; miDotToWhiteFilled = NULL; menuZoom = NULL; menuLayer = NULL; miViewCenterView = NULL; menuColours = NULL; miOptionsNewObjects = NULL; miOptionsScreen = NULL; miOptionsReset = NULL; miZoomIn = NULL; miZoomOut = NULL; miZoomReset = NULL; miLayerActivateAll = NULL; miLayerManager = NULL; menuColourBorder = NULL; menuColourBackground = NULL; menuColourGrid = NULL; menuColourPlacement = NULL; menuColourCopy = NULL; menuColourMove = NULL; menuColourDelete = NULL; menuColourGroup = NULL; menuColourMissing = NULL; miColourBorderModify = NULL; miColourBorderReset = NULL; miColourBackgroundModify = NULL; miColourBackgroundReset = NULL; miColourGridModify = NULL; miColourGridReset = NULL; miColourPlacementModify = NULL; miColourPlacementReset = NULL; miColourCopyModify = NULL; miColourCopyReset = NULL; miColourMoveModify = NULL; miColourMoveReset = NULL; miColourDeleteModify = NULL; miColourDeleteReset = NULL; miColourGroupModify = NULL; miColourGroupReset = NULL; miColourMissingModify = NULL; miColourMissingReset = NULL; miHelpAbout = NULL; miHelpContents = NULL; verticalSizer = NULL; szTopBar = NULL; szMiddleBar = NULL; szBottomBar = NULL; szHintsBar = NULL; bFileOpen = NULL; bFileSave = NULL; lZoomPercent = NULL; bZoomIn = NULL; bZoomOut = NULL; bZoomOne = NULL; cbGridOnOff = NULL; cbGridUnit = NULL; cbGridBase = NULL; cbPH = NULL; szLeftBar = NULL; szOperationsAndDraw = NULL; bPolyline = NULL; bPolygon = NULL; bRect = NULL; bBox = NULL; bCircle = NULL; bEllipse = NULL; bArcOpen = NULL; bArcClosed = NULL; bSplineAO = NULL; bSplineAC = NULL; bSplineIO = NULL; bSplineIC = NULL; bConnector = NULL; bPin = NULL; bText = NULL; bImage = NULL; bLibelem = NULL; szOperationButtons = NULL; szDrawco = NULL; lLayer = NULL; spLayerNumber = NULL; lLine = NULL; szLine = NULL; lFill = NULL; szFill = NULL; lText = NULL; szText = NULL; ccLineColour = NULL; spLineWidth = NULL; bStyleLineStyle = NULL; bStyleLineJoins = NULL; bStyleLineEnds = NULL; bStyleArrowForward = NULL; bStyleArrowBackward = NULL; ccFillColour = NULL; bStyleFillPattern = NULL; cbStyleTextLaTeX = NULL; bStyleTextAlign = NULL; bStyleFontName = NULL; spFontSize = NULL; lRotation = NULL; spRotation = NULL; tlMouseL = NULL; msgMouseL = NULL; tlMouseM = NULL; msgMouseM = NULL; tlMouseR = NULL; msgMouseR = NULL; tlPosX = NULL; msgPosX = NULL; tlPosY = NULL; msgPosY = NULL; bEditCopy = NULL; bEditMove = NULL; bEditDelete = NULL; bEditPointAdd = NULL; bEditPointDelete = NULL; bEditPointMove = NULL; cbPointMoveMode = NULL; bModifySplineValue = NULL; bEditFlipH = NULL; bEditFlipV = NULL; bEditRotLeft = NULL; bEditRotRight = NULL; bEditDetails = NULL; bEditGroup = NULL; bEditGroup3 = NULL; bEditUngroup = NULL; bEditChangeSize = NULL; drawco = NULL; sbVert = NULL; sbHori = NULL; dkctGUIContentsPanel = new wxPanel(this); if(!(dkctGUIContentsPanel)) { goto dkctGUILayoutFinished; } #if wxUSE_MENUS mbMain = new wxMenuBar( ); if(!(mbMain)) { goto dkctGUILayoutFinished; } menuFile = new wxMenu( ); if(!(menuFile)) { goto dkctGUILayoutFinished; } miFileNew = menuFile->Append( wxID_NEW, sTexts[20], sTexts[21] ); if(!(miFileNew)) { goto dkctGUILayoutFinished; } miFileOpen = menuFile->Append( wxID_OPEN, sTexts[22], sTexts[23] ); if(!(miFileOpen)) { goto dkctGUILayoutFinished; } miFileSave = menuFile->Append( wxID_SAVE, sTexts[24], sTexts[25] ); if(!(miFileSave)) { goto dkctGUILayoutFinished; } miFileSaveAs = menuFile->Append( wxID_SAVEAS, sTexts[26], sTexts[27] ); if(!(miFileSaveAs)) { goto dkctGUILayoutFinished; } miFileExit = menuFile->Append( wxID_EXIT, sTexts[1], sTexts[2] ); if(!(miFileExit)) { goto dkctGUILayoutFinished; } mbMain->Append(menuFile, sTexts[0]); menuAdd = new wxMenu( ); if(!(menuAdd)) { goto dkctGUILayoutFinished; } miAddPolyline = menuAdd->Append( ID_ADD_POLYINE, sTexts[29], sTexts[30] ); if(!(miAddPolyline)) { goto dkctGUILayoutFinished; } miAddPolygon = menuAdd->Append( ID_ADD_POLYGON, sTexts[31], sTexts[32] ); if(!(miAddPolygon)) { goto dkctGUILayoutFinished; } miAddRectangle = menuAdd->Append( ID_ADD_RECT, sTexts[33], sTexts[34] ); if(!(miAddRectangle)) { goto dkctGUILayoutFinished; } miAddRoundedBox = menuAdd->Append( ID_ADD_BOX, sTexts[35], sTexts[36] ); if(!(miAddRoundedBox)) { goto dkctGUILayoutFinished; } miAddCircle = menuAdd->Append( ID_ADD_CIRCLE, sTexts[37], sTexts[38] ); if(!(miAddCircle)) { goto dkctGUILayoutFinished; } miAddEllipse = menuAdd->Append( ID_ADD_ELLIPSE, sTexts[39], sTexts[40] ); if(!(miAddEllipse)) { goto dkctGUILayoutFinished; } miAddArcOpen = menuAdd->Append( ID_ADD_ARC_O, sTexts[643], sTexts[644] ); if(!(miAddArcOpen)) { goto dkctGUILayoutFinished; } miAddArcClosed = menuAdd->Append( ID_ADD_ARC_C, sTexts[645], sTexts[646] ); if(!(miAddArcClosed)) { goto dkctGUILayoutFinished; } miAddSplineAO = menuAdd->Append( ID_ADD_SPL_AO, sTexts[41], sTexts[42] ); if(!(miAddSplineAO)) { goto dkctGUILayoutFinished; } miAddSplineAC = menuAdd->Append( ID_ADD_SPL_AC, sTexts[43], sTexts[44] ); if(!(miAddSplineAC)) { goto dkctGUILayoutFinished; } miAddSplineIO = menuAdd->Append( ID_ADD_SPL_IO, sTexts[45], sTexts[46] ); if(!(miAddSplineIO)) { goto dkctGUILayoutFinished; } miAddSplineIC = menuAdd->Append( ID_ADD_SPL_IC, sTexts[47], sTexts[48] ); if(!(miAddSplineIC)) { goto dkctGUILayoutFinished; } miAddConnector = menuAdd->Append( ID_ADD_DOT_C, sTexts[49], sTexts[50] ); if(!(miAddConnector)) { goto dkctGUILayoutFinished; } miAddPin = menuAdd->Append( ID_ADD_DOT_W, sTexts[51], sTexts[52] ); if(!(miAddPin)) { goto dkctGUILayoutFinished; } miAddText = menuAdd->Append( ID_ADD_TEXT, sTexts[53], sTexts[54] ); if(!(miAddText)) { goto dkctGUILayoutFinished; } miAddImage = menuAdd->Append( ID_ADD_IMG, sTexts[55], sTexts[56] ); if(!(miAddImage)) { goto dkctGUILayoutFinished; } miAddLibelem = menuAdd->Append( ID_ADD_LIBELEM, sTexts[57], sTexts[58] ); if(!(miAddLibelem)) { goto dkctGUILayoutFinished; } mbMain->Append(menuAdd, sTexts[28]); menuEdit = new wxMenu( ); if(!(menuEdit)) { goto dkctGUILayoutFinished; } miEditCopy = menuEdit->Append( ID_EDIT_COPY, sTexts[60], sTexts[61] ); if(!(miEditCopy)) { goto dkctGUILayoutFinished; } miEditMove = menuEdit->Append( ID_EDIT_MOVE, sTexts[62], sTexts[63] ); if(!(miEditMove)) { goto dkctGUILayoutFinished; } miEditDelete = menuEdit->Append( ID_EDIT_DEL, sTexts[64], sTexts[65] ); if(!(miEditDelete)) { goto dkctGUILayoutFinished; } miEditPointAdd = menuEdit->Append( ID_EDIT_PT_ADD, sTexts[68], sTexts[69] ); if(!(miEditPointAdd)) { goto dkctGUILayoutFinished; } miEditPointRemove = menuEdit->Append( ID_EDIT_PT_DEL, sTexts[70], sTexts[71] ); if(!(miEditPointRemove)) { goto dkctGUILayoutFinished; } miEditPointMove = menuEdit->Append( ID_EDIT_PT_MOVE, sTexts[66], sTexts[67] ); if(!(miEditPointMove)) { goto dkctGUILayoutFinished; } miEditModifySpline = menuEdit->Append( ID_MOD_SPLINE, sTexts[620], sTexts[621] ); if(!(miEditModifySpline)) { goto dkctGUILayoutFinished; } miEditFlipH = menuEdit->Append( ID_EDIT_FLIPH, sTexts[78], sTexts[79] ); if(!(miEditFlipH)) { goto dkctGUILayoutFinished; } miEditFlipV = menuEdit->Append( ID_EDIT_FLIPV, sTexts[80], sTexts[81] ); if(!(miEditFlipV)) { goto dkctGUILayoutFinished; } miEditRotLeft = menuEdit->Append( ID_EDIT_ROTLEFT, sTexts[566], sTexts[567] ); if(!(miEditRotLeft)) { goto dkctGUILayoutFinished; } miEditRotRight = menuEdit->Append( ID_EDIT_ROTRIGHT, sTexts[568], sTexts[569] ); if(!(miEditRotRight)) { goto dkctGUILayoutFinished; } miEditDetails = menuEdit->Append( ID_EDIT_DET, sTexts[72], sTexts[73] ); if(!(miEditDetails)) { goto dkctGUILayoutFinished; } mEditGroup = new wxMenu( ); if(!(mEditGroup)) { goto dkctGUILayoutFinished; } miEditGroupElements = mEditGroup->Append( ID_EDIT_GRP1, sTexts[165], sTexts[106] ); if(!(miEditGroupElements)) { goto dkctGUILayoutFinished; } miEditGroupIncluding = mEditGroup->Append( ID_EDIT_GRP13, sTexts[167], sTexts[164] ); if(!(miEditGroupIncluding)) { goto dkctGUILayoutFinished; } menuEdit->Append(wxID_ANY, sTexts[74], mEditGroup); miEditUngroup = menuEdit->Append( ID_EDIT_UNGRP, sTexts[76], sTexts[77] ); if(!(miEditUngroup)) { goto dkctGUILayoutFinished; } miEditChangeSize = menuEdit->Append( ID_EDIT_DRSZ, sTexts[82], sTexts[83] ); if(!(miEditChangeSize)) { goto dkctGUILayoutFinished; } mEditConvert = new wxMenu( ); if(!(mEditConvert)) { goto dkctGUILayoutFinished; } miPolygonToPolyline = mEditConvert->Append( ID_EDIT_CONVERT_2, sTexts[537], sTexts[546] ); if(!(miPolygonToPolyline)) { goto dkctGUILayoutFinished; } miPolylineToPolygon = mEditConvert->Append( ID_EDIT_CONVERT_1, sTexts[536], sTexts[545] ); if(!(miPolylineToPolygon)) { goto dkctGUILayoutFinished; } miClosedToOpenArc = mEditConvert->Append( ID_EDIT_CONVERT_5, sTexts[540], sTexts[549] ); if(!(miClosedToOpenArc)) { goto dkctGUILayoutFinished; } miOpenToClosedArc = mEditConvert->Append( ID_EDIT_CONVERT_4, sTexts[539], sTexts[548] ); if(!(miOpenToClosedArc)) { goto dkctGUILayoutFinished; } miClosedToOpenSpline = mEditConvert->Append( ID_EDIT_CONVERT_7, sTexts[542], sTexts[551] ); if(!(miClosedToOpenSpline)) { goto dkctGUILayoutFinished; } miOpenToClosedSpline = mEditConvert->Append( ID_EDIT_CONVERT_6, sTexts[541], sTexts[550] ); if(!(miOpenToClosedSpline)) { goto dkctGUILayoutFinished; } miClosedToOpenIntSpline = mEditConvert->Append( ID_EDIT_CONVERT_3, sTexts[163], sTexts[166] ); if(!(miClosedToOpenIntSpline)) { goto dkctGUILayoutFinished; } miOpenToClosedIntSpline = mEditConvert->Append( ID_EDIT_CONVERT_A, sTexts[538], sTexts[547] ); if(!(miOpenToClosedIntSpline)) { goto dkctGUILayoutFinished; } miWhiteFilledToDot = mEditConvert->Append( ID_EDIT_CONVERT_9, sTexts[544], sTexts[553] ); if(!(miWhiteFilledToDot)) { goto dkctGUILayoutFinished; } miDotToWhiteFilled = mEditConvert->Append( ID_EDIT_CONVERT_8, sTexts[543], sTexts[552] ); if(!(miDotToWhiteFilled)) { goto dkctGUILayoutFinished; } menuEdit->Append(wxID_ANY, sTexts[535], mEditConvert); mbMain->Append(menuEdit, sTexts[59]); menuView = new wxMenu( ); if(!(menuView)) { goto dkctGUILayoutFinished; } menuZoom = new wxMenu( ); if(!(menuZoom)) { goto dkctGUILayoutFinished; } miZoomIn = menuZoom->Append( wxID_ZOOM_IN, sTexts[86], sTexts[87] ); if(!(miZoomIn)) { goto dkctGUILayoutFinished; } miZoomOut = menuZoom->Append( wxID_ZOOM_OUT, sTexts[88], sTexts[89] ); if(!(miZoomOut)) { goto dkctGUILayoutFinished; } miZoomReset = menuZoom->Append( wxID_ZOOM_100, sTexts[90], sTexts[91] ); if(!(miZoomReset)) { goto dkctGUILayoutFinished; } menuView->Append(wxID_ANY, sTexts[85], menuZoom); menuLayer = new wxMenu( ); if(!(menuLayer)) { goto dkctGUILayoutFinished; } miLayerActivateAll = menuLayer->Append( ID_LAYERS_ALL, sTexts[93], sTexts[94] ); if(!(miLayerActivateAll)) { goto dkctGUILayoutFinished; } miLayerManager = menuLayer->Append( ID_LAYERS_MGR, sTexts[95], sTexts[96] ); if(!(miLayerManager)) { goto dkctGUILayoutFinished; } menuView->Append(wxID_ANY, sTexts[92], menuLayer); miViewCenterView = menuView->Append( ID_ZOOM_CENTER, sTexts[97], sTexts[98] ); if(!(miViewCenterView)) { goto dkctGUILayoutFinished; } mbMain->Append(menuView, sTexts[84]); menuOptions = new wxMenu( ); if(!(menuOptions)) { goto dkctGUILayoutFinished; } menuColours = new wxMenu( ); if(!(menuColours)) { goto dkctGUILayoutFinished; } menuColourBorder = new wxMenu( ); if(!(menuColourBorder)) { goto dkctGUILayoutFinished; } miColourBorderModify = menuColourBorder->Append( ID_COL_MOD_BORDER, sTexts[609], sTexts[610] ); if(!(miColourBorderModify)) { goto dkctGUILayoutFinished; } miColourBorderReset = menuColourBorder->Append( ID_COL_RES_BORDER, sTexts[607], sTexts[608] ); if(!(miColourBorderReset)) { goto dkctGUILayoutFinished; } menuColours->Append(wxID_ANY, sTexts[611], menuColourBorder); menuColourBackground = new wxMenu( ); if(!(menuColourBackground)) { goto dkctGUILayoutFinished; } miColourBackgroundModify = menuColourBackground->Append( ID_COL_MOD_BACKGROUND, sTexts[609], sTexts[610] ); if(!(miColourBackgroundModify)) { goto dkctGUILayoutFinished; } miColourBackgroundReset = menuColourBackground->Append( ID_COL_RES_BACKGROUND, sTexts[607], sTexts[608] ); if(!(miColourBackgroundReset)) { goto dkctGUILayoutFinished; } menuColours->Append(wxID_ANY, sTexts[612], menuColourBackground); menuColourGrid = new wxMenu( ); if(!(menuColourGrid)) { goto dkctGUILayoutFinished; } miColourGridModify = menuColourGrid->Append( ID_COL_MOD_GRID, sTexts[609], sTexts[610] ); if(!(miColourGridModify)) { goto dkctGUILayoutFinished; } miColourGridReset = menuColourGrid->Append( ID_COL_RES_GRID, sTexts[607], sTexts[608] ); if(!(miColourGridReset)) { goto dkctGUILayoutFinished; } menuColours->Append(wxID_ANY, sTexts[613], menuColourGrid); menuColourPlacement = new wxMenu( ); if(!(menuColourPlacement)) { goto dkctGUILayoutFinished; } miColourPlacementModify = menuColourPlacement->Append( ID_COL_MOD_PH, sTexts[609], sTexts[610] ); if(!(miColourPlacementModify)) { goto dkctGUILayoutFinished; } miColourPlacementReset = menuColourPlacement->Append( ID_COL_RES_PH, sTexts[607], sTexts[608] ); if(!(miColourPlacementReset)) { goto dkctGUILayoutFinished; } menuColours->Append(wxID_ANY, sTexts[614], menuColourPlacement); menuColourCopy = new wxMenu( ); if(!(menuColourCopy)) { goto dkctGUILayoutFinished; } miColourCopyModify = menuColourCopy->Append( ID_COL_MOD_COPY, sTexts[609], sTexts[610] ); if(!(miColourCopyModify)) { goto dkctGUILayoutFinished; } miColourCopyReset = menuColourCopy->Append( ID_COL_RES_COPY, sTexts[607], sTexts[608] ); if(!(miColourCopyReset)) { goto dkctGUILayoutFinished; } menuColours->Append(wxID_ANY, sTexts[615], menuColourCopy); menuColourMove = new wxMenu( ); if(!(menuColourMove)) { goto dkctGUILayoutFinished; } miColourMoveModify = menuColourMove->Append( ID_COL_MOD_MOVE, sTexts[609], sTexts[610] ); if(!(miColourMoveModify)) { goto dkctGUILayoutFinished; } miColourMoveReset = menuColourMove->Append( ID_COL_RES_MOVE, sTexts[607], sTexts[608] ); if(!(miColourMoveReset)) { goto dkctGUILayoutFinished; } menuColours->Append(wxID_ANY, sTexts[616], menuColourMove); menuColourDelete = new wxMenu( ); if(!(menuColourDelete)) { goto dkctGUILayoutFinished; } miColourDeleteModify = menuColourDelete->Append( ID_COL_MOD_DELETE, sTexts[609], sTexts[610] ); if(!(miColourDeleteModify)) { goto dkctGUILayoutFinished; } miColourDeleteReset = menuColourDelete->Append( ID_COL_RES_DELETE, sTexts[607], sTexts[608] ); if(!(miColourDeleteReset)) { goto dkctGUILayoutFinished; } menuColours->Append(wxID_ANY, sTexts[617], menuColourDelete); menuColourGroup = new wxMenu( ); if(!(menuColourGroup)) { goto dkctGUILayoutFinished; } miColourGroupModify = menuColourGroup->Append( ID_COL_MOD_GROUP, sTexts[609], sTexts[610] ); if(!(miColourGroupModify)) { goto dkctGUILayoutFinished; } miColourGroupReset = menuColourGroup->Append( ID_COL_RES_GROUP, sTexts[607], sTexts[608] ); if(!(miColourGroupReset)) { goto dkctGUILayoutFinished; } menuColours->Append(wxID_ANY, sTexts[618], menuColourGroup); menuColourMissing = new wxMenu( ); if(!(menuColourMissing)) { goto dkctGUILayoutFinished; } miColourMissingModify = menuColourMissing->Append( ID_COL_MOD_MISSING, sTexts[609], sTexts[610] ); if(!(miColourMissingModify)) { goto dkctGUILayoutFinished; } miColourMissingReset = menuColourMissing->Append( ID_COL_RES_MISSING, sTexts[607], sTexts[608] ); if(!(miColourMissingReset)) { goto dkctGUILayoutFinished; } menuColours->Append(wxID_ANY, sTexts[619], menuColourMissing); menuOptions->Append(wxID_ANY, sTexts[606], menuColours); miOptionsNewObjects = menuOptions->Append( ID_OPT_NEW_OBJECTS, sTexts[625], sTexts[626] ); if(!(miOptionsNewObjects)) { goto dkctGUILayoutFinished; } miOptionsScreen = menuOptions->Append( ID_OPT_SCREEN, sTexts[630], sTexts[631] ); if(!(miOptionsScreen)) { goto dkctGUILayoutFinished; } miOptionsReset = menuOptions->Append( ID_RESET_OPTIONS, sTexts[602], sTexts[603] ); if(!(miOptionsReset)) { goto dkctGUILayoutFinished; } mbMain->Append(menuOptions, sTexts[601]); menuHelp = new wxMenu( ); if(!(menuHelp)) { goto dkctGUILayoutFinished; } miHelpAbout = menuHelp->Append( ID_HELP_ABOUT, sTexts[4], sTexts[5] ); if(!(miHelpAbout)) { goto dkctGUILayoutFinished; } miHelpContents = menuHelp->Append( ID_HELP_CONTENTS, sTexts[6], sTexts[7] ); if(!(miHelpContents)) { goto dkctGUILayoutFinished; } mbMain->Append(menuHelp, sTexts[3]); SetMenuBar(mbMain); #endif mainSizer = new wxBoxSizer( wxHORIZONTAL ); if(!(mainSizer)) { goto dkctGUILayoutFinished; } mainSizer->Add(10, 10, 0); verticalSizer = new wxBoxSizer( wxVERTICAL ); if(!(verticalSizer)) { goto dkctGUILayoutFinished; } verticalSizer->Add(10, 10, 0); szTopBar = new wxBoxSizer( wxHORIZONTAL ); if(!(szTopBar)) { goto dkctGUILayoutFinished; } bFileOpen = new wxBitmapButton( dkctGUIContentsPanel, wxID_OPEN, xpm_wxd_tb_open ); if(!(bFileOpen)) { goto dkctGUILayoutFinished; } bFileOpen->SetToolTip(sTexts[99]); szTopBar->Add( bFileOpen, 0, wxALIGN_CENTER_VERTICAL ); bFileSave = new wxBitmapButton( dkctGUIContentsPanel, wxID_SAVE, xpm_wxd_tb_save ); if(!(bFileSave)) { goto dkctGUILayoutFinished; } bFileSave->SetToolTip(sTexts[100]); szTopBar->Add( bFileSave, 0, wxALIGN_CENTER_VERTICAL ); szTopBar->Add(10, 10, 1); lZoomPercent = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sNlWx[18] ); if(!(lZoomPercent)) { goto dkctGUILayoutFinished; } szTopBar->Add( lZoomPercent, 0, wxALIGN_CENTER_VERTICAL ); szTopBar->Add(10, 10, 0); bZoomIn = new wxBitmapButton( dkctGUIContentsPanel, wxID_ZOOM_IN, xpm_wxd_tb_zoom_in ); if(!(bZoomIn)) { goto dkctGUILayoutFinished; } bZoomIn->SetToolTip(sTexts[113]); szTopBar->Add( bZoomIn, 0, wxALIGN_CENTER_VERTICAL ); bZoomOut = new wxBitmapButton( dkctGUIContentsPanel, wxID_ZOOM_OUT, xpm_wxd_tb_zoom_out ); if(!(bZoomOut)) { goto dkctGUILayoutFinished; } bZoomOut->SetToolTip(sTexts[114]); szTopBar->Add( bZoomOut, 0, wxALIGN_CENTER_VERTICAL ); bZoomOne = new wxBitmapButton( dkctGUIContentsPanel, wxID_ZOOM_100, xpm_wxd_tb_zoom_11 ); if(!(bZoomOne)) { goto dkctGUILayoutFinished; } bZoomOne->SetToolTip(sTexts[115]); szTopBar->Add( bZoomOne, 0, wxALIGN_CENTER_VERTICAL ); szTopBar->Add(10, 10, 0); cbGridOnOff = new wxCheckBox( dkctGUIContentsPanel, ID_GRID_ON_OFF, sTexts[160] ); if(!(cbGridOnOff)) { goto dkctGUILayoutFinished; } cbGridOnOff->SetToolTip(sTexts[116]); szTopBar->Add( cbGridOnOff, 0, wxALIGN_CENTER_VERTICAL ); szTopBar->Add(5, 5, 0); cbGridUnit = new wxChoice( dkctGUIContentsPanel, ID_GRID_UNIT, wxDefaultPosition, wxDefaultSize, 2, saGridChoices ); if(!(cbGridUnit)) { goto dkctGUILayoutFinished; } cbGridUnit->SetToolTip(sTexts[117]); szTopBar->Add( cbGridUnit, 0, wxALIGN_CENTER_VERTICAL ); cbGridBase = new wxChoice( dkctGUIContentsPanel, ID_GRID_BASE, wxDefaultPosition, wxDefaultSize, 2, saGridBase ); if(!(cbGridBase)) { goto dkctGUILayoutFinished; } cbGridBase->SetToolTip(sTexts[118]); szTopBar->Add( cbGridBase, 0, wxALIGN_CENTER_VERTICAL ); szTopBar->Add(10, 10, 0); cbPH = new wxCheckBox( dkctGUIContentsPanel, ID_PLACEMENT, sTexts[161] ); if(!(cbPH)) { goto dkctGUILayoutFinished; } cbPH->SetToolTip(sTexts[119]); szTopBar->Add( cbPH, 0, wxALIGN_CENTER_VERTICAL ); verticalSizer->Add( szTopBar, 0, wxGROW ); verticalSizer->Add(10, 10, 0); szMiddleBar = new wxBoxSizer( wxHORIZONTAL ); if(!(szMiddleBar)) { goto dkctGUILayoutFinished; } szLeftBar = new wxGridBagSizer( ); if(!(szLeftBar)) { goto dkctGUILayoutFinished; } bPolyline = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_POLYINE, xpm_wxd_bpolyline ); if(!(bPolyline)) { goto dkctGUILayoutFinished; } bPolyline->SetToolTip(sTexts[120]); szLeftBar->Add( bPolyline, wxGBPosition(0, 0), wxGBSpan(1, 1) ); bPolygon = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_POLYGON, xpm_wxd_bpolygon ); if(!(bPolygon)) { goto dkctGUILayoutFinished; } bPolygon->SetToolTip(sTexts[121]); szLeftBar->Add( bPolygon, wxGBPosition(0, 1), wxGBSpan(1, 1) ); bRect = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_RECT, xpm_wxd_brectangle ); if(!(bRect)) { goto dkctGUILayoutFinished; } bRect->SetToolTip(sTexts[122]); szLeftBar->Add( bRect, wxGBPosition(1, 0), wxGBSpan(1, 1) ); bBox = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_BOX, xpm_wxd_bbox ); if(!(bBox)) { goto dkctGUILayoutFinished; } bBox->SetToolTip(sTexts[123]); szLeftBar->Add( bBox, wxGBPosition(1, 1), wxGBSpan(1, 1) ); bCircle = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_CIRCLE, xpm_wxd_bcircle ); if(!(bCircle)) { goto dkctGUILayoutFinished; } bCircle->SetToolTip(sTexts[124]); szLeftBar->Add( bCircle, wxGBPosition(2, 0), wxGBSpan(1, 1) ); bEllipse = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_ELLIPSE, xpm_wxd_bellipse ); if(!(bEllipse)) { goto dkctGUILayoutFinished; } bEllipse->SetToolTip(sTexts[125]); szLeftBar->Add( bEllipse, wxGBPosition(2, 1), wxGBSpan(1, 1) ); bArcOpen = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_ARC_O, xpm_wxd_boarc ); if(!(bArcOpen)) { goto dkctGUILayoutFinished; } bArcOpen->SetToolTip(sTexts[126]); szLeftBar->Add( bArcOpen, wxGBPosition(3, 0), wxGBSpan(1, 1) ); bArcClosed = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_ARC_C, xpm_wxd_bcarc ); if(!(bArcClosed)) { goto dkctGUILayoutFinished; } bArcClosed->SetToolTip(sTexts[127]); szLeftBar->Add( bArcClosed, wxGBPosition(3, 1), wxGBSpan(1, 1) ); bSplineAO = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_SPL_AO, xpm_wxd_bsplineoa ); if(!(bSplineAO)) { goto dkctGUILayoutFinished; } bSplineAO->SetToolTip(sTexts[128]); szLeftBar->Add( bSplineAO, wxGBPosition(4, 0), wxGBSpan(1, 1) ); bSplineAC = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_SPL_AC, xpm_wxd_bsplineca ); if(!(bSplineAC)) { goto dkctGUILayoutFinished; } bSplineAC->SetToolTip(sTexts[129]); szLeftBar->Add( bSplineAC, wxGBPosition(4, 1), wxGBSpan(1, 1) ); bSplineIO = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_SPL_IO, xpm_wxd_bsplineoi ); if(!(bSplineIO)) { goto dkctGUILayoutFinished; } bSplineIO->SetToolTip(sTexts[130]); szLeftBar->Add( bSplineIO, wxGBPosition(5, 0), wxGBSpan(1, 1) ); bSplineIC = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_SPL_IC, xpm_wxd_bsplineci ); if(!(bSplineIC)) { goto dkctGUILayoutFinished; } bSplineIC->SetToolTip(sTexts[131]); szLeftBar->Add( bSplineIC, wxGBPosition(5, 1), wxGBSpan(1, 1) ); bConnector = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_DOT_C, xpm_wxd_bbullet ); if(!(bConnector)) { goto dkctGUILayoutFinished; } bConnector->SetToolTip(sTexts[132]); szLeftBar->Add( bConnector, wxGBPosition(6, 0), wxGBSpan(1, 1) ); bPin = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_DOT_W, xpm_wxd_bbulletf ); if(!(bPin)) { goto dkctGUILayoutFinished; } bPin->SetToolTip(sTexts[133]); szLeftBar->Add( bPin, wxGBPosition(6, 1), wxGBSpan(1, 1) ); bText = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_TEXT, xpm_wxd_btext ); if(!(bText)) { goto dkctGUILayoutFinished; } bText->SetToolTip(sTexts[134]); szLeftBar->Add( bText, wxGBPosition(7, 0), wxGBSpan(1, 1) ); bImage = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_IMG, xpm_wxd_bimg ); if(!(bImage)) { goto dkctGUILayoutFinished; } bImage->SetToolTip(sTexts[136]); szLeftBar->Add( bImage, wxGBPosition(7, 1), wxGBSpan(1, 1) ); bLibelem = new wxBitmapButton( dkctGUIContentsPanel, ID_ADD_LIBELEM, xpm_wxd_blib ); if(!(bLibelem)) { goto dkctGUILayoutFinished; } bLibelem->SetToolTip(sTexts[135]); szLeftBar->Add( bLibelem, wxGBPosition(8, 0), wxGBSpan(1, 1) ); szMiddleBar->Add( szLeftBar ); szMiddleBar->Add(10, 10, 0); szOperationsAndDraw = new wxBoxSizer( wxVERTICAL ); if(!(szOperationsAndDraw)) { goto dkctGUILayoutFinished; } szOperationButtons = new wxBoxSizer( wxHORIZONTAL ); if(!(szOperationButtons)) { goto dkctGUILayoutFinished; } bEditCopy = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_COPY, xpm_wxd_bcopy ); if(!(bEditCopy)) { goto dkctGUILayoutFinished; } bEditCopy->SetToolTip(sTexts[101]); szOperationButtons->Add( bEditCopy, 0, wxALIGN_CENTER_VERTICAL ); bEditMove = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_MOVE, xpm_wxd_bmove ); if(!(bEditMove)) { goto dkctGUILayoutFinished; } bEditMove->SetToolTip(sTexts[102]); szOperationButtons->Add( bEditMove, 0, wxALIGN_CENTER_VERTICAL ); bEditDelete = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_DEL, xpm_wxd_bdel ); if(!(bEditDelete)) { goto dkctGUILayoutFinished; } bEditDelete->SetToolTip(sTexts[103]); szOperationButtons->Add( bEditDelete, 0, wxALIGN_CENTER_VERTICAL ); szOperationButtons->Add(10, 10, 0); bEditPointAdd = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_PT_ADD, xpm_wxd_baddpoint ); if(!(bEditPointAdd)) { goto dkctGUILayoutFinished; } bEditPointAdd->SetToolTip(sTexts[110]); szOperationButtons->Add( bEditPointAdd, 0, wxALIGN_CENTER_VERTICAL ); bEditPointDelete = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_PT_DEL, xpm_wxd_bdelpoint ); if(!(bEditPointDelete)) { goto dkctGUILayoutFinished; } bEditPointDelete->SetToolTip(sTexts[111]); szOperationButtons->Add( bEditPointDelete, 0, wxALIGN_CENTER_VERTICAL ); bEditPointMove = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_PT_MOVE, xpm_wxd_bmvpoint ); if(!(bEditPointMove)) { goto dkctGUILayoutFinished; } bEditPointMove->SetToolTip(sTexts[104]); szOperationButtons->Add( bEditPointMove, 0, wxALIGN_CENTER_VERTICAL ); cbPointMoveMode = new wxChoice( dkctGUIContentsPanel, ID_CB_POINT_MOVE_MODE, wxDefaultPosition, wxDefaultSize, 2, saPointMoveMode ); if(!(cbPointMoveMode)) { goto dkctGUILayoutFinished; } cbPointMoveMode->SetToolTip(sTexts[413]); szOperationButtons->Add( cbPointMoveMode, 0, wxALIGN_CENTER_VERTICAL ); bModifySplineValue = new wxBitmapButton( dkctGUIContentsPanel, ID_MOD_SPLINE, xpm_wxd_bmodifys ); if(!(bModifySplineValue)) { goto dkctGUILayoutFinished; } bModifySplineValue->SetToolTip(sTexts[621]); szOperationButtons->Add( bModifySplineValue, 0, wxALIGN_CENTER_VERTICAL ); szOperationButtons->Add(10, 10, 0); bEditFlipH = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_FLIPH, xpm_wxd_bfliph ); if(!(bEditFlipH)) { goto dkctGUILayoutFinished; } bEditFlipH->SetToolTip(sTexts[108]); szOperationButtons->Add( bEditFlipH, 0, wxALIGN_CENTER_VERTICAL ); bEditFlipV = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_FLIPV, xpm_wxd_bflipv ); if(!(bEditFlipV)) { goto dkctGUILayoutFinished; } bEditFlipV->SetToolTip(sTexts[109]); szOperationButtons->Add( bEditFlipV, 0, wxALIGN_CENTER_VERTICAL ); bEditRotLeft = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_ROTLEFT, xpm_wxd_brotleft ); if(!(bEditRotLeft)) { goto dkctGUILayoutFinished; } bEditRotLeft->SetToolTip(sTexts[567]); szOperationButtons->Add( bEditRotLeft, 0, wxALIGN_CENTER_VERTICAL ); bEditRotRight = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_ROTRIGHT, xpm_wxd_brotright ); if(!(bEditRotRight)) { goto dkctGUILayoutFinished; } bEditRotRight->SetToolTip(sTexts[569]); szOperationButtons->Add( bEditRotRight, 0, wxALIGN_CENTER_VERTICAL ); szOperationButtons->Add(10, 10, 0); bEditDetails = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_DET, xpm_wxd_bdetails ); if(!(bEditDetails)) { goto dkctGUILayoutFinished; } bEditDetails->SetToolTip(sTexts[105]); szOperationButtons->Add( bEditDetails, 0, wxALIGN_CENTER_VERTICAL ); szOperationButtons->Add(10, 10, 0); bEditGroup = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_GRP1, xpm_wxd_bgroup ); if(!(bEditGroup)) { goto dkctGUILayoutFinished; } bEditGroup->SetToolTip(sTexts[106]); szOperationButtons->Add( bEditGroup, 0, wxALIGN_CENTER_VERTICAL ); bEditGroup3 = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_GRP13, xpm_wxd_bgroup3 ); if(!(bEditGroup3)) { goto dkctGUILayoutFinished; } bEditGroup3->SetToolTip(sTexts[164]); szOperationButtons->Add( bEditGroup3, 0, wxALIGN_CENTER_VERTICAL ); bEditUngroup = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_UNGRP, xpm_wxd_bungroup ); if(!(bEditUngroup)) { goto dkctGUILayoutFinished; } bEditUngroup->SetToolTip(sTexts[107]); szOperationButtons->Add( bEditUngroup, 0, wxALIGN_CENTER_VERTICAL ); szOperationButtons->Add(10, 10, 0); bEditChangeSize = new wxBitmapButton( dkctGUIContentsPanel, ID_EDIT_DRSZ, xpm_wxd_tb_borders ); if(!(bEditChangeSize)) { goto dkctGUILayoutFinished; } bEditChangeSize->SetToolTip(sTexts[112]); szOperationButtons->Add( bEditChangeSize, 0, wxALIGN_CENTER_VERTICAL ); szOperationsAndDraw->Add( szOperationButtons, 0, wxGROW ); szOperationsAndDraw->Add(10, 10, 0); szDrawco = new wxGridBagSizer( 5, 5 ); if(!(szDrawco)) { goto dkctGUILayoutFinished; } drawco = new Control( dkctGUIContentsPanel,wxID_ANY,this ); if(!(drawco)) { goto dkctGUILayoutFinished; } szDrawco->Add( drawco, wxGBPosition(0, 0), wxGBSpan(1, 1), wxGROW ); sbVert = new wxScrollBar( dkctGUIContentsPanel, ID_SCROLL_V, wxDefaultPosition, wxDefaultSize, wxSB_VERTICAL ); if(!(sbVert)) { goto dkctGUILayoutFinished; } szDrawco->Add( sbVert, wxGBPosition(0, 1), wxGBSpan(1, 1), wxGROW ); sbHori = new wxScrollBar( dkctGUIContentsPanel, ID_SCROLL_H ); if(!(sbHori)) { goto dkctGUILayoutFinished; } szDrawco->Add( sbHori, wxGBPosition(1, 0), wxGBSpan(1, 1), wxGROW ); szDrawco->AddGrowableRow(0); szDrawco->AddGrowableCol(0); szOperationsAndDraw->Add( szDrawco, 1, wxGROW ); szMiddleBar->Add( szOperationsAndDraw, 1, wxGROW ); verticalSizer->Add( szMiddleBar, 1, wxGROW ); verticalSizer->Add(10, 10, 0); szBottomBar = new wxGridBagSizer( ); if(!(szBottomBar)) { goto dkctGUILayoutFinished; } lLayer = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[137], wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT ); if(!(lLayer)) { goto dkctGUILayoutFinished; } szBottomBar->Add( lLayer, wxGBPosition(0, 0), wxGBSpan(1, 1), wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL ); szBottomBar->Add(5, 5, wxGBPosition(0, 1), wxGBSpan(1, 1)); spLayerNumber = new wxSpinCtrl( dkctGUIContentsPanel, ID_STYLE_LAYER, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, -32768, 32767 ); if(!(spLayerNumber)) { goto dkctGUILayoutFinished; } spLayerNumber->SetToolTip(sTexts[141]); szBottomBar->Add( spLayerNumber, wxGBPosition(0, 2), wxGBSpan(1, 1), wxALIGN_CENTER_VERTICAL ); szBottomBar->Add(5, 5, wxGBPosition(0, 3), wxGBSpan(1, 1)); lLine = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[138], wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT ); if(!(lLine)) { goto dkctGUILayoutFinished; } szBottomBar->Add( lLine, wxGBPosition(0, 4), wxGBSpan(1, 1), wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL ); szBottomBar->Add(5, 5, wxGBPosition(0, 5), wxGBSpan(1, 1)); szLine = new wxBoxSizer( wxHORIZONTAL ); if(!(szLine)) { goto dkctGUILayoutFinished; } ccLineColour = new Dk4WxColourView( dkctGUIContentsPanel,ID_STYLE_LINE_COL,applicationHelper,0,0,0,wxDefaultPosition,ColourViewSize() ); if(!(ccLineColour)) { goto dkctGUILayoutFinished; } ccLineColour->SetToolTip(sTexts[142]); szLine->Add( ccLineColour, 0, wxALIGN_CENTER_VERTICAL ); szLine->Add(5, 5, 0); spLineWidth = new wxSpinCtrl( dkctGUIContentsPanel, ID_STYLE_LINE_WIDTH, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, 0, 65535, 2 ); if(!(spLineWidth)) { goto dkctGUILayoutFinished; } spLineWidth->SetToolTip(sTexts[143]); szLine->Add( spLineWidth, 0, wxALIGN_CENTER_VERTICAL ); bStyleLineStyle = new wxBitmapButton( dkctGUIContentsPanel, ID_STYLE_LINE_STYLE, xpm_wxd_ls1 ); if(!(bStyleLineStyle)) { goto dkctGUILayoutFinished; } bStyleLineStyle->SetToolTip(sTexts[144]); szLine->Add( bStyleLineStyle, 0, wxALIGN_CENTER_VERTICAL ); bStyleLineJoins = new wxBitmapButton( dkctGUIContentsPanel, ID_STYLE_LINE_JOIN, xpm_wxd_js1 ); if(!(bStyleLineJoins)) { goto dkctGUILayoutFinished; } bStyleLineJoins->SetToolTip(sTexts[146]); szLine->Add( bStyleLineJoins, 0, wxALIGN_CENTER_VERTICAL ); bStyleLineEnds = new wxBitmapButton( dkctGUIContentsPanel, ID_STYLE_LINE_CAP, xpm_wxd_lc1 ); if(!(bStyleLineEnds)) { goto dkctGUILayoutFinished; } bStyleLineEnds->SetToolTip(sTexts[145]); szLine->Add( bStyleLineEnds, 0, wxALIGN_CENTER_VERTICAL ); bStyleArrowForward = new wxBitmapButton( dkctGUIContentsPanel, ID_STYLE_ARROW_F, xpm_wxd_as00 ); if(!(bStyleArrowForward)) { goto dkctGUILayoutFinished; } bStyleArrowForward->SetToolTip(sTexts[147]); szLine->Add( bStyleArrowForward, 0, wxALIGN_CENTER_VERTICAL ); bStyleArrowBackward = new wxBitmapButton( dkctGUIContentsPanel, ID_STYLE_ARROW_B, xpm_wxd_as00 ); if(!(bStyleArrowBackward)) { goto dkctGUILayoutFinished; } bStyleArrowBackward->SetToolTip(sTexts[148]); szLine->Add( bStyleArrowBackward, 0, wxALIGN_CENTER_VERTICAL ); szBottomBar->Add( szLine, wxGBPosition(0, 6), wxGBSpan(1, 1), wxALIGN_CENTER_VERTICAL ); szBottomBar->Add(5, 5, wxGBPosition(0, 7), wxGBSpan(1, 1)); lFill = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[139], wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT ); if(!(lFill)) { goto dkctGUILayoutFinished; } szBottomBar->Add( lFill, wxGBPosition(0, 8), wxGBSpan(1, 1), wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL ); szBottomBar->Add(5, 5, wxGBPosition(0, 9), wxGBSpan(1, 1)); szFill = new wxBoxSizer( wxHORIZONTAL ); if(!(szFill)) { goto dkctGUILayoutFinished; } ccFillColour = new Dk4WxColourView( dkctGUIContentsPanel,ID_STYLE_FILL_COL,applicationHelper,0,0,0,wxDefaultPosition,ColourViewSize() ); if(!(ccFillColour)) { goto dkctGUILayoutFinished; } ccFillColour->SetToolTip(sTexts[149]); szFill->Add( ccFillColour, 0, wxALIGN_CENTER_VERTICAL ); bStyleFillPattern = new wxBitmapButton( dkctGUIContentsPanel, ID_STYLE_FILL_PATT, xpm_wxd_fs01 ); if(!(bStyleFillPattern)) { goto dkctGUILayoutFinished; } bStyleFillPattern->SetToolTip(sTexts[150]); szFill->Add( bStyleFillPattern, 0, wxALIGN_CENTER_VERTICAL ); szBottomBar->Add( szFill, wxGBPosition(0, 10), wxGBSpan(1, 1), wxALIGN_CENTER_VERTICAL ); szBottomBar->Add(5, 5, wxGBPosition(1, 0), wxGBSpan(1, 1)); lText = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[140], wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT ); if(!(lText)) { goto dkctGUILayoutFinished; } szBottomBar->Add( lText, wxGBPosition(2, 0), wxGBSpan(1, 1), wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL ); szBottomBar->Add(5, 5, wxGBPosition(2, 1), wxGBSpan(1, 1)); szText = new wxBoxSizer( wxHORIZONTAL ); if(!(szText)) { goto dkctGUILayoutFinished; } cbStyleTextLaTeX = new wxCheckBox( dkctGUIContentsPanel, ID_STYLE_TEXT_LATEX, sTexts[151] ); if(!(cbStyleTextLaTeX)) { goto dkctGUILayoutFinished; } cbStyleTextLaTeX->SetToolTip(sTexts[152]); szText->Add( cbStyleTextLaTeX, 0, wxALIGN_CENTER_VERTICAL ); bStyleTextAlign = new wxBitmapButton( dkctGUIContentsPanel, ID_STYLE_TEXT_ALIGN, xpm_wxd_ts00 ); if(!(bStyleTextAlign)) { goto dkctGUILayoutFinished; } bStyleTextAlign->SetToolTip(sTexts[153]); szText->Add( bStyleTextAlign, 0, wxALIGN_CENTER_VERTICAL ); bStyleFontName = new wxBitmapButton( dkctGUIContentsPanel, ID_STYLE_TEXT_FONT, xpm_wxd_fn00 ); if(!(bStyleFontName)) { goto dkctGUILayoutFinished; } bStyleFontName->SetToolTip(sTexts[154]); szText->Add( bStyleFontName, 0, wxALIGN_CENTER_VERTICAL ); spFontSize = new wxSpinCtrl( dkctGUIContentsPanel, ID_STYLE_TEXT_SIZE, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, 1, 65535, 12 ); if(!(spFontSize)) { goto dkctGUILayoutFinished; } spFontSize->SetToolTip(sTexts[155]); szText->Add( spFontSize, 0, wxALIGN_CENTER_VERTICAL ); szText->Add(10, 10, 1); lRotation = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[416] ); if(!(lRotation)) { goto dkctGUILayoutFinished; } szText->Add( lRotation, 0, wxALIGN_CENTER_VERTICAL ); szText->Add(5, 5, 0); spRotation = new wxSpinCtrl( dkctGUIContentsPanel, ID_SPIN_ROTATION, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, -360, 360 ); if(!(spRotation)) { goto dkctGUILayoutFinished; } spRotation->SetToolTip(sTexts[417]); szText->Add( spRotation, 0, wxALIGN_CENTER_VERTICAL ); szBottomBar->Add( szText, wxGBPosition(2, 2), wxGBSpan(1, 10), wxALIGN_CENTER_VERTICAL|wxGROW ); verticalSizer->Add( szBottomBar ); verticalSizer->Add(10, 10, 0); szHintsBar = new wxBoxSizer( wxHORIZONTAL ); if(!(szHintsBar)) { goto dkctGUILayoutFinished; } tlMouseL = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[13] ); if(!(tlMouseL)) { goto dkctGUILayoutFinished; } szHintsBar->Add( tlMouseL ); msgMouseL = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sNlWx[7] ); if(!(msgMouseL)) { goto dkctGUILayoutFinished; } szHintsBar->Add( msgMouseL, 3 ); tlMouseM = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[14] ); if(!(tlMouseM)) { goto dkctGUILayoutFinished; } szHintsBar->Add( tlMouseM ); msgMouseM = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sNlWx[7] ); if(!(msgMouseM)) { goto dkctGUILayoutFinished; } szHintsBar->Add( msgMouseM, 3 ); tlMouseR = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[15] ); if(!(tlMouseR)) { goto dkctGUILayoutFinished; } szHintsBar->Add( tlMouseR ); msgMouseR = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sNlWx[7] ); if(!(msgMouseR)) { goto dkctGUILayoutFinished; } szHintsBar->Add( msgMouseR, 3 ); tlPosX = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[16] ); if(!(tlPosX)) { goto dkctGUILayoutFinished; } szHintsBar->Add( tlPosX ); msgPosX = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sNlWx[7] ); if(!(msgPosX)) { goto dkctGUILayoutFinished; } szHintsBar->Add( msgPosX, 2 ); tlPosY = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sTexts[17] ); if(!(tlPosY)) { goto dkctGUILayoutFinished; } szHintsBar->Add( tlPosY ); msgPosY = new wxStaticText( dkctGUIContentsPanel, wxID_ANY, sNlWx[7] ); if(!(msgPosY)) { goto dkctGUILayoutFinished; } szHintsBar->Add( msgPosY, 2 ); verticalSizer->Add( szHintsBar, 0, wxGROW ); mainSizer->Add( verticalSizer, 1, wxGROW ); mainSizer->Add(10, 10, 0); dkctGUIContentsPanel->SetSizer(mainSizer); SetIcon(wxdkdraw_icon); dkctGUILayoutOK = true; dkctGUILayoutFinished: #if wxUSE_STATUSBAR if(dkctGUILayoutOK) { CreateStatusBar(1); SetStatusText(sTexts[8]); } #endif if(dkctGUILayoutOK) { mainSizer->Fit(this); mainSizer->SetSizeHints(this); } #line 4743 "WxdkdrawFrame.wxc" if(dkctGUILayoutOK) { pShare = pAppHelp->GetWxsShare(); if (NULL != pShare) { wxString basedir(pShare); wxString subdir(libsubdir); basedir.Append(subdir); m_sLibraryDir = basedir; } ccLineColour->SetPlaceColourChooser(); ccFillColour->SetPlaceColourChooser(); ccLineColour->SetPalettePreferred(); ccFillColour->SetPalettePreferred(); SetTitle(sTexts[18]); cbGridUnit->SetSelection(0); cbGridBase->SetSelection(0); cbGridOnOff->SetValue(true); cbPH->SetValue(false); cbPointMoveMode->SetSelection(0); LoadConfiguration(); m_oStyle.aft = m_oStyle.abt = 0; m_oStyle.afl = m_oStyle.abl = m_iv[IVI_ARROWHEAD_LENGTH]; m_oStyle.afw = m_oStyle.abw = m_iv[IVI_ARROWHEAD_WIDTH]; m_oStyle.sl = m_iv[IVI_STYLE_VALUE]; m_oBorder.pa = NULL; m_oBorder.psti = NULL; m_oBorder.play = NULL; m_oBorder.lw = (uint16_t)2U; m_oBorder.fc[0] = m_iv[IVI_M_MOVE_RED]; m_oBorder.fc[1] = m_iv[IVI_M_MOVE_GREEN]; m_oBorder.fc[2] = m_iv[IVI_M_MOVE_BLUE]; m_oBorder.sc[0] = m_iv[IVI_M_MOVE_RED]; m_oBorder.sc[1] = m_iv[IVI_M_MOVE_GREEN]; m_oBorder.sc[2] = m_iv[IVI_M_MOVE_BLUE]; m_oBorder.cs = DK4_GRA_LC_BUTTED; m_oBorder.fs = WXD_FS_NONE; m_oBorder.ls = WXD_LS_SOLID; m_oBorder.sl = m_iv[IVI_STYLE_VALUE]; m_oBorder.js = WXD_LJ_MITERED; m_oBorder.ml = 8; m_oBorder.aft = m_oBorder.abt = 0; m_oBorder.afl = m_oBorder.abl = m_iv[IVI_ARROWHEAD_LENGTH]; m_oBorder.afw = m_oBorder.abw = m_iv[IVI_ARROWHEAD_WIDTH]; m_oBorder.mark = 0x00; m_oBorder.ot = WXD_OT_BOX; m_oBorder.det.b.r = (uint32_t)0UL; wxSize szscr = ::wxGetDisplayPPI(); drawco->m_ptRes.x = szscr.GetWidth(); drawco->m_ptRes.y = szscr.GetHeight(); #if 0 RestorePosition(); #endif /* Calculate factors later used for fish scale and other fill patterns */ m_dFactors[0] = sqrt(3.0); a1 = (216.1 * M_PI) / 180.0; a2 = (323.9 * M_PI) / 180.0; kappa = dk4gratool_kappa_for_angle(a2 - a1); m_dFactors[1] = (-1.0 * 9.0 * (a2 - a1) * kappa * sin(a1) * drawco->m_ptRes.x) / 72.0; m_dFactors[2] = (-1.0 * 9.0 * (a2 - a1) * kappa * cos(a1) * drawco->m_ptRes.x) / 72.0; m_dFactors[3] = (-1.0 * 9.0 * (a2 - a1) * kappa * sin(a2) * drawco->m_ptRes.x) / 72.0; m_dFactors[4] = (-1.0 * 9.0 * (a2 - a1) * kappa * cos(a2) * drawco->m_ptRes.x) / 72.0; a1 = M_PI; a2 = 2.0 * M_PI; kappa = dk4gratool_kappa_for_angle(a2 - a1); m_dFactors[5] = (-1.0 * 3.6 * (a2 - a1) * kappa * sin(a1) * drawco->m_ptRes.x) / 72.0; m_dFactors[6] = (-1.0 * 3.6 * (a2 - a1) * kappa * cos(a1) * drawco->m_ptRes.x) / 72.0; m_dFactors[7] = (-1.0 * 3.6 * (a2 - a1) * kappa * sin(a2) * drawco->m_ptRes.x) / 72.0; m_dFactors[8] = (-1.0 * 3.6 * (a2 - a1) * kappa * cos(a2) * drawco->m_ptRes.x) / 72.0; #ifndef __WXGTK__ /* Set focus to draw control (for mouse wheel) */ drawco->SetFocus(); #endif /* Transfer style information to GUI components */ StyleToGUI(false); } /* __CHANGE__ 012: Release resources allocated by local variables. */ #line 4836 "WxdkdrawFrame.wxc" } #line 4839 "WxdkdrawFrame.wxc" WxdkdrawFrame::~WxdkdrawFrame() { #line 4845 "WxdkdrawFrame.wxc" /* __CHANGE__ 011: Release resources allocated by further class members. */ if (NULL != m_pDrw) { wxdobj_drw_delete(m_pDrw); m_pDrw = NULL; } #line 4854 "WxdkdrawFrame.wxc" } /* vim: set ai sw=4 ts=4 : */