[atomato] [UI] Add WorkflowEditor widget



commit b6250c40524731383bf829c2e05b7fea605e5dab
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Sat Jan 23 12:14:44 2016 +0100

    [UI] Add WorkflowEditor widget

 src/Makefile.am          |   10 ++++++----
 src/library-list.vala    |   36 ++++++++++++++++++++++++++++++++++++
 src/main-window.vala     |   11 +++++++----
 src/main.vala            |    2 +-
 src/workflow-editor.vala |   34 ++++++++++++++++++++++++++++++++++
 5 files changed, 84 insertions(+), 9 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index c1bca5c..c922810 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,10 +12,12 @@ atomato_VALAFLAGS = \
        --pkg gio-2.0                           \
        --pkg gio-unix-2.0
 
-atomato_SOURCES =      \
-       config.vapi             \
-       main.vala               \
-       main-window.vala
+atomato_SOURCES =                      \
+       config.vapi                             \
+       library-list.vala               \
+       main.vala                               \
+       main-window.vala                \
+       workflow-editor.vala
 
 atomato_LDADD =                                \
        $(ATOMATO_LIBS)                         \
diff --git a/src/library-list.vala b/src/library-list.vala
new file mode 100644
index 0000000..11830dc
--- /dev/null
+++ b/src/library-list.vala
@@ -0,0 +1,36 @@
+/* GNOME Automation Engine
+ * Copyright (C) 2006-2016 The GNOME Foundation
+ *
+ * Authors:
+ *      Rodrigo Moya (rodrigo gnome org)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this Library; see the file COPYING.  If not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+using Gtk;
+
+namespace Atomato
+{
+    public class LibraryList : Gtk.TreeView
+    {
+        public LibraryList ()
+        {
+            insert_column_with_attributes (-1, "Action", new Gtk.CellRendererText (), "text", 0);
+
+            show ();
+        }
+    }
+}
diff --git a/src/main-window.vala b/src/main-window.vala
index 6994402..c410d9b 100644
--- a/src/main-window.vala
+++ b/src/main-window.vala
@@ -1,5 +1,5 @@
 /* GNOME Automation Engine
- * Copyright (C) 2006-2015 The GNOME Foundation
+ * Copyright (C) 2006-2016 The GNOME Foundation
  *
  * Authors:
  *      Rodrigo Moya (rodrigo gnome org)
@@ -27,7 +27,8 @@ namespace Atomato
     public class MainWindow : Gtk.ApplicationWindow
     {
         Gtk.Paned main_container;
-        Gtk.TreeView library_list;
+        LibraryList library_list;
+        WorkflowEditor workflow_editor;
 
         public MainWindow (Atomato.Application app)
         {
@@ -36,10 +37,12 @@ namespace Atomato
             main_container = new Gtk.Paned (Gtk.Orientation.HORIZONTAL);
             add (main_container);
 
-            library_list = new Gtk.TreeView ();
-            library_list.show ();
+            library_list = new LibraryList ();
             main_container.add1 (library_list);
 
+            workflow_editor = new WorkflowEditor ();
+            main_container.add2 (workflow_editor);
+
             main_container.show ();
             show ();
         }
diff --git a/src/main.vala b/src/main.vala
index 03061ca..7bfb294 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -1,5 +1,5 @@
 /* GNOME Automation Engine
- * Copyright (C) 2006-2015 The GNOME Foundation
+ * Copyright (C) 2006-2016 The GNOME Foundation
  *
  * Authors:
  *      Rodrigo Moya (rodrigo gnome org)
diff --git a/src/workflow-editor.vala b/src/workflow-editor.vala
new file mode 100644
index 0000000..4a539ae
--- /dev/null
+++ b/src/workflow-editor.vala
@@ -0,0 +1,34 @@
+/* GNOME Automation Engine
+ * Copyright (C) 2006-2016 The GNOME Foundation
+ *
+ * Authors:
+ *      Rodrigo Moya (rodrigo gnome org)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this Library; see the file COPYING.  If not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+using Gtk;
+
+namespace Atomato
+{
+    public class WorkflowEditor : Gtk.Box
+    {
+        public WorkflowEditor ()
+        {
+            show ();
+        }
+    }
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]