# Path: sunflower/plugin_base/provider.py
# class FileType:
# 	INVALID = -1
# 	REGULAR = 0
# 	DIRECTORY = 1
# 	LINK = 2
# 	SOCKET = 3
# 	DEVICE_CHARACTER = 4
# 	DEVICE_BLOCK = 5
# 
# class Mode:
# 	READ = 0
# 	WRITE = 1
# 	APPEND = 2
# 	READ_APPEND = 3
# 
# Path: sunflower/plugin_base/find_extension.py
# class FindExtension:
# 	"""Base class for extending find files tool.
# 
# 	Use this class to provide find files tool with additional
# 	options. Objects are created every time tool is created!
# 
# 	"""
# 
# 	def __init__(self, parent, always_on=False):
# 		self._parent = parent
# 		self._active = always_on
# 
# 		# create and configure title widget
# 		self.title = TitleRow(self, always_on)
# 		self.title.check.connect('state-set', self.__handle_state_set)
# 
# 		# create and configure container
# 		self.container = Gtk.VBox.new(False, 5)
# 		self.container.set_border_width(10)
# 		self.container.extension = self
# 
# 	def __handle_state_set(self, widget, state):
# 		"""Update extension active."""
# 		self._active = state
# 
# 	def __get_active(self):
# 		"""Get state of the extension."""
# 		return self._active
# 
# 	def __set_active(self, value):
# 		"""Set state of the extension."""
# 		self._active = value
# 		self.title.set_active(value)
# 
# 	def get_title(self):
# 		"""Return name of the extension."""
# 		return None
# 
# 	def get_title_widget(self):
# 		"""Return title widget for extension."""
# 		return self.title
# 
# 	def get_container(self):
# 		"""Return widget container."""
# 		return self.container
# 
# 	def is_path_ok(self, provider, path):
# 		"""Check is specified path fits the cirteria."""
# 		return True
# 
# 	active = property(__get_active, __set_active)


from gi.repository import Gtk
from sunflower.plugin_base.provider import FileType, Mode
from sunflower.plugin_base.find_extension import FindExtension
from __future__ import absolute_import



class ContentsFindFiles(FindExtension):
	"""Extension for finding specified contents in files"""

	def __init__(self, parent):

# Path: sunflower/plugin_base/provider.py
# class FileType:
# 	INVALID = -1
# 	REGULAR = 0
# 	DIRECTORY = 1
# 	LINK = 2
# 	SOCKET = 3
# 	DEVICE_CHARACTER = 4
# 	DEVICE_BLOCK = 5
# 
# class Mode:
# 	READ = 0
# 	WRITE = 1
# 	APPEND = 2
# 	READ_APPEND = 3
# 
# Path: sunflower/plugin_base/find_extension.py
# class FindExtension:
# 	"""Base class for extending find files tool.
# 
# 	Use this class to provide find files tool with additional
# 	options. Objects are created every time tool is created!
# 
# 	"""
# 
# 	def __init__(self, parent, always_on=False):
# 		self._parent = parent
# 		self._active = always_on
# 
# 		# create and configure title widget
# 		self.title = TitleRow(self, always_on)
# 		self.title.check.connect('state-set', self.__handle_state_set)
# 
# 		# create and configure container
# 		self.container = Gtk.VBox.new(False, 5)
# 		self.container.set_border_width(10)
# 		self.container.extension = self
# 
# 	def __handle_state_set(self, widget, state):
# 		"""Update extension active."""
# 		self._active = state
# 
# 	def __get_active(self):
# 		"""Get state of the extension."""
# 		return self._active
# 
# 	def __set_active(self, value):
# 		"""Set state of the extension."""
# 		self._active = value
# 		self.title.set_active(value)
# 
# 	def get_title(self):
# 		"""Return name of the extension."""
# 		return None
# 
# 	def get_title_widget(self):
# 		"""Return title widget for extension."""
# 		return self.title
# 
# 	def get_container(self):
# 		"""Return widget container."""
# 		return self.container
# 
# 	def is_path_ok(self, provider, path):
# 		"""Check is specified path fits the cirteria."""
# 		return True
# 
# 	active = property(__get_active, __set_active)


# Path: sunflower/plugins/find_file_extensions/contents.py
from gi.repository import Gtk
from sunflower.plugin_base.provider import FileType, Mode
from sunflower.plugin_base.find_extension import FindExtension

from __future__ import absolute_import



class ContentsFindFiles(FindExtension):
	"""Extension for finding specified contents in files"""

	def __init__(self, parent):

		FindExtension.__init__(self, parent)