chiark / gitweb /
Add back the ultimaker platform, and made the platform mesh simpler.
[cura.git] / Cura / slice / cura_sf / skeinforge_application / skeinforge_plugins / meta_plugins / description.py
1 """
2 This page is in the table of contents.
3 Description is a script to store a description of the profile.
4
5 ==Settings==
6 ===Description Text===
7 Default is 'Write your profile description here.'
8
9 The suggested format is a description, followed by a link to a profile post or web page.
10
11 ==Example==
12 Example of using description follows below.
13
14 > python description.py
15 This brings up the description dialog.
16
17 """
18
19 from __future__ import absolute_import
20
21 from fabmetheus_utilities import settings
22 from skeinforge_application.skeinforge_utilities import skeinforge_profile
23
24
25 __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
26 __date__ = '$Date: 2008/21/04 $'
27 __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
28
29
30 def getNewRepository():
31         'Get new repository.'
32         return DescriptionRepository()
33
34
35 class DescriptionRepository(object):
36         "A class to handle the description settings."
37         def __init__(self):
38                 "Set the default settings, execute title & settings fileName."
39                 skeinforge_profile.addListsToCraftTypeRepository('skeinforge_application.skeinforge_plugins.meta_plugins.description.html', self)
40                 description = 'Write your description of the profile here.\n\nSuggested format is a description, followed by a link to the profile post or web page.'
41                 self.descriptionText = settings.TextSetting().getFromValue('Description Text:', self, description)
42
43
44 def main():
45         "Display the file or directory dialog."
46         settings.startMainLoopFromConstructor(getNewRepository())
47
48 if __name__ == "__main__":
49         main()