patch2199.diff

Jürgen Fischer, 2009-12-22 11:45 AM

Download (56.6 KB)

View differences:

python/core/qgslabelattributes.sip (working copy)
47 47
    bool underlineIsSet ( ) const;
48 48
    bool underline ( ) const; 
49 49
    
50
    /* strikeout added in 1.5 */
51
    void setStrikeOut( bool enable );
52
    bool strikeOutIsSet ( ) const;
53
    bool strikeOut ( ) const; 
54

  
50 55
    void   setSize ( double size, int type );
51 56
    bool   sizeIsSet ( ) const;
52 57
    int    sizeType ( ) const;
python/core/qgslabel.sip (working copy)
38 38
      BorderColor,
39 39
      BorderStyle,
40 40
      MultilineEnabled,
41
      StrikeOut,		// added in 1.5
41 42
      LabelFieldCount
42 43
    };
43 44

  
src/app/qgslabeldialog.cpp (working copy)
89 89
  cboUnderlineField->addItems( myFieldStringList );
90 90
  cboUnderlineField->setCurrentIndex( itemNoForField( mLabel->labelField( QgsLabel::Underline ), myFieldStringList ) );
91 91

  
92
  cboStrikeOutField->clear();
93
  cboStrikeOutField->addItems( myFieldStringList );
94
  cboStrikeOutField->setCurrentIndex( itemNoForField( mLabel->labelField( QgsLabel::StrikeOut ), myFieldStringList ) );
95

  
92 96
  cboFontSizeField->clear();
93 97
  cboFontSizeField->addItems( myFieldStringList );
94 98
  cboFontSizeField->setCurrentIndex( itemNoForField( mLabel->labelField( QgsLabel::Size ), myFieldStringList ) );
......
196 200
  {
197 201
    mFont.setUnderline( false );
198 202
  }
203
  if ( myLabelAttributes->strikeOutIsSet() )
204
  {
205
    mFont.setStrikeOut( myLabelAttributes->strikeOut() );
206
  }
207
  else
208
  {
209
    mFont.setStrikeOut( false );
210
  }
199 211

  
200 212
  mFontColor = myLabelAttributes->color();
201 213

  
......
270 282

  
271 283
  //NOTE: do we need this line too? TS
272 284
  spinBufferSize->setValue( myLabelAttributes->bufferSize() );
273
  //TODO - transparency attributes for buffers
274

  
275 285
}
276 286

  
277 287

  
......
364 374
  myLabelAttributes->setBold( mFont.bold() );
365 375
  myLabelAttributes->setItalic( mFont.italic() );
366 376
  myLabelAttributes->setUnderline( mFont.underline() );
377
  myLabelAttributes->setStrikeOut( mFont.strikeOut() );
367 378
  myLabelAttributes->setColor( mFontColor );
368 379
  myTypeInt = 0;
369 380
  if ( radioOffsetUnitsPoints->isChecked() )
......
412 423
  mLabel->setLabelField( QgsLabel::Bold,  fieldIndexFromName( cboBoldField->currentText() ) );
413 424
  mLabel->setLabelField( QgsLabel::Italic,  fieldIndexFromName( cboItalicField->currentText() ) );
414 425
  mLabel->setLabelField( QgsLabel::Underline,  fieldIndexFromName( cboUnderlineField->currentText() ) );
426
  mLabel->setLabelField( QgsLabel::StrikeOut,  fieldIndexFromName( cboStrikeOutField->currentText() ) );
415 427
  mLabel->setLabelField( QgsLabel::Size,  fieldIndexFromName( cboFontSizeField->currentText() ) );
416 428
  mLabel->setLabelField( QgsLabel::SizeType,  fieldIndexFromName( cboFontSizeTypeField->currentText() ) );
417 429
  mLabel->setLabelField( QgsLabel::Color,  fieldIndexFromName( cboFontColorField->currentText() ) );
src/core/qgslabelattributes.cpp (working copy)
31 31
    mBoldIsSet( false ),
32 32
    mItalicIsSet( false ),
33 33
    mUnderlineIsSet( false ),
34
    mStrikeOutIsSet( false ),
34 35
    mSizeType( 0 ),
35 36
    mSize( 0.0 ),
36 37
    mSizeIsSet( false ),
......
247 248
  return mFont.underline();
248 249
}
249 250

  
251
void QgsLabelAttributes::setStrikeOut( bool enable )
252
{
253
  mFont.setStrikeOut( enable );
254
  mStrikeOutIsSet = true;
255
}
250 256

  
257
bool QgsLabelAttributes::strikeOutIsSet( void ) const
258
{
259
  return mStrikeOutIsSet;
260
}
261

  
262
bool QgsLabelAttributes::strikeOut( void ) const
263
{
264
  return mFont.strikeOut();
265
}
266

  
267

  
251 268
void QgsLabelAttributes::setSize( double size, int type )
252 269
{
253 270
  mSizeType = type;
src/core/qgslabel.cpp (working copy)
207 207
    font.setUnderline(( bool ) value.toInt() );
208 208
  }
209 209

  
210
  value = fieldValue( StrikeOut, feature );
211
  if ( value.isEmpty() )
212
  {
213
    font.setStrikeOut( mLabelAttributes->strikeOut() );
214
  }
215
  else
216
  {
217
    font.setStrikeOut(( bool ) value.toInt() );
218
  }
219

  
210 220
  //
211 221
  QgsPoint overridePoint;
212 222
  bool useOverridePoint = false;
......
832 842
    readLabelField( el, Underline );
833 843
  }
834 844

  
845
  /* Strikeout */
846
  scratchNode = node.namedItem( "strikeout" );
847

  
848
  if ( scratchNode.isNull() )
849
  {
850
    QgsDebugMsg( "couldn't find QgsLabel ``strikeout'' attribute" );
851
  }
852
  else
853
  {
854
    el = scratchNode.toElement();
855
    mLabelAttributes->setStrikeOut(( bool )el.attribute( "on", "0" ).toInt() );
856
    readLabelField( el, StrikeOut );
857
  }
858

  
835 859
  /* Color */
