[glom] Music Collection Example: Changed a layout.



commit 55d473dc2605f39a0327b516b1e9c42db68e9886
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Jan 12 11:54:22 2010 +0100

    Music Collection Example: Changed a layout.
    
    * examples/example_music_collection.glom: Albums: List View:
    Add some related records to show a problem in Qlom.

 ChangeLog                              |    7 +++++++
 examples/example_music_collection.glom |   25 +++++++++++++++++++++----
 2 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c4b7808..6d56ef3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-12  Murray Cumming  <murrayc murrayc com>
+
+	Music Collection Example: Changed a layout.
+
+	* examples/example_music_collection.glom: Albums: List View:
+	Add some related records to show a problem in Qlom.
+
 2010-01-08  Murray Cumming  <murrayc murrayc com>
 
 	Correct use of locales when creating text representations.
diff --git a/examples/example_music_collection.glom b/examples/example_music_collection.glom
index 6fee53b..6d674f7 100644
--- a/examples/example_music_collection.glom
+++ b/examples/example_music_collection.glom
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
-<glom_document xmlns="http://glom.org/glom_document"; translation_original_locale="en_US" database_title="Music Collection" is_example="true" format_version="3">
-  <connection server="localhost" database="glom_musiccollection21" port="5435" self_hosted="true" try_other_ports="false" hosting_mode="postgres_self"/>
+<glom_document xmlns="http://glom.org/glom_document"; translation_original_locale="en_US" database_title="Music Collection" is_example="true" format_version="4">
+  <connection server="localhost" database="glom_musiccollection211" port="5433" self_hosted="true" try_other_ports="false" hosting_mode="postgres_central"/>
   <table name="albums" overview_x="15" overview_y="9" title="Albums">
     <example_rows>
       <example_row>
@@ -134,12 +134,29 @@
       <data_layout name="list" parent_table="albums">
         <data_layout_groups>
           <data_layout_group name="toplevel">
-            <data_layout_item name="name" editable="true" use_default_formatting="true">
+            <data_layout_item name="name" editable="true" use_default_formatting="true" column_width="143">
+              <formatting format_thousands_separator="true" format_decimal_places="2" format_text_multiline_height_lines="6"/>
+            </data_layout_item>
+            <data_layout_item name="year" editable="true" use_default_formatting="true" column_width="90">
+              <formatting format_thousands_separator="true" format_decimal_places="2"/>
+            </data_layout_item>
+            <data_layout_item name="artist_id" editable="true" use_default_formatting="true" column_width="90">
+              <formatting format_thousands_separator="true" format_decimal_places="2"/>
+            </data_layout_item>
+            <data_layout_item name="name" relationship="artist" editable="true" use_default_formatting="true" column_width="143">
               <formatting format_thousands_separator="true" format_decimal_places="2" format_text_multiline_height_lines="6"/>
+              <title_custom use_custom="true" title="Artist Name"/>
             </data_layout_item>
-            <data_layout_item name="year" editable="true" use_default_formatting="true">
+            <data_layout_item name="publisher_id" editable="true" use_default_formatting="true" column_width="90">
               <formatting format_thousands_separator="true" format_decimal_places="2"/>
             </data_layout_item>
+            <data_layout_item name="name" relationship="publisher" editable="true" use_default_formatting="true" column_width="143">
+              <formatting format_thousands_separator="true" format_decimal_places="2" format_text_multiline_height_lines="6"/>
+              <title_custom use_custom="true" title="Publisher Name"/>
+            </data_layout_item>
+            <data_layout_item name="comments" editable="true" use_default_formatting="true">
+              <formatting format_thousands_separator="true" format_decimal_places="2" format_text_multiline_height_lines="6"/>
+            </data_layout_item>
           </data_layout_group>
         </data_layout_groups>
       </data_layout>



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