Move the view to his own module

This commit is contained in:
Marco Pesenti Gritti 2006-09-15 13:23:21 +02:00
parent ca19f0f251
commit bcc1740f7f
27 changed files with 37 additions and 32 deletions

View File

@ -48,8 +48,9 @@ bindings/threadframe/Makefile
shell/Makefile shell/Makefile
shell/conf/Makefile shell/conf/Makefile
shell/data/Makefile shell/data/Makefile
shell/home/Makefile shell/view/Makefile
shell/frame/Makefile shell/view/home/Makefile
shell/view/frame/Makefile
shell/model/Makefile shell/model/Makefile
shell/PresenceService/Makefile shell/PresenceService/Makefile
sugar/Makefile sugar/Makefile

View File

@ -1,4 +1,4 @@
SUBDIRS = conf data frame home model PresenceService SUBDIRS = conf data model view PresenceService
bin_SCRIPTS = \ bin_SCRIPTS = \
sugar \ sugar \
@ -10,12 +10,6 @@ bin_SCRIPTS = \
sugardir = $(pkgdatadir)/shell sugardir = $(pkgdatadir)/shell
sugar_PYTHON = \ sugar_PYTHON = \
__init__.py \ __init__.py \
ActivityHost.py \
ConsoleWindow.py \
FirstTimeDialog.py \
FriendIcon.py \
FriendPopup.py \
Shell.py \
Session.py Session.py
EXTRA_DIST = $(bin_SCRIPTS) EXTRA_DIST = $(bin_SCRIPTS)

View File

@ -1,9 +1,8 @@
import os import os
import gtk import gtk
from Shell import Shell from view.Shell import Shell
from model.ShellModel import ShellModel from model.ShellModel import ShellModel
from ConsoleWindow import ConsoleWindow
from sugar import env from sugar import env
from sugar import logger from sugar import logger
@ -11,7 +10,7 @@ from sugar.session.Process import Process
from sugar.session.DbusProcess import DbusProcess from sugar.session.DbusProcess import DbusProcess
from sugar.session.MatchboxProcess import MatchboxProcess from sugar.session.MatchboxProcess import MatchboxProcess
from FirstTimeDialog import FirstTimeDialog from view.FirstTimeDialog import FirstTimeDialog
import conf import conf
class DBusMonitorProcess(Process): class DBusMonitorProcess(Process):

View File

@ -1,6 +1,6 @@
from sugar.canvas.IconItem import IconItem from sugar.canvas.IconItem import IconItem
from FriendPopup import FriendPopup
from sugar.canvas.Grid import Grid from sugar.canvas.Grid import Grid
from view.FriendPopup import FriendPopup
class _PopupShell: class _PopupShell:
def __init__(self): def __init__(self):

11
shell/view/Makefile.am Normal file
View File

@ -0,0 +1,11 @@
SUBDIRS = frame home
sugardir = $(pkgdatadir)/shell/view
sugar_PYTHON = \
__init__.py \
ActivityHost.py \
ConsoleWindow.py \
FirstTimeDialog.py \
FriendIcon.py \
FriendPopup.py \
Shell.py

View File

@ -2,9 +2,9 @@ import gtk
import gobject import gobject
import wnck import wnck
from home.HomeWindow import HomeWindow from view.home.HomeWindow import HomeWindow
from ActivityHost import ActivityHost from view.ActivityHost import ActivityHost
from frame.Frame import Frame from view.frame.Frame import Frame
from globalkeys import KeyGrabber from globalkeys import KeyGrabber
import sugar import sugar

View File

@ -2,10 +2,10 @@ import gtk
import gobject import gobject
import goocanvas import goocanvas
from frame.BottomPanel import BottomPanel from view.frame.BottomPanel import BottomPanel
from frame.RightPanel import RightPanel from view.frame.RightPanel import RightPanel
from frame.TopPanel import TopPanel from view.frame.TopPanel import TopPanel
from frame.PanelWindow import PanelWindow from view.frame.PanelWindow import PanelWindow
from sugar.canvas.Grid import Grid from sugar.canvas.Grid import Grid
class Frame: class Frame:

View File

@ -1,4 +1,4 @@
sugardir = $(pkgdatadir)/shell/frame sugardir = $(pkgdatadir)/shell/view/frame
sugar_PYTHON = \ sugar_PYTHON = \
__init__.py \ __init__.py \
RightPanel.py \ RightPanel.py \

View File

@ -4,7 +4,7 @@ from sugar.canvas.IconItem import IconItem
from sugar.canvas.IconColor import IconColor from sugar.canvas.IconColor import IconColor
from sugar.canvas.CanvasBox import CanvasBox from sugar.canvas.CanvasBox import CanvasBox
from sugar.presence import PresenceService from sugar.presence import PresenceService
from FriendIcon import FriendIcon from view.FriendIcon import FriendIcon
from model.Friends import Friend from model.Friends import Friend
class RightPanel(CanvasBox): class RightPanel(CanvasBox):

View File

@ -2,9 +2,9 @@ import random
import goocanvas import goocanvas
from home.IconLayout import IconLayout from view.home.IconLayout import IconLayout
from home.MyIcon import MyIcon from view.home.MyIcon import MyIcon
from FriendIcon import FriendIcon from view.FriendIcon import FriendIcon
class FriendsGroup(goocanvas.Group): class FriendsGroup(goocanvas.Group):
def __init__(self, shell_model): def __init__(self, shell_model):

View File

@ -1,7 +1,7 @@
import goocanvas import goocanvas
from home.DonutItem import DonutItem from view.home.DonutItem import DonutItem
from home.MyIcon import MyIcon from view.home.MyIcon import MyIcon
class TasksItem(DonutItem): class TasksItem(DonutItem):
def __init__(self, shell_model): def __init__(self, shell_model):

View File

@ -3,9 +3,9 @@ import goocanvas
import cairo import cairo
from sugar.canvas.CanvasView import CanvasView from sugar.canvas.CanvasView import CanvasView
from home.MeshGroup import MeshGroup from view.home.MeshGroup import MeshGroup
from home.HomeGroup import HomeGroup from view.home.HomeGroup import HomeGroup
from home.FriendsGroup import FriendsGroup from view.home.FriendsGroup import FriendsGroup
import sugar import sugar
class HomeWindow(gtk.Window): class HomeWindow(gtk.Window):

View File

@ -1,4 +1,4 @@
sugardir = $(pkgdatadir)/shell/home sugardir = $(pkgdatadir)/shell/view/home
sugar_PYTHON = \ sugar_PYTHON = \
__init__.py \ __init__.py \
DonutItem.py \ DonutItem.py \

View File

@ -6,7 +6,7 @@ import conf
from sugar.canvas.IconItem import IconItem from sugar.canvas.IconItem import IconItem
from sugar.canvas.IconItem import IconColor from sugar.canvas.IconItem import IconColor
from sugar.presence import PresenceService from sugar.presence import PresenceService
from home.IconLayout import IconLayout from view.home.IconLayout import IconLayout
class ActivityItem(IconItem): class ActivityItem(IconItem):
def __init__(self, activity, service): def __init__(self, activity, service):

View File