# Path: Pyblio/GnomeUI/Utils.py
# class Callback:
# class Builder:
#     def __init__ (self, question, parent = None, cancel_add = False):
#     def answer (self):
#     def __init__(self, parent=None, window=None):
#     def size_save (self):
# def set_cursor (self, name):
# def popup_add (menu, item, action = None, argument = None):
# def error_dialog(title, err, parent=None):
# def error_dialog_s(parent, primary, secondary=None):
# def warning_dialog_s(parent, primary, secondary=None):
# 
# Path: Pyblio/Config.py
# class ConfigItem:
# class Storage:
# class PrimaryType:
# class String (PrimaryType):
# class Boolean (PrimaryType):
# class Integer (PrimaryType):
# class Element:
# class Tuple:
# class List:
# class Dict:
#     def __init__ (self, name, description, vtype = None, hook = None, user = None):
#     def set (self, value):
#     def get (self):
#     def __init__ (self):
#     def eventually_resolve (self, key):
#     def domains (self):
#         def fill_hash (key, hsht = hsht): hsht [key] = 1
#     def keys_in_domain (self, domain):
#         def test_dom (key, dom = domain):
#     def keys (self):
#     def has_key (self, key):
#     def __getitem__ (self, key):
#     def __setitem__ (self, key, value):
#     def parse_dir (self, dir):
# def define (key, description, vtype = None, hook = None, user = None):
# def set(key, value):
# def set_and_save  (key, value):
# def forget_changes ():
# def get (key):
# def keys ():
# def has_key (key):
# def domains ():
# def keys_in_domain (domain):
# def parse_directory (dir):
#     def match (self, value):
#     def __init__ (self):
#     def __str__ (self):
#     def __init__ (self):
#     def __str__ (self):
#     def __init__ (self, min = None, max = None):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, elements):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, subtypes):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, subtype):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, key, value):
#     def match (self, value):
#     def __str__ (self):
# def load_user ():
# def save_user (changed):


import copy
import re
import string
import gobject
import gtk
from gettext import gettext as _
from Pyblio.GnomeUI import Utils
from Pyblio import Config
# TO DO:
# List view troubles




_map = string.maketrans ('\t\n', '  ')
_cpt = re.compile ('\s+')


class ConfigDialog (Utils.Builder):
    gladeinfo = {
        'file': 'config.ui',
        'root': 'config',
        'name': 'configuration'
        }

    def __init__(self, parent=None):
        Utils.Builder.__init__(self, parent, window='config')

        self.dialog = self.xml.get_object('config')
        content = self.xml.get_object('dialog-vbox1')

        self.w = gtk.Notebook ()

        content.pack_start (self.w)

        self.warning = False
        self.parent = parent
        

# Path: Pyblio/GnomeUI/Utils.py
# class Callback:
# class Builder:
#     def __init__ (self, question, parent = None, cancel_add = False):
#     def answer (self):
#     def __init__(self, parent=None, window=None):
#     def size_save (self):
# def set_cursor (self, name):
# def popup_add (menu, item, action = None, argument = None):
# def error_dialog(title, err, parent=None):
# def error_dialog_s(parent, primary, secondary=None):
# def warning_dialog_s(parent, primary, secondary=None):
# 
# Path: Pyblio/Config.py
# class ConfigItem:
# class Storage:
# class PrimaryType:
# class String (PrimaryType):
# class Boolean (PrimaryType):
# class Integer (PrimaryType):
# class Element:
# class Tuple:
# class List:
# class Dict:
#     def __init__ (self, name, description, vtype = None, hook = None, user = None):
#     def set (self, value):
#     def get (self):
#     def __init__ (self):
#     def eventually_resolve (self, key):
#     def domains (self):
#         def fill_hash (key, hsht = hsht): hsht [key] = 1
#     def keys_in_domain (self, domain):
#         def test_dom (key, dom = domain):
#     def keys (self):
#     def has_key (self, key):
#     def __getitem__ (self, key):
#     def __setitem__ (self, key, value):
#     def parse_dir (self, dir):
# def define (key, description, vtype = None, hook = None, user = None):
# def set(key, value):
# def set_and_save  (key, value):
# def forget_changes ():
# def get (key):
# def keys ():
# def has_key (key):
# def domains ():
# def keys_in_domain (domain):
# def parse_directory (dir):
#     def match (self, value):
#     def __init__ (self):
#     def __str__ (self):
#     def __init__ (self):
#     def __str__ (self):
#     def __init__ (self, min = None, max = None):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, elements):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, subtypes):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, subtype):
#     def match (self, value):
#     def __str__ (self):
#     def __init__ (self, key, value):
#     def match (self, value):
#     def __str__ (self):
# def load_user ():
# def save_user (changed):


# Path: Pyblio/GnomeUI/Config.py
import copy
import re
import string
import gobject
import gtk
from gettext import gettext as _
from Pyblio.GnomeUI import Utils
from Pyblio import Config

# TO DO:
# List view troubles




_map = string.maketrans ('\t\n', '  ')
_cpt = re.compile ('\s+')


class ConfigDialog (Utils.Builder):
    gladeinfo = {
        'file': 'config.ui',
        'root': 'config',
        'name': 'configuration'
        }

    def __init__(self, parent=None):
        Utils.Builder.__init__(self, parent, window='config')

        self.dialog = self.xml.get_object('config')
        content = self.xml.get_object('dialog-vbox1')

        self.w = gtk.Notebook ()

        content.pack_start (self.w)

        self.warning = False
        self.parent = parent
        

        domains = Config.domains ()