#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.5 on Mon Nov 26 19:02:45 2007 from /home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgNameGenderDOBEditArea.wxg

import wx

class wxgNameGenderDOBEditAreaPnl(wx.ScrolledWindow):
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmDemographicsWidgets, gmDateTimeInput

        # begin wxGlade: wxgNameGenderDOBEditAreaPnl.__init__
        kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
        wx.ScrolledWindow.__init__(self, *args, **kwds)
        self._PRW_title = gmDemographicsWidgets.cTitlePhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._PRW_firstname = gmDemographicsWidgets.cFirstnamePhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._PRW_lastname = gmDemographicsWidgets.cLastnamePhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._PRW_nick = gmDemographicsWidgets.cNicknamePhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._PRW_dob = gmDateTimeInput.cFuzzyTimestampInput(self, -1, "", style=wx.NO_BORDER)
        self._PRW_gender = gmDemographicsWidgets.cGenderSelectionPhraseWheel(self, -1, "", style=wx.NO_BORDER)
        self._CHBOX_active = wx.CheckBox(self, -1, _("active"))
        self._TCTRL_comment = wx.TextCtrl(self, -1, "", style=wx.NO_BORDER)

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxgNameGenderDOBEditAreaPnl.__set_properties
        self.SetScrollRate(10, 10)
        self._CHBOX_active.SetToolTipString(_("Check this to make this the currently active name."))
        self._TCTRL_comment.SetToolTipString(_("Enter a comment relevant to this name (such as \"before marriage\")."))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxgNameGenderDOBEditAreaPnl.__do_layout
        _gszr_main = wx.FlexGridSizer(10, 2, 3, 5)
        __szr_gender = wx.BoxSizer(wx.HORIZONTAL)
        __LBL_title = wx.StaticText(self, -1, _("Title"))
        _gszr_main.Add(__LBL_title, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        _gszr_main.Add(self._PRW_title, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __LBL_firstname = wx.StaticText(self, -1, _("First name"))
        _gszr_main.Add(__LBL_firstname, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        _gszr_main.Add(self._PRW_firstname, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __LBL_lastname = wx.StaticText(self, -1, _("Last name"))
        _gszr_main.Add(__LBL_lastname, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        _gszr_main.Add(self._PRW_lastname, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __LBL_preferred = wx.StaticText(self, -1, _("Nick name"))
        _gszr_main.Add(__LBL_preferred, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        _gszr_main.Add(self._PRW_nick, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __LBL_dob = wx.StaticText(self, -1, _("Date of birth"))
        _gszr_main.Add(__LBL_dob, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        _gszr_main.Add(self._PRW_dob, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __LBL_gender = wx.StaticText(self, -1, _("Gender"))
        _gszr_main.Add(__LBL_gender, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_gender.Add(self._PRW_gender, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_gender.Add(self._CHBOX_active, 0, wx.LEFT|wx.ALIGN_CENTER_VERTICAL, 10)
        _gszr_main.Add(__szr_gender, 1, wx.EXPAND, 0)
        __LBL_comment = wx.StaticText(self, -1, _("Comment"))
        _gszr_main.Add(__LBL_comment, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        _gszr_main.Add(self._TCTRL_comment, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        self.SetSizer(_gszr_main)
        _gszr_main.Fit(self)
        _gszr_main.AddGrowableCol(1)
        # end wxGlade

# end of class wxgNameGenderDOBEditAreaPnl