836 860
  scratchNode = node.namedItem( "color" );
837 861

  
......
1130 1154
  }
1131 1155
  labelattributes.appendChild( underline );
1132 1156

  
1157
  // strikeout
1158
  QDomElement strikeOut = document.createElement( "strikeout" );
1159
  if ( mLabelAttributes->strikeOutIsSet() )
1160
  {
1161
    strikeOut.setAttribute( "on", mLabelAttributes->strikeOut() );
1162
    if ( mLabelFieldIdx[StrikeOut] != -1 )
1163
    {
1164
      strikeOut.setAttribute( "fieldname", labelField( StrikeOut ) );
1165
    }
1166
    else
1167
    {
1168
      strikeOut.setAttribute( "fieldname", "" );
1169
    }
1170
  }
1171
  else
1172
  {
1173
    strikeOut.setAttribute( "on", 0 );
1174
    strikeOut.setAttribute( "fieldname", "" );
1175
  }
1176
  labelattributes.appendChild( strikeOut );
1177

  
1133 1178
  // color
1134 1179
  QDomElement color = document.createElement( "color" );
1135 1180
  if ( mLabelAttributes->colorIsSet() )
src/core/qgslabel.h (working copy)
81 81
      BorderColor,
82 82
      BorderStyle,
83 83
      MultilineEnabled,
84
      StrikeOut,  // added in 1.5
84 85
      LabelFieldCount
85 86
    };
86 87

  
src/core/qgslabelattributes.h (working copy)
119 119
    bool underlineIsSet( void ) const;
120 120
    bool underline( void ) const;
121 121

  
122
    /* strikeout added in 1.5 */
123
    void setStrikeOut( bool enable );
124
    bool strikeOutIsSet( void ) const;
125
    bool strikeOut( void ) const;
126

  
122 127
    void   setSize( double size, int type );
123 128
    bool   sizeIsSet( void ) const;
124 129
    int    sizeType( void ) const;
......
185 190
    QString mText;
186 191
    bool mTextIsSet;
187 192

  
188
    /** Font (family, weight, italic, underline) */
193
    /** Font (family, weight, italic, underline, strikeout) */
189 194
    QFont mFont;
190 195
    bool mFamilyIsSet;
191 196
    bool mBoldIsSet;
192 197
    bool mItalicIsSet;
193 198
    bool mUnderlineIsSet;
199
    bool mStrikeOutIsSet;
194 200

  
195 201
    /** Font size, size type */
196 202
    int  mSizeType;
src/ui/qgslabeldialogbase.ui (working copy)
6 6
   <rect>
7 7
    <x>0</x>
8 8
    <y>0</y>
9
    <width>642</width>
10
    <height>516</height>
9
    <width>662</width>
10
    <height>561</height>
11 11
   </rect>
12 12
  </property>
13 13
  <property name="sizePolicy">
......
19 19
  <property name="windowTitle">
20 20
   <string>Form1</string>
21 21
  </property>
22
  <layout class="QGridLayout" name="gridLayout_7">
23
   <property name="margin">
24
    <number>0</number>
25
   </property>
26
   <item row="0" column="0">
27
    <widget class="QScrollArea" name="scrollArea">
28
     <property name="widgetResizable">
29
      <bool>true</bool>
22
  <layout class="QVBoxLayout" name="verticalLayout">
23
   <item>
24
    <widget class="QToolBox" name="toolBox">
25
     <property name="currentIndex">
26
      <number>0</number>
30 27
     </property>
31
     <widget class="QWidget" name="scrollAreaWidgetContents_2">
28
     <widget class="QWidget" name="page">
32 29
      <property name="geometry">
33 30
       <rect>
34 31
        <x>0</x>
35
        <y>-990</y>
36
        <width>619</width>
37
        <height>1440</height>
32
        <y>0</y>
33
        <width>644</width>
34
        <height>365</height>
38 35
       </rect>
39 36
      </property>
40
      <layout class="QGridLayout" name="gridLayout">
41
       <item row="0" column="0">
42
        <layout class="QGridLayout">
43
         <item row="0" column="0">
44
          <widget class="QGroupBox" name="groupBox_8">
45
           <property name="title">
46
            <string>Basic label options</string>
47
           </property>
48
           <layout class="QGridLayout" name="gridLayout_8">
49
            <item row="0" column="0">
50
             <widget class="QLabel" name="textLabel5">
51
              <property name="text">
52
               <string>Field containing label</string>
53
              </property>
54
              <property name="buddy">
55
               <cstring>cboLabelField</cstring>
56
              </property>
57
             </widget>
58
            </item>
59
            <item row="0" column="2">
60
             <widget class="QComboBox" name="cboLabelField">
61
              <property name="sizePolicy">
62
               <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
63
                <horstretch>1</horstretch>
64
                <verstretch>0</verstretch>
65
               </sizepolicy>
66
              </property>
67
             </widget>
68
            </item>
69
            <item row="1" column="0">
70
             <widget class="QLabel" name="textLabel1">
71
              <property name="text">
72
               <string>Default label</string>
73
              </property>
74
              <property name="buddy">
75
               <cstring>leDefaultLabel</cstring>
76
              </property>
77
             </widget>
78
            </item>
79
            <item row="1" column="2">
80
             <widget class="QLineEdit" name="leDefaultLabel">
81
              <property name="sizePolicy">
82
               <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
83
                <horstretch>2</horstretch>
84
                <verstretch>0</verstretch>
85
               </sizepolicy>
86
              </property>
87
             </widget>
88
            </item>
89
            <item row="2" column="0">
90
             <widget class="QPushButton" name="btnDefaultFont">
91
              <property name="sizePolicy">
92
               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
93
                <horstretch>2</horstretch>
94
                <verstretch>0</verstretch>
95
               </sizepolicy>
96
              </property>
97
              <property name="text">
98
               <string>Font</string>
99
              </property>
100
             </widget>
101
            </item>
102
            <item row="2" column="1">
103
             <widget class="QLabel" name="textLabel5_2_2_3_2">
104
              <property name="text">
