test/data/vclamp_jpk/README: Document sample versions
[hooke.git] / hooke / ui / gui / panel / welcome.py
1 # Copyright (C) 2010-2012 W. Trevor King <wking@tremily.us>
2 #
3 # This file is part of Hooke.
4 #
5 # Hooke is free software: you can redistribute it and/or modify it under the
6 # terms of the GNU Lesser General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or (at your option) any
8 # later version.
9 #
10 # Hooke is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 # A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
13 # details.
14 #
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with Hooke.  If not, see <http://www.gnu.org/licenses/>.
17
18 """Welcome panel for Hooke.
19 """
20
21 import wx
22
23 from . import Panel
24
25
26 class WelcomeWindow (wx.html.HtmlWindow):
27     def __init__(self, *args, **kwargs):
28         super(WelcomeWindow, self).__init__(self, *args, **kwargs)
29         lines = [
30             '<h1>Welcome to Hooke</h1>',
31             '<h3>Features</h3>',
32             '<ul>',
33             '<li>View, annotate, measure force files</li>',
34             '<li>Worm-like chain fit of force peaks</li>',
35             '<li>Automatic convolution-based filtering of empty files</li>',
36             '<li>Automatic fit and measurement of multiple force peaks</li>',
37             '<li>Handles force-clamp force experiments (experimental)</li>',
38             '<li>It is extensible through plugins and drivers</li>',
39             '</ul>',
40             '<p>See the <a href="%s">DocumentationIndex</a>'
41             % 'http://code.google.com/p/hooke/wiki/DocumentationIndex',
42             'for more information</p>',
43             ]
44         ctrl.SetPage('\n'.join(lines))
45
46 class WelcomePanel (Panel, wx.Panel):
47     def __init__(self, callbacks=None, **kwargs):
48         super(WelcomePanel, self).__init__(
49             name='welcome', callbacks=callbacks, **kwargs)
50         self._c = {
51             'window': WelcomeWindow(
52                 parent=self,
53                 size=wx.Size(400, 300)),
54             }