Naming Conventions

“Convention over configuration” is sometimes a very good idea. Especially as it saves you lots of configuration and testing for special cases.

There is a few important aspects of naming conventions for the toolbox that matter:

Tag names for GUI figures

Every GUI consists of one main figure, and this figure should have a unique tag that should start with the name of the main GUI window, followed by an underscore:

hMainFigure = figure('Tag','trEPRgui_infowindow',...
   ...
   );

At the same time, this tag should be identical with the function name.1) In this case, the above example would simplify to:

hMainFigure = figure('Tag',mfilename,...
   ...
   );

There are several advantages of this approach:

Names for GUI functions

Every GUI function should start with the name of the main GUI of the toolbox, followed by an underscore, e.g.:

Subwindows currently follow a slightly different scheme. Suppose you have a help window for the infowindow, then its name would be:

Please note: Whereas the main GUI function, here trEPRgui_infowindow(), resides inside the GUI directory of the toolbox (for details see the directory layout of the toolbox), the respective help window (and every other subwindow of this GUI) should reside inside the private directory within the GUI directory.

1)
Please note: Currently, this is not true for all GUI windows of the toolbox, but this is the way it should be.