105
               <string>Font size</string>
106
              </property>
107
              <property name="alignment">
108
               <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
109
              </property>
110
              <property name="buddy">
111
               <cstring>spinFontSize</cstring>
112
              </property>
113
             </widget>
114
            </item>
115
            <item row="2" column="2">
116
             <widget class="QDoubleSpinBox" name="spinFontSize">
117
              <property name="sizePolicy">
118
               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
119
                <horstretch>0</horstretch>
120
                <verstretch>0</verstretch>
121
               </sizepolicy>
122
              </property>
123
              <property name="minimumSize">
124
               <size>
125
                <width>50</width>
126
                <height>0</height>
127
               </size>
128
              </property>
129
              <property name="decimals">
130
               <number>6</number>
131
              </property>
132
              <property name="maximum">
133
               <double>1000000.000000000000000</double>
134
              </property>
135
              <property name="value">
136
               <double>0.000000000000000</double>
137
              </property>
138
             </widget>
139
            </item>
140
            <item row="3" column="0">
141
             <widget class="QPushButton" name="pbnDefaultFontColor">
142
              <property name="sizePolicy">
143
               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
144
                <horstretch>2</horstretch>
145
                <verstretch>0</verstretch>
146
               </sizepolicy>
147
              </property>
148
              <property name="text">
149
               <string>Color</string>
150
              </property>
151
             </widget>
152
            </item>
153
            <item row="3" column="1">
154
             <widget class="QLabel" name="textLabel1_2_2_2_2_2">
155
              <property name="text">
156
               <string>Angle (deg)</string>
157
              </property>
158
              <property name="buddy">
159
               <cstring>spinAngle</cstring>
160
              </property>
161
             </widget>
162
            </item>
163
            <item row="3" column="2">
164
             <widget class="QSpinBox" name="spinAngle">
165
              <property name="suffix">
166
               <string>°</string>
167
              </property>
168
              <property name="maximum">
169
               <number>360</number>
170
              </property>
171
              <property name="value">
172
               <number>0</number>
173
              </property>
174
             </widget>
175
            </item>
176
            <item row="4" column="0">
177
             <widget class="QCheckBox" name="chkUseMultiline">
178
              <property name="text">
179
               <string>Multiline labels?</string>
180
              </property>
181
              <property name="checked">
182
               <bool>true</bool>
183
              </property>
184
             </widget>
185
            </item>
186
           </layout>
187
          </widget>
188
         </item>
189
        </layout>
190
       </item>
191
       <item row="1" column="0">
192
        <widget class="QGroupBox" name="groupBox_2">
193
         <property name="title">
194
          <string>Placement</string>
195
         </property>
196
         <layout class="QGridLayout">
197
          <property name="margin">
198
           <number>11</number>
37
      <attribute name="label">
38
       <string>Basic label options and placement</string>
39
      </attribute>
40
      <widget class="QGroupBox" name="groupBox_8">
41
       <property name="geometry">
42
        <rect>
43
         <x>10</x>
44
         <y>0</y>
45
         <width>621</width>
46
         <height>174</height>
47
        </rect>
48
       </property>
49
       <property name="title">
50
        <string>Basic label options</string>
51
       </property>
52
       <layout class="QGridLayout" name="gridLayout_8">
53
        <item row="0" column="0">
54
         <widget class="QLabel" name="textLabel5">
55
          <property name="text">
56
           <string>Field containing label</string>
199 57
          </property>
200
          <item row="2" column="2">
201
           <widget class="QRadioButton" name="radioBelowRight">
202
            <property name="text">
203
             <string>Below Right</string>
204
            </property>
205
           </widget>
206
          </item>
207
          <item row="1" column="2">
208
           <widget class="QRadioButton" name="radioRight">
209
            <property name="text">
210
             <string>Right</string>
211
            </property>
212
           </widget>
213
          </item>
214
          <item row="2" column="1">
215
           <widget class="QRadioButton" name="radioBelow">
216
            <property name="text">
217
             <string>Below</string>
218
            </property>
219
           </widget>
220
          </item>
221
          <item row="1" column="1">
222
           <widget class="QRadioButton" name="radioOver">
223
            <property name="text">
224
             <string>Over</string>
225
            </property>
226
            <property name="checked">
227
             <bool>true</bool>
228
            </property>
229
           </widget>
230
          </item>
231
          <item row="0" column="1">
232
           <widget class="QRadioButton" name="radioAbove">
233
            <property name="text">
234
             <string>Above</string>
235
            </property>
236
           </widget>
237
          </item>
238
          <item row="1" column="0">
239
           <widget class="QRadioButton" name="radioLeft">
240
            <property name="text">
241
             <string>Left</string>
242
            </property>
243
           </widget>
244
          </item>
245
          <item row="2" column="0">
246
           <widget class="QRadioButton" name="radioBelowLeft">
247
            <property name="text">
248
             <string>Below Left</string>
249
            </property>
250
           </widget>
251
          </item>
252
          <item row="0" column="2">
253
           <widget class="QRadioButton" name="radioAboveRight">
254
            <property name="text">
255
             <string>Above Right</string>
256
            </property>
257
           </widget>
258
          </item>
259
          <item row="0" column="0">
260
           <widget class="QRadioButton" name="radioAboveLeft">
261
            <property name="text">
262
             <string>Above Left</string>
263
            </property>
264
           </widget>
265
          </item>
266
         </layout>
267
        </widget>
268
       </item>
269
       <item row="3" column="0">
270
        <widget class="QGroupBox" name="groupBox_3">
271
         <property name="title">
272
          <string>Font size units</string>
273
         </property>
274
         <layout class="QGridLayout">
275
          <item row="0" column="0">
276
           <widget class="QRadioButton" name="radioFontSizeUnitsPoints">
277
            <property name="text">
278
             <string>Points</string>
279
            </property>
280
           </widget>
281
          </item>
282
          <item row="0" column="1">
283
           <widget class="QRadioButton" name="radioFontSizeUnitsMap">
284
            <property name="text">
285
             <string>Map units</string>
286
            </property>
287
           </widget>
