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

# Source Code for Module Gnumed.wxGladeWidgets.wxgSplittedEMRTreeBrowserPnl

     1  #!/usr/bin/env python
     2  # -*- coding: ISO-8859-15 -*-
     3  # generated by wxGlade 0.4cvs on Sun May 28 15:57:29 2006
     4
     5  import wx
     6
     7 -class wxgSplittedEMRTreeBrowserPnl(wx.Panel):
     8
     9 -    def __init__(self, *args, **kwds):
    10
    11          from Gnumed.wxpython import gmEMRBrowser
    12          from Gnumed.wxpython import gmNarrativeWidgets
    13
    14          # begin wxGlade: wxgSplittedEMRTreeBrowserPnl.__init__
    15          kwds["style"] = wx.TAB_TRAVERSAL
    16          wx.Panel.__init__(self, *args, **kwds)
    17          self._splitter_browser = wx.SplitterWindow(self, -1, style=wx.SP_3D|wx.SP_BORDER)
    18          self.__pnl_right_side = wx.Panel(self._splitter_browser, -1, style=wx.NO_BORDER)
    19          self.__pnl_left_side = wx.Panel(self._splitter_browser, -1, style=wx.NO_BORDER|wx.TAB_TRAVERSAL)
    20          self._pnl_emr_tree = gmEMRBrowser.cScrolledEMRTreePnl(self.__pnl_left_side, -1, style=wx.NO_BORDER|wx.TAB_TRAVERSAL)
    21          self._RBTN_details = wx.RadioButton(self.__pnl_right_side, -1, _("Synopsis"))
    22          self._RBTN_journal = wx.RadioButton(self.__pnl_right_side, -1, _("Journal"))
    23          self._TCTRL_item_details = wx.TextCtrl(self.__pnl_right_side, -1, "", style=wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL|wx.TE_WORDWRAP|wx.NO_BORDER)
    24          self._PNL_visual_soap = gmNarrativeWidgets.cVisualSoapPresenterPnl(self.__pnl_right_side, -1, style=wx.NO_BORDER)
    25
    26          self.__set_properties()
    27          self.__do_layout()
    28
    29          self.Bind(wx.EVT_RADIOBUTTON, self._on_show_details_selected, self._RBTN_details)
    30          self.Bind(wx.EVT_RADIOBUTTON, self._on_show_journal_selected, self._RBTN_journal)
    31          # end wxGlade
    32
    33 -    def __set_properties(self):
    34          # begin wxGlade: wxgSplittedEMRTreeBrowserPnl.__set_properties
    35          self._pnl_emr_tree.SetScrollRate(10, 10)
    36          self._RBTN_details.SetToolTipString(_("Show succinct item synopsis."))
    37          self._RBTN_details.SetValue(1)
    38          self._RBTN_journal.SetToolTipString(_("Show item journal."))
    39          # end wxGlade
    40
    41 -    def __do_layout(self):
    42          # begin wxGlade: wxgSplittedEMRTreeBrowserPnl.__do_layout
    43          __szr_main = wx.BoxSizer(wx.HORIZONTAL)
    44          __szr_right_side = wx.BoxSizer(wx.VERTICAL)
    45          __szr_item_details_options = wx.BoxSizer(wx.HORIZONTAL)
    46          __szr_left_side = wx.BoxSizer(wx.VERTICAL)
    47          __szr_left_side.Add(self._pnl_emr_tree, 1, wx.EXPAND, 0)
    48          self.__pnl_left_side.SetSizer(__szr_left_side)
    49          __lbl_show_mode = wx.StaticText(self.__pnl_right_side, -1, _("Show:"))
    50          __szr_item_details_options.Add(__lbl_show_mode, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
    51          __szr_item_details_options.Add(self._RBTN_details, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
    52          __szr_item_details_options.Add(self._RBTN_journal, 0, wx.ALIGN_CENTER_VERTICAL, 0)
    53          __szr_item_details_options.Add((20, 20), 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
    54          __szr_right_side.Add(__szr_item_details_options, 0, wx.EXPAND, 0)
    55          __szr_right_side.Add(self._TCTRL_item_details, 1, wx.TOP|wx.EXPAND, 3)
    56          __szr_right_side.Add(self._PNL_visual_soap, 0, wx.EXPAND, 0)
    57          self.__pnl_right_side.SetSizer(__szr_right_side)
    58          self._splitter_browser.SplitVertically(self.__pnl_left_side, self.__pnl_right_side)
    59          __szr_main.Add(self._splitter_browser, 1, wx.EXPAND, 0)
    60          self.SetSizer(__szr_main)
    61          __szr_main.Fit(self)
    62          # end wxGlade
    63
    64 -    def _on_show_details_selected(self, event): # wxGlade: wxgSplittedEMRTreeBrowserPnl.<event_handler>
    65          print "Event handler `_on_show_details_selected' not implemented"
    66          event.Skip()
    67
    68 -    def _on_show_journal_selected(self, event): # wxGlade: wxgSplittedEMRTreeBrowserPnl.<event_handler>
    69          print "Event handler `_on_show_journal_selected' not implemented"
    70          event.Skip()
    71
    72  # end of class wxgSplittedEMRTreeBrowserPnl
    73