1 # The Ring Notepad Application (RNote)
2 # Author : Mahmoud Fayed <msfclipper@yahoo.com>
7 oProcessEditbox.setplaintext("")
8 oProcessText.setFocus(0)
9 chdir(JustFilePath(cFileName))
10 oProcess = RunProcess(cRingEXE,cFileName,cGetProcessData)
13 func RunToolConsole cFileName
15 System('start '+exefolder()+'ring "' + cFileName + '"' + nl)
17 cCode = 'cd $(dirname "'+cFileName+'") ; ' + ' ring "' + cFileName + '"' + nl
22 cFormFileName = cCurrentDir + "../formdesigner/formdesigner.ring"
23 RunTool(cFormFileName)
26 cAppFileName = cCurrentDir + "../ringrepl/repl.ring"
27 RunToolConsole(cAppFileName)
30 cAppFileName = cCurrentDir + "../ringrepl/replw.ring"
31 # RunTool will split parameters using "," as separator
32 if nDefaultStyle <= 3 or nDefaultStyle = STYLECOLOR_IMAGE2
33 cAppFileName += ",1" # Style Fusion White
35 cAppFileName += ",2" # Style Fusion Black
41 cCommand = 'start cmd /K "cd ' + cStartupFolder + '"'
43 cCommand = "gnome-terminal"
45 cCommand = "open /Applications/Utilities/Terminal.app"
52 if cActiveFileName != Null
53 cStartupFolder = justfilepath(cActiveFileName)
55 new QDesktopServices {
56 OpenURL(new qURL("file:///"+this.cStartupFolder))