288
          </item>
289
         </layout>
290
        </widget>
291
       </item>
292
       <item row="4" column="0">
58
          <property name="buddy">
59
           <cstring>cboLabelField</cstring>
60
          </property>
61
         </widget>
62
        </item>
63
        <item row="0" column="2">
64
         <widget class="QComboBox" name="cboLabelField">
65
          <property name="sizePolicy">
66
           <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
67
            <horstretch>1</horstretch>
68
            <verstretch>0</verstretch>
69
           </sizepolicy>
70
          </property>
71
         </widget>
72
        </item>
73
        <item row="1" column="0">
74
         <widget class="QLabel" name="textLabel1">
75
          <property name="text">
76
           <string>Default label</string>
77
          </property>
78
          <property name="buddy">
79
           <cstring>leDefaultLabel</cstring>
80
          </property>
81
         </widget>
82
        </item>
83
        <item row="1" column="2">
84
         <widget class="QLineEdit" name="leDefaultLabel">
85
          <property name="sizePolicy">
86
           <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
87
            <horstretch>2</horstretch>
88
            <verstretch>0</verstretch>
89
           </sizepolicy>
90
          </property>
91
         </widget>
92
        </item>
93
        <item row="2" column="0">
94
         <widget class="QPushButton" name="btnDefaultFont">
95
          <property name="sizePolicy">
96
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
97
            <horstretch>2</horstretch>
98
            <verstretch>0</verstretch>
99
           </sizepolicy>
100
          </property>
101
          <property name="text">
102
           <string>Font</string>
103
          </property>
104
         </widget>
105
        </item>
106
        <item row="2" column="1">
107
         <widget class="QLabel" name="textLabel5_2_2_3_2">
108
          <property name="text">
109
           <string>Font size</string>
110
          </property>
111
          <property name="alignment">
112
           <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
113
          </property>
114
          <property name="buddy">
115
           <cstring>spinFontSize</cstring>
116
          </property>
117
         </widget>
118
        </item>
119
        <item row="2" column="2">
120
         <widget class="QDoubleSpinBox" name="spinFontSize">
121
          <property name="sizePolicy">
122
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
123
            <horstretch>0</horstretch>
124
            <verstretch>0</verstretch>
125
           </sizepolicy>
126
          </property>
127
          <property name="minimumSize">
128
           <size>
129
            <width>50</width>
130
            <height>0</height>
131
           </size>
132
          </property>
133
          <property name="decimals">
134
           <number>6</number>
135
          </property>
136
          <property name="maximum">
137
           <double>1000000.000000000000000</double>
138
          </property>
139
          <property name="value">
140
           <double>0.000000000000000</double>
141
          </property>
142
         </widget>
143
        </item>
144
        <item row="3" column="0">
145
         <widget class="QPushButton" name="pbnDefaultFontColor">
146
          <property name="sizePolicy">
147
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
148
            <horstretch>2</horstretch>
149
            <verstretch>0</verstretch>
150
           </sizepolicy>
151
          </property>
152
          <property name="text">
153
           <string>Color</string>
154
          </property>
155
         </widget>
156
        </item>
157
        <item row="3" column="1">
158
         <widget class="QLabel" name="textLabel1_2_2_2_2_2">
159
          <property name="text">
160
           <string>Angle (deg)</string>
161
          </property>
162
          <property name="buddy">
163
           <cstring>spinAngle</cstring>
164
          </property>
165
         </widget>
166
        </item>
167
        <item row="3" column="2">
168
         <widget class="QSpinBox" name="spinAngle">
169
          <property name="suffix">
170
           <string>°</string>
171
          </property>
172
          <property name="maximum">
173
           <number>360</number>
174
          </property>
175
          <property name="value">
176
           <number>0</number>
177
          </property>
178
         </widget>
179
        </item>
180
        <item row="4" column="0">
181
         <widget class="QCheckBox" name="chkUseMultiline">
182
          <property name="text">
183
           <string>Multiline labels?</string>
184
          </property>
185
          <property name="checked">
186
           <bool>true</bool>
187
          </property>
188
         </widget>
189
        </item>
190
       </layout>
191
      </widget>
192
      <widget class="QGroupBox" name="groupBox_2">
193
       <property name="geometry">
194
        <rect>
195
         <x>10</x>
196
         <y>180</y>
197
         <width>621</width>
198
         <height>106</height>
199
        </rect>
200
       </property>
201
       <property name="title">
202
        <string>Placement</string>
203
       </property>
204
       <layout class="QGridLayout">
205
        <property name="margin">
206
         <number>11</number>
207
        </property>
208
        <item row="2" column="2">
209
         <widget class="QRadioButton" name="radioBelowRight">
210
          <property name="text">
211
           <string>Below Right</string>
212
          </property>
213
         </widget>
214
        </item>
215
        <item row="1" column="2">
216
         <widget class="QRadioButton" name="radioRight">
217
          <property name="text">
218
           <string>Right</string>
219
          </property>
220
         </widget>
221
        </item>
222
        <item row="2" column="1">
223
         <widget class="QRadioButton" name="radioBelow">
224
          <property name="text">
225
           <string>Below</string>
226
          </property>
227
         </widget>
228
        </item>
229
        <item row="1" column="1">
230
         <widget class="QRadioButton" name="radioOver">
231
          <property name="text">
232
           <string>Over</string>
233
          </property>
234
          <property name="checked">
235
           <bool>true</bool>
236
          </property>
237
         </widget>
238
        </item>
239
        <item row="0" column="1">
240
         <widget class="QRadioButton" name="radioAbove">
241
          <property name="text">
242
           <string>Above</string>
243
          </property>
244
         </widget>
245
        </item>
246
        <item row="1" column="0">
247
         <widget class="QRadioButton" name="radioLeft">
248
          <property name="text">
249
           <string>Left</string>
250
          </property>
251
         </widget>
252
        </item>
253
        <item row="2" column="0">
254
         <widget class="QRadioButton" name="radioBelowLeft">
255
          <property name="text">
256
           <string>Below Left</string>
257
          </property>
258
         </widget>
