Specify "cyan" as RGB value
[sface.git] / sface / screens / helpscreen.py
1
2 from PyQt4.QtCore import *
3 from PyQt4.QtGui import *
4
5 from sface.screens.sfascreen import SfaScreen
6
7 class HelpWidget(QWidget):
8     def __init__(self, parent):
9         QWidget.__init__(self, parent)
10         self.showHelpText()
11
12     def showHelpText(self):
13         layout = QVBoxLayout(self)
14         layout.setAlignment(Qt.AlignTop)
15
16         text = QLabel(self)
17         text.setWordWrap(True)
18         text.setOpenExternalLinks(True)
19         text.setText("""
20 <p>The <em>PlanetLab Federation</em> is a collection of testbeds that
21 have joined forces using the <em>Slice Federation Architecture</em>
22 (SFA).</p>
23
24 <p>This GUI allows users of OneLab and PlanetLab to allocate resources
25 belonging to any federated testbed to an existing slice.  To use it,
26 follow these steps:</p>
27
28 <ol>
29
30 <li>Go to the <b>Configure</b> screen and configure your slice, user,
31 and user authority HRNs.</li>
32
33 <li>Go to the <b>Main Window</b> and click <b>Update Slice
34 Data</b>. This will load the set of resources currently allocated to
35 your slice, and group them by testbeds.  Expand the entry for a
36 particular testbed to see the resources allocated there.</li>
37
38 <li>To modify the resources allocated to your slice:
39
40   <ul>
41   
42   <li>Double click a node to toggle its status.</li>
43   
44   <li>Expand a node to see the tags assigned to that node. Right click
45   on the node to add a new tag. Double click on a tag to toggle its
46   status.</li>
47   
48   <li>The first entry for each testbed begins with <em>Default
49   tags</em>.  Expand this to see the set of tags that applies to all
50   nodes in the testbed.  Right click on it to add a new default
51   tag.  Double click on a tag to toggle its status.</li>
52   
53   </ul>
54   
55 </li>
56
57 <li>After you have made your changes, click <b>Submit</b>.  This will
58 submit your changes and then refresh the set of slice resources to
59 reflect the current allocation.  No changes are made to your slice
60 allocation until you click <b>Submit</b>.</li>
61
62 </ol>
63
64 <p>This GUI was built by the OneLab and PlanetLab teams. 
65 Your feedback is appreciated <a href="mailto:devel@planet-lab.org">devel@planet-lab.org</a></p>
66 """)
67         text.setTextFormat(Qt.RichText)
68         layout.addWidget(text)
69
70 class HelpScreen(SfaScreen):
71     def __init__(self, parent):
72         SfaScreen.__init__(self, parent)
73
74         widget = HelpWidget(self)
75         self.init(widget, "Help", "How to use the OneLab Federation GUI")