# Path: Pyblio/Fields.py
# def get_formatter (format):
#     def __init__ (self, copy = None, strict = 0):
#                 def clean_entry (f):
#     def format (self, fmt = 'latin1'):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def initials (self, format = None):
#     def __cmp__ (self, other):
#     def __init__ (self, text = ''):
#     def __getitem__ (self, pos):
#     def __setitem__ (self, pos, val):
#     def __len__ (self):
#     def append (self, value):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def __init__ (self, arg = (None, None, None)):
#     def __cmp__ (self, other):
#     def __str__ (self):
#     def format (self, fmt = 'latin1'):
#     def __repr__ (self):
#     def match (self, regex):
#     def asInt (self):
#     def __init__ (self, text):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def format (self, fmt = 'latin1'):
#     def __str__  (self):
#     def __repr__ (self):
#     def __len__  (self):
#     def __getitem__ (self, key):
#     def __init__ (self, url, invalid=False,
# 		  inexact=False, date='', note=''):
#     def set (self, other):
#     def full (self):
#     def parse_full (self, s):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def __hash__ (self):
#     def __str__ (self):
#     def __repr__ (self):
#     def get_url (self):
#     def __init__ (self, keylist, database = None):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def format (self, fmt = 'latin1'):
# class Author:
# class AuthorGroup:
# class Date:
# class Text:
# class LongText (Text) :
# class URL:
# class Reference:
# 
# Path: Pyblio/Resource.py
# CHOOSER_ACTIONS = ('enter/edit', 'select', 'select-directory',
#                'download', 'move/copy' )
#     R = userexit.resource_viewer_select (Director, item)
# def is_interactive ():
# def is_viewable (item):
# def get_viewables (item, priority=[]):
# def StartViewer (entry, key, stringuri, parent=None, document=None):
# class ResourceDirector (object):


import gtk
import gtk.gdk
import pango
from gettext import gettext as _
from  Pyblio import Fields, Resource
      adds some fields to enter additional information for an URL.


     --


"""



RESPONSE_COPY = 1
RESPONSE_VIEW = 2


def get_icon_theme (widget):

    if gtk.widget_has_screen (widget):
	return gtk.icon_theme_get_for_screen (gtk.widget_get_screen (widget))
    return gtk.icon_theme_get_default ();


class filechooserbutton (gtk.Button):
    def __init__ (self, URL=None, action='enter/edit', parent=None):
	gtk.Button.__init__ (self)

	self.parent_widget = parent
	self.url = URL or Fields.URL ()
	self.newuri = None
	assert isinstance (URL, Fields.URL)
	self.action = action

# Path: Pyblio/Fields.py
# def get_formatter (format):
#     def __init__ (self, copy = None, strict = 0):
#                 def clean_entry (f):
#     def format (self, fmt = 'latin1'):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def initials (self, format = None):
#     def __cmp__ (self, other):
#     def __init__ (self, text = ''):
#     def __getitem__ (self, pos):
#     def __setitem__ (self, pos, val):
#     def __len__ (self):
#     def append (self, value):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def __init__ (self, arg = (None, None, None)):
#     def __cmp__ (self, other):
#     def __str__ (self):
#     def format (self, fmt = 'latin1'):
#     def __repr__ (self):
#     def match (self, regex):
#     def asInt (self):
#     def __init__ (self, text):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def format (self, fmt = 'latin1'):
#     def __str__  (self):
#     def __repr__ (self):
#     def __len__  (self):
#     def __getitem__ (self, key):
#     def __init__ (self, url, invalid=False,
# 		  inexact=False, date='', note=''):
#     def set (self, other):
#     def full (self):
#     def parse_full (self, s):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def __hash__ (self):
#     def __str__ (self):
#     def __repr__ (self):
#     def get_url (self):
#     def __init__ (self, keylist, database = None):
#     def __str__ (self):
#     def __repr__ (self):
#     def match (self, regex):
#     def __cmp__ (self, other):
#     def format (self, fmt = 'latin1'):
# class Author:
# class AuthorGroup:
# class Date:
# class Text:
# class LongText (Text) :
# class URL:
# class Reference:
# 
# Path: Pyblio/Resource.py
# CHOOSER_ACTIONS = ('enter/edit', 'select', 'select-directory',
#                'download', 'move/copy' )
#     R = userexit.resource_viewer_select (Director, item)
# def is_interactive ():
# def is_viewable (item):
# def get_viewables (item, priority=[]):
# def StartViewer (entry, key, stringuri, parent=None, document=None):
# class ResourceDirector (object):


# Path: Pyblio/GnomeUI/Common.py
import gtk
import gtk.gdk
import pango
from gettext import gettext as _
from  Pyblio import Fields, Resource

      adds some fields to enter additional information for an URL.


     --


"""



RESPONSE_COPY = 1
RESPONSE_VIEW = 2


def get_icon_theme (widget):

    if gtk.widget_has_screen (widget):
	return gtk.icon_theme_get_for_screen (gtk.widget_get_screen (widget))
    return gtk.icon_theme_get_default ();


class filechooserbutton (gtk.Button):
    def __init__ (self, URL=None, action='enter/edit', parent=None):
	gtk.Button.__init__ (self)

	self.parent_widget = parent
	self.url = URL or Fields.URL ()
	self.newuri = None
	assert isinstance (URL, Fields.URL)
	self.action = action

	assert action in Resource.CHOOSER_ACTIONS, "Invalid file chooser action"