259
        </item>
260
        <item row="0" column="2">
261
         <widget class="QRadioButton" name="radioAboveRight">
262
          <property name="text">
263
           <string>Above Right</string>
264
          </property>
265
         </widget>
266
        </item>
267
        <item row="0" column="0">
268
         <widget class="QRadioButton" name="radioAboveLeft">
269
          <property name="text">
270
           <string>Above Left</string>
271
          </property>
272
         </widget>
273
        </item>
274
       </layout>
275
      </widget>
276
     </widget>
277
     <widget class="QWidget" name="page_2">
278
      <property name="geometry">
279
       <rect>
280
        <x>0</x>
281
        <y>0</y>
282
        <width>644</width>
283
        <height>365</height>
284
       </rect>
285
      </property>
286
      <attribute name="label">
287
       <string>Scale dependent rendering, buffer labels, font size units and offset</string>
288
      </attribute>
289
      <layout class="QVBoxLayout" name="verticalLayout_2">
290
       <item>
293 291
        <widget class="QGroupBox" name="chkUseScaleDependentRendering">
294 292
         <property name="title">
295 293
          <string>Use scale dependent rendering</string>
......
350 348
         </layout>
351 349
        </widget>
352 350
       </item>
353
       <item row="10" column="0">
351
       <item>
354 352
        <widget class="QGroupBox" name="chkUseBuffer">
355 353
         <property name="enabled">
356 354
          <bool>true</bool>
......
440 438
         </layout>
441 439
        </widget>
442 440
       </item>
443
       <item row="11" column="0">
444
        <widget class="QGroupBox" name="buttonGroup10">
445
         <property name="title">
446
          <string>Offset units</string>
447
         </property>
448
         <layout class="QGridLayout" name="gridLayout_2">
449
          <item row="0" column="0">
450
           <widget class="QLabel" name="textLabel1_2_2_2_3">
451
            <property name="text">
452
             <string>X Offset (pts)</string>
453
            </property>
454
           </widget>
455
          </item>
456
          <item row="0" column="1">
457
           <widget class="QLabel" name="textLabel1_2_3_2">
458
            <property name="text">
459
             <string>Y Offset (pts)</string>
460
            </property>
461
           </widget>
462
          </item>
463
          <item row="1" column="0">
464
           <widget class="QDoubleSpinBox" name="spinXOffset">
465
            <property name="minimum">
466
             <double>-99.000000000000000</double>
467
            </property>
468
           </widget>
469
          </item>
470
          <item row="1" column="1">
471
           <widget class="QDoubleSpinBox" name="spinYOffset">
472
            <property name="minimum">
473
             <double>-99.000000000000000</double>
474
            </property>
475
           </widget>
476
          </item>
477
          <item row="2" column="0">
478
           <widget class="QRadioButton" name="radioOffsetUnitsPoints">
479
            <property name="text">
480
             <string>Points</string>
481
            </property>
482
           </widget>
483
          </item>
484
          <item row="2" column="1">
485
           <widget class="QRadioButton" name="radioOffsetUnitsMap">
486
            <property name="text">
487
             <string>Map units</string>
488
            </property>
489
           </widget>
490
          </item>
491
         </layout>
492
        </widget>
441
       <item>
442
        <layout class="QHBoxLayout" name="horizontalLayout_2">
443
         <item>
444
          <widget class="QGroupBox" name="groupBox_3">
445
           <property name="title">
446
            <string>Font size units</string>
447
           </property>
448
           <layout class="QGridLayout" name="_2">
449
            <item row="0" column="0">
450
             <widget class="QRadioButton" name="radioFontSizeUnitsPoints">
451
              <property name="text">
452
               <string>Points</string>
453
              </property>
454
             </widget>
455
            </item>
456
            <item row="1" column="0">
457
             <widget class="QRadioButton" name="radioFontSizeUnitsMap">
458
              <property name="text">
459
               <string>Map units</string>
460
              </property>
461
             </widget>
462
            </item>
463
           </layout>
464
          </widget>
465
         </item>
466
         <item>
467
          <widget class="QGroupBox" name="buttonGroup10">
468
           <property name="title">
469
            <string>Offset units</string>
470
           </property>
471
           <layout class="QGridLayout" name="gridLayout">
472
            <item row="0" column="0">
473
             <widget class="QLabel" name="textLabel1_2_3_2">
474
              <property name="text">
475
               <string>X Offset (pts)</string>
476
              </property>
477
             </widget>
478
            </item>
479
            <item row="0" column="1">
480
             <widget class="QDoubleSpinBox" name="spinXOffset">
481
              <property name="minimum">
482
               <double>-99.000000000000000</double>
483
              </property>
484
             </widget>
485
            </item>
486
            <item row="0" column="2">
487
             <widget class="QRadioButton" name="radioOffsetUnitsPoints">
488
              <property name="text">
489
               <string>Points</string>
490
              </property>
491
             </widget>
492
            </item>
493
            <item row="1" column="0">
494
             <widget class="QLabel" name="textLabel1_2_2_2_3">
495
              <property name="text">
496
               <string>Y Offset (pts)</string>
497
              </property>
498
             </widget>
499
            </item>
500
            <item row="1" column="1">
501
             <widget class="QDoubleSpinBox" name="spinYOffset">
502
              <property name="minimum">
503
               <double>-99.000000000000000</double>
504
              </property>
505
             </widget>
506
            </item>
507
            <item row="1" column="2">
508
             <widget class="QRadioButton" name="radioOffsetUnitsMap">
509
              <property name="text">
510
               <string>Map units</string>
511
              </property>
512
             </widget>
513
            </item>
514
           </layout>
515
          </widget>
516
         </item>
517
        </layout>
493 518
       </item>
494
       <item row="12" column="0">
495
        <widget class="QGroupBox" name="groupBox_5">
496
         <property name="title">
497
          <string>Data defined placement</string>
498
         </property>
499
         <layout class="QGridLayout" name="gridLayout_4">
500
          <item row="0" column="0">
501
           <widget class="QLabel" name="textLabel1_2_2_2_2_3">
