Fwd: Attempt to add new menu items

1 view
Skip to first unread message

Harold Figueroa

unread,
Feb 6, 2008, 11:46:14 AM2/6/08
to xbat-...@googlegroups.com


Forwarded conversation
Subject: Attempt to add new menu items
------------------------

From: ron <rdu...@gmail.com>
Date: Feb 6, 2008 10:18 AM
To: xbat-upd...@googlegroups.com


Hey,

I am an undergrad working under a professor at Marquette University.
My project is to add a new menu item to the browser so that we can add
more filters to it. The only purpose doing so is that the professor
wanted the filters (for which he has the code already written) to be
segregated into a different group for ease of access.

Now this is where I come in. In my attempt to figure out a way to add
a new menu I learnt that a new m-file needs to be written and saved in
the following directory-

Core-Browser-Sound. (please correct me if I am wrong)

What I tried to do is go through all the codes for the existing menu
items and try to find a generic pattern which contains of all the
essentials required for making a new menu. I think I might have
figured out most of the essential code that goes into making a new
menu but I was wondering if you could map out the code (or may be a
flow chart or something) that I could verify to make sure that I am
right.

Also please tell me if writing a browser_(name of menu)_menu.m is the
only thing required to make a new menu or is there something more that
needs to be done (may be add additional lines of code to other m
files).

As I already told you that I am an undergraduate and have limited
experience in Matlab, definitely something that cannot be compared to
the talent that went into making this software. But with the help of
developers like you I hope to learn more!

Thanking You

Ron

----------
From: Harold Figueroa <harold....@gmail.com>
Date: Feb 6, 2008 11:44 AM
To: ron <rdu...@gmail.com>


Hello again,

I believe that I addressed most questions regarding the adding of new
menus in a previous response. Essentially 'this is not currently part
of the approach to extensibility. However, in the first paragraph of
this message you do present your motivation, and for this there is a
more encouraging response ...
To segregate a collection of filters to belong to a group you can give
them a common 'category'. This is set in the main filter extension
file, for example you can look at
'XBAT_ROOT\Extensions\Filters\Signal\Bandpass\bandpass_ext.m' the
contents of which are:

function ext = bandpass_ext

ext = extension_inherit(linear_base);

ext.short_description = 'bandpass signal filter';

ext.category = {ext.category{:}, 'Enhance', 'Frequency', 'Noise-Reduction'};

% ext.version = '';

% ext.author = '';

% ext.email = '';

% ext.url = '';

This filter will appear under the browser 'Filter>Enhance',
'Filter>Frequency', and 'Filter>Noise-Reduction' menus. If you make
say 'MY-PROJECT' a category, this will create this group and group the
members of this category. This seems, at least, like a partial
solution to your problem, however I can understand the desire to have
a 'project' oriented menu and consider it an interesting possibility.

Harold

Reply all
Reply to author
Forward
0 new messages