Add files from the old svn, r101.
[matthijs/upstream/mobilegtd.git] / src / gui / projects_list / new_action_widget.py
diff --git a/src/gui/projects_list/new_action_widget.py b/src/gui/projects_list/new_action_widget.py
new file mode 100644 (file)
index 0000000..119a450
--- /dev/null
@@ -0,0 +1,13 @@
+
+class NewActionWidget:
+    def change(self):
+        from gui.project_details.project_view import ask_for_action
+        action = ask_for_action(u"No project")
+        if action:
+            action.process()
+        return action
+
+    def list_repr(self):
+        return u'New action'
+    def name_and_details(self):
+        return (self.list_repr(), u'Sure? No project attached?')