diff --git a/lib/WebGUI/Image/Graph.pm b/lib/WebGUI/Image/Graph.pm index 91900db85..2f801d262 100644 --- a/lib/WebGUI/Image/Graph.pm +++ b/lib/WebGUI/Image/Graph.pm @@ -77,20 +77,24 @@ sub configurationForm { -name => 'graph_imageWidth', -value => $self->getImageWidth, -label => $i18n->get('image width'), + -hoverHelp => $i18n->get('image width description'), ); $f->integer( -name => 'graph_imageHeight', -value => $self->getImageHeight, -label => $i18n->get('image height'), + -hoverHelp => $i18n->get('image height description'), ); $f->color( -name => 'graph_backgroundColor', -value => $self->getBackgroundColor, -label => $i18n->get('background color'), + -hoverHelp => $i18n->get('background color description'), ); $f->selectBox( -name => 'graph_paletteId', -label => $i18n->get('palette'), + -hoverHelp => $i18n->get('palette description'), -value => [ $self->getPalette->getId ], -options=> $self->getPalette->getPaletteList, ); @@ -98,22 +102,26 @@ sub configurationForm { -name => 'graph_labelOffset', -value => $self->getLabelOffset, -label => $i18n->get('label offset'), + -hoverHelp => $i18n->get('label offset description'), ); $f->selectBox( -name => 'graph_labelFontId', -value => [ $self->getLabelFont->getId ], -label => $i18n->get('label font'), + -hoverHelp => $i18n->get('label font description'), -options=> WebGUI::Image::Font->getFontList($self->session), ); $f->color( -name => 'graph_labelColor', -value => $self->getLabelColor, -label => $i18n->get('label color'), + -hoverHelp => $i18n->get('label color description'), ); $f->integer( -name => 'graph_labelFontSize', -value => $self->getLabelFontSize, -label => $i18n->get('label fontsize'), + -hoverHelp => $i18n->get('label fontsize description'), ); return {'graph' => $f->printRowsOnly}; @@ -289,8 +297,7 @@ EOS -name => 'graphingPlugin', -options => \%graphingPlugins, -label => $i18n->get('graph type'), -#### hoverhelp - -hoverHelp => 'Graph type hover', + -hoverHelp => $i18n->get('graph type description'), -id => 'graphTypeSelector', -value => [ $config->{graph_formNamespace} ], -extras => 'onchange="switchGraphingFormElements(this, this.value)"' diff --git a/lib/WebGUI/Image/Graph/Pie.pm b/lib/WebGUI/Image/Graph/Pie.pm index ebf8b2ab6..8a5e42c26 100644 --- a/lib/WebGUI/Image/Graph/Pie.pm +++ b/lib/WebGUI/Image/Graph/Pie.pm @@ -314,27 +314,31 @@ sub configurationForm { -name => 'pie_radius', -value => $self->getRadius, -label => $i18n->get('radius'), + -hoverHelp => $i18n->get('radius description'), ); $f->float( -name => 'pie_topHeight', -value => $self->getTopHeight, -label => $i18n->get('pie height'), - -hoverHelp => 'Only has effect on 3d pies', + -hoverHelp => $i18n->get('pie height description'), ); $f->float( -name => 'pie_tiltAngle', -value => $self->getTiltAngle, -label => $i18n->get('tilt angle'), + -hoverHelp => $i18n->get('tilt angle description'), ); $f->float( -name => 'pie_startAngle', -value => $self->getStartAngle, -label => $i18n->get('start angle'), + -hoverHelp => $i18n->get('start angle description'), ); $f->selectBox( -name => 'pie_pieMode', -value => [ $self->getPieMode ], -label => $i18n->get('pie mode'), + -hoverHelp => $i18n->get('pie mode description'), -options => { normal => $i18n->get('normal'), stepped => $i18n->get('stepped'), @@ -344,26 +348,31 @@ sub configurationForm { -name => 'pie_shadedSides', -value => $self->hasShadedSides, -label => $i18n->get('shade sides'), + -hoverHelp => $i18n->get('shade sides description'), ); $f->float( -name => 'pie_stickLength', -value => $self->getStickLength, -label => $i18n->get('stick length'), + -hoverHelp => $i18n->get('stick length description'), ); $f->float( -name => 'pie_stickOffset', -value => $self->getStickOffset, -label => $i18n->get('stick offset'), + -hoverHelp => $i18n->get('stick offset description'), ); $f->color( -name => 'pie_stickColor', -value => $self->getStickColor, -label => $i18n->get('stick color'), + -hoverHelp => $i18n->get('stick color description'), ); $f->selectBox( -name => 'pie_labelPosition', -value => [ $self->getLabelPosition ], -label => $i18n->get('label position'), + -hoverHelp => $i18n->get('label position description'), -options=> { center => $i18n->get('center'), top => $i18n->get('top'), diff --git a/lib/WebGUI/Image/Graph/XYGraph.pm b/lib/WebGUI/Image/Graph/XYGraph.pm index 6fa0ce8e6..9abc7f121 100644 --- a/lib/WebGUI/Image/Graph/XYGraph.pm +++ b/lib/WebGUI/Image/Graph/XYGraph.pm @@ -53,41 +53,49 @@ sub configurationForm { name => 'xyGraph_chartWidth', value => $self->getChartWidth, label => $i18n->get('chart width'), + hoverHelp => $i18n->get('chart width description'), ); $f->integer( name => 'xyGraph_chartHeight', value => $self->getChartHeight, label => $i18n->get('chart height'), + hoverHelp => $i18n->get('chart height description'), ); $f->yesNo( name => 'xyGraph_drawLabels', value => $self->showLabels, label => $i18n->get('draw labels'), + hoverHelp => $i18n->get('draw labels description'), ); $f->yesNo( name => 'xyGraph_drawAxis', value => $self->showAxis, label => $i18n->get('draw axis'), + hoverHelp => $i18n->get('draw axis description'), ); $f->color( name => 'xyGraph_axisColor', value => $self->getAxisColor, label => $i18n->get('axis color'), + hoverHelp => $i18n->get('axis color description'), ); $f->yesNo( name => 'xyGraph_drawRulers', value => $self->showRulers, label => $i18n->get('draw rulers'), + hoverHelp => $i18n->get('draw rulers description'), ); $f->color( name => 'xyGraph_rulerColor', value => $self->getRulerColor, label => $i18n->get('ruler color'), + hoverHelp => $i18n->get('ruler color description'), ); $f->selectBox( name => 'xyGraph_drawMode', value => [ $self->getDrawMode ], label => $i18n->get('draw mode'), + hoverHelp => $i18n->get('draw mode description'), multiple=> 0, options => { sideBySide => 'Side by side', @@ -98,6 +106,7 @@ sub configurationForm { name => 'xyGraph_yGranularity', value => $self->getYGranularity, label => $i18n->get('y granularity'), + hoverHelp => $i18n->get('y granularity description'), ); $configForms->{'graph_xygraph'} = $f->printRowsOnly; diff --git a/lib/WebGUI/Image/Graph/XYGraph/Bar.pm b/lib/WebGUI/Image/Graph/XYGraph/Bar.pm index 62a398593..382569cb9 100644 --- a/lib/WebGUI/Image/Graph/XYGraph/Bar.pm +++ b/lib/WebGUI/Image/Graph/XYGraph/Bar.pm @@ -56,11 +56,13 @@ my $f = WebGUI::HTMLForm->new($self->session); name => 'xyGraph_bar_barSpacing', value => $self->getBarSpacing, label => $i18n->get('bar spacing'), + hoverHelp => $i18n->get('bar spacing description'), ); $f->float( name => 'xyGraph_bar_groupSpacing', value => $self->getGroupSpacing, label => $i18n->get('group spacing'), + hoverHelp => $i18n->get('group spacing description'), ); $configForms->{'graph_xygraph_bar'} = $f->printRowsOnly; diff --git a/lib/WebGUI/Operation/Graphics.pm b/lib/WebGUI/Operation/Graphics.pm index 90c060fc3..76d27f52c 100644 --- a/lib/WebGUI/Operation/Graphics.pm +++ b/lib/WebGUI/Operation/Graphics.pm @@ -51,12 +51,14 @@ sub _getColorForm { $f->text( -name => 'colorName', -value => $color->getName, + -hoverHelp => $i18n->get('color name description'), -label => $i18n->get('color name'), ); $f->color( -name => 'fillTriplet', -value => $color->getFillTriplet, -label => $i18n->get('fill color'), + -hoverHelp => $i18n->get('fill color description'), -maxlength => 7, -size => 7, ); @@ -65,6 +67,7 @@ sub _getColorForm { -value => [ $color->getFillAlpha ], -options=> \%transparencies, -label => $i18n->get('fill alpha'), + -hoverHelp => $i18n->get('fill alpha description'), -maxlength => 2, -editable=>0, -size => 2, @@ -73,6 +76,7 @@ sub _getColorForm { -name => 'strokeTriplet', -value => $color->getStrokeTriplet, -label => $i18n->get('stroke color'), + -hoverHelp => $i18n->get('stroke color description'), -maxlength => 7, -size => 7, ); @@ -81,6 +85,7 @@ sub _getColorForm { -value => [ $color->getStrokeAlpha ], -options=> \%transparencies, -label => $i18n->get('stroke alpha'), + -hoverHelp => $i18n->get('stroke alpha description'), -maxlength => 2, -editable => 0, -size => 2, @@ -235,10 +240,12 @@ sub www_editFont { -name => 'fontName', -value => $fontName, -label => $i18n->get('font name'), + -hoverHelp => $i18n->get('font name description'), ); $f->file( -name => 'fontFile', -label => $i18n->get('font file'), + -hoverHelp => $i18n->get('font file description'), ); $f->submit; @@ -293,6 +300,7 @@ sub www_editPalette { -name => 'paletteName', -value => $name, -label => $i18n->get('palette name'), + -hoverHelp => $i18n->get('palette name description'), ); $f->submit; $output = $f->print; diff --git a/lib/WebGUI/i18n/English/Graphics.pm b/lib/WebGUI/i18n/English/Graphics.pm index d0fbb2588..d96368654 100644 --- a/lib/WebGUI/i18n/English/Graphics.pm +++ b/lib/WebGUI/i18n/English/Graphics.pm @@ -25,34 +25,69 @@ our $I18N = { message => q|Color name|, lastUpdated => 1131394070, }, + 'color name description' => { + message => q|The name for this color.|, + lastUpdated => 1131394070, + }, 'fill color' => { message => q|Fill color|, lastUpdated => 1131394070, }, + 'fill color description' => { + message => q|The fill color for this color.|, + lastUpdated => 1131394070, + }, 'fill alpha' => { message => q|Fill transparency|, lastUpdated => 1131394070, }, + 'fill alpha description' => { + message => q|Defines the transparency of the fill color.|, + lastUpdated => 1131394070, + }, 'stroke color' => { message => q|Stroke color|, lastUpdated => 1131394070, }, + 'stroke color description' => { + message => q|The stroke color for this color.|, + lastUpdated => 1131394070, + }, 'stroke alpha' => { message => q|Stroke transparency|, lastUpdated => 1131394070, }, + 'stroke alpha description' => { + message => q|Defines the transparency of the stroke color.|, + lastUpdated => 1131394070, + }, 'font name' => { message => q|Font name|, lastUpdated => 1131394070, }, + 'font name description' => { + message => q|The label by which this font will appear in the +interface.|, + lastUpdated => 1131394070, + }, 'font file' => { message => q|Font file|, lastUpdated => 1131394070, }, + 'font file description' => { + message => q|The file containing the font. Must be a TrueType +(.ttf) font.|, + lastUpdated => 1131394070, + }, 'palette name' => { message => q|Palette name|, lastUpdated => 1131394070, }, + 'palette name description' => { + message => q|The label by which this palette will be shown in +the interface.|, + lastUpdated => 1131394070, + }, 'add color' => { message => q|Add a color to this palette.|, lastUpdated => 1131394070, diff --git a/lib/WebGUI/i18n/English/Image_Graph.pm b/lib/WebGUI/i18n/English/Image_Graph.pm index e0ee99ec1..d4d9ae3dc 100644 --- a/lib/WebGUI/i18n/English/Image_Graph.pm +++ b/lib/WebGUI/i18n/English/Image_Graph.pm @@ -5,6 +5,14 @@ our $I18N = { message => q|Image width|, lastUpdated => 1131394070, }, + 'image width description' => { + message => q|The width of the complete image in pixels.|, + lastUpdated => 1131394070, + }, + 'image height description' => { + message => q|The height of the complete image in pixels.|, + lastUpdated => 1131394070, + }, 'image height' => { message => q|Image height|, lastUpdated => 1131394070, @@ -13,30 +21,61 @@ our $I18N = { message => q|Background color|, lastUpdated => 1131394070, }, + 'background color description' => { + message => q|The background (fill) color of the image.|, + lastUpdated => 1131394070, + }, 'palette' => { message => q|Palette|, lastUpdated => 1131394070, }, + 'palette description' => { + message => q|The palette that should be used to draw the graph.|, + lastUpdated => 1131394070, + }, 'label offset' => { message => q|Label offset|, lastUpdated => 1131394070, }, + 'label offset description' => { + message => q|The distance between the labels and the graph +elements, like the axis or label sticks.|, + lastUpdated => 1131394070, + }, 'label font' => { - message => q|Font|, + message => q|Label font|, + lastUpdated => 1131394070, + }, + 'label font description' => { + message => q|The font that should be used to draw the labels.|, lastUpdated => 1131394070, }, 'label color' => { message => q|Label color|, lastUpdated => 1131394070, }, + 'label color description' => { + message => q|The color in which the labels should be drawn.|, + lastUpdated => 1131394070, + }, 'label fontsize' => { message => q|Font size|, lastUpdated => 1131394070, }, + 'label fontsize description' => { + message => q|The pointsize of the label font.|, + lastUpdated => 1131394070, + }, 'graph type' => { message => q|Graph type|, lastUpdated => 1131394070, }, + 'graph type description' => { + message => q|Use this option to select what kind of graph you +want to use.|, + lastUpdated => 1131394070, + }, + 'no graphing plugins' => { message => q|No graphing plugins found|, lastUpdated => 1146451962, diff --git a/lib/WebGUI/i18n/English/Image_Graph_Pie.pm b/lib/WebGUI/i18n/English/Image_Graph_Pie.pm index a7ce61503..0c68b40b1 100644 --- a/lib/WebGUI/i18n/English/Image_Graph_Pie.pm +++ b/lib/WebGUI/i18n/English/Image_Graph_Pie.pm @@ -5,38 +5,92 @@ our $I18N = { message => q|Radius|, lastUpdated => 1131394070, }, + 'radius description' => { + message => q|The radius of the pie in pixels.|, + lastUpdated => 1131394070, + }, + 'pie height' => { message => q|Pie height|, lastUpdated => 1131394070, }, - 'tilt angle' => { - message => q|Tilt angle (0 degrees for 2d pies|, + 'pie height description' => { + message => q|The thickness of the pie in pixel. Has no effect in +case of 2d pies.|, lastUpdated => 1131394070, }, + + 'tilt angle' => { + message => q|Tilt angle|, + lastUpdated => 1131394070, + }, + 'tilt angle description' => { + message => q|The angle the pi should be rotated over the x-axis. +Valid values are 0 - 90 degrees. Entering 0 degrees will result in a 2d pie.|, + lastUpdated => 1131394070, + }, + 'start angle' => { message => q|Start angle|, lastUpdated => 1131394070, }, + 'start angle description' => { + message => q|The initial angle in degrees the first pie slic +has. The east (rightmost) side of the pie is at 0 degrees.|, + lastUpdated => 1131394070, + }, + 'shade sides' => { message => q|Shade sides?|, lastUpdated => 1131394070, }, - 'stick length' => { - message => q|Stick length (0 to disable sticks)|, + 'shade sides description' => { + message => q|Setting this option to yes will cause the sides and +rim of pie to be drawn with a darker color than the top and bottom.|, lastUpdated => 1131394070, }, + + 'stick length' => { + message => q|Stick length|, + lastUpdated => 1131394070, + }, + 'stick length description' => { + message => q|The length og the stick connecting the labels and +the pie. To disable label sticks, please set this value to zero.|, + lastUpdated => 1131394070, + }, + 'stick offset' => { message => q|Stick offset|, lastUpdated => 1131394070, }, + 'stick offset description' => { + message => q|The distance between the label sticks and the pie +surface. If the stick length is set to 0, this option won't have any effect.|, + lastUpdated => 1131394070, + }, + 'stick color' => { message => q|Stick color|, lastUpdated => 1131394070, }, + 'stick color description' => { + message => q|The color of the label sticks.|, + lastUpdated => 1131394070, + }, + 'label position' => { message => q|Label position|, lastUpdated => 1131394070, }, + 'label position description' => { + message => q|The alignment of the labels (and label sticks) +relative to the sidewalls of the pie. Choose 'top' for alignment with the top +plane, 'bottom' for alignment with the bottom plane and 'center' for a position +in between.|, + lastUpdated => 1131394070, + }, + 'top' => { message => q|Top|, lastUpdated => 1131394070, @@ -49,10 +103,19 @@ our $I18N = { message => q|Center|, lastUpdated => 1131394070, }, + 'pie mode' => { message => q|Pie mode|, lastUpdated => 1131394070, }, + 'pie mode description' => { + message => q|The way the pie should be drawn. You can choose +between 'normal' and 'stepped'. Choosing the former option will result in a +vanilla pie, while the latter option will draw each consecutive pie slice with a +smaller thickness, causing a 'stairs' effect.|, + lastUpdated => 1131394070, + }, + 'normal' => { message => q|Normal|, lastUpdated => 1131394070, diff --git a/lib/WebGUI/i18n/English/Image_Graph_XYGraph.pm b/lib/WebGUI/i18n/English/Image_Graph_XYGraph.pm index 73b2bdfaf..e6300c6d5 100644 --- a/lib/WebGUI/i18n/English/Image_Graph_XYGraph.pm +++ b/lib/WebGUI/i18n/English/Image_Graph_XYGraph.pm @@ -5,38 +5,90 @@ our $I18N = { message => q|Chart width|, lastUpdated => 1131394070, }, + 'chart width description' => { + message => q|The width of the chart. Must be smaller than the +witdh of the image.|, + lastUpdated => 1131394070, + }, + 'chart height' => { message => q|Chart height|, lastUpdated => 1131394070, }, + 'chart height description' => { + message => q|The height of the chart. Must be smaller than the +height of the egraph|, + lastUpdated => 1131394070, + }, + 'draw labels' => { message => q|Draw labels|, lastUpdated => 1131394070, }, + 'draw labels description' => { + message => q|Set to yes if you want to show the labels.|, + lastUpdated => 1131394070, + }, + 'draw axis' => { message => q|Draw axis|, lastUpdated => 1131394070, }, + 'draw axis description' => { + message => q|Set to yes if you want to show the axis.|, + lastUpdated => 1131394070, + }, + 'draw rulers' => { message => q|Draw rulers|, lastUpdated => 1131394070, }, + 'draw rulers description' => { + message => q|Set to yes if you want to show the rulers.|, + lastUpdated => 1131394070, + }, + 'draw mode' => { message => q|Draw mode|, lastUpdated => 1131394070, }, + 'draw mode description' => { + message => q|Defines how the graph should be drawn. You can +choose between 'Side by side' and 'Stacked'. Side by side will draw bars from +diffrent datasets next to each other, giving a good comparison. If you choose +for stacked these bars are drawn on top of each other yielding a better +indication of the total value of them. For single dataset chart (like for +instance polls this option has no effect.|, + lastUpdated => 1131394070, + }, + 'y granularity' => { message => q|Vertical step size|, lastUpdated => 1131394070, }, + 'y granularity description' => { + message => q|Here you can define the distance between rulers and +labels on the y axis.|, + lastUpdated => 1131394070, + }, + 'axis color' => { message => q|Axis color|, lastUpdated => 1131394070, }, + 'axis color description' => { + message => q|The color for the axis.|, + lastUpdated => 1131394070, + }, + 'ruler color' => { message => q|Ruler color|, lastUpdated => 1131394070, }, + 'ruler color description' => { + message => q|The color for the rulers.|, + lastUpdated => 1131394070, + }, }; diff --git a/lib/WebGUI/i18n/English/Image_Graph_XYGraph_Bar.pm b/lib/WebGUI/i18n/English/Image_Graph_XYGraph_Bar.pm index d4d0a2c50..41f639486 100644 --- a/lib/WebGUI/i18n/English/Image_Graph_XYGraph_Bar.pm +++ b/lib/WebGUI/i18n/English/Image_Graph_XYGraph_Bar.pm @@ -5,10 +5,21 @@ our $I18N = { message => q|Bar spacing|, lastUpdated => 1131394070, }, + 'bar spacing description' => { + message => q|The distance in pixels between bars within one +group.|, + lastUpdated => 1131394070, + }, + 'group spacing' => { message => q|Group spacing|, lastUpdated => 1131394070, }, + 'group spacing description' => { + message => q|The distance in pixels between groups of bars.|, + lastUpdated => 1131394070, + }, + }; 1;