#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.5 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgEMRJournalPluginPnl.wxg"

import wx

# begin wxGlade: extracode
# end wxGlade


class wxgEMRJournalPluginPnl(wx.ScrolledWindow):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxgEMRJournalPluginPnl.__init__
        kwds["style"] = wx.NO_BORDER | wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._RBTN_by_encounter = wx.RadioButton(self, -1, "&Encounter")
        self._RBTN_by_last_modified = wx.RadioButton(self, -1, "&Last modification time")
        self._SLINE_top = wx.StaticLine(self, -1)
        self._TCTRL_journal = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE | wx.TE_READONLY | wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_RADIOBUTTON, self._on_order_by_encounter_selected, self._RBTN_by_encounter)
        self.Bind(wx.EVT_RADIOBUTTON, self._on_order_by_last_mod_selected, self._RBTN_by_last_modified)
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxgEMRJournalPluginPnl.__set_properties
        self.SetScrollRate(10, 10)
        self._RBTN_by_encounter.SetToolTipString("Show journal ordered by encounter.")
        self._RBTN_by_encounter.SetValue(1)
        self._RBTN_by_last_modified.SetToolTipString("Show journal ordered by time of last modification.")
        self._TCTRL_journal.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
        self._TCTRL_journal.SetFont(wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL, 0, ""))
        self._TCTRL_journal.SetFocus()
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxgEMRJournalPluginPnl.__do_layout
        __szr_main = wx.BoxSizer(wx.VERTICAL)
        __szr_top = wx.BoxSizer(wx.HORIZONTAL)
        __lbl_mode = wx.StaticText(self, -1, "Order by:")
        __szr_top.Add(__lbl_mode, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)
        __szr_top.Add(self._RBTN_by_encounter, 0, wx.RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)
        __szr_top.Add(self._RBTN_by_last_modified, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_main.Add(__szr_top, 0, wx.LEFT | wx.RIGHT | wx.TOP | wx.EXPAND, 3)
        __szr_main.Add(self._SLINE_top, 0, wx.ALL | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_main.Add(self._TCTRL_journal, 1, wx.ALL | wx.EXPAND, 3)
        self.SetSizer(__szr_main)
        __szr_main.Fit(self)
        # end wxGlade

    def _on_order_by_encounter_selected(self, event):  # wxGlade: wxgEMRJournalPluginPnl.<event_handler>
        print "Event handler `_on_order_by_encounter_selected' not implemented!"
        event.Skip()

    def _on_order_by_last_mod_selected(self, event):  # wxGlade: wxgEMRJournalPluginPnl.<event_handler>
        print "Event handler `_on_order_by_last_mod_selected' not implemented!"
        event.Skip()

# end of class wxgEMRJournalPluginPnl
