Home | Trees | Indices | Help |
|
---|
|
1 # -*- coding: UTF-8 -*- 2 # 3 # generated by wxGlade 4 # 5 6 import wx 7 8 # begin wxGlade: dependencies 9 import gettext 10 # end wxGlade 11 12 # begin wxGlade: extracode 13 from Gnumed.wxpython.gmListWidgets import cReportListCtrl 14 # end wxGlade 15 16111 113 print("Event handler '_on_open_directory_button_pressed' not implemented!") 114 event.Skip() 115 117 print("Event handler '_on_clear_directory_button_pressed' not implemented!") 118 event.Skip() 11919 # begin wxGlade: wxgExportAreaExportToMediaDlg.__init__ 20 kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER 21 wx.Dialog.__init__(self, *args, **kwds) 22 self.SetSize((700, 500)) 23 self._LBL_header = wx.StaticText(self, wx.ID_ANY, _("\nDescribe the intended action.\n")) 24 self._BTN_reload_media_list = wx.Button(self, wx.ID_REFRESH, "", style=wx.BU_EXACTFIT) 25 self._LCTRL_removable_media = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_HRULES | wx.LC_REPORT | wx.LC_VRULES) 26 self._LBL_directory = wx.StaticText(self, wx.ID_ANY, _("<shows default path computed at runtime>"), style=wx.ST_ELLIPSIZE_START) 27 self._LBL_dir_is_empty = wx.StaticText(self, wx.ID_ANY, _("this path is/is not empty")) 28 self._BTN_open_directory = wx.Button(self, wx.ID_ANY, _("Open"), style=wx.BU_EXACTFIT) 29 self._BTN_clear_directory = wx.Button(self, wx.ID_ANY, _("Clear"), style=wx.BU_EXACTFIT) 30 self._CHBOX_encrypt = wx.CheckBox(self, wx.ID_ANY, _("en&crypt"), style=wx.CHK_2STATE) 31 self._CHBOX_use_subdirectory = wx.CheckBox(self, wx.ID_ANY, _("use subdirectory"), style=wx.CHK_2STATE) 32 self._BTN_save2media = wx.Button(self, wx.ID_SAVE, "") 33 self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "") 34 35 self.__set_properties() 36 self.__do_layout() 37 38 self.Bind(wx.EVT_BUTTON, self._on_reload_media_list_button_pressed, self._BTN_reload_media_list) 39 self.Bind(wx.EVT_BUTTON, self._on_open_directory_button_pressed, self._BTN_open_directory) 40 self.Bind(wx.EVT_BUTTON, self._on_clear_directory_button_pressed, self._BTN_clear_directory) 41 self.Bind(wx.EVT_CHECKBOX, self._on_save_as_encrypted_toggled, self._CHBOX_encrypt) 42 self.Bind(wx.EVT_CHECKBOX, self._on_use_subdirectory_toggled, self._CHBOX_use_subdirectory) 43 self.Bind(wx.EVT_BUTTON, self._on_save2media_button_pressed, self._BTN_save2media)44 # end wxGlade 4547 # begin wxGlade: wxgExportAreaExportToMediaDlg.__set_properties 48 self.SetTitle(_("Creating Patient Media")) 49 self.SetSize((700, 500)) 50 self._BTN_reload_media_list.SetToolTip(_("Reload the list of removable media.")) 51 self._LBL_directory.SetFont(wx.Font(9, wx.DEFAULT, wx.SLANT, wx.NORMAL, 0, "")) 52 self._LBL_dir_is_empty.SetForegroundColour(wx.Colour(255, 127, 0)) 53 self._LBL_dir_is_empty.SetFont(wx.Font(9, wx.DEFAULT, wx.SLANT, wx.NORMAL, 0, "")) 54 self._BTN_open_directory.SetToolTip(_("Open selected target directory in file browser.")) 55 self._BTN_clear_directory.SetToolTip(_("Clear selected target directory from any existing data.")) 56 self._BTN_clear_directory.Enable(False) 57 self._CHBOX_encrypt.SetToolTip(_("Use encryption ?\n\nYou need to arrange for safely passing any encryption key to receivers of the patient data excerpt yourself.\n\nNote that the *content* of each file will be encrypted - some hints about the patient might potentially still be derivable from the names of files. If you need a completely anonymous patient data excerpt you should use the [Save as] functionality of the export area and create an encrypted archive.")) 58 self._CHBOX_encrypt.SetValue(1) 59 self._CHBOX_use_subdirectory.SetToolTip(_("Use patient specific subdirectory ?\n\nDO NOT USE unless you really know why.\n\nIf checked GNUmed will create a suitable subdirectory on the removable media and save to that.")) 60 self._BTN_save2media.SetToolTip(_("Save patient data excerpt to the removable media selected above.")) 61 self._BTN_save2media.Enable(False) 62 self._BTN_cancel.SetToolTip(_("Abort saving entries."))63 # end wxGlade 6466 # begin wxGlade: wxgExportAreaExportToMediaDlg.__do_layout 67 __szr_main = wx.BoxSizer(wx.VERTICAL) 68 __szr_buttons = wx.BoxSizer(wx.HORIZONTAL) 69 _grszr_options = wx.FlexGridSizer(0, 2, 2, 5) 70 __szr_save_as = wx.BoxSizer(wx.HORIZONTAL) 71 __szr_dir_state = wx.BoxSizer(wx.HORIZONTAL) 72 __szr_removable_media = wx.BoxSizer(wx.HORIZONTAL) 73 __szr_main.Add(self._LBL_header, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 74 __lbl_removable_media = wx.StaticText(self, wx.ID_ANY, _("Removable media")) 75 __szr_removable_media.Add(__lbl_removable_media, 0, wx.ALIGN_CENTER_VERTICAL, 3) 76 __szr_removable_media.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 77 __szr_removable_media.Add(self._BTN_reload_media_list, 0, wx.ALIGN_CENTER_VERTICAL, 0) 78 __szr_main.Add(__szr_removable_media, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 79 __szr_main.Add(self._LCTRL_removable_media, 1, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 80 __lbl_path = wx.StaticText(self, wx.ID_ANY, _("Path:")) 81 _grszr_options.Add(__lbl_path, 0, wx.ALIGN_CENTER_VERTICAL, 0) 82 _grszr_options.Add(self._LBL_directory, 1, wx.ALIGN_CENTER_VERTICAL, 5) 83 _grszr_options.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 84 __szr_dir_state.Add(self._LBL_dir_is_empty, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 3) 85 __szr_dir_state.Add((20, 20), 2, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 86 __szr_dir_state.Add(self._BTN_open_directory, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) 87 __szr_dir_state.Add(self._BTN_clear_directory, 0, wx.ALIGN_CENTER_VERTICAL, 5) 88 _grszr_options.Add(__szr_dir_state, 0, wx.EXPAND, 3) 89 __lbl_save_as = wx.StaticText(self, wx.ID_ANY, _("Options:")) 90 _grszr_options.Add(__lbl_save_as, 0, wx.ALIGN_CENTER_VERTICAL, 5) 91 __szr_save_as.Add(self._CHBOX_encrypt, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) 92 __szr_save_as.Add(self._CHBOX_use_subdirectory, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 10) 93 _grszr_options.Add(__szr_save_as, 0, wx.EXPAND, 3) 94 _grszr_options.AddGrowableCol(1) 95 __szr_main.Add(_grszr_options, 1, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 96 __hline_bottom = wx.StaticLine(self, wx.ID_ANY) 97 __szr_main.Add(__hline_bottom, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 98 __szr_buttons.Add((20, 20), 2, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 99 __szr_buttons.Add(self._BTN_save2media, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 3) 100 __szr_buttons.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 101 __szr_buttons.Add(self._BTN_cancel, 0, wx.ALIGN_CENTER_VERTICAL, 0) 102 __szr_buttons.Add((20, 20), 2, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 103 __szr_main.Add(__szr_buttons, 0, wx.ALL | wx.EXPAND, 3) 104 self.SetSizer(__szr_main) 105 self.Layout()106 # end wxGlade 107 109 print("Event handler '_on_reload_media_list_button_pressed' not implemented!") 110 event.Skip()120 - def _on_save_as_encrypted_toggled(self, event): # wxGlade: wxgExportAreaExportToMediaDlg.<event_handler>121 print("Event handler '_on_save_as_encrypted_toggled' not implemented!") 122 event.Skip() 123124 - def _on_use_subdirectory_toggled(self, event): # wxGlade: wxgExportAreaExportToMediaDlg.<event_handler>125 print("Event handler '_on_use_subdirectory_toggled' not implemented!") 126 event.Skip() 127 129 print("Event handler '_on_save2media_button_pressed' not implemented!") 130 event.Skip() 131 132 # end of class wxgExportAreaExportToMediaDlg 133
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 23 01:55:31 2020 | http://epydoc.sourceforge.net |