Commit 4359b7fa authored by Olivier Lagrasse's avatar Olivier Lagrasse
Browse files

- Enhance help menu. (not terminate)

parent 6527e6a2
/*
** This file is part of the ViTE project.
**
** This software is governed by the CeCILL-A license under French law
** and abiding by the rules of distribution of free software. You can
** use, modify and/or redistribute the software under the terms of the
** CeCILL-A license as circulated by CEA, CNRS and INRIA at the following
** URL: "http://www.cecill.info".
**
** As a counterpart to the access to the source code and rights to copy,
** modify and redistribute granted by the license, users are provided
** only with a limited warranty and the software's author, the holder of
** the economic rights, and the successive licensors have only limited
** liability.
**
** In this respect, the user's attention is drawn to the risks associated
** with loading, using, modifying and/or developing or reproducing the
** software by the user in light of its specific status of free software,
** that may mean that it is complicated to manipulate, and that also
** therefore means that it is reserved for developers and experienced
** professionals having in-depth computer knowledge. Users are therefore
** encouraged to load and test the software's suitability as regards
** their requirements in conditions enabling the security of their
** systems and/or data to be ensured and, more generally, to use and
** operate it in the same conditions as regards security.
**
** The fact that you are presently reading this means that you have had
** knowledge of the CeCILL-A license and that you accept its terms.
**
**
** ViTE developpers are (for version 0.* to 1.0):
**
** - COULOMB Kevin
** - FAVERGE Mathieu
** - JAZEIX Johnny
** - LAGRASSE Olivier
** - MARCOUEILLE Jule
** - NOISETTE Pascal
** - REDONDY Arthur
** - VUCHENER Clément
**
*/
#include "help.hpp"
Help::Help() : QWidget() {
setFixedSize(QSize(350, 600));
setWindowTitle("ViTE help");
QIcon icon;
icon.addPixmap(QPixmap(QString::fromUtf8(":icon/icon/vite.png")), QIcon::Normal, QIcon::Off);
setWindowIcon(icon);
_contenu = new QWidget(this);
_contenu->setFixedSize(QSize(350,570));
_image = new QLabel(_contenu);
_image->setPixmap(QPixmap(QString::fromUtf8(":img/img/help.png")));
_text = new QTextEdit("", _contenu);
_cancel = new QPushButton("&Cancel", this);
_text->setHtml("<center><h1>Quick Help</h1></center>"
"<h2>Menu <em>File</em></h2>"
"<dl>"
"<dt><strong>Open a file</strong></dt>"
"<dd>menu <em>File</em> then <em>Open</em> (shortcut: ctrl + o)</dd>"
"<dt><strong>Export a file</strong></dt>"
"<dd>menu <em>File</em> then <em>Export</em> (shortcut: ctrl + e)</dd>"
"<dt><strong>Close a file</strong></dt>"
"<dd>menu <em>File</em> then <em>Close</em> (shortcut: ctrl + w)</dd>"
"<dt><strong>Quit ViTE</strong></dt>"
"<dd>menu <em>File</em> then <em>Quit</em> (shortcut: ctrl + q)</dd>"
"</dl>"
"<h2>Menu <em>View</em></h2>"
"<dl>"
"<dt><strong>Display/Hide the informations window</strong></dt>"
"<dd>menu <em>View</em> then <em>Show infos window</em></dd>"
"<dt><strong>Display/Hide the toolbar</strong></dt>"
"<dd>menu <em>View</em> then <em>Show/Hide toolbar</i</dd>"
"<dt><strong>Zoom in the trace</strong></dt>"
"<dd>menu <em>View</em> then <em>Zoom in</em> (shortcut: +)</dd>"
"<dt><strong>Zoom out of the trace</strong></dt>"
"<dd>menu <em>View</em> then <em>Zoom out</em> (shortcut: -)</dd>"
"<dt><strong>Show all the trace</strong></dt>"
"<dd>menu <em>View</em> then <em>Show all</em> (shortcut: ctrl + shift + A)</dd>"
"<dt><strong>Move to the beginning of the trace</strong></dt>"
"<dd>menu <em>View</em> then <em>Move to start</em> (shortcut: Home)</dd>"
"<dt><strong>Move to the end of the trace</strong></dt>"
"<dd>menu <em>View</em> then <em>Move to end</em> (shortcut: End)</dd>"
"<dt><strong>Switch to fullscreen mode</strong></dt>"
"<dd>menu <em>View</em> then <em>Fullscreen</em> (shortcut: F11)</dd>"
"<dt><strong>Display/Hide the warnings and errors</strong></dt>"
"<dd>menu <em>View</em> then <em>No warning</em></dd>"
"<dt><strong>Display/Hide the arrows</strong></dt>"
"<dd>menu <em>View</em> then <em>No arrows</em></dd>"
"<dt><strong>Display/Hide the events</strong></dt>"
"<dd>menu <em>View</em> then <em>No events</em></dd>"
"</dl>"
"<h2>Menu <em>Help</em></h2>"
"<dl>"
"<dt><strong>Show the quick help</strong></dt>"
"<dd>menu <em>Help</em> then <em>Help</em> (shortcut: F1)</dd>"
"<dt><strong>Informations about ViTE software</strong></dt>"
"<dd>menu <em>Help</em> then <em>About</em></dd>"
"</dl>"
"<h2>More help</h2>"
"<p>You can find more informations about the functions and the options of ViTE on the user manual.</p>");
_text->resize(350, 199);
_text->setReadOnly(true);
_image->move(0,199);
_cancel->move(250, 570);
QObject::connect(_cancel, SIGNAL(clicked()), this, SLOT(close()));
}
Help::~Help(){
delete _contenu;
delete _image;
delete _text;
delete _cancel;
}
/*
** This file is part of the ViTE project.
**
** This software is governed by the CeCILL-A license under French law
** and abiding by the rules of distribution of free software. You can
** use, modify and/or redistribute the software under the terms of the
** CeCILL-A license as circulated by CEA, CNRS and INRIA at the following
** URL: "http://www.cecill.info".
**
** As a counterpart to the access to the source code and rights to copy,
** modify and redistribute granted by the license, users are provided
** only with a limited warranty and the software's author, the holder of
** the economic rights, and the successive licensors have only limited
** liability.
**
** In this respect, the user's attention is drawn to the risks associated
** with loading, using, modifying and/or developing or reproducing the
** software by the user in light of its specific status of free software,
** that may mean that it is complicated to manipulate, and that also
** therefore means that it is reserved for developers and experienced
** professionals having in-depth computer knowledge. Users are therefore
** encouraged to load and test the software's suitability as regards
** their requirements in conditions enabling the security of their
** systems and/or data to be ensured and, more generally, to use and
** operate it in the same conditions as regards security.
**
** The fact that you are presently reading this means that you have had
** knowledge of the CeCILL-A license and that you accept its terms.
**
**
** ViTE developpers are (for version 0.* to 1.0):
**
** - COULOMB Kevin
** - FAVERGE Mathieu
** - JAZEIX Johnny
** - LAGRASSE Olivier
** - MARCOUEILLE Jule
** - NOISETTE Pascal
** - REDONDY Arthur
** - VUCHENER Clément
**
*/
/*!
*\file help.hpp
*/
#ifndef HELP_HPP
#define HELP_HPP
#include <QtGui>
/*!
* \class Help
* \brief Show the help menu
*/
class Help : public QWidget{
private:
QTextEdit *_text;
QPushButton *_cancel;
QLabel *_image;
QWidget * _contenu;
public:
Help();
~Help();
};
#endif // HELP_HPP
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>help</class>
<widget class="QDialog" name="help">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>895</width>
<height>687</height>
</rect>
</property>
<property name="windowTitle">
<string>ViTE help</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="help_ok">
<property name="text">
<string>Ok</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0">
<widget class="QTabWidget" name="help_tab">
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="tabPosition">
<enum>QTabWidget::West</enum>
</property>
<property name="tabShape">
<enum>QTabWidget::Rounded</enum>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<property name="elideMode">
<enum>Qt::ElideNone</enum>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Main windows</string>
</attribute>
<widget class="QFrame" name="frame">
<property name="geometry">
<rect>
<x>20</x>
<y>60</y>
<width>801</width>
<height>491</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/img/img/main_window.png);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Informations</string>
</attribute>
<widget class="QFrame" name="frame_2">
<property name="geometry">
<rect>
<x>120</x>
<y>80</y>
<width>601</width>
<height>471</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/img/img/info_box.png);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>statistics viewer</string>
</attribute>
<widget class="QFrame" name="frame_3">
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
<width>821</width>
<height>451</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/img/img/statistics_box.png);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>Option for export</string>
</attribute>
</widget>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources>
<include location="vite.qrc"/>
</resources>
<connections/>
</ui>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg2440"
sodipodi:version="0.32"
inkscape:version="0.46"
width="1500"
height="950"
version="1.0"
sodipodi:docname="main_window.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/kumamoto/Desktop/menu_main_window2.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<metadata
id="metadata2445">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs2443">
<linearGradient
id="linearGradient2565">
<stop
style="stop-color:#e4e4e4;stop-opacity:1;"
offset="0"
id="stop2567" />
<stop
style="stop-color:#d2d2d2;stop-opacity:1;"
offset="1"
id="stop2569" />
</linearGradient>
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 526.18109 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="744.09448 : 526.18109 : 1"
inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
id="perspective2447" />
<inkscape:perspective
id="perspective2453"
inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
inkscape:vp_z="744.09448 : 526.18109 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 526.18109 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2565"
id="linearGradient3257"
x1="217.86534"
y1="247.67097"
x2="1278.5255"
y2="805.71198"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.0071486,0,0,0.998388,-1.1066108,0.3329995)" />
</defs>
<sodipodi:namedview
inkscape:window-height="971"
inkscape:window-width="1670"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
guidetolerance="10.0"
gridtolerance="10.0"
objecttolerance="10.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
showgrid="false"
inkscape:zoom="0.52325902"
inkscape:cx="930.45432"
inkscape:cy="736.69771"
inkscape:window-x="118"
inkscape:window-y="25"
inkscape:current-layer="svg2440" />
<g
id="g3261"
transform="translate(20,0)">
<image
xlink:href="Untitled.jpg"
sodipodi:absref="/home/kumamoto/Desktop/Untitled.jpg"
width="1211"
height="767"
id="image2455"
x="144.33784"
y="110.55405" />
<rect
y="206.58234"
x="154.79906"
height="627.73822"
width="1172.1794"
id="rect3249"
style="fill:url(#linearGradient3257);fill-opacity:1;stroke:none;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.17647059" />
</g>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#008000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="74.519165"
y="97.631187"
id="text2451"><tspan
sodipodi:role="line"
id="tspan2453"
x="74.519165"
y="97.631187"
style="text-align:center;text-anchor:middle">open</tspan><tspan
sodipodi:role="line"
x="74.519165"
y="135.6702"
id="tspan2479"
style="font-size:28px;text-align:center;text-anchor:middle;fill:#999999">ctrl+o</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#ff0000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="186.40244"
y="39.953457"
id="text2455"><tspan
sodipodi:role="line"
id="tspan2457"
x="186.40244"
y="39.953457"
style="text-align:center;text-anchor:middle">close</tspan><tspan
sodipodi:role="line"
x="186.40244"
y="77.99247"
id="tspan2481"
style="font-size:28px;text-align:center;text-anchor:middle;fill:#999999">ctrl+w</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#0000ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="354.49451"
y="53.40052"
id="text2459"><tspan
sodipodi:role="line"
id="tspan2461"
x="354.49451"
y="53.40052"
style="text-align:center;text-anchor:middle">export</tspan><tspan
sodipodi:role="line"
x="354.49451"
y="91.439529"
id="tspan2485"
style="font-size:28px;text-align:center;text-anchor:middle;fill:#999999">ctrl+e</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="241.30956"
y="246.80429"
id="text2463"><tspan
sodipodi:role="line"
id="tspan2465"
x="241.30956"
y="246.80429"
style="text-align:center;text-anchor:middle">zoom</tspan><tspan
sodipodi:role="line"
x="241.30956"
y="284.84329"
id="tspan2499"
style="font-size:28px;text-align:center;text-anchor:middle;fill:#999999">+ / -</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="297.69171"
y="330.76688"
id="text2467"><tspan
sodipodi:role="line"
id="tspan2469"
x="297.69171"
y="330.76688"
style="text-align:center;text-anchor:middle">quick move</tspan><tspan
sodipodi:role="line"
x="297.69171"
y="368.80588"
id="tspan2523"
style="font-size:28px;text-align:center;text-anchor:middle;fill:#999999">home / end</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="547.0968"
y="331.79584"
id="text2471"><tspan
sodipodi:role="line"
id="tspan2473"
x="547.0968"
y="331.79584"
style="text-align:center;text-anchor:middle">show all</tspan><tspan
sodipodi:role="line"
x="547.0968"
y="369.83484"
style="font-size:28px;text-align:center;text-anchor:middle;fill:#999999"
id="tspan2527">ctrl+shift+e</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="637.68805"
y="254.73097"
id="text2475"><tspan
sodipodi:role="line"
id="tspan2477"
x="637.68805"
y="254.73097"
style="text-align:center;text-anchor:middle">fullscreen</tspan><tspan
sodipodi:role="line"
x="637.68805"
y="292.76999"
style="font-size:28px;text-align:center;text-anchor:middle;fill:#999999"
id="tspan2525">F11</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="697.89001"
y="91.161629"
id="text2531"><tspan
sodipodi:role="line"
id="tspan2533"
x="697.89001"
y="91.161629">arrow visibility</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="822.02991"
y="251.72498"
id="text2535"><tspan
sodipodi:role="line"
id="tspan2537"
x="822.02991"
y="251.72498">event visibility</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="125.47741"
y="932.43457"
id="text2539"><tspan
sodipodi:role="line"
id="tspan2541"
x="125.47741"
y="932.43457">containers scale</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="1041.0601"
y="507.19879"
id="text2543"><tspan
sodipodi:role="line"
id="tspan2545"
x="1041.0601"
y="507.19879"
style="text-align:center;text-anchor:middle">scroll</tspan><tspan
sodipodi:role="line"
x="1041.0601"
y="545.23779"
style="font-size:28px;text-align:center;text-anchor:middle;fill:#999999"
id="tspan2551">keyboard arrows</tspan><tspan
sodipodi:role="line"
x="1041.0601"