S c i e n t i f i c A r t s
WorkLife Requirements Purchase FAQ Documentation WLFW Blog ?
 

Programming Palette

The Palette

For the buttons and executable commands that are described n this section to work it is assumed that you have installed A WorkLife FrameWork™ and have loaded it.  This can be done either from the Load WorkLife Framework button on the supplied palette, by executing the command Needs["Diary`Diary`"], or by clicking on the following button:

"programmingpalette_1.gif"

By clicking on the on the Programming button on the All Palettes Palette you will open the Programming Palette.  You can also open the Programming Palette by executing:

"programmingpalette_2.gif"

This Palette provides some useful buttons for writing Mathematica code.

"programmingpalette_3.gif"

The Programming Palette

The Palette Buttons

For the buttons and executable commands that are described n this section to work it is assumed that you have installed A WorkLife FrameWork™ and have loaded it.  This can be done either from the Load WorkLife Framework button on the supplied palette, by executing the command Needs["Diary`Diary`"], or by clicking on the following button:

"programmingpalette_4.gif"

"programmingpalette_5.gif"

This set of buttons places the selected material in the InputNotebook in the indicated template which mostly consists of bracketing elements.

As examples of each, assume that the text "parameter" is selected in an input cell:

"programmingpalette_6.gif"

Then, respectively clicking on one of each of the buttons will would produce,

"programmingpalette_7.gif"

"programmingpalette_8.gif"

"programmingpalette_9.gif"

"programmingpalette_10.gif"

"programmingpalette_11.gif"

"programmingpalette_12.gif"

"programmingpalette_13.gif"

"programmingpalette_14.gif"

This pair of buttons places the selected material in the InputNotebook in the indicated template: the first is the template for a usage message and the second one is to create a comment.

As examples of each assume that the text "parameter" is selected in an input cell:

"programmingpalette_15.gif"

Then, respectively clicking on one of each of the buttons will would produce,

"programmingpalette_16.gif"

"programmingpalette_17.gif"

"programmingpalette_18.gif"

The last one is useful for accessing the data used by a Computation that was recently performed by the ComputationPalette:

["ComputationType"] holds the raw data of data cell of type "ComputationType" after ComputeDiaryNotebook has been executed.  If ComputeDiaryNotebook is acting on multiple ComputationTypes then [{"ComputationType1","ComputationType2",...}] holds that raw data.  

"programmingpalette_19.gif"

This button places the selected material in the InputNotebook into a template for passing an option into a function.

"programmingpalette_20.gif"

This pair of buttons places the selected material in the InputNotebook in the indicated template: the first  Flattens the contents of a List and the second one is a template for a function definition using a Module.

"programmingpalette_21.gif"

The Paste Function Template button pastes a function template into the current InputNotebook at the insertion point.

The Next ■ button moves the selection to the next instance of □ in the current InputNotebook.

"programmingpalette_22.gif"

This set of three buttons provides an easy way for the user to accumulate a number of distinct selections from a notebook or notebooks into an internal variable.  

The Reset button removes any previously accumulated items from the internal variable.

Each time the Gather button is clicked, the currently selected material in the current InputNotebook is appended to this internal list.

When the Paste button is clicked, the material in this internal list is pasted to the current insertion point in the current InputNotebook.

Copyright ©, 2005→2009 Scientific Arts, LLC. All rights  reserved.

Copyright ©, 2005-2009 Scientific Arts, LLC