# Path: oroboros/core/cfg.py
# def load():
# def save():
# def _test():
# 
# Path: oroboros/core/db.py
# class Object(object):
# 	def _get_idx(self):
# 	def _set_idx(self, idx):
# def _connect(dsn=_dsn):
# def _cursor(conn):
# def connect(dsn=_dsn):
# def execute(sql, var=None):
# def close():
# def autoconnect(dsn=_dsn):
# def _execute_file(path):
# def install(path=_dsn):
# def _check_version():
# def _create_functions(cnx):
# 	def regexp_search(pattern, string):
# def _test():
# 
# Path: oroboros/gui/app.py
# def appendMultiChart(cht):
# def insertMultiChart(idx, cht):
# def replaceMultiChart(idx, cht):
# def removeMultiChart(idx):
# def replaceChart(idx, num, cht):
# def removeChart(idx, num):
# def filterUpdatedEvent(idx):
# def planetsFilterUpdatedEvent(idx):
# def aspectsFilterUpdatedEvent(idx):
# def orbsFilterUpdatedEvent(idx):
# def aspectsRestrictionsUpdatedEvent(idx):
# def orbsRestrictionsUpdatedEvent(idx):
# def midPointsFilterUpdatedEvent(idx):
# 
# Path: oroboros/gui/names.py



import sys
import os.path
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from oroboros.core import cfg
from oroboros.core import db
from oroboros.core.planetsfilters import PlanetsFilter
from oroboros.gui import app
from oroboros.gui import names
		partsGrid = QGridLayout()
		partsWidget.setLayout(partsGrid)
		# part of fortune (rudhyar)
		self._cb['Part of Fortune (Rudhyar)'] = QCheckBox(
			names.planets['Part of Fortune (Rudhyar)'], self)
		partsGrid.addWidget(self._cb['Part of Fortune (Rudhyar)'], 0, 0)
		
		# ### fixed stars ###
		# get all stars
		sql = 'select name from Planets where family = 2 order by name;'
		res = db.execute(sql).fetchall()
		# stars tab
		starsScroll = QScrollArea()
		starsScroll.setWidgetResizable(True)
		starsWidget = QWidget()
		starsScroll.setWidget(starsWidget)
		tabs.addTab(starsScroll, tr('Stars'))
		starsGrid = QGridLayout()
		starsWidget.setLayout(starsGrid)
		y = 0
		for i, star in enumerate(res):
			s = str(star[0])
			self._cb[s] = QCheckBox(s, self)
			starsGrid.addWidget(self._cb[s], y, i % 6)
			if i % 6 == 5:
				y += 1
		
		# ### asteroids ###
		# get all asteroids
		sql = 'select name from Planets where family = 3 order by name;'

# Path: oroboros/core/cfg.py
# def load():
# def save():
# def _test():
# 
# Path: oroboros/core/db.py
# class Object(object):
# 	def _get_idx(self):
# 	def _set_idx(self, idx):
# def _connect(dsn=_dsn):
# def _cursor(conn):
# def connect(dsn=_dsn):
# def execute(sql, var=None):
# def close():
# def autoconnect(dsn=_dsn):
# def _execute_file(path):
# def install(path=_dsn):
# def _check_version():
# def _create_functions(cnx):
# 	def regexp_search(pattern, string):
# def _test():
# 
# Path: oroboros/gui/app.py
# def appendMultiChart(cht):
# def insertMultiChart(idx, cht):
# def replaceMultiChart(idx, cht):
# def removeMultiChart(idx):
# def replaceChart(idx, num, cht):
# def removeChart(idx, num):
# def filterUpdatedEvent(idx):
# def planetsFilterUpdatedEvent(idx):
# def aspectsFilterUpdatedEvent(idx):
# def orbsFilterUpdatedEvent(idx):
# def aspectsRestrictionsUpdatedEvent(idx):
# def orbsRestrictionsUpdatedEvent(idx):
# def midPointsFilterUpdatedEvent(idx):
# 
# Path: oroboros/gui/names.py



# Path: oroboros/gui/plntfilterdialog.py
import sys
import os.path
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from oroboros.core import cfg
from oroboros.core import db
from oroboros.core.planetsfilters import PlanetsFilter
from oroboros.gui import app
from oroboros.gui import names

		partsGrid = QGridLayout()
		partsWidget.setLayout(partsGrid)
		# part of fortune (rudhyar)
		self._cb['Part of Fortune (Rudhyar)'] = QCheckBox(
			names.planets['Part of Fortune (Rudhyar)'], self)
		partsGrid.addWidget(self._cb['Part of Fortune (Rudhyar)'], 0, 0)
		
		# ### fixed stars ###
		# get all stars
		sql = 'select name from Planets where family = 2 order by name;'
		res = db.execute(sql).fetchall()
		# stars tab
		starsScroll = QScrollArea()
		starsScroll.setWidgetResizable(True)
		starsWidget = QWidget()
		starsScroll.setWidget(starsWidget)
		tabs.addTab(starsScroll, tr('Stars'))
		starsGrid = QGridLayout()
		starsWidget.setLayout(starsGrid)
		y = 0
		for i, star in enumerate(res):
			s = str(star[0])
			self._cb[s] = QCheckBox(s, self)
			starsGrid.addWidget(self._cb[s], y, i % 6)
			if i % 6 == 5:
				y += 1
		
		# ### asteroids ###
		# get all asteroids
		sql = 'select name from Planets where family = 3 order by name;'

		res = db.execute(sql).fetchall()