Move the model to his own module

This commit is contained in:
Marco Pesenti Gritti 2006-09-15 12:52:37 +02:00
parent 14383f4fc7
commit ca19f0f251
12 changed files with 14 additions and 10 deletions

View File

@ -50,6 +50,7 @@ shell/conf/Makefile
shell/data/Makefile
shell/home/Makefile
shell/frame/Makefile
shell/model/Makefile
shell/PresenceService/Makefile
sugar/Makefile
sugar/__installed__.py

View File

@ -1,4 +1,4 @@
SUBDIRS = conf data frame home PresenceService
SUBDIRS = conf data frame home model PresenceService
bin_SCRIPTS = \
sugar \
@ -15,9 +15,6 @@ sugar_PYTHON = \
FirstTimeDialog.py \
FriendIcon.py \
FriendPopup.py \
Friends.py \
Invites.py \
Owner.py \
Shell.py \
Session.py

View File

@ -2,7 +2,7 @@ import os
import gtk
from Shell import Shell
from ShellModel import ShellModel
from model.ShellModel import ShellModel
from ConsoleWindow import ConsoleWindow
from sugar import env
from sugar import logger

0
shell/Shell.py Executable file → Normal file
View File

View File

@ -5,7 +5,7 @@ from sugar.canvas.IconColor import IconColor
from sugar.canvas.CanvasBox import CanvasBox
from sugar.presence import PresenceService
from FriendIcon import FriendIcon
from Friends import Friend
from model.Friends import Friend
class RightPanel(CanvasBox):
def __init__(self, grid, shell_model):

View File

@ -27,7 +27,6 @@ class TasksItem(DonutItem):
def _add(self, activity):
icon_name = activity.get_icon_name()
icon_color = activity.get_icon_color()
print 'Add activity %s' % icon_color.to_string()
item = self.add_piece(100 / 8, icon_name, icon_color)
item.get_icon().connect('clicked',

7
shell/model/Makefile.am Normal file
View File

@ -0,0 +1,7 @@
sugardir = $(pkgdatadir)/shell/model
sugar_PYTHON = \
__init__.py \
Friends.py \
Invites.py \
Owner.py \
ShellModel.py

View File

@ -1,11 +1,11 @@
import gobject
from Owner import ShellOwner
from sugar.presence import PresenceService
from sugar.activity import ActivityFactory
from sugar.activity import Activity
from Friends import Friends
from Invites import Invites
from model.Friends import Friends
from model.Invites import Invites
from model.Owner import ShellOwner
class ShellModel(gobject.GObject):
__gsignals__ = {

0
shell/model/__init__.py Normal file
View File