Added a browser view with fake library data
[projects/chimara/chimara.git] / player / chimara.ui
index 36669fd8eefff536f886e019731476eedfc44713..1f2856c96e20daa2f132a7ac603f5dadc61a1b11 100644 (file)
@@ -285,6 +285,48 @@ Philip Chimento</property>
       <column type="gchararray"/>
     </columns>
   </object>
+  <object class="GtkVBox" id="browser-box">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="orientation">vertical</property>
+    <child>
+      <object class="GtkTreeView" id="library-view">
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="model">library-model</property>
+        <property name="headers_visible">False</property>
+        <property name="headers_clickable">False</property>
+        <property name="search_column">0</property>
+        <child internal-child="selection">
+          <object class="GtkTreeSelection" id="treeview-selection"/>
+        </child>
+        <child>
+          <object class="GtkTreeViewColumn" id="library-text-column">
+            <property name="title" translatable="yes">Text</property>
+            <property name="expand">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkTreeViewColumn" id="library-cover-art-column">
+            <property name="fixed_width">120</property>
+            <property name="title" translatable="yes">Cover art</property>
+            <child>
+              <object class="GtkCellRendererPixbuf" id="library-cover-art-renderer"/>
+              <attributes>
+                <attribute name="pixbuf">4</attribute>
+              </attributes>
+            </child>
+          </object>
+        </child>
+      </object>
+      <packing>
+        <property name="expand">True</property>
+        <property name="fill">True</property>
+        <property name="pack_type">end</property>
+        <property name="position">0</property>
+      </packing>
+    </child>
+  </object>
   <object class="GtkListStore" id="interpreters">
     <columns>
       <!-- column-name Format -->
@@ -293,6 +335,20 @@ Philip Chimento</property>
       <column type="gchararray"/>
     </columns>
   </object>
+  <object class="GtkListStore" id="library-model">
+    <columns>
+      <!-- column-name ifid -->
+      <column type="gchararray"/>
+      <!-- column-name title -->
+      <column type="gchararray"/>
+      <!-- column-name author -->
+      <column type="gchararray"/>
+      <!-- column-name firstpublished -->
+      <column type="guint"/>
+      <!-- column-name coverart -->
+      <column type="GdkPixbuf"/>
+    </columns>
+  </object>
   <object class="GtkVBox" id="player-vbox">
     <property name="visible">True</property>
     <property name="can_focus">False</property>