[gnome-builder] create-project: add description for project name



commit 7ce7b9319695b2f7a6c565876bfd2f833a7acd3c
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 28 00:09:56 2016 -0700

    create-project: add description for project name
    
    This also adjusts the sizegroups we need to keep things aligned. If we
    get GtkGrid with a center column, this can be vastly simplified.

 .../create-project/gbp-create-project-widget.ui    |  109 ++++++++++++++++----
 1 files changed, 89 insertions(+), 20 deletions(-)
---
diff --git a/plugins/create-project/gbp-create-project-widget.ui 
b/plugins/create-project/gbp-create-project-widget.ui
index 94a606a..811461b 100644
--- a/plugins/create-project/gbp-create-project-widget.ui
+++ b/plugins/create-project/gbp-create-project-widget.ui
@@ -26,24 +26,29 @@
                     <property name="orientation">vertical</property>
                     <property name="expand">true</property>
                     <property name="halign">end</property>
-                    <property name="spacing">12</property>
+                    <property name="spacing">24</property>
                     <property name="visible">true</property>
                     <child>
-                      <object class="GtkLabel">
-                        <property name="label" translatable="yes">Name</property>
-                        <property name="expand">true</property>
-                        <property name="halign">end</property>
+                      <object class="GtkBox" id="row1_1">
                         <property name="visible">true</property>
-                        <attributes>
-                          <attribute name="weight" value="bold"/>
-                        </attributes>
-                        <style>
-                          <class name="dim-label"/>
-                        </style>
+                        <child>
+                          <object class="GtkLabel" id="project_name_label">
+                            <property name="label" translatable="yes">Project Name</property>
+                            <property name="halign">end</property>
+                            <property name="valign">start</property>
+                            <property name="visible">true</property>
+                            <attributes>
+                              <attribute name="weight" value="bold"/>
+                            </attributes>
+                            <style>
+                              <class name="dim-label"/>
+                            </style>
+                          </object>
+                        </child>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkLabel">
+                      <object class="GtkLabel" id="row2_1">
                         <property name="label" translatable="yes">Location</property>
                         <property name="expand">true</property>
                         <property name="halign">end</property>
@@ -57,7 +62,7 @@
                       </object>
                     </child>
                     <child>
-                      <object class="GtkLabel">
+                      <object class="GtkLabel" id="row3_1">
                         <property name="label" translatable="yes">Language</property>
                         <property name="expand">true</property>
                         <property name="halign">end</property>
@@ -71,7 +76,7 @@
                       </object>
                     </child>
                     <child>
-                      <object class="GtkLabel">
+                      <object class="GtkLabel" id="row4_1">
                         <property name="label" translatable="yes">License</property>
                         <property name="expand">true</property>
                         <property name="halign">end</property>
@@ -85,7 +90,7 @@
                       </object>
                     </child>
                     <child>
-                      <object class="GtkLabel">
+                      <object class="GtkLabel" id="row5_1">
                         <property name="label" translatable="yes">Versioning</property>
                         <property name="expand">true</property>
                         <property name="halign">end</property>
@@ -104,17 +109,39 @@
                   <object class="GtkBox">
                     <property name="orientation">vertical</property>
                     <property name="expand">false</property>
-                    <property name="spacing">12</property>
+                    <property name="spacing">24</property>
                     <property name="visible">true</property>
                     <child>
-                      <object class="GtkEntry" id="project_name_entry">
-                        <property name="width-chars">50</property>
-                        <property name="expand">true</property>
+                      <object class="GtkBox" id="row1_2">
+                        <property name="spacing">6</property>
+                        <property name="orientation">vertical</property>
                         <property name="visible">true</property>
+                        <child>
+                          <object class="GtkEntry" id="project_name_entry">
+                            <property name="width-chars">50</property>
+                            <property name="expand">true</property>
+                            <property name="visible">true</property>
+                          </object>
+                        </child>
+                        <child>
+                          <object class="GtkLabel">
+                            <property name="xalign">0.0</property>
+                            <property name="wrap">true</property>
+                            <property name="visible">true</property>
+                            <property name="max-width-chars">60</property>
+                            <property name="label" translatable="yes">Unique name that is used for your 
project's folder and other technical resources. Should be in lower case without spaces.</property>
+                            <style>
+                              <class name="dim-label"/>
+                            </style>
+                            <attributes>
+                              <attribute name="scale" value="0.833333"/>
+                            </attributes>
+                          </object>
+                        </child>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkBox">
+                      <object class="GtkBox" id="row2_2">
                         <property name="expand">true</property>
                         <property name="visible">true</property>
                         <style>
@@ -207,4 +234,46 @@
       </object>
     </child>
   </template>
+  <object class="GtkSizeGroup">
+    <property name="mode">vertical</property>
+    <widgets>
+      <widget name="row1_1"/>
+      <widget name="row1_2"/>
+    </widgets>
+  </object>
+  <object class="GtkSizeGroup">
+    <property name="mode">vertical</property>
+    <widgets>
+      <widget name="project_name_label"/>
+      <widget name="project_name_entry"/>
+    </widgets>
+  </object>
+  <object class="GtkSizeGroup">
+    <property name="mode">vertical</property>
+    <widgets>
+      <widget name="row2_1"/>
+      <widget name="row2_2"/>
+    </widgets>
+  </object>
+  <object class="GtkSizeGroup">
+    <property name="mode">vertical</property>
+    <widgets>
+      <widget name="row3_1"/>
+      <widget name="project_language_chooser"/>
+    </widgets>
+  </object>
+  <object class="GtkSizeGroup">
+    <property name="mode">vertical</property>
+    <widgets>
+      <widget name="row4_1"/>
+      <widget name="license_chooser"/>
+    </widgets>
+  </object>
+  <object class="GtkSizeGroup">
+    <property name="mode">vertical</property>
+    <widgets>
+      <widget name="row5_1"/>
+      <widget name="versioning_chooser"/>
+    </widgets>
+  </object>
 </interface>


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