Home | Trees | Indices | Help |
|
---|
|
1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 # generated by wxGlade 0.5 on Mon Aug 20 14:02:38 2007 from /home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgFormTemplateEditAreaPnl.wxg 4 5 import wx 6104 105 # end of class wxgFormTemplateEditAreaPnl 1069 10 from Gnumed.wxpython import gmPhraseWheel, gmDocumentWidgets 11 12 # begin wxGlade: wxgFormTemplateEditAreaPnl.__init__ 13 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 14 wx.ScrolledWindow.__init__(self, *args, **kwds) 15 self._PRW_name_long = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) 16 self._PRW_name_short = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) 17 self._TCTRL_external_version = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 18 self._PRW_template_type = gmPhraseWheel.cPhraseWheel(self, -1, "", style=wx.NO_BORDER) 19 self._PRW_instance_type = gmDocumentWidgets.cDocumentTypeSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER) 20 self._TCTRL_filename = wx.TextCtrl(self, -1, "") 21 self._BTN_load = wx.Button(self, -1, _("&Template"), style=wx.BU_EXACTFIT) 22 self._CH_engine = wx.Choice(self, -1, choices=[_("OpenOffice"), _("LaTeX"), _("Image editor"), _("Gnuplot")]) 23 self._CHBOX_active = wx.CheckBox(self, -1, _("active")) 24 self._TCTRL_date_modified = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 25 self._TCTRL_modified_by = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER) 26 27 self.__set_properties() 28 self.__do_layout() 29 30 self.Bind(wx.EVT_BUTTON, self._on_load_button_pressed, self._BTN_load)31 # end wxGlade 3234 # begin wxGlade: wxgFormTemplateEditAreaPnl.__set_properties 35 self.SetScrollRate(10, 10) 36 self._PRW_name_long.SetToolTipString(_("A long, descriptive name for this form template.")) 37 self._PRW_name_short.SetToolTipString(_("A short, catchy name for this template.")) 38 self._TCTRL_external_version.SetToolTipString(_("External version information such as the exact version/release/revision of a paper form onto which to print data with the help of this template.")) 39 self._PRW_template_type.SetToolTipString(_("The type of this template. The intended use case for this template.")) 40 self._PRW_instance_type.SetToolTipString(_("The document type under which to store forms generated from this template.")) 41 self._TCTRL_filename.SetToolTipString(_("Examplary filename. Mainly used for deriving a suitable file extension since that matters to some form engines. Most of the time this should already be set correctly when the template data is imported initially.")) 42 self._TCTRL_filename.Enable(False) 43 self._BTN_load.SetToolTipString(_("Load template data from a file.")) 44 self._CH_engine.SetToolTipString(_("The form engine this template must be processed with.")) 45 self._CH_engine.SetSelection(0) 46 self._CHBOX_active.SetToolTipString(_("Mark this checkbox if you want this template to be active in GNUmed.")) 47 self._CHBOX_active.SetValue(1) 48 self._TCTRL_date_modified.Enable(False) 49 self._TCTRL_modified_by.Enable(False)50 # end wxGlade 5153 # begin wxGlade: wxgFormTemplateEditAreaPnl.__do_layout 54 __gzsr_main = wx.FlexGridSizer(7, 2, 2, 5) 55 __szr_status = wx.BoxSizer(wx.HORIZONTAL) 56 __szr_options = wx.BoxSizer(wx.HORIZONTAL) 57 __szr_filename = wx.BoxSizer(wx.HORIZONTAL) 58 __szr_line2 = wx.BoxSizer(wx.HORIZONTAL) 59 __lbl_name_long = wx.StaticText(self, -1, _("Name")) 60 __gzsr_main.Add(__lbl_name_long, 0, wx.ALIGN_CENTER_VERTICAL, 0) 61 __gzsr_main.Add(self._PRW_name_long, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 62 __lbl_name_short = wx.StaticText(self, -1, _("Alias")) 63 __gzsr_main.Add(__lbl_name_short, 0, wx.ALIGN_CENTER_VERTICAL, 0) 64 __szr_line2.Add(self._PRW_name_short, 2, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 65 __lbl_external_version = wx.StaticText(self, -1, _("Version:")) 66 __szr_line2.Add(__lbl_external_version, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3) 67 __szr_line2.Add(self._TCTRL_external_version, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 68 __gzsr_main.Add(__szr_line2, 1, wx.EXPAND, 0) 69 __lbl_template_type = wx.StaticText(self, -1, _("Template type")) 70 __gzsr_main.Add(__lbl_template_type, 0, wx.ALIGN_CENTER_VERTICAL, 0) 71 __gzsr_main.Add(self._PRW_template_type, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 72 __lbl_instance_type = wx.StaticText(self, -1, _("Document type")) 73 __gzsr_main.Add(__lbl_instance_type, 0, wx.ALIGN_CENTER_VERTICAL, 0) 74 __gzsr_main.Add(self._PRW_instance_type, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 75 __lbl_filename = wx.StaticText(self, -1, _("Filename")) 76 __gzsr_main.Add(__lbl_filename, 0, wx.ALIGN_CENTER_VERTICAL, 0) 77 __szr_filename.Add(self._TCTRL_filename, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 78 __szr_filename.Add(self._BTN_load, 0, wx.LEFT|wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 3) 79 __gzsr_main.Add(__szr_filename, 1, wx.EXPAND, 0) 80 __lbl_options = wx.StaticText(self, -1, _("Options")) 81 __gzsr_main.Add(__lbl_options, 0, wx.ALIGN_CENTER_VERTICAL, 0) 82 __lbl_engine = wx.StaticText(self, -1, _("Processed by:")) 83 __szr_options.Add(__lbl_engine, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5) 84 __szr_options.Add(self._CH_engine, 0, wx.RIGHT|wx.TOP|wx.BOTTOM|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 3) 85 __szr_options.Add(self._CHBOX_active, 0, wx.LEFT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 3) 86 __gzsr_main.Add(__szr_options, 1, wx.EXPAND, 0) 87 __lbl_status = wx.StaticText(self, -1, _("Status")) 88 __gzsr_main.Add(__lbl_status, 0, wx.ALIGN_CENTER_VERTICAL, 0) 89 __lbl_modified_when = wx.StaticText(self, -1, _("Last modified:")) 90 __szr_status.Add(__lbl_modified_when, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3) 91 __szr_status.Add(self._TCTRL_date_modified, 0, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 92 __lbl_modified_by = wx.StaticText(self, -1, _("by:")) 93 __szr_status.Add(__lbl_modified_by, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3) 94 __szr_status.Add(self._TCTRL_modified_by, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 95 __gzsr_main.Add(__szr_status, 1, wx.EXPAND, 0) 96 self.SetSizer(__gzsr_main) 97 __gzsr_main.Fit(self) 98 __gzsr_main.AddGrowableCol(1)99 # end wxGlade 100 102 print "Event handler `_on_load_button_pressed' not implemented" 103 event.Skip()
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jan 10 03:56:06 2011 | http://epydoc.sourceforge.net |