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