Make a slight redesign of the builtins

This commit is contained in:
cncfanatics
2010-10-04 09:17:52 +02:00
parent 7564914cf0
commit c41525ff4a
23 changed files with 47 additions and 45 deletions

View File

@@ -18,9 +18,18 @@
#===============================================================================
class StatsView(object):
views = {}
def __init__(self):
pass
@classmethod
def register(cls):
StatsView.views[cls.name] = cls
@classmethod
def getView(cls, name):
return cls.views[name]
def populatePanel(self, panel):
raise NotImplementedError()
@@ -29,3 +38,5 @@ class StatsView(object):
def refreshPanel(self, fit):
raise NotImplementedError()
from gui.builtinStatsViews import *