#!/usr/bin/env python
# -*- coding: ISO-8859-15 -*-
# generated by wxGlade 0.3.5 on Wed Oct 27 15:47:24 2004

from wxPython.wx import *

class wxGladePreferencesUI(wxDialog):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxGladePreferencesUI.__init__
        kwds["style"] = wxDEFAULT_DIALOG_STYLE
        wxDialog.__init__(self, *args, **kwds)
        self.notebook_1 = wxNotebook(self, -1, style=0)
        self.notebook_1_pane_2 = wxPanel(self.notebook_1, -1)
        self.sizer_6_staticbox = wxStaticBox(self.notebook_1_pane_2, -1, "Local widget path")
        self.notebook_1_pane_1 = wxPanel(self.notebook_1, -1)
        self.use_menu_icons = wxCheckBox(self.notebook_1_pane_1, -1, "Use icons in menu items")
        self.frame_tool_win = wxCheckBox(self.notebook_1_pane_1, -1, "Show properties and tree windows as small frames (Win32 only)")
        self.show_progress = wxCheckBox(self.notebook_1_pane_1, -1, "Show progress dialog when loading wxg files")
        self.remember_geometry = wxCheckBox(self.notebook_1_pane_1, -1, "Remember position and size of wxGlade windows")
        self.show_sizer_handle = wxCheckBox(self.notebook_1_pane_1, -1, "Show \"handles\" of sizers")
        self.use_kde_dialogs = wxCheckBox(self.notebook_1_pane_1, -1, "Use native file dialogs on KDE")
        self.open_save_path = wxTextCtrl(self.notebook_1_pane_1, -1, "")
        self.codegen_path = wxTextCtrl(self.notebook_1_pane_1, -1, "")
        self.number_history = wxSpinCtrl(self.notebook_1_pane_1, -1, "4", min=0, max=100)
        self.buttons_per_row = wxSpinCtrl(self.notebook_1_pane_1, -1, "5", min=1, max=100)
        self.use_dialog_units = wxCheckBox(self.notebook_1_pane_2, -1, "Use dialog units by default for size properties")
        self.wxg_backup = wxCheckBox(self.notebook_1_pane_2, -1, "Create backup wxg files")
        self.codegen_backup = wxCheckBox(self.notebook_1_pane_2, -1, "Create backup files for generated source")
        self.allow_duplicate_names = wxCheckBox(self.notebook_1_pane_2, -1, "Allow duplicate widget names")
        self.default_border = wxCheckBox(self.notebook_1_pane_2, -1, "Default border width for widgets")
        self.default_border_size = wxSpinCtrl(self.notebook_1_pane_2, -1, "", min=0, max=20)
        self.autosave = wxCheckBox(self.notebook_1_pane_2, -1, "Auto save wxg files every ")
        self.autosave_delay = wxSpinCtrl(self.notebook_1_pane_2, -1, "120", min=30, max=300)
        self.backup_suffix = wxRadioBox(self.notebook_1_pane_2, -1, "Backup options", choices=["append ~ to filename", "append .bak to filename"], majorDimension=2, style=wxRA_SPECIFY_COLS)
        self.local_widget_path = wxTextCtrl(self.notebook_1_pane_2, -1, "")
        self.choose_widget_path = wxButton(self.notebook_1_pane_2, -1, "...", style=wxBU_EXACTFIT)
        self.ok = wxButton(self, wxID_OK, "OK")
        self.cancel = wxButton(self, wxID_CANCEL, "Cancel")

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

    def __set_properties(self):
        # begin wxGlade: wxGladePreferencesUI.__set_properties
        self.SetTitle("wxGlade: preferences")
        self.use_menu_icons.SetValue(1)
        self.frame_tool_win.SetValue(1)
        self.show_progress.SetValue(1)
        self.remember_geometry.SetValue(1)
        self.show_sizer_handle.SetValue(1)
        self.use_kde_dialogs.SetValue(1)
        self.open_save_path.SetSize((196, -1))
        self.codegen_path.SetSize((196, -1))
        self.number_history.SetSize((196, -1))
        self.buttons_per_row.SetSize((196, -1))
        self.wxg_backup.SetValue(1)
        self.codegen_backup.SetValue(1)
        self.allow_duplicate_names.Hide()
        self.default_border_size.SetSize((45, 22))
        self.autosave_delay.SetSize((45, 22))
        self.backup_suffix.SetSelection(0)
        self.ok.SetDefault()
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxGladePreferencesUI.__do_layout
        sizer_1 = wxBoxSizer(wxVERTICAL)
        sizer_2 = wxBoxSizer(wxHORIZONTAL)
        sizer_5 = wxBoxSizer(wxVERTICAL)
        sizer_6 = wxStaticBoxSizer(self.sizer_6_staticbox, wxHORIZONTAL)
        sizer_7_copy = wxBoxSizer(wxHORIZONTAL)
        sizer_7 = wxBoxSizer(wxHORIZONTAL)
        sizer_3 = wxBoxSizer(wxVERTICAL)
        sizer_4 = wxFlexGridSizer(4, 2, 0, 0)
        sizer_3.Add(self.use_menu_icons, 0, wxALL|wxEXPAND, 5)
        sizer_3.Add(self.frame_tool_win, 0, wxALL|wxEXPAND, 5)
        sizer_3.Add(self.show_progress, 0, wxALL|wxEXPAND, 5)
        sizer_3.Add(self.remember_geometry, 0, wxALL|wxEXPAND, 5)
        sizer_3.Add(self.show_sizer_handle, 0, wxALL|wxEXPAND, 5)
        sizer_3.Add(self.use_kde_dialogs, 0, wxALL|wxEXPAND, 5)
        label_1 = wxStaticText(self.notebook_1_pane_1, -1, "Initial path for \nfile opening/saving dialogs:")
        sizer_4.Add(label_1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5)
        sizer_4.Add(self.open_save_path, 1, wxALL|wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5)
        label_2_copy = wxStaticText(self.notebook_1_pane_1, -1, "Initial path for \ncode generation file dialogs:")
        sizer_4.Add(label_2_copy, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5)
        sizer_4.Add(self.codegen_path, 1, wxALL|wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5)
        label_2 = wxStaticText(self.notebook_1_pane_1, -1, "Number of items in file history\n(wxPython >= 2.3.3)")
        sizer_4.Add(label_2, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5)
        sizer_4.Add(self.number_history, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5)
        label_2_copy_1 = wxStaticText(self.notebook_1_pane_1, -1, "Number of buttons per row\nin the main palette")
        sizer_4.Add(label_2_copy_1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5)
        sizer_4.Add(self.buttons_per_row, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5)
        sizer_4.AddGrowableCol(1)
        sizer_3.Add(sizer_4, 0, wxEXPAND, 3)
        self.notebook_1_pane_1.SetAutoLayout(True)
        self.notebook_1_pane_1.SetSizer(sizer_3)
        sizer_3.Fit(self.notebook_1_pane_1)
        sizer_3.SetSizeHints(self.notebook_1_pane_1)
        sizer_5.Add(self.use_dialog_units, 0, wxALL|wxEXPAND, 5)
        sizer_5.Add(self.wxg_backup, 0, wxALL|wxEXPAND, 5)
        sizer_5.Add(self.codegen_backup, 0, wxALL|wxEXPAND, 5)
        sizer_5.Add(self.allow_duplicate_names, 0, wxALL|wxEXPAND, 5)
        sizer_7.Add(self.default_border, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5)
        sizer_7.Add(self.default_border_size, 0, wxALL|wxFIXED_MINSIZE, 5)
        sizer_5.Add(sizer_7, 0, wxEXPAND, 0)
        sizer_7_copy.Add(self.autosave, 0, wxLEFT|wxTOP|wxBOTTOM|wxALIGN_CENTER_VERTICAL, 5)
        sizer_7_copy.Add(self.autosave_delay, 0, wxTOP|wxBOTTOM|wxFIXED_MINSIZE, 5)
        label_3 = wxStaticText(self.notebook_1_pane_2, -1, " seconds")
        sizer_7_copy.Add(label_3, 0, wxTOP|wxBOTTOM|wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5)
        sizer_5.Add(sizer_7_copy, 0, wxEXPAND, 0)
        sizer_5.Add(self.backup_suffix, 0, wxALL|wxEXPAND, 5)
        sizer_6.Add(self.local_widget_path, 1, wxALL, 3)
        sizer_6.Add(self.choose_widget_path, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3)
        sizer_5.Add(sizer_6, 0, wxALL|wxEXPAND, 5)
        self.notebook_1_pane_2.SetAutoLayout(True)
        self.notebook_1_pane_2.SetSizer(sizer_5)
        sizer_5.Fit(self.notebook_1_pane_2)
        sizer_5.SetSizeHints(self.notebook_1_pane_2)
        self.notebook_1.AddPage(self.notebook_1_pane_1, "Interface")
        self.notebook_1.AddPage(self.notebook_1_pane_2, "Other")
        sizer_1.Add(wxNotebookSizer(self.notebook_1), 1, wxALL|wxEXPAND, 5)
        sizer_2.Add(self.ok, 0, 0, 0)
        sizer_2.Add(self.cancel, 0, wxLEFT, 10)
        sizer_1.Add(sizer_2, 0, wxALL|wxALIGN_RIGHT, 10)
        self.SetAutoLayout(True)
        self.SetSizer(sizer_1)
        sizer_1.Fit(self)
        sizer_1.SetSizeHints(self)
        self.Layout()
        # end wxGlade

# end of class wxGladePreferencesUI


