#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.5 on Mon Aug 20 16:52:36 2007 from /home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxgFormTemplateEditAreaDlg.wxg

import wx

class wxgFormTemplateEditAreaDlg(wx.Dialog):
    def __init__(self, *args, **kwds):

        from Gnumed.wxpython import gmFormWidgets

        # begin wxGlade: wxgFormTemplateEditAreaDlg.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.THICK_FRAME|wx.STAY_ON_TOP
        wx.Dialog.__init__(self, *args, **kwds)
        self._PNL_edit_area = gmFormWidgets.cFormTemplateEditAreaPnl(self, -1)
        self._BTN_save = wx.Button(self, wx.ID_OK, _("Save"))
        self._BTN_close = wx.Button(self, wx.ID_CANCEL, _("Cancel"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, id=wx.ID_OK)
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxgFormTemplateEditAreaDlg.__set_properties
        self.SetTitle(_("edit form template details"))
        self.SetSize(wx.DLG_SZE(self, (450, 200)))
        self._BTN_save.SetToolTipString(_("Save the encounter details."))
        self._BTN_close.SetToolTipString(_("Close this dialog."))
        self._BTN_close.SetDefault()
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxgFormTemplateEditAreaDlg.__do_layout
        __szr_main = wx.BoxSizer(wx.VERTICAL)
        __szr_buttons = wx.BoxSizer(wx.HORIZONTAL)
        __szr_main.Add(self._PNL_edit_area, 1, wx.ALL|wx.EXPAND, 3)
        __szr_buttons.Add(self._BTN_save, 0, wx.EXPAND, 0)
        __szr_buttons.Add((20, 20), 1, wx.EXPAND, 0)
        __szr_buttons.Add(self._BTN_close, 0, wx.EXPAND, 0)
        __szr_main.Add(__szr_buttons, 0, wx.TOP|wx.EXPAND, 15)
        self.SetSizer(__szr_main)
        self.Layout()
        self.Centre()
        # end wxGlade

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

# end of class wxgFormTemplateEditAreaDlg


if __name__ == "__main__":
    import gettext
    gettext.install("app") # replace with the appropriate catalog name

    app = wx.PySimpleApp(0)
    wx.InitAllImageHandlers()
    dialog_1 = wxgFormTemplateEditAreaDlg(None, -1, "")
    app.SetTopWindow(dialog_1)
    dialog_1.Show()
    app.MainLoop()
