Plasma GitLab Archive
Projects Blog Knowledge

<?xml version="1.0" encoding="ISO-8859-1"?>

<!--
  - <COPYRIGHT>
  - Copyright 2003 Gerd Stolpmann
  -
  - <GPL>
  - This file is part of WTimer.
  - 
  - WTimer is free software; you can redistribute it and/or modify
  - it under the terms of the GNU General Public License as published by
  - the Free Software Foundation; either version 2 of the License, or
  - (at your option) any later version.
  -
  - WTimer is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  - GNU General Public License for more details.
  -
  - You should have received a copy of the GNU General Public License
  - along with WDialog; if not, write to the Free Software
  - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  - </>
  -->

<!--  $Id: export.ui,v 1.4 2003/03/23 11:59:14 gerd Exp $
   -  ======================================================================
   - 
  -->

<!-- This file defines the dialog "export". -->

<ui:dialog name="export" start-page="export">
  <ui:variable name="session" type="dialog"/>
    <!-- The session pseudo dialog, see session.ui -->

  <ui:variable name="start-date">
    <!--&export-start-date;-->           <!-- test data -->
  </ui:variable>

  <ui:variable name="end-date">
    <!--&export-end-date;-->             <!-- test data -->
  </ui:variable>

  <ui:variable name="data" temporary="yes">
    <!-- The (ascii) data to show as preview -->
    <!--&export-preview-data;-->         <!-- test data -->
  </ui:variable>

  <ui:enumeration name="format">
    <ui:enum internal="ascii-chrono"
             external="ASCII report in chronological order"/>
    <ui:enum internal="ascii-project"
             external="ASCII report in project order"/>
    <ui:enum internal="csv"
             external="CSV export"/>
    <ui:enum internal="xml"
             external="XML export"/>
  </ui:enumeration>

  <ui:variable name="format" type="format"/>
    <!-- Which export format is selected -->

  <ui:enumeration name="message">
    <ui:enum internal="error-bad-start"
             external="Bad start date. Please enter a valid date in the format YYYY-MM-DD!"/>
    <ui:enum internal="error-bad-end"
             external="Bad end date. Please enter a valid date in the format YYYY-MM-DD!"/>
    <ui:enum internal="error-end-before-start"
             external="The end date is before the start date."/>
  </ui:enumeration>

  <ui:variable name="message" type="message">
    <!--&export-message;-->     <!-- testdata -->
  </ui:variable>

  <ui:page name="export">
    <t:basic-grid>
      <p:nav-col>
	<t:export-nav/>
      </p:nav-col>
      <p:headline>
	Report and Export
	<span id="modified"/>    <!-- We do not use this feature -->
	<t:head-info-box/>
      </p:headline>
      <p:main-col>
        <ui:enumerate variable="message" template="message"/>
	<table>
	  <tr>
	    <td>Start date:</td>
	    <td>
	      <ui:text variable="start-date" maxlength="10" size="10"
		       onchange="return check_date_string(this)"/>
	    </td>
	  </tr>
	  <tr>
	    <td>End date:</td>
	    <td>
	      <ui:text variable="end-date" maxlength="10" size="10"
		       onchange="return check_date_string(this)"/>
	    </td>
	  </tr>
	  <tr>
	    <td>Format:</td>
	    <td>
	      <ui:select variable="format"/>
	    </td>
	  </tr>
	</table>
	<ui:if value1="$[data]" value2="" op="ne">
	  <t:vspacer size="10"/>
	  <hr/>
	  <t:vspacer size="10"/>
	  <div align="left">
	    <pre><ui:special>$[data/html/pre]</ui:special></pre>
	  </div>
	</ui:if>
      </p:main-col>
    </t:basic-grid>
  </ui:page>

  <ui:page name="download"><ui:special>$[data]</ui:special></ui:page>



  <!-- ERROR HANDLING -->

  <!-- See also ocaml class error_behaviour that uses the following
       definitions
    -->

  <ui:variable name="runtime-error"/>

  <ui:page name="runtime-error">
    <t:basic-grid>
      <p:nav-col>
	<!-- empty nav-col: this is a modal dialog -->
      </p:nav-col>
      <p:headline>
	Report and Export
	<span id="modified"/>    <!-- We do not use this feature -->
	<t:head-info-box/>
      </p:headline>
      <p:main-col>
	<t:error errid="$[runtime-error]"/>
	<ui:button name="cont-error" label="Continue"/>
      </p:main-col>
    </t:basic-grid>
  </ui:page>

</ui:dialog>

<ui:template name="export-nav">
  <q:nav-section head="File">
    <t:file-menu except="file-export"/>
  </q:nav-section>
  <q:nav-section head="Report/Export">
    <q:nav-entry title="Download the selected document">
      <q:applink label="Download" name="export-download" accesskey="D"
	goto="download"	/>
    </q:nav-entry>
    <q:nav-entry title="Preview the selected document">
      <q:applink label="Preview" name="export-preview" accesskey="V"/>
    </q:nav-entry>
  </q:nav-section>
</ui:template>


<!-- ******************* For Emacs: ********************* -->
<!--
Local Variables:
mode: xml
sgml-parent-document: ("main.ui" "ui:application" "ui:dialog")
End:
-->

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml