This module helps building web applications that shall look and feel more or less like common desktop applications.
It is used by the ONO Media BookMaker, as well as by Morzino's Worksheet Maker for example.
load();
Deprecated, may be reused in future.
ONO::ToolBox::App->load( );
menu();
Deprecated, may be reused in future.
ONO::ToolBox::App->menu( );
render();
Render the entire application, using the different parts of the application as input.
ONO::ToolBox::App->render( $TOP, $LEFT, $MAIN, $RIGHT, $WIN, $INPUT, $BLK_ref );
script();
The main application JS code.
ONO::ToolBox::App->script( $SCRIPT );
sidebox();
Generates a single sidebox.
ONO::ToolBox::App->sidebox( $ID, $CLASS, $TITLE, $BOX );
returns: qq~<div id="ono_app_sidebox_$ID" class="$CLASS"> <div class="bg_black cole small"> <div class="ml10">$TITLE</div> </div> <div class="bg_paper bo p10"> $BOX </div> </div> ~
sidebox_script();
Generates JS code required by sideboxes.
ONO::ToolBox::App->sidebox_script( );
sideboxes();
Generates sideboxes.
ONO::ToolBox::App->sideboxes( $boxes_ref, $GLOBAL, $side_ref );
returns: $BOXES
tools();
Generates the application tools sidebar.
ONO::ToolBox::App->tools( $tools_ref );
returns: $TOOLS
tools_script();
Generates JS code required by the tools sidebar.
ONO::ToolBox::App->tools_script( );
topbar();
Generate an applications top bar.
-A disable if app_option var (link) is used
-d disabled
-D disble if vars_dir is empty
-F disble if vars_file is empty
-l link instead of hide/block (alternative for direct link: use link instead of ID)
-L link to app_option_XXX=1 instead of app_option=XXX (works with -l)
-u user required (disable if not logged in)
ONO::ToolBox::App->topbar( $tops_ref, $vars_ref );
returns: $TOP
topbar_script();
Generates JS code required by the topbar.
ONO::ToolBox::App->topbar_script( );
window();
Generates an application window.
-H unhide (hide is default)
-w wide (min 480px)
-W wider (min 640px)
ONO::ToolBox::App->window( $ID, $COLOR, $TITLE, $BOX, $switches );