502
            <property name="sizePolicy">
503
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
504
              <horstretch>0</horstretch>
505
              <verstretch>0</verstretch>
506
             </sizepolicy>
507
            </property>
508
            <property name="text">
509
             <string>Placement</string>
510
            </property>
511
           </widget>
512
          </item>
513
          <item row="0" column="1">
514
           <widget class="QComboBox" name="cboAlignmentField"/>
515
          </item>
516
          <item row="1" column="0">
517
           <widget class="QLabel" name="textLabel1_2_2_2_2">
518
            <property name="sizePolicy">
519
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
520
              <horstretch>0</horstretch>
521
              <verstretch>0</verstretch>
522
             </sizepolicy>
523
            </property>
524
            <property name="text">
525
             <string>Angle (deg)</string>
526
            </property>
527
           </widget>
528
          </item>
529
          <item row="1" column="1">
530
           <widget class="QComboBox" name="cboAngleField"/>
531
          </item>
532
         </layout>
533
        </widget>
534
       </item>
535
       <item row="13" column="0">
536
        <widget class="QGroupBox" name="groupBox">
537
         <property name="title">
538
          <string>Data defined properties</string>
539
         </property>
540
         <layout class="QGridLayout" name="gridLayout_3">
541
          <item row="0" column="0">
542
           <widget class="QLabel" name="lblFont">
543
            <property name="sizePolicy">
544
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
545
              <horstretch>0</horstretch>
546
              <verstretch>0</verstretch>
547
             </sizepolicy>
548
            </property>
549
            <property name="text">
550
             <string>&amp;Font family</string>
551
            </property>
552
            <property name="buddy">
553
             <cstring>cboFontField</cstring>
554
            </property>
555
           </widget>
556
          </item>
557
          <item row="0" column="1">
558
           <widget class="QComboBox" name="cboFontField"/>
559
          </item>
560
          <item row="1" column="0">
561
           <widget class="QLabel" name="textLabel4">
562
            <property name="sizePolicy">
563
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
564
              <horstretch>0</horstretch>
565
              <verstretch>0</verstretch>
566
             </sizepolicy>
567
            </property>
568
            <property name="text">
569
             <string>&amp;Bold</string>
570
            </property>
571
            <property name="buddy">
572
             <cstring>cboBoldField</cstring>
573
            </property>
574
           </widget>
575
          </item>
576
          <item row="1" column="1">
577
           <widget class="QComboBox" name="cboBoldField"/>
578
          </item>
579
          <item row="2" column="0">
580
           <widget class="QLabel" name="textLabel4_2_4">
581
            <property name="sizePolicy">
582
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
583
              <horstretch>0</horstretch>
584
              <verstretch>0</verstretch>
585
             </sizepolicy>
586
            </property>
587
            <property name="text">
588
             <string>&amp;Italic</string>
589
            </property>
590
            <property name="buddy">
591
             <cstring>cboItalicField</cstring>
592
            </property>
593
           </widget>
594
          </item>
595
          <item row="2" column="1">
596
           <widget class="QComboBox" name="cboItalicField"/>
597
          </item>
598
          <item row="3" column="0">
599
           <widget class="QLabel" name="textLabel4_3">
600
            <property name="sizePolicy">
601
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
602
              <horstretch>0</horstretch>
603
              <verstretch>0</verstretch>
604
             </sizepolicy>
605
            </property>
606
            <property name="text">
607
             <string>&amp;Underline</string>
608
            </property>
609
            <property name="buddy">
610
             <cstring>cboUnderlineField</cstring>
611
            </property>
612
           </widget>
613
          </item>
614
          <item row="3" column="1">
615
           <widget class="QComboBox" name="cboUnderlineField"/>
616
          </item>
617
          <item row="4" column="0">
618
           <widget class="QLabel" name="textLabel4_3_2">
619
            <property name="sizePolicy">
620
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
621
              <horstretch>0</horstretch>
622
              <verstretch>0</verstretch>
623
             </sizepolicy>
624
            </property>
625
            <property name="text">
626
             <string>&amp;Size</string>
627
            </property>
628
            <property name="buddy">
629
             <cstring>cboFontSizeField</cstring>
630
            </property>
631
           </widget>
632
          </item>
633
          <item row="4" column="1">
634
           <widget class="QComboBox" name="cboFontSizeField"/>
635
          </item>
636
          <item row="5" column="0">
637
           <widget class="QLabel" name="textLabel4_3_2_4">
638
            <property name="sizePolicy">
639
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
640
              <horstretch>0</horstretch>
641
              <verstretch>0</verstretch>
642
             </sizepolicy>
643
            </property>
644
            <property name="text">
645
             <string>Size units</string>
646
            </property>
647
            <property name="buddy">
648
             <cstring>cboFontSizeTypeField</cstring>
649
            </property>
650
           </widget>
651
          </item>
652
          <item row="5" column="1">
653
           <widget class="QComboBox" name="cboFontSizeTypeField"/>
654
          </item>
655
          <item row="6" column="0">
656
           <widget class="QLabel" name="textLabel4_3_2_3">
657
            <property name="enabled">
658
             <bool>false</bool>
659
            </property>
660
            <property name="sizePolicy">
661
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
662
              <horstretch>0</horstretch>
663
              <verstretch>0</verstretch>
664
             </sizepolicy>
665
            </property>
666
            <property name="text">
667
             <string>Transparency</string>
668
            </property>
669
            <property name="buddy">
670
             <cstring>cboFontTransparencyField</cstring>
671
            </property>
672
           </widget>
673
          </item>
674
          <item row="6" column="1">
675
           <widget class="QComboBox" name="cboFontTransparencyField">
676
            <property name="enabled">
677
             <bool>false</bool>
678
            </property>
679
           </widget>
680
          </item>
681
          <item row="7" column="0">
682
           <widget class="QLabel" name="textLabel4_3_2_5">
683
            <property name="sizePolicy">
684
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
685
              <horstretch>0</horstretch>
686
              <verstretch>0</verstretch>
687
             </sizepolicy>
688
            </property>
689
            <property name="text">
