Package Gnumed :: Package wxGladeWidgets :: Module wxgExportAreaPluginPnl
[frames] | no frames]

Source Code for Module Gnumed.wxGladeWidgets.wxgExportAreaPluginPnl

  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   
 16   
17 -class wxgExportAreaPluginPnl(wx.Panel):
18 - def __init__(self, *args, **kwds):
19 # begin wxGlade: wxgExportAreaPluginPnl.__init__ 20 kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL 21 wx.Panel.__init__(self, *args, **kwds) 22 self._LCTRL_items = cReportListCtrl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.LC_REPORT) 23 self._BTN_add_items = wx.Button(self, wx.ID_ANY, _(u"\u2190 &Disk"), style=wx.BU_EXACTFIT | wx.BU_LEFT) 24 self._BTN_add_directory = wx.Button(self, wx.ID_ANY, _(u"\u2190 &Directory"), style=wx.BU_EXACTFIT | wx.BU_LEFT) 25 self._BTN_add_from_archive = wx.Button(self, wx.ID_ANY, _(u"\u2190 &Archive"), style=wx.BU_EXACTFIT | wx.BU_LEFT) 26 self._BTN_scan_items = wx.Button(self, wx.ID_ANY, _(u"\u2190 S&can"), style=wx.BU_EXACTFIT | wx.BU_LEFT) 27 self._BTN_clipboard_items = wx.Button(self, wx.ID_ANY, _(u"\u2190 C&lipboard"), style=wx.BU_EXACTFIT | wx.BU_LEFT) 28 self._BTN_show_item = wx.Button(self, wx.ID_ANY, _("&View"), style=wx.BU_EXACTFIT) 29 self._BTN_save_items = wx.Button(self, wx.ID_ANY, _("&Save as"), style=wx.BU_EXACTFIT) 30 self._BTN_export_items = wx.Button(self, wx.ID_ANY, _("E&xport"), style=wx.BU_EXACTFIT) 31 self._BTN_archive_items = wx.Button(self, wx.ID_ANY, _(u"\u2192 Archive"), style=wx.BU_EXACTFIT) 32 self._BTN_remove_items = wx.Button(self, wx.ID_ANY, _("&Remove"), style=wx.BU_EXACTFIT) 33 self._BTN_print_items = wx.Button(self, wx.ID_ANY, _("&Print"), style=wx.BU_EXACTFIT) 34 self._BTN_remote_print = wx.Button(self, wx.ID_ANY, _(u"\u2192 &Print Mgr"), style=wx.BU_EXACTFIT) 35 self._BTN_mail_items = wx.Button(self, wx.ID_ANY, _("E-&Mail"), style=wx.BU_EXACTFIT) 36 self._BTN_fax_items = wx.Button(self, wx.ID_ANY, _("&Fax"), style=wx.BU_EXACTFIT) 37 38 self.__set_properties() 39 self.__do_layout() 40 41 self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._on_list_item_selected, self._LCTRL_items) 42 self.Bind(wx.EVT_BUTTON, self._on_add_items_button_pressed, self._BTN_add_items) 43 self.Bind(wx.EVT_BUTTON, self._on_add_directory_button_pressed, self._BTN_add_directory) 44 self.Bind(wx.EVT_BUTTON, self._on_add_from_archive_button_pressed, self._BTN_add_from_archive) 45 self.Bind(wx.EVT_BUTTON, self._on_scan_items_button_pressed, self._BTN_scan_items) 46 self.Bind(wx.EVT_BUTTON, self._on_clipboard_items_button_pressed, self._BTN_clipboard_items) 47 self.Bind(wx.EVT_BUTTON, self._on_show_item_button_pressed, self._BTN_show_item) 48 self.Bind(wx.EVT_BUTTON, self._on_save_items_button_pressed, self._BTN_save_items) 49 self.Bind(wx.EVT_BUTTON, self._on_export_items_button_pressed, self._BTN_export_items) 50 self.Bind(wx.EVT_BUTTON, self._on_archive_items_button_pressed, self._BTN_archive_items) 51 self.Bind(wx.EVT_BUTTON, self._on_remove_items_button_pressed, self._BTN_remove_items) 52 self.Bind(wx.EVT_BUTTON, self._on_print_items_button_pressed, self._BTN_print_items) 53 self.Bind(wx.EVT_BUTTON, self._on_remote_print_button_pressed, self._BTN_remote_print) 54 self.Bind(wx.EVT_BUTTON, self._on_mail_items_button_pressed, self._BTN_mail_items) 55 self.Bind(wx.EVT_BUTTON, self._on_fax_items_button_pressed, self._BTN_fax_items)
56 # end wxGlade 57
58 - def __set_properties(self):
59 # begin wxGlade: wxgExportAreaPluginPnl.__set_properties 60 self._BTN_add_items.SetToolTip(_("Add document(s) from file(s).")) 61 self._BTN_add_directory.SetToolTip(_("Add a local directory.")) 62 self._BTN_add_from_archive.SetToolTip(_("Add document(s) from archive.")) 63 self._BTN_scan_items.SetToolTip(_("Acquire images from image source (scanner, ...).")) 64 self._BTN_clipboard_items.SetToolTip(_("Acquire file or text from the clipboard.")) 65 self._BTN_show_item.SetToolTip(_("Show the topmost selected document.")) 66 self._BTN_save_items.SetToolTip(_("Save selected/all items to disk.")) 67 self._BTN_export_items.SetToolTip(_("Export all/selected items to removable media (CD/DVD/USB).")) 68 self._BTN_archive_items.SetToolTip(_("Store selected/all documents in document archive.")) 69 self._BTN_remove_items.SetToolTip(_("Remove the selected documents.")) 70 self._BTN_print_items.SetToolTip(_("Print selected/all documents.")) 71 self._BTN_remote_print.SetToolTip(_("Put selected/all documents into remote print manager.")) 72 self._BTN_mail_items.SetToolTip(_("E-mail selected/all documents.")) 73 self._BTN_fax_items.SetToolTip(_("Fax selected/all documents."))
74 # end wxGlade 75
76 - def __do_layout(self):
77 # begin wxGlade: wxgExportAreaPluginPnl.__do_layout 78 __szr_main = wx.BoxSizer(wx.HORIZONTAL) 79 __szr_buttons_right = wx.BoxSizer(wx.VERTICAL) 80 __szr_main.Add(self._LCTRL_items, 1, wx.EXPAND | wx.RIGHT, 5) 81 __szr_buttons_right.Add((20, 20), 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND, 3) 82 __szr_buttons_right.Add(self._BTN_add_items, 0, wx.BOTTOM | wx.EXPAND, 3) 83 __szr_buttons_right.Add(self._BTN_add_directory, 0, wx.BOTTOM | wx.EXPAND, 3) 84 __szr_buttons_right.Add(self._BTN_add_from_archive, 0, wx.BOTTOM | wx.EXPAND, 3) 85 __szr_buttons_right.Add(self._BTN_scan_items, 0, wx.BOTTOM | wx.EXPAND, 3) 86 __szr_buttons_right.Add(self._BTN_clipboard_items, 0, wx.BOTTOM | wx.EXPAND, 3) 87 __szr_buttons_right.Add((20, 20), 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 88 __szr_buttons_right.Add(self._BTN_show_item, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND, 3) 89 __szr_buttons_right.Add(self._BTN_save_items, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND, 3) 90 __szr_buttons_right.Add(self._BTN_export_items, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND, 3) 91 __szr_buttons_right.Add(self._BTN_archive_items, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND, 3) 92 __szr_buttons_right.Add(self._BTN_remove_items, 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 3) 93 __szr_buttons_right.Add((20, 20), 0, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 94 __szr_buttons_right.Add(self._BTN_print_items, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND, 3) 95 __szr_buttons_right.Add(self._BTN_remote_print, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND, 3) 96 __szr_buttons_right.Add(self._BTN_mail_items, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND, 3) 97 __szr_buttons_right.Add(self._BTN_fax_items, 0, wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM | wx.EXPAND, 3) 98 __szr_main.Add(__szr_buttons_right, 0, wx.EXPAND, 0) 99 self.SetSizer(__szr_main) 100 __szr_main.Fit(self) 101 self.Layout()
102 # end wxGlade 103
104 - def _on_list_item_selected(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
105 print("Event handler '_on_list_item_selected' not implemented!") 106 event.Skip()
107
108 - def _on_add_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
109 print("Event handler '_on_add_items_button_pressed' not implemented!") 110 event.Skip() 111
112 - def _on_add_directory_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
113 print("Event handler '_on_add_directory_button_pressed' not implemented!") 114 event.Skip() 115
116 - def _on_add_from_archive_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
117 print("Event handler '_on_add_from_archive_button_pressed' not implemented!") 118 event.Skip() 119
120 - def _on_scan_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
121 print("Event handler '_on_scan_items_button_pressed' not implemented!") 122 event.Skip() 123
124 - def _on_clipboard_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
125 print("Event handler '_on_clipboard_items_button_pressed' not implemented!") 126 event.Skip() 127
128 - def _on_show_item_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
129 print("Event handler '_on_show_item_button_pressed' not implemented!") 130 event.Skip() 131
132 - def _on_save_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
133 print("Event handler '_on_save_items_button_pressed' not implemented!") 134 event.Skip() 135
136 - def _on_export_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
137 print("Event handler '_on_export_items_button_pressed' not implemented!") 138 event.Skip() 139
140 - def _on_archive_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
141 print("Event handler '_on_archive_items_button_pressed' not implemented!") 142 event.Skip() 143
144 - def _on_remove_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
145 print("Event handler '_on_remove_items_button_pressed' not implemented!") 146 event.Skip() 147
148 - def _on_print_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
149 print("Event handler '_on_print_items_button_pressed' not implemented!") 150 event.Skip() 151
152 - def _on_remote_print_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
153 print("Event handler '_on_remote_print_button_pressed' not implemented!") 154 event.Skip() 155
156 - def _on_mail_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
157 print("Event handler '_on_mail_items_button_pressed' not implemented!") 158 event.Skip() 159
160 - def _on_fax_items_button_pressed(self, event): # wxGlade: wxgExportAreaPluginPnl.<event_handler>
161 print("Event handler '_on_fax_items_button_pressed' not implemented!") 162 event.Skip() 163 164 # end of class wxgExportAreaPluginPnl 165