Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-09-15 11:23:21 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-09-15 11:23:21 (GMT)
commitbcc1740f7f514f04629cecb7536c93d4feaf83cf (patch)
treea96559839563cf01d08c8132d8fd71e8a35a17ef
parentca19f0f25100006c0f6c84e405e2e6a0cecdd15b (diff)
Move the view to his own module
-rw-r--r--configure.ac5
-rw-r--r--shell/Makefile.am8
-rw-r--r--shell/Session.py5
-rw-r--r--shell/view/ActivityHost.py (renamed from shell/ActivityHost.py)0
-rw-r--r--shell/view/ConsoleWindow.py (renamed from shell/ConsoleWindow.py)0
-rw-r--r--shell/view/FirstTimeDialog.py (renamed from shell/FirstTimeDialog.py)0
-rw-r--r--shell/view/FriendIcon.py (renamed from shell/FriendIcon.py)2
-rw-r--r--shell/view/FriendPopup.py (renamed from shell/FriendPopup.py)0
-rw-r--r--shell/view/Makefile.am11
-rw-r--r--shell/view/Shell.py (renamed from shell/Shell.py)6
-rw-r--r--shell/view/__init__.py (copied from shell/frame/__init__.py)0
-rw-r--r--shell/view/frame/BottomPanel.py (renamed from shell/frame/BottomPanel.py)0
-rw-r--r--shell/view/frame/Frame.py (renamed from shell/frame/Frame.py)8
-rw-r--r--shell/view/frame/Makefile.am (renamed from shell/frame/Makefile.am)2
-rw-r--r--shell/view/frame/PanelWindow.py (renamed from shell/frame/PanelWindow.py)0
-rw-r--r--shell/view/frame/RightPanel.py (renamed from shell/frame/RightPanel.py)2
-rw-r--r--shell/view/frame/TopPanel.py (renamed from shell/frame/TopPanel.py)0
-rw-r--r--shell/view/frame/__init__.py (renamed from shell/home/__init__.py)0
-rw-r--r--shell/view/home/DonutItem.py (renamed from shell/home/DonutItem.py)0
-rw-r--r--shell/view/home/FriendsGroup.py (renamed from shell/home/FriendsGroup.py)6
-rw-r--r--shell/view/home/HomeGroup.py (renamed from shell/home/HomeGroup.py)4
-rw-r--r--shell/view/home/HomeWindow.py (renamed from shell/home/HomeWindow.py)6
-rw-r--r--shell/view/home/IconLayout.py (renamed from shell/home/IconLayout.py)0
-rw-r--r--shell/view/home/Makefile.am (renamed from shell/home/Makefile.am)2
-rw-r--r--shell/view/home/MeshGroup.py (renamed from shell/home/MeshGroup.py)2
-rw-r--r--shell/view/home/MyIcon.py (renamed from shell/home/MyIcon.py)0
-rw-r--r--shell/view/home/__init__.py (renamed from shell/frame/__init__.py)0
27 files changed, 37 insertions, 32 deletions
diff --git a/configure.ac b/configure.ac
index dfebdf2..52214dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,8 +48,9 @@ bindings/threadframe/Makefile
shell/Makefile
shell/conf/Makefile
shell/data/Makefile
-shell/home/Makefile
-shell/frame/Makefile
+shell/view/Makefile
+shell/view/home/Makefile
+shell/view/frame/Makefile
shell/model/Makefile
shell/PresenceService/Makefile
sugar/Makefile
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 69dbe87..1bf373d 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = conf data frame home model PresenceService
+SUBDIRS = conf data model view PresenceService
bin_SCRIPTS = \
sugar \
@@ -10,12 +10,6 @@ bin_SCRIPTS = \
sugardir = $(pkgdatadir)/shell
sugar_PYTHON = \
__init__.py \
- ActivityHost.py \
- ConsoleWindow.py \
- FirstTimeDialog.py \
- FriendIcon.py \
- FriendPopup.py \
- Shell.py \
Session.py
EXTRA_DIST = $(bin_SCRIPTS)
diff --git a/shell/Session.py b/shell/Session.py
index bbd1c73..da17cd7 100644
--- a/shell/Session.py
+++ b/shell/Session.py
@@ -1,9 +1,8 @@
import os
import gtk
-from Shell import Shell
+from view.Shell import Shell
from model.ShellModel import ShellModel
-from ConsoleWindow import ConsoleWindow
from sugar import env
from sugar import logger
@@ -11,7 +10,7 @@ from sugar.session.Process import Process
from sugar.session.DbusProcess import DbusProcess
from sugar.session.MatchboxProcess import MatchboxProcess
-from FirstTimeDialog import FirstTimeDialog
+from view.FirstTimeDialog import FirstTimeDialog
import conf
class DBusMonitorProcess(Process):
diff --git a/shell/ActivityHost.py b/shell/view/ActivityHost.py
index 456406b..456406b 100644
--- a/shell/ActivityHost.py
+++ b/shell/view/ActivityHost.py
diff --git a/shell/ConsoleWindow.py b/shell/view/ConsoleWindow.py
index 4cdbbb1..4cdbbb1 100644
--- a/shell/ConsoleWindow.py
+++ b/shell/view/ConsoleWindow.py
diff --git a/shell/FirstTimeDialog.py b/shell/view/FirstTimeDialog.py
index abf6bd8..abf6bd8 100644
--- a/shell/FirstTimeDialog.py
+++ b/shell/view/FirstTimeDialog.py
diff --git a/shell/FriendIcon.py b/shell/view/FriendIcon.py
index 49eecfb..e5158e2 100644
--- a/shell/FriendIcon.py
+++ b/shell/view/FriendIcon.py
@@ -1,6 +1,6 @@
from sugar.canvas.IconItem import IconItem
-from FriendPopup import FriendPopup
from sugar.canvas.Grid import Grid
+from view.FriendPopup import FriendPopup
class _PopupShell:
def __init__(self):
diff --git a/shell/FriendPopup.py b/shell/view/FriendPopup.py
index 06f10da..06f10da 100644
--- a/shell/FriendPopup.py
+++ b/shell/view/FriendPopup.py
diff --git a/shell/view/Makefile.am b/shell/view/Makefile.am
new file mode 100644
index 0000000..7481dbe
--- /dev/null
+++ b/shell/view/Makefile.am
@@ -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
diff --git a/shell/Shell.py b/shell/view/Shell.py
index 30a7957..7e1050e 100644
--- a/shell/Shell.py
+++ b/shell/view/Shell.py
@@ -2,9 +2,9 @@ import gtk
import gobject
import wnck
-from home.HomeWindow import HomeWindow
-from ActivityHost import ActivityHost
-from frame.Frame import Frame
+from view.home.HomeWindow import HomeWindow
+from view.ActivityHost import ActivityHost
+from view.frame.Frame import Frame
from globalkeys import KeyGrabber
import sugar
diff --git a/shell/frame/__init__.py b/shell/view/__init__.py
index e69de29..e69de29 100644
--- a/shell/frame/__init__.py
+++ b/shell/view/__init__.py
diff --git a/shell/frame/BottomPanel.py b/shell/view/frame/BottomPanel.py
index d43160d..d43160d 100644
--- a/shell/frame/BottomPanel.py
+++ b/shell/view/frame/BottomPanel.py
diff --git a/shell/frame/Frame.py b/shell/view/frame/Frame.py
index 826295f..5ebeccc 100644
--- a/shell/frame/Frame.py
+++ b/shell/view/frame/Frame.py
@@ -2,10 +2,10 @@ import gtk
import gobject
import goocanvas
-from frame.BottomPanel import BottomPanel
-from frame.RightPanel import RightPanel
-from frame.TopPanel import TopPanel
-from frame.PanelWindow import PanelWindow
+from view.frame.BottomPanel import BottomPanel
+from view.frame.RightPanel import RightPanel
+from view.frame.TopPanel import TopPanel
+from view.frame.PanelWindow import PanelWindow
from sugar.canvas.Grid import Grid
class Frame:
diff --git a/shell/frame/Makefile.am b/shell/view/frame/Makefile.am
index 9f45543..a737e01 100644
--- a/shell/frame/Makefile.am
+++ b/shell/view/frame/Makefile.am
@@ -1,4 +1,4 @@
-sugardir = $(pkgdatadir)/shell/frame
+sugardir = $(pkgdatadir)/shell/view/frame
sugar_PYTHON = \
__init__.py \
RightPanel.py \
diff --git a/shell/frame/PanelWindow.py b/shell/view/frame/PanelWindow.py
index 549776f..549776f 100644
--- a/shell/frame/PanelWindow.py
+++ b/shell/view/frame/PanelWindow.py
diff --git a/shell/frame/RightPanel.py b/shell/view/frame/RightPanel.py
index c60cc46..f12ccf5 100644
--- a/shell/frame/RightPanel.py
+++ b/shell/view/frame/RightPanel.py
@@ -4,7 +4,7 @@ from sugar.canvas.IconItem import IconItem
from sugar.canvas.IconColor import IconColor
from sugar.canvas.CanvasBox import CanvasBox
from sugar.presence import PresenceService
-from FriendIcon import FriendIcon
+from view.FriendIcon import FriendIcon
from model.Friends import Friend
class RightPanel(CanvasBox):
diff --git a/shell/frame/TopPanel.py b/shell/view/frame/TopPanel.py
index 1409d85..1409d85 100644
--- a/shell/frame/TopPanel.py
+++ b/shell/view/frame/TopPanel.py
diff --git a/shell/home/__init__.py b/shell/view/frame/__init__.py
index e69de29..e69de29 100644
--- a/shell/home/__init__.py
+++ b/shell/view/frame/__init__.py
diff --git a/shell/home/DonutItem.py b/shell/view/home/DonutItem.py
index 9038523..9038523 100644
--- a/shell/home/DonutItem.py
+++ b/shell/view/home/DonutItem.py
diff --git a/shell/home/FriendsGroup.py b/shell/view/home/FriendsGroup.py
index adb3de8..1e2fb8f 100644
--- a/shell/home/FriendsGroup.py
+++ b/shell/view/home/FriendsGroup.py
@@ -2,9 +2,9 @@ import random
import goocanvas
-from home.IconLayout import IconLayout
-from home.MyIcon import MyIcon
-from FriendIcon import FriendIcon
+from view.home.IconLayout import IconLayout
+from view.home.MyIcon import MyIcon
+from view.FriendIcon import FriendIcon
class FriendsGroup(goocanvas.Group):
def __init__(self, shell_model):
diff --git a/shell/home/HomeGroup.py b/shell/view/home/HomeGroup.py
index 90fc079..e6376cd 100644
--- a/shell/home/HomeGroup.py
+++ b/shell/view/home/HomeGroup.py
@@ -1,7 +1,7 @@
import goocanvas
-from home.DonutItem import DonutItem
-from home.MyIcon import MyIcon
+from view.home.DonutItem import DonutItem
+from view.home.MyIcon import MyIcon
class TasksItem(DonutItem):
def __init__(self, shell_model):
diff --git a/shell/home/HomeWindow.py b/shell/view/home/HomeWindow.py
index 3c895fa..b89420f 100644
--- a/shell/home/HomeWindow.py
+++ b/shell/view/home/HomeWindow.py
@@ -3,9 +3,9 @@ import goocanvas
import cairo
from sugar.canvas.CanvasView import CanvasView
-from home.MeshGroup import MeshGroup
-from home.HomeGroup import HomeGroup
-from home.FriendsGroup import FriendsGroup
+from view.home.MeshGroup import MeshGroup
+from view.home.HomeGroup import HomeGroup
+from view.home.FriendsGroup import FriendsGroup
import sugar
class HomeWindow(gtk.Window):
diff --git a/shell/home/IconLayout.py b/shell/view/home/IconLayout.py
index eedced8..eedced8 100644
--- a/shell/home/IconLayout.py
+++ b/shell/view/home/IconLayout.py
diff --git a/shell/home/Makefile.am b/shell/view/home/Makefile.am
index 5d5436e..ddf9653 100644
--- a/shell/home/Makefile.am
+++ b/shell/view/home/Makefile.am
@@ -1,4 +1,4 @@
-sugardir = $(pkgdatadir)/shell/home
+sugardir = $(pkgdatadir)/shell/view/home
sugar_PYTHON = \
__init__.py \
DonutItem.py \
diff --git a/shell/home/MeshGroup.py b/shell/view/home/MeshGroup.py
index 3247b73..90dce0e 100644
--- a/shell/home/MeshGroup.py
+++ b/shell/view/home/MeshGroup.py
@@ -6,7 +6,7 @@ import conf
from sugar.canvas.IconItem import IconItem
from sugar.canvas.IconItem import IconColor
from sugar.presence import PresenceService
-from home.IconLayout import IconLayout
+from view.home.IconLayout import IconLayout
class ActivityItem(IconItem):
def __init__(self, activity, service):
diff --git a/shell/home/MyIcon.py b/shell/view/home/MyIcon.py
index 226520d..226520d 100644
--- a/shell/home/MyIcon.py
+++ b/shell/view/home/MyIcon.py
diff --git a/shell/frame/__init__.py b/shell/view/home/__init__.py
index e69de29..e69de29 100644
--- a/shell/frame/__init__.py
+++ b/shell/view/home/__init__.py