690
             <string>&amp;Color</string>
691
            </property>
692
            <property name="buddy">
693
             <cstring>cboFontColorField</cstring>
694
            </property>
695
           </widget>
696
          </item>
697
          <item row="7" column="1">
698
           <widget class="QComboBox" name="cboFontColorField"/>
699
          </item>
700
         </layout>
701
        </widget>
702
       </item>
703
       <item row="14" column="0">
704
        <widget class="QGroupBox" name="groupBox_6">
705
         <property name="title">
706
          <string>Data defined buffer</string>
707
         </property>
708
         <layout class="QGridLayout" name="gridLayout_5">
709
          <item row="0" column="0">
710
           <widget class="QLabel" name="textLabel1_3_2_2_2">
711
            <property name="enabled">
712
             <bool>false</bool>
713
            </property>
714
            <property name="sizePolicy">
715
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
716
              <horstretch>0</horstretch>
717
              <verstretch>0</verstretch>
718
             </sizepolicy>
719
            </property>
720
            <property name="minimumSize">
721
             <size>
722
              <width>70</width>
723
              <height>0</height>
724
             </size>
725
            </property>
726
            <property name="text">
727
             <string>Transparency:</string>
728
            </property>
729
            <property name="buddy">
730
             <cstring>cboBufferTransparencyField</cstring>
731
            </property>
732
           </widget>
733
          </item>
734
          <item row="0" column="1">
735
           <widget class="QComboBox" name="cboBufferTransparencyField">
736
            <property name="enabled">
737
             <bool>false</bool>
738
            </property>
739
           </widget>
740
          </item>
741
          <item row="1" column="0">
742
           <widget class="QLabel" name="textLabel4_3_2_2_2">
743
            <property name="sizePolicy">
744
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
745
              <horstretch>0</horstretch>
746
              <verstretch>0</verstretch>
747
             </sizepolicy>
748
            </property>
749
            <property name="text">
750
             <string>Size:</string>
751
            </property>
752
            <property name="buddy">
753
             <cstring>cboBufferSizeField</cstring>
754
            </property>
755
           </widget>
756
          </item>
757
          <item row="1" column="1">
758
           <widget class="QComboBox" name="cboBufferSizeField"/>
759
          </item>
760
         </layout>
761
        </widget>
762
       </item>
763
       <item row="15" column="0">
764
        <widget class="QGroupBox" name="groupBox_7">
765
         <property name="title">
766
          <string>Data defined position</string>
767
         </property>
768
         <layout class="QGridLayout" name="gridLayout_6">
769
          <item row="0" column="0">
770
           <widget class="QLabel" name="textLabel1_2">
771
            <property name="sizePolicy">
772
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
773
              <horstretch>0</horstretch>
774
              <verstretch>0</verstretch>
775
             </sizepolicy>
776
            </property>
777
            <property name="text">
778
             <string>X Coordinate</string>
779
            </property>
780
           </widget>
781
          </item>
782
          <item row="0" column="1">
783
           <widget class="QComboBox" name="cboXCoordinateField"/>
784
          </item>
785
          <item row="1" column="0">
786
           <widget class="QLabel" name="textLabel1_2_2">
787
            <property name="sizePolicy">
788
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
789
              <horstretch>0</horstretch>
790
              <verstretch>0</verstretch>
791
             </sizepolicy>
792
            </property>
793
            <property name="text">
794
             <string>Y Coordinate</string>
795
            </property>
796
           </widget>
797
          </item>
798
          <item row="1" column="1">
799
           <widget class="QComboBox" name="cboYCoordinateField"/>
800
          </item>
801
          <item row="2" column="0">
802
           <widget class="QLabel" name="textLabel1_2_3">
803
            <property name="sizePolicy">
804
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
805
              <horstretch>0</horstretch>
806
              <verstretch>0</verstretch>
807
             </sizepolicy>
808
            </property>
809
            <property name="text">
810
             <string>X Offset (pts)</string>
811
            </property>
812
           </widget>
813
          </item>
814
          <item row="2" column="1">
815
           <widget class="QComboBox" name="cboXOffsetField"/>
816
          </item>
817
          <item row="3" column="0">
818
           <widget class="QLabel" name="textLabel1_2_2_2">
819
            <property name="sizePolicy">
820
             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
821
              <horstretch>0</horstretch>
822
              <verstretch>0</verstretch>
823
             </sizepolicy>
824
            </property>
825
            <property name="text">
826
             <string>Y Offset (pts)</string>
827
            </property>
828
           </widget>
829
          </item>
830
          <item row="3" column="1">
831
           <widget class="QComboBox" name="cboYOffsetField"/>
832
          </item>
833
         </layout>
834
        </widget>
835
       </item>
836 519
      </layout>
837 520
     </widget>
521
     <widget class="QWidget" name="page_3">
522
      <property name="geometry">
523
       <rect>
524
        <x>0</x>
525
        <y>0</y>
526
        <width>644</width>
527
        <height>365</height>
528
       </rect>
529
      </property>
530
      <attribute name="label">
531
       <string>Data defined settings (placement and properties)</string>
532
      </attribute>
533
      <widget class="QGroupBox" name="groupBox_5">
534
       <property name="geometry">
535
        <rect>
536
         <x>10</x>
537
         <y>0</y>
538
         <width>621</width>
539
         <height>84</height>
540
        </rect>
541
       </property>
542
       <property name="title">
543
        <string>Data defined placement</string>
544
       </property>
545
       <layout class="QGridLayout" name="gridLayout_4">
546
        <item row="0" column="0">
547
         <widget class="QLabel" name="textLabel1_2_2_2_2_3">
548
          <property name="sizePolicy">
549
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
550
            <horstretch>0</horstretch>
551
            <verstretch>0</verstretch>
552
           </sizepolicy>
553
          </property>
554
          <property name="text">
555
           <string>Placement</string>
556
          </property>
557
         </widget>
558
        </item>
559
        <item row="0" column="1">
560
         <widget class="QComboBox" name="cboAlignmentField"/>
561
        </item>
562
        <item row="1" column="0">
