# Path: oroboros/core/cfg.py
# def load():
# def save():
# 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.orbsfilters import OrbsFilter
from oroboros.gui import app
from oroboros.gui import names
				tr('Please set filter name.'))
			self.nameEdit.setFocus()
			return
		# comment
		cmt = unicode(self.commentEdit.toPlainText())
		# set values
		self._filt.set(name=name, comment=cmt)
		for asp, sb in self._sb.items():
			self._filt[asp] = sb.value()
		# save
		try:
			self._filt.save()
		except ValueError: # duplicate filter
			QMessageBox.critical(self, tr('Error'),
				unicode(tr('Duplicate filter name \xab %s \xbb.')) % self._filt._name)
			self.nameEdit.setFocus()
			return
		# reload cfg in case filter is default,
		# and opened charts if using this filter
		if __name__ != '__main__':
			app.orbsFilterUpdatedEvent(self._filt._idx_)
		# done
		self.done(QDialog.Accepted)



def main():
	app = QApplication(sys.argv)
	main = OrbsFilterDialog()
	main.show()

# Path: oroboros/core/cfg.py
# def load():
# def save():
# 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/orbfilterdialog.py
import sys
import os.path
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from oroboros.core import cfg
from oroboros.core.orbsfilters import OrbsFilter
from oroboros.gui import app
from oroboros.gui import names

				tr('Please set filter name.'))
			self.nameEdit.setFocus()
			return
		# comment
		cmt = unicode(self.commentEdit.toPlainText())
		# set values
		self._filt.set(name=name, comment=cmt)
		for asp, sb in self._sb.items():
			self._filt[asp] = sb.value()
		# save
		try:
			self._filt.save()
		except ValueError: # duplicate filter
			QMessageBox.critical(self, tr('Error'),
				unicode(tr('Duplicate filter name \xab %s \xbb.')) % self._filt._name)
			self.nameEdit.setFocus()
			return
		# reload cfg in case filter is default,
		# and opened charts if using this filter
		if __name__ != '__main__':
			app.orbsFilterUpdatedEvent(self._filt._idx_)
		# done
		self.done(QDialog.Accepted)



def main():
	app = QApplication(sys.argv)
	main = OrbsFilterDialog()
	main.show()

	sys.exit(app.exec_())