* New uicontrols properties:
- borders: Used to set some decoration properties on "frame" uicontrols.
These decorations can be created and initialized with the createBorders
- and the createFontBorder functions.
+ and the createBorderFont functions.
- scrollable: Used to add scrolling capabilities on "frame" uicontrols.
- groupname: Used to group "radiobutton" and "checkbox" uicontrols for an easier
management.
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
-"Revision-Date: 2014-03-13 09:46+0100\n"
+"Revision-Date: 2014-03-13 10:58+0100\n"
# File: sci_gateway/c/gw_graphics.c, line: 131
# File: src/nographics/nographics.c, line: 83
#
# File: macros/createBorders.sci, line: 17
# File: macros/createConstraints.sci, line: 17
-# File: macros/createFontBorder.sci, line: 20
# File: macros/createLayoutOptions.sci, line: 17
#, c-format
msgid "%s: Wrong number of input argument(s): At least %d expected."
msgstr ""
#
-# File: macros/createFontBorder.sci, line: 30
-# File: macros/createFontBorder.sci, line: 36
-# File: macros/createFontBorder.sci, line: 47
-#, c-format
-msgid "%s: Wrong type for input argument #%d: A integer value expected.\n"
-msgstr ""
-
-#
-# File: macros/createFontBorder.sci, line: 40
-# File: macros/createFontBorder.sci, line: 51
-# File: macros/setPlotProperty.sci, line: 75
-# File: macros/setPlotProperty.sci, line: 307
-# File: macros/setSurfProperty.sci, line: 64
-# File: macros/setSurfProperty.sci, line: 402
-#, c-format
-msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
-msgstr ""
-
-#
# File: macros/datatips/datatipContextMenu.sci, line: 17
# File: macros/datatips/datatipContextMenu.sci, line: 25
# File: macros/datatips/datatipContextMenu.sci, line: 32
msgstr ""
#
+# File: macros/setPlotProperty.sci, line: 75
+# File: macros/setPlotProperty.sci, line: 307
+# File: macros/setSurfProperty.sci, line: 64
+# File: macros/setSurfProperty.sci, line: 402
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#
# File: macros/setPlotProperty.sci, line: 133
# File: macros/setPlotProperty.sci, line: 138
# File: macros/setPlotProperty.sci, line: 156
l($+1) = createBorders("etched", "blue", "red");
l($+1) = createBorders("etched", "lowered", "blue", "red");
//titled
-font1 = createFontBorder("Serif", 12, "bold");
-font2 = createFontBorder("Serif", 12, "normal", "italic");
+font1 = createBorderFont("Serif", 12, "bold");
+font2 = createBorderFont("Serif", 12, "normal", "italic");
l($+1) = createBorders("titled", "title");
l($+1) = createBorders("titled", createBorders("empty"));
l($+1) = createBorders("titled", createBorders("line", "blue"), "title");
l($+1) = createBorders("etched", "blue", "red");
l($+1) = createBorders("etched", "lowered", "blue", "red");
//titled
-font1 = createFontBorder("Serif", 12, "bold");
-font2 = createFontBorder("Serif", 12, "normal", "italic");
+font1 = createBorderFont("Serif", 12, "bold");
+font2 = createBorderFont("Serif", 12, "normal", "italic");
l($+1) = createBorders("titled", "title");
l($+1) = createBorders("titled", createBorders("empty"));
l($+1) = createBorders("titled", createBorders("line", "blue"), "title");
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="createBorderFont">
+ <refnamediv>
+ <refname>createBorderFont</refname>
+ <refpurpose>Create a font for an uicontrol border.</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ createBorderFont(fontname, fontsize)
+ createBorderFont(fontname, fontsize, fontweight)
+ createBorderFont(fontname, fontsize, fontweight, fontangle)
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>fontname</term>
+ <listitem>
+ <para>String</para>
+ <para>This argument sets the name of the font. This name must be valid according to available fonts.</para>
+ <para>When <literal>fontname</literal> is equal to <literal>""</literal>, the font used will be the Look and Feel default one.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>fontsize</term>
+ <listitem>
+ <para>Real scalar</para>
+ <para>This argument sets the size of the font in points.</para>
+ <para>When <literal>fontsize</literal> is equal to <literal>0</literal>, the font size used will be the Look and Feel default one.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>fontweight</term>
+ <listitem>
+ <para>{"normal"} | "bold"</para>
+ <para>This argument sets the weight of the font.</para>
+ <para>When <literal>fontweight</literal> is not given, the font weight used will be the Look and Feel default one.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>fontangle</term>
+ <listitem>
+ <para>{"normal"} | "italic"</para>
+ <para>This argument sets the slant of the font.</para>
+ <para>When <literal>fontangle</literal> is not given, the font angle used will be the Look and Feel default one.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ This function creates a "Border Font" to customize borders in <literal>frame</literal> uicontrols. See <link linkend="border_properties">border properties</link> for more details.
+ </para>
+ </refsection>
+ <refsection>
+ <title>History</title>
+ <revhistory>
+ <revision>
+ <revnumber>5.5.0</revnumber>
+ <revremark>
+ Function <function>createBorderFont</function> introduced.
+ </revremark>
+ </revision>
+ </revhistory>
+ </refsection>
+</refentry>
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
-"Revision-Date: 2014-03-13 09:46+0100\n"
+"Revision-Date: 2014-03-13 10:58+0100\n"
# File: sci_gateway/c/gw_gui.c, line: 89
#, c-format
#
# File: src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvasImpl.java, line: 70
# File: src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvasImpl.java, line: 150
-#, c-format
msgid ""
"WARNING: Due to your configuration limitations, Scilab switched in a mode "
"where mixing uicontrols and graphics is not available. Type %s for more "
# File: src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvasImpl.java, line: 71
# File: src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvasImpl.java, line: 151
# File: src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvasImpl.java, line: 161
-#, c-format
msgid "In some cases, %s fixes the issue"
msgstr ""
#
# File: src/java/org/scilab/modules/gui/bridge/filechooser/ExportOptionWindow.java, line: 75
-#, c-format
msgid "Option for %s format"
msgstr ""
#
# File: src/java/org/scilab/modules/gui/bridge/filechooser/ExportOptionWindow.java, line: 175
-#, c-format
msgid "An error occurred during export: %s"
msgstr ""
#
# File: src/java/org/scilab/modules/gui/bridge/filechooser/SwingScilabExportFileChooser.java, line: 282
-#, c-format
msgid ""
"Unrecognized extension '%s'.\n"
" Please specify a valid file format."
#
# File: src/java/org/scilab/modules/gui/tabfactory/ScilabTabFactory.java, line: 40
-#, c-format
msgid ""
"The tab with uuid %s cannot be restored.\n"
"Please report a bug with the previous message and in attaching the file %s."
#
# File: src/java/org/scilab/modules/gui/utils/ClosingOperationsManager.java, line: 56
-#, c-format
msgid "Are you sure you want to close %s ?"
msgstr ""
#
# File: src/java/org/scilab/modules/gui/utils/ClosingOperationsManager.java, line: 57
-#, c-format
msgid "Are you sure you want to close %s and %s ?"
msgstr ""
#
# File: src/java/org/scilab/modules/gui/utils/SciFileFilter.java, line: 82
-#, c-format
msgid "All %s files"
msgstr ""
msgstr ""
#
+# File: macros/createBorderFont.sci, line: 20
+#, c-format
+msgid "%s: Wrong number of input argument(s): At least %d expected."
+msgstr ""
+
+#
+# File: macros/createBorderFont.sci, line: 30
+# File: macros/createBorderFont.sci, line: 36
+# File: macros/createBorderFont.sci, line: 47
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A integer value expected.\n"
+msgstr ""
+
+#
+# File: macros/createBorderFont.sci, line: 40
+# File: macros/createBorderFont.sci, line: 51
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#
# File: macros/getvalue.sci, line: 75
# File: macros/tree_show.sci, line: 25
#, c-format
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
-function %FontBord_p(t)
- count = size(t(1), "*");
-
- printf("Font Border\n");
- printf(" Name : %s\n", sci2exp(t.name));
- printf(" Size : %s\n", sci2exp(t.size));
- printf(" Weight : %s\n", sci2exp(t.weight));
- printf(" Angle : %s\n", sci2exp(t.angle));
+function %BorderFo_p(t)
+ printf("Border Font\n");
+ printf("===========\n");
+ printf("Name = %s\n", sci2exp(t.name));
+ printf("Size = %s\n", sci2exp(t.size));
+ printf("Weight = %s\n", sci2exp(t.weight));
+ printf("Angle = %s\n", sci2exp(t.angle));
endfunction
//
//
-function ret = createFontBorder(varargin)
+function ret = createBorderFont(varargin)
[lhs,rhs]=argn(0)
fontangle = "normal";
fontweight = "normal";
if rhs < 2 then
- error(msprintf(gettext("%s: Wrong number of input argument(s): At least %d expected."), "createFontBorder", 1));
+ error(msprintf(gettext("%s: Wrong number of input argument(s): At least %d expected."), "createBorderFont", 1));
end
fontname = varargin(1);
if typeof(fontname) <> "string" | size(fontname, "*") <> 1 then
- error(999, msprintf(_("%s: Wrong type for input argument #%d: A string expected.\n"), "createBorders", 1));
+ error(999, msprintf(_("%s: Wrong type for input argument #%d: A string expected.\n"), "createBorderFont", 1));
end
fontsize = varargin(2);
if typeof(fontsize) <> "constant" | size(fontsize, "*") <> 1 then
- error(999, msprintf(_("%s: Wrong type for input argument #%d: A integer value expected.\n"), "createBorders", 2));
+ error(999, msprintf(_("%s: Wrong type for input argument #%d: A integer value expected.\n"), "createBorderFont", 2));
end
if rhs > 2 then
fontweight = varargin(3);
if typeof(fontweight) <> "string" | size(fontweight, "*") <> 1 then
- error(999, msprintf(_("%s: Wrong type for input argument #%d: A integer value expected.\n"), "createBorders", 3));
+ error(999, msprintf(_("%s: Wrong type for input argument #%d: A integer value expected.\n"), "createBorderFont", 3));
end
if fontweight <> ["normal", "bold"] then
- error(999, msprintf(_("%s: Wrong value for input argument #%d: %s or %s expected.\n"), "createBorders", 3, "normal", "bold"));
+ error(999, msprintf(_("%s: Wrong value for input argument #%d: %s or %s expected.\n"), "createBorderFont", 3, "normal", "bold"));
end
end
if rhs > 3 then
fontangle = varargin(4);
if typeof(fontangle) <> "string" | size(fontangle, "*") <> 1 then
- error(999, msprintf(_("%s: Wrong type for input argument #%d: A integer value expected.\n"), "createBorders", 4));
+ error(999, msprintf(_("%s: Wrong type for input argument #%d: A integer value expected.\n"), "createBorderFont", 4));
end
if fontangle <> ["normal", "italic"] then
- error(999, msprintf(_("%s: Wrong value for input argument #%d: %s or %s expected.\n"), "createBorders", 4, "normal", "italic"));
+ error(999, msprintf(_("%s: Wrong value for input argument #%d: %s or %s expected.\n"), "createBorderFont", 4, "normal", "italic"));
end
end
- ret = tlist(["FontBorder", "name", "size", "angle", "weight"], fontname, fontsize, fontangle, fontweight);
+ ret = tlist(["BorderFont", "name", "size", "angle", "weight"], fontname, fontsize, fontangle, fontweight);
-endfunction
\ No newline at end of file
+endfunction