--- /dev/null
+#!/usr/bin/env python
+# -*-coding: utf-8 -*-
+# vim: sw=4 ts=4 expandtab ai
+
+import gtk
+
+class Config_Control(object):
+ def __init__(self):
+ config = Config_Abstraction('findit.cfg')
+ conf_ui = Config_Presentation()
+
+
+class Config_Abstraction(object):
+ def __init__(self, config_file):
+ self.load_config(config_file)
+
+ def get_val(self, param):
+ return self.conf[param]
+
+ def set_val(self, param, value):
+ self.conf[param] = value
+
+ def load_config(self, config_file):
+ # Здесь планируется загрузка конфига из файла - пока так присваивается
+ self.conf = {}
+ self.conf['default_start_dir'] = '/home/'
+ self.conf['default_count'] = 10
+ self.conf['ignore_dir_list'] = ['/dev', '/proc', '/sys', '/mnt']
+
+ def save_config(self, config_file):
+ pass
+
+
+class Config_Presentation(gtk.Window):
+ def __init__(self):
+ gtk.Window.__init__(self)
+ self.set_border_width(4)
+ self.connect('delete_event', gtk.main_quit)
+
+ def run(self):
+ self.show_all()
+ gtk.main()