QtOctave menus can be found in /usr/local/share/qtoctave/menus/ or can be located in user's home.
Menus in /usr/local/share/qtoctave/menus/ are read for all users.
Menus in user's home are read only for user.
Menus in user's home are located in ~/.qtoctave/menus/.
Every folder you put in menus folder represents menus. Inside of this folder you can put other menus.
Per example, if you you want put a new menu in help menu, you must create a new folder in menus folder called help. Inside of help folder you will put your new menus.
There are two ways of build menus: Simple and complete.
Only add to your menu folder a .menu file.There is and example of .menu file:
#This is an example of menu for qtoctaveLines starting with # are commens.
menu_name property is name of menu window.
input_label is label of input parameter and input property is name of this parameter in code. You can add all parameters you need.
output_label and output properties are similar with output parameters.
begin{command}...end{command} is code that will be passed to octave.
%i1% is 1st input parameter, %i2% is second input parameter,...
%o1% is 1st output parameter, %o2% is second output parameter,...
begin{help}...end{help} is this menu help. Help must be in html. This parameter is not needed.
Example: Easy integrate.menu has the next code:
#This is an example of menu for qtoctaveThis code creates this menu:
Is very similar. You can put an executable file in menus folder and QtOctave will put in menu. When user selects this menu, QtOctave executes this file and sends output to Octave.
Example:
You can put this code in file called Sombrero function:
#!/bin/cat
title('Sombrero');
sombrero(20);
Then put this file in menus folder and make it executable using:
chmod +x "Sombrero function"
This menu will appear in QtOctave and makes plot of sombrero function.
Putting icons to menus is very simple. If you have an ej.menu file (or other), you must put ej.menu.png icon in the same place that ej.menu. That is all.