|
30.
|
|
|
Click on "jotty_window" in the right pane to open the window for editing.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:85(para)
|
|
31.
|
|
|
The first thing we want to do is create a text area for typing into. There are some default widgets added to the window already, but we won't need these so we'll start by deleting them. Click on the label and press Delete to make it disappear from the window.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:89(para)
|
|
32.
|
|
|
Do the same with the image widget. This leave us two free slots.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:96(para)
|
|
33.
|
|
|
We'll use the bottom slot to add a TextView widget for the user to type into. In the toolbox on the left, click on the "Text View" button in the "Controls and Display" section. Then click in the bottom empty slot.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:100(para)
|
|
34.
|
|
|
Make sure you save the file in <application>Glade</application>, or your changes won't be kept! Then run the application from the terminal again. The window now has a place where the user can type.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:104(para)
|
|
35.
|
|
|
Now we'll add the entry field for the title and also a label for it. We'll use the top empty slot for that. First, click on "Horizontal Box" (HBox) from the "Containers" section of the toolbox, and then click on the top slot. A dialog box will open; tell it that you want two items.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:108(para)
|
|
36.
|
|
|
The HBox is a container that arranges its contents horizontally. Add a Label to the empty left hand box, and a Text Entry to the right hand one.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:112(para)
|
|
37.
|
|
|
Before going on, let's clean up the UI just a tad here. Select the new HBox from the list on the right. Then go to the Packing tab in the bottom right, and set Expand and Fill to "No".
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:116(para)
|
|
38.
|
|
|
Go to the General tab, and set spacing to 6.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:120(para)
|
|
39.
|
|
|
Select the label. On the General tab, set the Label field to "Name:". Set Expand and Fill to "No" for the label, but keep them as "Yes" for the entry. Set the Padding for both to 6 (also on the Packing tab).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
data/templates/ubuntu-application/help/tutorial.xml:124(para)
|