summaryrefslogtreecommitdiff
path: root/modules/scinotes/etc
diff options
context:
space:
mode:
authorShashank2017-05-29 12:40:26 +0530
committerShashank2017-05-29 12:40:26 +0530
commit0345245e860375a32c9a437c4a9d9cae807134e9 (patch)
treead51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/scinotes/etc
downloadscilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip
CMSCOPE changed
Diffstat (limited to 'modules/scinotes/etc')
-rwxr-xr-xmodules/scinotes/etc/XConfiguration-scinotes.xml27
-rwxr-xr-xmodules/scinotes/etc/XConfiguration-scinotes.xsl563
-rwxr-xr-xmodules/scinotes/etc/keysConfiguration.xml80
-rwxr-xr-xmodules/scinotes/etc/scinotes.quit8
-rwxr-xr-xmodules/scinotes/etc/scinotes.start10
-rwxr-xr-xmodules/scinotes/etc/scinotesConfiguration.xml43
-rwxr-xr-xmodules/scinotes/etc/scinotesGUIConfiguration.xml200
7 files changed, 931 insertions, 0 deletions
diff --git a/modules/scinotes/etc/XConfiguration-scinotes.xml b/modules/scinotes/etc/XConfiguration-scinotes.xml
new file mode 100755
index 000000000..7fe953acb
--- /dev/null
+++ b/modules/scinotes/etc/XConfiguration-scinotes.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<scinotes title="Scinotes">
+ <body>
+ <scinotes-preferences restart-reopen="true" add-line-termination="true" number-of-recently-open="5" encoding="utf-8" eol="" scinotes="true" cmd="" macro="" external-cmd="true" complete-at-eol="false"/>
+ </body>
+ <display title="_(Display)">
+ <body>
+ <scinotes-display highlight-current-line="false" current-line-color="#FACADE" show-line-numbers="true" wrap-lines="true" keywords-colorization="true" highlight-brackets="true" brackets-color="#E40087" brackets-highlightment="Framed" brackets-onmouseover="true" highlight-keywords="true" keywords-color="#FFF3D2" keywords-highlightment="Filled" keywords-onmouseover="true" whereami="true" tab-size="4" tab-representation="chevrons" use-spaces="true" indent-size="4" automatic-indent="true" auto-complete-openers="true" auto-complete-keywords="true" background-color="#FFFFFF" caret-color="#000000"/>
+ </body>
+ </display>
+ <header title="_(Header)">
+ <body>
+ <scinotes-header enable="false"><![CDATA[// Copyright (C) {$current-year} - Corporation - Author
+//
+// About your license if you have any
+//
+// Date of creation: {$current-date}
+//
+]]></scinotes-header>
+ </body>
+ </header>
+ <autosave title="_(Autosave)">
+ <body>
+ <scinotes-autosave enable="true" save-every="5" automatic-delete="true" append-filename="true" append-with="~" replace-with="tmp" source-flag="true" single-directory=""/>
+ </body>
+ </autosave>
+</scinotes>
diff --git a/modules/scinotes/etc/XConfiguration-scinotes.xsl b/modules/scinotes/etc/XConfiguration-scinotes.xsl
new file mode 100755
index 000000000..500ad45e3
--- /dev/null
+++ b/modules/scinotes/etc/XConfiguration-scinotes.xsl
@@ -0,0 +1,563 @@
+<?xml version='1.0' encoding='utf-8'?>
+
+<xsl:stylesheet version ="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="scinotes-preferences">
+ <Title text="_(Editor)">
+ <VBox>
+ <HBox>
+ <Checkbox checked="{@scinotes}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Use Scinotes)">
+ <actionPerformed choose="scinotes">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+ <Glue/>
+ </HBox>
+
+ <xsl:variable name="enable">
+ <xsl:choose>
+ <xsl:when test="@scinotes='true'">
+ <xsl:text>false</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>true</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <Grid>
+ <Radiobutton value="{@external-cmd}" expected-value="true" listener="ActionListener" text="_(External editor: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{$enable}">
+ <actionPerformed choose="external-cmd">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+ <FileSelector gridx="2" gridy="1" weightx="1" anchor="above_baseline"
+ listener="EntryListener"
+ href="{@cmd}"
+ dir-selection="false"
+ check-entry="false">
+ <xsl:attribute name="enable">
+ <xsl:if test="@scinotes='false' and @external-cmd='true'">
+ <xsl:text>true</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+ <entryChanged choose="cmd">
+ <xsl:call-template name="context"/>
+ </entryChanged>
+ </FileSelector>
+ <Label gridx="2" gridy="2" text="_((Don't forget to quote path containing white spaces))">
+ <xsl:attribute name="enable">
+ <xsl:if test="@scinotes='false' and @external-cmd='true'">
+ <xsl:text>true</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+ </Label>
+ <Panel height="5" gridx="1" gridy="3">
+ <VSpace height="5"/>
+ </Panel>
+ <Radiobutton value="{@external-cmd}" expected-value="false" listener="ActionListener" text="_(Scilab command: )" gridx="1" gridy="4" fill="none" weightx="0" anchor="west" enable="{$enable}">
+ <actionPerformed choose="external-cmd">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+ <Entry gridx="2" gridy="4" weightx="1" anchor="above_baseline"
+ listener="EntryListener"
+ text="{@macro}">
+ <xsl:attribute name="enable">
+ <xsl:if test="@scinotes='false' and @external-cmd='false'">
+ <xsl:text>true</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+ <entryChanged choose="macro">
+ <xsl:call-template name="context"/>
+ </entryChanged>
+ </Entry>
+ </Grid>
+ </VBox>
+ </Title>
+ <VSpace height="10"/>
+ <Title text="_(Scinotes General settings)">
+ <Grid>
+ <Panel gridx="1" gridy="1" gridwidth="3">
+ <xsl:call-template name="BooleanCheckBox">
+ <xsl:with-param name="attr-name" select="'restart-reopen'"/>
+ <xsl:with-param name="text" select="'_(Restore previous session on start-up)'"/>
+ </xsl:call-template>
+ </Panel>
+
+ <Panel gridx="1" gridy="2" gridwidth="3">
+ <xsl:call-template name="BooleanCheckBox">
+ <xsl:with-param name="attr-name" select="'add-line-termination'"/>
+ <xsl:with-param name="text" select="'_(Add carriage return at the end of the file.)'"/>
+ </xsl:call-template>
+ </Panel>
+
+ <Label gridx="1" gridy="3" weightx="0" text="_(Number of recently opened files to display: )"/>
+ <Panel gridx="2" gridy="3" gridheight="2" fill="both"/>
+ <NumericalSpinner gridx="3"
+ gridy="3"
+ weightx="0"
+ min-value = "0"
+ increment = "1"
+ length = "4"
+ listener = "ActionListener"
+ value = "{@number-of-recently-open}">
+ <actionPerformed choose="number-of-recently-open">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </NumericalSpinner>
+
+ <Label gridx="1" gridy="4" weightx="0" text="_(Default file encoding: )"/>
+
+ <Panel gridx="3" gridy="4">
+ <xsl:call-template name="Select">
+ <xsl:with-param name="among">
+ <option encoding="utf-8"/>
+ <option encoding="iso-8859-1"/>
+ <option encoding="windows-1252"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </Panel>
+
+ <Label gridx="1" gridy="5" weightx="0" text="_(Default End-Of-Line: )"/>
+
+ <Select gridx="3" gridy="5" listener="ActionListener">
+ <actionPerformed choose="eol">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ <xsl:variable name="eol">
+ <xsl:choose>
+ <xsl:when test="@eol=''">
+ <xsl:choose>
+ <xsl:when test="$OS='Windows'">
+ <xsl:text>Windows (CR+LF)</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>Unix (LF)</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@eol"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <option value="Unix (LF)">
+ <xsl:if test="$eol='Unix (LF)'">
+ <xsl:attribute name="selected">selected</xsl:attribute>
+ </xsl:if>
+ </option>
+ <option value="Windows (CR+LF)">
+ <xsl:if test="$eol='Windows (CR+LF)'">
+ <xsl:attribute name="selected">selected</xsl:attribute>
+ </xsl:if>
+ </option>
+ </Select>
+ </Grid>
+ </Title>
+ <VSpace height="10"/>
+ <Title text="_(Completion)">
+ <Checkbox checked="{@complete-at-eol}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Auto-complete brackets when cursor is at the end of a line)">
+ <actionPerformed choose="complete-at-eol">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+ </Title>
+ </xsl:template>
+
+
+ <xsl:template match="scinotes-display">
+ <Title text="_(General display options)">
+ <Grid>
+ <Checkbox checked="{@highlight-current-line}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight current line: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="highlight-current-line">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+ <Panel gridx="2" gridy="1" weightx="1"/>
+ <Panel gridx="3" gridy="1" weightx="1"/>
+ <Color color="{@current-line-color}" listener="ActionListener" gridx="4" gridy="1" weightx="0" enable="{@highlight-current-line}">
+ <actionPerformed choose="current-line-color">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Color>
+
+ <Checkbox checked="{@show-line-numbers}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Show line numbers: )" gridx="1" gridy="2" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="show-line-numbers">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+
+ <Radiobutton value="{@whereami}" expected-value="true" listener="ActionListener" text="_(Local numbering)" gridx="2" gridy="2" fill="none" weightx="0" anchor="west" enable="{@show-line-numbers}">
+ <actionPerformed choose="whereami">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+
+ <Radiobutton value="{@whereami}" expected-value="false" listener="ActionListener" text="_(Normal)" gridx="3" gridy="2" gridwidth="2" fill="none" weightx="0" anchor="west" enable="{@show-line-numbers}">
+ <actionPerformed choose="whereami">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+
+ <Checkbox checked="{@wrap-lines}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Wrap lines)" gridx="1" gridy="3" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="wrap-lines">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+
+ <Label text="_(Background color: )" gridx="1" gridy="4" weightx="0"/>
+ <Color color="{@background-color}" listener="ActionListener" gridx="2" gridy="4" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="background-color">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Color>
+
+ <Label text="_(Cursor color: )" gridx="3" gridy="4" weightx="0"/>
+ <Color color="{@caret-color}" listener="ActionListener" gridx="4" gridy="4" weightx="0" fill="none" anchor="east">
+ <actionPerformed choose="caret-color">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Color>
+ </Grid>
+ </Title>
+
+ <VSpace height="10"/>
+
+ <Title text="_(Keywords)">
+ <Grid>
+ <Checkbox checked="{@keywords-colorization}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Enable keywords colorization)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="keywords-colorization">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+
+ <Panel gridx="2" gridy="1" weightx="1"/>
+ <Link gridx="3" gridy="1" weightx="0" listener="MouseListener" text="_(Set syntax Colors)" enable="{@keywords-colorization}">
+ <mouseClicked set="path" value="colors" context="/" enable="{@keywords-colorization}"/>
+ </Link>
+ <Checkbox checked="{@highlight-brackets}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight corresponding brackets)" gridx="1" gridy="2" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="highlight-brackets">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+ <Grid gridx="1" gridy="3" gridwidth="3" ipadx="10">
+ <Label gridx="1" gridy="1" weightx="0" text="_(Color: )" enable="{@highlight-brackets}"/>
+ <Color color="{@brackets-color}" listener="ActionListener" gridx="2" gridy="1" weightx="0" enable="{@highlight-brackets}">
+ <actionPerformed choose="brackets-color">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Color>
+ <Panel gridx="3" gridy="1" weightx="1"/>
+ <Checkbox checked="{@brackets-onmouseover}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight on mouse over)" gridx="4" gridy="1" fill="none" weightx="0" anchor="west" enable="{@highlight-brackets}">
+ <actionPerformed choose="brackets-onmouseover">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+ <Panel gridx="5" gridy="1" weightx="1"/>
+ <Label gridx="6" gridy="1" weightx="0" text="_(Style: )" enable="{@highlight-brackets}"/>
+ <Select gridx="7" gridy="1" listener="ActionListener" enable="{@highlight-brackets}">
+ <xsl:variable name="bh" select="@brackets-highlightment"/>
+ <actionPerformed choose="brackets-highlightment">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ <option value="_(Filled)" key="Filled">
+ <xsl:if test="'Filled'=$bh">
+ <xsl:attribute name="selected">selected</xsl:attribute>
+ </xsl:if>
+ </option>
+ <option value="_(Framed)" key="Framed">
+ <xsl:if test="'Framed'=$bh">
+ <xsl:attribute name="selected">selected</xsl:attribute>
+ </xsl:if>
+ </option>
+ <option value="_(Underlined)" key="Underlined">
+ <xsl:if test="'Underlined'=$bh">
+ <xsl:attribute name="selected">selected</xsl:attribute>
+ </xsl:if>
+ </option>
+ </Select>
+ </Grid>
+
+ <Checkbox checked="{@highlight-keywords}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight corresponding keywords (e.g. if ... end))" gridx="1" gridy="4" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="highlight-keywords">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+
+ <Grid gridx="1" gridy="5" gridwidth="3" ipadx="10">
+ <Label gridx="1" gridy="1" weightx="0" text="_(Color: )" enable="{@highlight-keywords}"/>
+ <Color color="{@keywords-color}" listener="ActionListener" gridx="2" gridy="1" weightx="0" enable="{@highlight-keywords}">
+ <actionPerformed choose="keywords-color">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Color>
+ <Panel gridx="3" gridy="1" weightx="1"/>
+ <Checkbox checked="{@keywords-onmouseover}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight on mouse over)" gridx="4" gridy="1" fill="none" weightx="0" anchor="west" enable="{@highlight-keywords}">
+ <actionPerformed choose="keywords-onmouseover">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+ <Panel gridx="5" gridy="1" weightx="1"/>
+ <Label gridx="6" gridy="1" weightx="0" text="_(Style: )" enable="{@highlight-keywords}"/>
+ <Select gridx="7" gridy="1" listener="ActionListener" enable="{@highlight-keywords}">
+ <xsl:variable name="kh" select="@keywords-highlightment"/>
+ <actionPerformed choose="keywords-highlightment">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ <option value="_(Filled)" key="Filled">
+ <xsl:if test="'Filled'=$kh">
+ <xsl:attribute name="selected">selected</xsl:attribute>
+ </xsl:if>
+ </option>
+ <option value="_(Framed)" key="Framed">
+ <xsl:if test="'Framed'=$kh">
+ <xsl:attribute name="selected">selected</xsl:attribute>
+ </xsl:if>
+ </option>
+ </Select>
+ </Grid>
+ </Grid>
+ </Title>
+
+ <VSpace height="10"/>
+
+ <Title text="_(Tabulation and Indentation)">
+ <Grid>
+ <Label text="_(Tabulation size: )" gridx="1" gridy="1" weightx="0"/>
+ <NumericalSpinner gridx="2"
+ gridy="1"
+ weightx="0"
+ min-value = "0"
+ increment = "1"
+ length = "3"
+ listener = "ActionListener"
+ value = "{@tab-size}">
+ <actionPerformed choose="tab-size">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </NumericalSpinner>
+
+ <Panel gridx="3" gridy="1" weightx="1"/>
+
+ <Checkbox checked="{@use-spaces}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Use space)" gridx="4" gridy="1" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="use-spaces">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+
+ <xsl:variable name="enable">
+ <xsl:choose>
+ <xsl:when test="@use-spaces='true'">
+ <xsl:text>false</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>true</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <Label text="_(Representation: )" gridx="1" gridy="2" weightx="0" enable="{$enable}"/>
+
+ <Radiobutton value="{@tab-representation}" expected-value="chevrons" listener="ActionListener" text="_(Chevrons)" gridx="2" gridy="2" fill="none" weightx="0" anchor="west" enable="{$enable}">
+ <actionPerformed choose="tab-representation">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+
+ <Radiobutton value="{@tab-representation}" expected-value="hrule" listener="ActionListener" text="_(Horizontal rule)" gridx="3" gridy="2" fill="none" weightx="0" anchor="center" enable="{$enable}">
+ <actionPerformed choose="tab-representation">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+
+ <Radiobutton value="{@tab-representation}" expected-value="vrule" listener="ActionListener" text="_(Vertical rule)" gridx="4" gridy="2" fill="none" weightx="0" anchor="west" enable="{$enable}">
+ <actionPerformed choose="tab-representation">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+
+ <Checkbox checked="{@automatic-indent}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Enable auto indentation)" gridx="1" gridy="3" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="automatic-indent">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+
+ <Label gridy="4" text="_(Indent size: )" enable="{@automatic-indent}"/>
+
+ <NumericalSpinner gridx="2"
+ gridy="4"
+ weightx="0"
+ min-value = "0"
+ increment = "1"
+ length = "3"
+ enable="{@automatic-indent}"
+ listener = "ActionListener"
+ value = "{@indent-size}">
+ <actionPerformed choose="indent-size">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </NumericalSpinner>
+ </Grid>
+ </Title>
+ </xsl:template>
+
+
+
+ <xsl:template match="scinotes-autosave">
+ <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Enable autosave in Scinotes)">
+ <actionPerformed choose="enable">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+
+ <VSpace height="10"/>
+
+ <Title text="_(Save options)">
+ <Grid>
+ <Label gridx="1" gridy="1" weightx="0" anchor="west" text="_(Save every )" enable="{@enable}"/>
+ <NumericalSpinner gridx="2"
+ gridy="1"
+ weightx="0"
+ min-value = "1"
+ increment = "1"
+ length = "4"
+ listener = "ActionListener"
+ enable = "{@enable}"
+ value = "{@save-every}">
+ <actionPerformed choose="save-every">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </NumericalSpinner>
+
+ <Label gridx="3" gridy="1" weightx="0" anchor="west" text="_( minutes )" enable="{@enable}"/>
+
+ <Panel gridx="4" gridy="1" gridheight="1" fill="both"/>
+ </Grid>
+ </Title>
+
+ <VSpace height="10"/>
+
+ <Title text="_(Close options)">
+ <Checkbox checked="{@automatic-delete}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Delete automatically saved files)" enable="{@enable}">
+
+ <actionPerformed choose="automatic-delete">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+ </Title>
+
+ <VSpace height="10"/>
+
+ <Title text="_(Filename)">
+ <Grid>
+ <Radiobutton value="{@append-filename}" expected-value="true" listener="ActionListener" text="_(Append filename with: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{@enable}">
+ <actionPerformed choose="append-filename">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+ <Panel gridx="2" gridy="1" gridheight="1" fill="both"/>
+ <Entry gridx="3" gridy="1" weightx="1" anchor="above_baseline"
+ listener="EntryListener"
+ text="{@append-with}">
+ <xsl:attribute name="enable">
+ <xsl:if test="@enable='true' and @append-filename='true'">
+ <xsl:text>true</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+ <entryChanged choose="append-with">
+ <xsl:call-template name="context"/>
+ </entryChanged>
+ </Entry>
+ <Label gridx="3" gridy="2" text="_((%date can be used to be replaced by the current date))">
+ <xsl:attribute name="enable">
+ <xsl:if test="@enable='true' and @append-filename='true'">
+ <xsl:text>true</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+ </Label>
+
+ <Radiobutton value="{@append-filename}" expected-value="false" listener="ActionListener" text="_(Replace extension with: )" gridx="1" gridy="3" fill="none" weightx="0" anchor="west" enable="{@enable}">
+ <actionPerformed choose="append-filename">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+
+ <Entry gridx="3" gridy="3" weightx="1" anchor="above_baseline"
+ listener="EntryListener"
+ text="{@replace-with}">
+ <xsl:attribute name="enable">
+ <xsl:if test="@enable='true' and @append-filename='false'">
+ <xsl:text>true</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+ <entryChanged choose="replace-with">
+ <xsl:call-template name="context"/>
+ </entryChanged>
+ </Entry>
+ </Grid>
+ </Title>
+
+ <VSpace height="10"/>
+
+ <Title text="_(Location)">
+ <Grid>
+ <Radiobutton value="{@source-flag}" expected-value="true" listener="ActionListener" text="_(Source file directory)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{@enable}">
+ <actionPerformed choose="source-flag">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+
+ <Radiobutton value="{@source-flag}" expected-value="false" listener="ActionListener" text="_(Single directory)" gridx="1" gridy="2" fill="none" weightx="0" anchor="west" enable="{@enable}">
+ <actionPerformed choose="source-flag">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Radiobutton>
+
+ <Panel gridx="2" gridy="2" gridheight="1" fill="both"/>
+
+ <FileSelector gridx="3" gridy="2" href="{@single-directory}" mask="*"
+ desc="_(Choose an autosave directory)"
+ dir-selection = "true"
+ check-entry = "false"
+ listener="EntryListener">
+ <xsl:attribute name="enable">
+ <xsl:if test="@enable='true' and @source-flag='false'">
+ <xsl:text>true</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+ <entryChanged choose="single-directory">
+ <xsl:call-template name="context"/>
+ </entryChanged>
+ </FileSelector>
+ </Grid>
+ </Title>
+ </xsl:template>
+
+ <xsl:template match="scinotes-header">
+ <Title text="_(Default header)">
+ <Grid>
+ <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Add a default header to new file)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">
+ <actionPerformed choose="enable">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+
+ <Panel gridx="2" gridy="1" gridheight="1" fill="both"/>
+
+ <TextArea gridx="1" gridy="2" weightx="1" gridwidth="2" weighty="0" anchor="west"
+ editable="true"
+ rows="15"
+ scroll="true"
+ listener="EntryListener"
+ enable="{@enable}">
+ <xsl:attribute name="text">
+ <xsl:value-of select="string(child::node()[1])" disable-output-escaping="yes"/>
+ </xsl:attribute>
+ <entryChanged choose-child="1">
+ <xsl:call-template name="context"/>
+ </entryChanged>
+ </TextArea>
+ </Grid>
+ </Title>
+ </xsl:template>
+</xsl:stylesheet>
diff --git a/modules/scinotes/etc/keysConfiguration.xml b/modules/scinotes/etc/keysConfiguration.xml
new file mode 100755
index 000000000..ef190f8a7
--- /dev/null
+++ b/modules/scinotes/etc/keysConfiguration.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+<properties>
+ <comment>
+ Map between action and keys
+ If no path is given, org.scilab.modules.scinotes.actions will be chosen
+ </comment>
+
+ <entry key="ActivateHelpOnTypingForOpenersAction">OSSCKEY H</entry>
+ <entry key="ActivateHelpOnTypingForKeywordsAction">OSSCKEY shift H</entry>
+ <entry key="GenerateHelpFromFunctionAction">OSSCKEY shift G</entry>
+ <entry key="TabifyAction">TAB</entry>
+ <entry key="UnTabifyAction">shift TAB</entry>
+ <entry key="IndentAction">OSSCKEY I</entry>
+ <entry key="CommentAction">OSSCKEY D</entry>
+ <entry key="UnCommentAction">OSSCKEY shift D</entry>
+ <entry key="RemoveTrailingWhiteAction">OSSCKEY shift W</entry>
+ <entry key="SelectAllAction">OSSCKEY A</entry>
+ <entry key="SelectBlockAction">OSSCKEY B</entry>
+ <entry key="OpenTabInNewWindowAction">OSSCKEY shift T</entry>
+ <entry key="CCloseTabInNewWindowAction">OSSCKEY shift X</entry>
+
+ <entry key="CopyAsHTMLAction">OSSCKEY C</entry>
+ <entry key="CutAction">OSSCKEY X</entry>
+ <entry key="PasteAction">OSSCKEY V</entry>
+ <entry key="PasteColumnAction">OSSCKEY shift V</entry>
+ <entry key="RepeatSelectionOnColumnAction">OSSCKEY shift Z</entry>
+ <entry key="UndoAction">OSSCKEY Z</entry>
+ <entry key="RedoAction">OSSCKEY Y</entry>
+
+ <entry key="CopyAsHTMLWithLineNumberAction">OSSCKEY shift C</entry>
+
+ <entry key="NewAction">OSSCKEY N</entry>
+ <entry key="OpenAction">OSSCKEY O</entry>
+ <entry key="OpenURLAction">OSSCKEY U</entry>
+ <entry key="OpenSourceFileOnKeywordAction">OSSCKEY shift O</entry>
+ <entry key="SaveAction">OSSCKEY S</entry>
+ <entry key="SaveAsAction">OSSCKEY shift S</entry>
+ <entry key="ReloadAction">OSSCKEY shift R</entry>
+ <entry key="PrintPreviewAction">OSSCKEY shift P</entry>
+ <entry key="PrintAction">OSSCKEY P</entry>
+ <entry key="CloseAction">OSSCKEY W</entry>
+ <entry key="ExitAction">OSSCKEY Q</entry>
+
+ <entry key="ToLowerCaseAction">OSSCKEY J</entry>
+ <entry key="ToUpperCaseAction">OSSCKEY shift J</entry>
+ <entry key="CapitalizeAction">OSSCKEY shift A</entry>
+ <entry key="HelpOnKeywordAction">OSSCKEY F1</entry>
+
+ <entry key="LoadIntoScilabAction">OSSCKEY L</entry>
+ <entry key="ExecuteFileIntoScilabAction">OSSCKEY shift E</entry>
+ <entry key="EvaluateSelectionAction">OSSCKEY E</entry>
+ <entry key="SaveAndExecuteFileAction">F5</entry>
+ <entry key="SaveAndExecuteAllFilesAction">OSSCKEY F5</entry>
+
+ <entry key="FindAction">OSSCKEY F</entry>
+ <entry key="FindNextAction">OSSCKEY K</entry>
+ <entry key="FindPreviousAction">OSSCKEY shift K</entry>
+ <entry key="IncrementalSearchAction">F3</entry>
+ <entry key="SetAnchorAction">OSSCKEY M</entry>
+ <entry key="RemoveAnchorAction">OSSCKEY shift M</entry>
+ <entry key="GotoNextAnchorAction">OSSCKEY shift LESS</entry>
+ <entry key="GotoPreviousAnchorAction">OSSCKEY LESS</entry>
+ <entry key="CodeNavigatorAction">OSSCKEY G</entry>
+ <entry key="SearchWordInFilesAction">OSSCKEY shift F</entry>
+ <entry key="SearchFilesAction">OSSCKEY shift B</entry>
+
+ <entry key="SciNotesCompletionAction">OSSCKEY SPACE</entry>
+
+ <entry key="HelpAction">F1</entry>
+ <entry key="AboutAction">shift F1</entry>
+
+ <entry key="NextTabAction">OSSCKEY PAGE_DOWN</entry>
+ <entry key="PreviousTabAction">OSSCKEY PAGE_UP</entry>
+
+ <entry key="DeleteAction">DELETE</entry>
+
+ <entry key="NextParagraphAction">OSSCKEY DOWN</entry>
+ <entry key="PreviousParagraphAction">OSSCKEY UP</entry>
+</properties>
diff --git a/modules/scinotes/etc/scinotes.quit b/modules/scinotes/etc/scinotes.quit
new file mode 100755
index 000000000..3d86897a1
--- /dev/null
+++ b/modules/scinotes/etc/scinotes.quit
@@ -0,0 +1,8 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// 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
diff --git a/modules/scinotes/etc/scinotes.start b/modules/scinotes/etc/scinotes.start
new file mode 100755
index 000000000..c0ba603d7
--- /dev/null
+++ b/modules/scinotes/etc/scinotes.start
@@ -0,0 +1,10 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009-2010 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// 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
+
+load(SCI+"/modules/scinotes/macros/lib");
diff --git a/modules/scinotes/etc/scinotesConfiguration.xml b/modules/scinotes/etc/scinotesConfiguration.xml
new file mode 100755
index 000000000..4ab8126a6
--- /dev/null
+++ b/modules/scinotes/etc/scinotesConfiguration.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2009 - INRIA - Allan SIMON
+ * Copyright (C) 2010 - 2011 - Calixte DENIZET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * 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
+ *
+ -->
+
+<Setting version="0.42">
+
+ <!-- SCINOTES configuration -->
+ <Profile name="scinotes">
+
+ <!-- colors to use in the left panel to indicate you're a in a function (color1)
+ or in a inner function (color2) (only available in whereami mode)-->
+ <AlternColors color1="#f6bff6" color2="#f665f6"/>
+
+ <!-- Restore the open files from the last session -->
+ <RestoreFiles value="true"/>
+
+ <!-- Paper format Section
+ The default unit is the postscript point (1/72 inch) -->
+ <PaperFormat MarginBottom="58.0" MarginLeft="57.0" MarginRight="57.0" MarginTop="57.0" height="794.0" width="613.0"/>
+
+ <!-- Favorite Directories Section -->
+ <favoriteDirectories>
+ </favoriteDirectories>
+
+ <!-- Recent Opened Files Section -->
+ <recentFiles>
+ </recentFiles>
+
+ <!-- Currently Open Files Section -->
+ <openFiles>
+ </openFiles>
+ </Profile>
+</Setting>
diff --git a/modules/scinotes/etc/scinotesGUIConfiguration.xml b/modules/scinotes/etc/scinotesGUIConfiguration.xml
new file mode 100755
index 000000000..a3341143b
--- /dev/null
+++ b/modules/scinotes/etc/scinotesGUIConfiguration.xml
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<Configuration>
+
+ <MenuBar>
+ <menu label="File" mnemonic="F">
+ <menuitem action="scinotes-new" label="New"/>
+ <menuitem action="scinotes-open" label="Open"/>
+ <menuitem action="scinotes-recent" label="Open recent"/>
+ <separator/>
+ <menuitem action="scinotes-register-favorite-dir" label="Working directories;Add a directory;Remove last directory"/>
+ <menuitem action="scinotes-open-file-in" label="Open file in ..."/>
+ <menuitem action="scinotes-save-file-in" label="Save file in ..."/>
+ <separator/>
+ <menuitem action="scinotes-reload" label="Reload"/>
+ <menuitem action="scinotes-restore-startup" label="Restore opened files on start-up"/>
+ <menuitem action="scinotes-open-source" label="Open function source file"/>
+ <menuitem action="scinotes-open-url" label="Open URL"/>
+ <separator/>
+ <menuitem action="scinotes-save" label="Save"/>
+ <menuitem action="scinotes-save-as" label="Save as"/>
+ <menuitem action="scinotes-save-all" label="Save All"/>
+ <menuitem action="scinotes-overwrite" label="Overwrite"/>
+ <separator/>
+ <menuitem action="scinotes-export" label="Export"/>
+ <separator/>
+ <menuitem action="scinotes-page-setup" label="Page Setup"/>
+ <menuitem action="scinotes-print-preview" label="Print Preview"/>
+ <menuitem action="scinotes-print" label="Print"/>
+ <separator/>
+ <menuitem action="scinotes-close" label="Close"/>
+ <menuitem action="scinotes-close-all" label="Close All"/>
+ <menuitem action="scinotes-close-all-but" label="Close All But This"/>
+ <separator/>
+ <menuitem action="scinotes-exit" label="Exit Scinotes"/>
+ </menu>
+
+ <menu label="Edit" mnemonic="E">
+ <menuitem action="scinotes-undo" label="Undo"/>
+ <menuitem action="scinotes-redo" label="Redo"/>
+ <separator/>
+ <menuitem action="scinotes-cut" label="Cut"/>
+ <menuitem action="scinotes-copy" label="Copy"/>
+ <menuitem action="scinotes-copy-with-lines" label="Copy as HTML with line number"/>
+ <menuitem action="scinotes-paste" label="Paste"/>
+ <menuitem action="scinotes-delete" label="Delete"/>
+ <separator/>
+ <menu label="Columns actions">
+ <menuitem action="scinotes-paste-column" label="Paste Column"/>
+ <menuitem action="scinotes-repeat-column" label="Repeat on the Column"/>
+ </menu>
+ <separator/>
+ <menuitem action="scinotes-select-all" label="Select All"/>
+ <menuitem action="scinotes-select-block" label="Select current block"/>
+ <separator/>
+ <menu label="Search" mnemonic="H">
+ <menuitem action="scinotes-find" label="Find/Replace"/>
+ <menuitem action="scinotes-find-next" label="Find Next"/>
+ <menuitem action="scinotes-find-previous" label="Find Previous"/>
+ <menuitem action="scinotes-incremental-search" label="Incremental Search"/>
+ <separator/>
+ <menuitem action="scinotes-search-files" label="Find files"/>
+ <menuitem action="scinotes-word-file" label="Find word in files"/>
+ <separator/>
+ <menuitem action="scinotes-set-anchor" label="Set anchor"/>
+ <menuitem action="scinotes-next-anchor" label="Go to next anchor"/>
+ <menuitem action="scinotes-previous-anchor" label="Go to previous anchor"/>
+ <menuitem action="scinotes-remove-anchor" label="Remove anchor"/>
+ <separator/>
+ <menuitem action="scinotes-code-navigator" label="Code Navigator"/>
+ </menu>
+
+ </menu>
+
+ <menu label="Format" mnemonic="P">
+ <menuitem action="scinotes-tabify" label="Shift Right"/>
+ <menuitem action="scinotes-untabify" label="Shift Left"/>
+ <separator/>
+ <menuitem action="scinotes-indent" label="Correct Indentation"/>
+ <menuitem action="scinotes-remove-whites" label="Remove trailing spaces"/>
+ <menuitem action="scinotes-help-prototype" label="Generate comments for help_from_sci"/>
+ <separator/>
+ <menuitem action="scinotes-comment" label="Comment Selection"/>
+ <menuitem action="scinotes-uncomment" label="Uncomment Selection"/>
+ <separator/>
+ <menu label="Change the case">
+ <menuitem action="scinotes-tolowercase" label="Make Selection Lowercase"/>
+ <menuitem action="scinotes-touppercase" label="Make Selection Uppercase"/>
+ <menuitem action="scinotes-capitalize" label="Capitalize Selection;Capitalize character"/>
+ </menu>
+ <separator/>
+ <menuitem action="scinotes-double-quote" label="Single to double quote strings"/>
+ </menu>
+
+ <menu label="Options">
+ <menuitem action="scinotes-encoding" label="Current file encoding"/>
+ <menuitem action="scinotes-eof" label="Line Endings"/>
+ <separator/>
+ <menu label="Preferences">
+ <menuitem action="scinotes-set-font" label="Set font"/>
+ <menuitem action="scinotes-set-colors" label="Set colors"/>
+ <menuitem action="scinotes-general-settings" label="Scinotes General settings"/>
+ </menu>
+ <separator/>
+ <menu label="Auto-completion on">
+ <menuitem action="scinotes-autocomplete-openers" label="(, [, ..."/>
+ <menuitem action="scinotes-autocomplete-keyword" label="if, function, ..."/>
+ </menu>
+ <menuitem action="scinotes-line-numbering" label="Line numbering;Off;Normal;Local numbering"/>
+ <!--menuitem action="HighlightCurrentLineAction" label="Highlight current line"/>
+ <menuitem action="AutoIndentAction" label="Enable Auto Reformat"/>
+ <separator/>
+ <menuitem action="SuppressCommentsAction" label="Suppress comments when executing selection"/-->
+ </menu>
+
+ <menu label="Window" mnemonic="N">
+ <menuitem action="scinotes-clone-current" label="Copy tab in new window"/>
+ <menuitem action="scinotes-export-current" label="Detach tab in new window"/>
+ <separator/>
+ <menuitem action="scinotes-selection-new-tab" label="Copy selection in a new tab"/>
+ <separator/>
+ <menuitem action="scinotes-split" label="Split View;Off;Split in two columns;Split in two rows"/>
+ </menu>
+
+ <menu label="Execute" mnemonic="X">
+ <menuitem action="scinotes-execute-scilab" label="... file with no echo"/>
+ <menuitem action="scinotes-load-scilab" label="... file with echo"/>
+ <menuitem action="scinotes-evaluate-selection" label="... the selection with echo;... until the caret, with echo"/>
+ <separator/>
+ <menuitem action="scinotes-save-execute" label="Save and execute"/>
+ <menuitem action="scinotes-save-execute-all" label="Save and execute all files"/>
+ </menu>
+
+ <menu label="?">
+ <menuitem action="scinotes-help" label="Scinotes help"/>
+ <menuitem action="scinotes-help-keyword" label="Help on ;Help on selection"/>
+ <menuitem action="scinotes-about" label="About"/>
+ </menu>
+ </MenuBar>
+
+ <RightClickMenu>
+ <menuitem action="scinotes-evaluate-selection" label="Evaluate Selection with echo;Evaluate until the caret, with echo"/>
+ <separator/>
+ <menuitem action="scinotes-help-keyword-popup" label="Help on ;Help on selection"/>
+ <separator/>
+ <menuitem action="scinotes-selection-new-tab" label="Copy selection in a new tab"/>
+ <menuitem action="scinotes-completion" label="Complete"/>
+ <separator/>
+ <menuitem action="scinotes-select-all" label="Select All"/>
+ <menuitem action="scinotes-select-block" label="Select current block"/>
+ <menuitem action="scinotes-copy" label="Copy"/>
+ <menuitem action="scinotes-cut" label="Cut"/>
+ <menuitem action="scinotes-paste" label="Paste"/>
+ <menuitem action="scinotes-paste-column" label="Paste Column"/>
+ <separator/>
+ <menuitem action="scinotes-indent" label="Correct Indentation"/>
+
+ <separator/>
+ <menuitem action="scinotes-copy-with-lines" label="Copy as HTML with line number"/>
+ <separator/>
+ <menuitem action="scinotes-open-source" label="Open function source file"/>
+ <menuitem action="scinotes-open-url" label="Open URL"/>
+ </RightClickMenu>
+
+ <ToolBar>
+ <button action="scinotes-new" tooltip="New" icon="document-new"/>
+ <button action="scinotes-open" tooltip="Open" icon="document-open"/>
+
+ <!-- The second token of the button OpenFileInAction is the full path of the directory
+ where to open files.
+ The shortcuts SCI or MODULES can be used (not in path but alone) -->
+ <button action="scinotes-open-file-in" tooltip="Open in ;MODULES" icon="document-open-sci"/>
+
+ <separator/>
+ <button action="scinotes-save" tooltip="Save" icon="media-floppy"/>
+ <button action="scinotes-save-as" tooltip="Save as" icon="document-save-as"/>
+ <separator/>
+ <button action="scinotes-print" tooltip="Print" icon="document-print"/>
+ <separator/>
+ <button action="scinotes-undo" tooltip="Undo" icon="edit-undo"/>
+ <button action="scinotes-redo" tooltip="Redo" icon="edit-redo"/>
+ <separator/>
+ <button action="scinotes-cut" tooltip="Cut" icon="edit-cut"/>
+ <button action="scinotes-copy" tooltip="Copy" icon="edit-copy"/>
+ <button action="scinotes-paste" tooltip="Paste" icon="edit-paste"/>
+ <separator/>
+ <button action="scinotes-find" tooltip="Find/Replace" icon="edit-find-replace"/>
+ <button action="scinotes-incremental-search" tooltip="Incremental Search" icon="go-bottom"/>
+ <button action="scinotes-code-navigator" tooltip="Code Navigator" icon="code-navigator"/>
+ <separator/>
+ <button action="scinotes-execute-scilab" tooltip="Execute" icon="media-playback-start"/>
+ <button action="scinotes-save-execute" tooltip="Save and execute" icon="save-and-execute"/>
+ <button action="scinotes-save-execute-all" tooltip="Save and execute all" icon="execute-all"/>
+ <separator/>
+ <button action="scinotes-general-settings" tooltip="Scinotes General settings" icon="preferences-system"/>
+ <separator/>
+ <button action="scinotes-help" tooltip="Scinotes help" icon="help-browser"/>
+ </ToolBar>
+
+</Configuration>