Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
project manager updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Irwin1985 committed Sep 8, 2023
1 parent 66d2253 commit 2255de7
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 12 deletions.
Binary file added bmps/BUG16.BMP
Binary file not shown.
Binary file added bmps/BUG32.BMP
Binary file not shown.
Binary file added bmps/DOOR_OUT16.BMP
Binary file not shown.
Binary file added bmps/DOOR_OUT32.BMP
Binary file not shown.
Binary file added bmps/RELOAD16.BMP
Binary file not shown.
Binary file added bmps/RELOAD32.BMP
Binary file not shown.
Binary file added bmps/TABLE.BMP
Binary file not shown.
Binary file modified classes/magicmenu.VCT
Binary file not shown.
Binary file modified classes/magicmenu.vcx
Binary file not shown.
Binary file modified classes/test.VCT
Binary file not shown.
Binary file modified classes/test.vcx
Binary file not shown.
Binary file modified lang/languages.CDX
Binary file not shown.
Binary file modified lang/languages.FPT
Binary file not shown.
Binary file modified lang/languages.dbf
Binary file not shown.
38 changes: 26 additions & 12 deletions main.prg
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,20 @@ IF NOT PEMSTATUS(_screen, 'oProjectManager', 5)
_screen.AddProperty('oProjectManager', .null.)
ENDIF

IF NOT PEMSTATUS(_screen, 'oActiveProject', 5)
_screen.AddProperty('oActiveProject', .null.)
ENDIF

IF NOT PEMSTATUS(_screen, 'oMagicMenu', 5)
_screen.AddProperty('oMagicMenu', CREATEOBJECT("Empty"))
ADDPROPERTY(_screen.oMagicMenu, "cMainDir", ADDBS(JUSTPATH(SYS(16))))
ADDPROPERTY(_screen.oMagicMenu, "cDirBMP", ADDBS(JUSTPATH(SYS(16))) + 'bmps\')
ADDPROPERTY(_screen.oMagicMenu, "cVersion", "0.0.1")
ADDPROPERTY(_screen.oMagicMenu, "bDebugMode", .F.)
ENDIF

IF EMPTY(tcLanguage)
tcLanguage = "EN"
tcLanguage = "ES"
ENDIF

IF EMPTY(tnToolBarSize)
Expand All @@ -32,34 +44,36 @@ IF NOT INLIST(UPPER(tcLanguage), "ES", "EN")
MESSAGEBOX("Wrong value for parameter: tcLanguage." + CHR(13) + CHR(10) + "Please send 'ES' for Spanish or 'EN' for English.", 16, "Error")
RETURN
ENDIF
public loBarra, gcMainDir, gcVersion, glDebugMode, lcMenuClass
gcMainDir = ADDBS(SYS(5) + SYS(2003))
gcVersion = "0.0.1"

public loBarra
** DEBUG
glDebugMode = .t.
IF glDebugMode
CD f:\desarrollo\github\magicmenu\
SET DEFAULT TO f:\desarrollo\github\magicmenu\
ENDIF
*!* _screen.oMagicMenu.bDebugMode = .t.
*!* IF _screen.oMagicMenu.bDebugMode
*!* CD f:\desarrollo\github\magicmenu\
*!* SET DEFAULT TO f:\desarrollo\github\magicmenu\
*!* ENDIF
** DEBUG

CD (_screen.oMagicMenu.cMainDir)
SET DEFAULT TO (_screen.oMagicMenu.cMainDir)

SET PATH TO "classes;bmps;lang;libs" ADDITIVE
SET PROCEDURE TO "VFPStretch" ADDITIVE
SET CLASSLIB TO "MagicMenu" ADDITIVE

_screen.oHelper = CREATEOBJECT("Helper")
_screen.oLang = _screen.oHelper.oLanguage.loadLanguage(LOWER(tcLanguage))
_screen.oHelper = CREATEOBJECT("Helper")
_screen.oLang = _screen.oHelper.oLanguage.loadLanguage(LOWER(tcLanguage))
_screen.oVFPStretch = CREATEOBJECT("vfpStretch")

IF !DIRECTORY(gcMainDir + 'libs\')
IF !DIRECTORY(_screen.oMagicMenu.cMainDir + 'libs\')
_screen.oHelper.oSystem.ExtractDependencies()
ENDIF

* Load the wwDotNetBridge
DO wwDotNetBridge
InitializeDotnetVersion()
_screen.oBridge = getwwDotNetBridge()
LOCAL lcMenuClass
lcMenuClass = "ToolBarMenuX" + ALLTRIM(STR(tnToolBarSize))
loBarra = CREATEOBJECT(lcMenuClass)
loBarra.show()

0 comments on commit 2255de7

Please sign in to comment.