563
         <widget class="QLabel" name="textLabel1_2_2_2_2">
564
          <property name="sizePolicy">
565
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
566
            <horstretch>0</horstretch>
567
            <verstretch>0</verstretch>
568
           </sizepolicy>
569
          </property>
570
          <property name="text">
571
           <string>Angle (deg)</string>
572
          </property>
573
         </widget>
574
        </item>
575
        <item row="1" column="1">
576
         <widget class="QComboBox" name="cboAngleField"/>
577
        </item>
578
       </layout>
579
      </widget>
580
      <widget class="QGroupBox" name="groupBox">
581
       <property name="geometry">
582
        <rect>
583
         <x>10</x>
584
         <y>90</y>
585
         <width>621</width>
586
         <height>246</height>
587
        </rect>
588
       </property>
589
       <property name="title">
590
        <string>Data defined properties</string>
591
       </property>
592
       <layout class="QGridLayout" name="gridLayout_3">
593
        <item row="0" column="0">
594
         <widget class="QLabel" name="lblFont">
595
          <property name="sizePolicy">
596
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
597
            <horstretch>0</horstretch>
598
            <verstretch>0</verstretch>
599
           </sizepolicy>
600
          </property>
601
          <property name="text">
602
           <string>&amp;Font family</string>
603
          </property>
604
          <property name="buddy">
605
           <cstring>cboFontField</cstring>
606
          </property>
607
         </widget>
608
        </item>
609
        <item row="0" column="1">
610
         <widget class="QComboBox" name="cboFontField"/>
611
        </item>
612
        <item row="1" column="0">
613
         <widget class="QLabel" name="textLabel4">
614
          <property name="sizePolicy">
615
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
616
            <horstretch>0</horstretch>
617
            <verstretch>0</verstretch>
618
           </sizepolicy>
619
          </property>
620
          <property name="text">
621
           <string>&amp;Bold</string>
622
          </property>
623
          <property name="buddy">
624
           <cstring>cboBoldField</cstring>
625
          </property>
626
         </widget>
627
        </item>
628
        <item row="1" column="1">
629
         <widget class="QComboBox" name="cboBoldField"/>
630
        </item>
631
        <item row="2" column="0">
632
         <widget class="QLabel" name="textLabel4_2_4">
633
          <property name="sizePolicy">
634
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
635
            <horstretch>0</horstretch>
636
            <verstretch>0</verstretch>
637
           </sizepolicy>
638
          </property>
639
          <property name="text">
640
           <string>&amp;Italic</string>
641
          </property>
642
          <property name="buddy">
643
           <cstring>cboItalicField</cstring>
644
          </property>
645
         </widget>
646
        </item>
647
        <item row="2" column="1">
648
         <widget class="QComboBox" name="cboItalicField"/>
649
        </item>
650
        <item row="3" column="0">
651
         <widget class="QLabel" name="textLabel4_3">
652
          <property name="sizePolicy">
653
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
654
            <horstretch>0</horstretch>
655
            <verstretch>0</verstretch>
656
           </sizepolicy>
657
          </property>
658
          <property name="text">
659
           <string>&amp;Underline</string>
660
          </property>
661
          <property name="buddy">
662
           <cstring>cboUnderlineField</cstring>
663
          </property>
664
         </widget>
665
        </item>
666
        <item row="3" column="1">
667
         <widget class="QComboBox" name="cboUnderlineField"/>
668
        </item>
669
        <item row="6" column="0">
670
         <widget class="QLabel" name="textLabel4_3_2">
671
          <property name="sizePolicy">
672
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
673
            <horstretch>0</horstretch>
674
            <verstretch>0</verstretch>
675
           </sizepolicy>
676
          </property>
677
          <property name="text">
678
           <string>&amp;Size</string>
679
          </property>
680
          <property name="buddy">
681
           <cstring>cboFontSizeField</cstring>
682
          </property>
683
         </widget>
684
        </item>
685
        <item row="6" column="1">
686
         <widget class="QComboBox" name="cboFontSizeField"/>
687
        </item>
688
        <item row="7" column="0">
689
         <widget class="QLabel" name="textLabel4_3_2_4">
690
          <property name="sizePolicy">
691
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
692
            <horstretch>0</horstretch>
693
            <verstretch>0</verstretch>
694
           </sizepolicy>
695
          </property>
696
          <property name="text">
697
           <string>Size units</string>
698
          </property>
699
          <property name="buddy">
700
           <cstring>cboFontSizeTypeField</cstring>
701
          </property>
702
         </widget>
703
        </item>
704
        <item row="7" column="1">
705
         <widget class="QComboBox" name="cboFontSizeTypeField"/>
706
        </item>
707
        <item row="8" column="0">
708
         <widget class="QLabel" name="textLabel4_3_2_5">
709
          <property name="sizePolicy">
710
           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
711
            <horstretch>0</horstretch>
712
            <verstretch>0</verstretch>
713
           </sizepolicy>
714
          </property>
715
          <property name="text">
716
           <string>&amp;Color</string>
717
          </property>
718
          <property name="buddy">
719
           <cstring>cboFontColorField</cstring>
720
          </property>
721
         </widget>
722
        </item>
723
        <item row="8" column="1">
724
         <widget class="QComboBox" name="cboFontColorField"/>
725
        </item>
726
        <item row="4" column="1">
727
         <widget class="QComboBox" name="cboStrikeOutField"/>
728
        </item>
729
        <item row="4" column="0">
730
         <widget class="QLabel" name="label">
731
          <property name="text">
732
           <string>Strikeout</string>
733
          </property>
734
         </widget>
735
        </item>
736
       </layout>
737
      </widget>
738
     </widget>
739
     <widget class="QWidget" name="page_4">
740
      <property name="geometry">
741
       <rect>
742
        <x>0</x>
743
        <y>0</y>
744
        <width>644</width>
745
        <height>365</height>
746
       </rect>
747
      </property>
748
      <attribute name="label">
749
       <string>Data defined settings: buffer and position</string>
... This diff was truncated because it exceeds the maximum size that can be displayed.