Recent

Author Topic: suggestion to implement a command window inside my application  (Read 2041 times)

apeoperaio

  • Sr. Member
  • ****
  • Posts: 293
suggestion to implement a command window inside my application
« on: October 26, 2017, 02:23:53 pm »
I am evaluating the possibility to add a "command window" to my application.
I would like to implement something similar to MATLAB command window.
I have an application dealing with particular objects.
The user can operates with this objects using the GUI, load objects, save objects, modify objects and so on.
What I would like to implement is a command window integrated with my GUI where the user instead of using the GUI menus can perform some operations typing them in the command window.
I would like to allow the user to choose between digiting commands in the command window or using the GUI.
e.g. instead of clicking on file --> Open the user should be able to write something like
myobjects = load_objects('filename')
obj1 = myobjetcs[1]
viewobject(obj1)
saveobjects(myobjects, 'filename')
....

I would like to allow the user to have a set of functions accessible using the command window.

Anyone already did something similar?
Any suggestion? What should I use? A scripting engine? An expression evaluator?


Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: suggestion to implement a command window inside my application
« Reply #1 on: October 26, 2017, 03:24:23 pm »
The UI is simple, CmdLine is easy to use and good to go. The interpreter / expression evaluator, whatever you decide to call it, is another thing. You can use and extend existing embeddable scripting languages (Lua, Python, Ruby, PascalScript, etc. you choose) or write your own.

hrayon

  • Full Member
  • ***
  • Posts: 121

apeoperaio

  • Sr. Member
  • ****
  • Posts: 293
Re: suggestion to implement a command window inside my application
« Reply #3 on: November 01, 2017, 10:45:18 am »
thanks for your suggestions. I will have a look.

 

TinyPortal © 2005-2018