|
370 | 370 | <rect>
|
371 | 371 | <x>0</x>
|
372 | 372 | <y>0</y>
|
373 |
| - <width>755</width> |
374 |
| - <height>519</height> |
| 373 | + <width>740</width> |
| 374 | + <height>548</height> |
375 | 375 | </rect>
|
376 | 376 | </property>
|
377 | 377 | <layout class="QGridLayout" name="gridLayout_3">
|
|
382 | 382 | </property>
|
383 | 383 | <layout class="QGridLayout" name="gridLayout_2">
|
384 | 384 | <item row="0" column="0">
|
385 |
| - <widget class="QLabel" name="textLabel3"> |
386 |
| - <property name="text"> |
387 |
| - <string>Display name</string> |
388 |
| - </property> |
389 |
| - </widget> |
390 |
| - </item> |
391 |
| - <item row="0" column="1"> |
392 |
| - <widget class="QLineEdit" name="txtDisplayName"/> |
393 |
| - </item> |
394 |
| - <item row="0" column="3"> |
395 |
| - <widget class="QComboBox" name="displayFieldComboBox"> |
396 |
| - <property name="whatsThis"> |
397 |
| - <string>Use this control to set which field is placed at the top level of the Identify Results dialog box.</string> |
398 |
| - </property> |
399 |
| - </widget> |
400 |
| - </item> |
401 |
| - <item row="1" column="0"> |
402 | 385 | <widget class="QLabel" name="label">
|
403 | 386 | <property name="text">
|
404 | 387 | <string>Edit UI</string>
|
405 | 388 | </property>
|
406 | 389 | </widget>
|
407 | 390 | </item>
|
408 |
| - <item row="1" column="1" colspan="2"> |
| 391 | + <item row="0" column="1" colspan="2"> |
409 | 392 | <layout class="QHBoxLayout" name="horizontalLayout_2">
|
410 | 393 | <item>
|
411 | 394 | <widget class="QLineEdit" name="leEditForm"/>
|
|
419 | 402 | </item>
|
420 | 403 | </layout>
|
421 | 404 | </item>
|
422 |
| - <item row="1" column="3"> |
| 405 | + <item row="0" column="3"> |
423 | 406 | <widget class="QPushButton" name="pbnIndex">
|
424 | 407 | <property name="text">
|
425 | 408 | <string>Create Spatial Index</string>
|
426 | 409 | </property>
|
427 | 410 | </widget>
|
428 | 411 | </item>
|
429 |
| - <item row="4" column="0" colspan="3"> |
430 |
| - <widget class="QLineEdit" name="leSpatialRefSys"> |
431 |
| - <property name="readOnly"> |
432 |
| - <bool>true</bool> |
| 412 | + <item row="1" column="3"> |
| 413 | + <widget class="QPushButton" name="pbnUpdateExtents"> |
| 414 | + <property name="text"> |
| 415 | + <string>Update Extents</string> |
433 | 416 | </property>
|
434 | 417 | </widget>
|
435 | 418 | </item>
|
436 |
| - <item row="4" column="3"> |
437 |
| - <widget class="QPushButton" name="pbnChangeSpatialRefSys"> |
438 |
| - <property name="toolTip"> |
439 |
| - <string>Specify the coordinate reference system of the layer's geometry.</string> |
440 |
| - </property> |
441 |
| - <property name="whatsThis"> |
442 |
| - <string>Specify the coordinate reference system of the layer's geometry.</string> |
443 |
| - </property> |
| 419 | + <item row="1" column="1" colspan="2"> |
| 420 | + <widget class="QLineEdit" name="leEditFormInit"/> |
| 421 | + </item> |
| 422 | + <item row="1" column="0"> |
| 423 | + <widget class="QLabel" name="label_3"> |
444 | 424 | <property name="text">
|
445 |
| - <string>Specify CRS</string> |
| 425 | + <string>Init function</string> |
446 | 426 | </property>
|
447 | 427 | </widget>
|
448 | 428 | </item>
|
449 |
| - <item row="0" column="2"> |
450 |
| - <widget class="QLabel" name="textLabel2"> |
451 |
| - <property name="toolTip"> |
452 |
| - <string>Display field for the Identify Results dialog box</string> |
453 |
| - </property> |
454 |
| - <property name="whatsThis"> |
455 |
| - <string>This sets the display field for the Identify Results dialog box</string> |
456 |
| - </property> |
| 429 | + <item row="2" column="0"> |
| 430 | + <widget class="QLabel" name="label_4"> |
457 | 431 | <property name="text">
|
458 |
| - <string>Display field</string> |
| 432 | + <string>CRS</string> |
459 | 433 | </property>
|
460 | 434 | </widget>
|
461 | 435 | </item>
|
462 |
| - <item row="2" column="3"> |
463 |
| - <widget class="QPushButton" name="pbnUpdateExtents"> |
464 |
| - <property name="text"> |
465 |
| - <string>Update Extents</string> |
| 436 | + <item row="2" column="1"> |
| 437 | + <widget class="QLineEdit" name="leSpatialRefSys"> |
| 438 | + <property name="readOnly"> |
| 439 | + <bool>true</bool> |
466 | 440 | </property>
|
467 | 441 | </widget>
|
468 | 442 | </item>
|
469 |
| - <item row="2" column="1" colspan="2"> |
470 |
| - <widget class="QLineEdit" name="leEditFormInit"/> |
471 |
| - </item> |
472 |
| - <item row="2" column="0"> |
473 |
| - <widget class="QLabel" name="label_3"> |
| 443 | + <item row="2" column="3"> |
| 444 | + <widget class="QPushButton" name="pbnChangeSpatialRefSys"> |
| 445 | + <property name="toolTip"> |
| 446 | + <string>Specify the coordinate reference system of the layer's geometry.</string> |
| 447 | + </property> |
| 448 | + <property name="whatsThis"> |
| 449 | + <string>Specify the coordinate reference system of the layer's geometry.</string> |
| 450 | + </property> |
474 | 451 | <property name="text">
|
475 |
| - <string>Init function</string> |
| 452 | + <string>Specify CRS</string> |
476 | 453 | </property>
|
477 | 454 | </widget>
|
478 | 455 | </item>
|
|
590 | 567 | </item>
|
591 | 568 | </layout>
|
592 | 569 | </widget>
|
| 570 | + <widget class="QWidget" name="tab"> |
| 571 | + <attribute name="icon"> |
| 572 | + <iconset resource="../../images/images.qrc"> |
| 573 | + <normaloff>:/images/themes/gis/mActionMapTips.png</normaloff>:/images/themes/gis/mActionMapTips.png</iconset> |
| 574 | + </attribute> |
| 575 | + <attribute name="title"> |
| 576 | + <string>Display</string> |
| 577 | + </attribute> |
| 578 | + <layout class="QFormLayout" name="formLayout_2"> |
| 579 | + <property name="fieldGrowthPolicy"> |
| 580 | + <enum>QFormLayout::AllNonFixedFieldsGrow</enum> |
| 581 | + </property> |
| 582 | + <item row="0" column="0"> |
| 583 | + <widget class="QLabel" name="textLabel3"> |
| 584 | + <property name="text"> |
| 585 | + <string>Legend display text</string> |
| 586 | + </property> |
| 587 | + </widget> |
| 588 | + </item> |
| 589 | + <item row="0" column="1"> |
| 590 | + <widget class="QLineEdit" name="txtDisplayName"/> |
| 591 | + </item> |
| 592 | + <item row="1" column="0" colspan="2"> |
| 593 | + <widget class="QGroupBox" name="groupBox"> |
| 594 | + <property name="title"> |
| 595 | + <string>Map Tip display text</string> |
| 596 | + </property> |
| 597 | + <layout class="QFormLayout" name="formLayout_3"> |
| 598 | + <item row="0" column="0"> |
| 599 | + <widget class="QRadioButton" name="fieldComboRadio"> |
| 600 | + <property name="text"> |
| 601 | + <string>Field</string> |
| 602 | + </property> |
| 603 | + </widget> |
| 604 | + </item> |
| 605 | + <item row="0" column="1"> |
| 606 | + <widget class="QComboBox" name="displayFieldComboBox"> |
| 607 | + <property name="enabled"> |
| 608 | + <bool>false</bool> |
| 609 | + </property> |
| 610 | + </widget> |
| 611 | + </item> |
| 612 | + <item row="1" column="0"> |
| 613 | + <widget class="QRadioButton" name="htmlRadio"> |
| 614 | + <property name="text"> |
| 615 | + <string>HTML</string> |
| 616 | + </property> |
| 617 | + </widget> |
| 618 | + </item> |
| 619 | + <item row="1" column="1"> |
| 620 | + <widget class="QTextEdit" name="htmlMapTip"> |
| 621 | + <property name="enabled"> |
| 622 | + <bool>false</bool> |
| 623 | + </property> |
| 624 | + </widget> |
| 625 | + </item> |
| 626 | + <item row="2" column="1"> |
| 627 | + <layout class="QHBoxLayout" name="horizontalLayout_14"> |
| 628 | + <item> |
| 629 | + <widget class="QPushButton" name="insertExpressionButton"> |
| 630 | + <property name="enabled"> |
| 631 | + <bool>false</bool> |
| 632 | + </property> |
| 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="toolTip"> |
| 640 | + <string>Inserts an expression into the action</string> |
| 641 | + </property> |
| 642 | + <property name="text"> |
| 643 | + <string>Insert expression...</string> |
| 644 | + </property> |
| 645 | + </widget> |
| 646 | + </item> |
| 647 | + <item> |
| 648 | + <spacer name="horizontalSpacer_4"> |
| 649 | + <property name="orientation"> |
| 650 | + <enum>Qt::Horizontal</enum> |
| 651 | + </property> |
| 652 | + <property name="sizeType"> |
| 653 | + <enum>QSizePolicy::Fixed</enum> |
| 654 | + </property> |
| 655 | + <property name="sizeHint" stdset="0"> |
| 656 | + <size> |
| 657 | + <width>40</width> |
| 658 | + <height>20</height> |
| 659 | + </size> |
| 660 | + </property> |
| 661 | + </spacer> |
| 662 | + </item> |
| 663 | + <item> |
| 664 | + <widget class="QComboBox" name="fieldComboBox"> |
| 665 | + <property name="enabled"> |
| 666 | + <bool>false</bool> |
| 667 | + </property> |
| 668 | + <property name="toolTip"> |
| 669 | + <string>The valid attribute names for this layer</string> |
| 670 | + </property> |
| 671 | + </widget> |
| 672 | + </item> |
| 673 | + <item> |
| 674 | + <widget class="QPushButton" name="insertFieldButton"> |
| 675 | + <property name="enabled"> |
| 676 | + <bool>false</bool> |
| 677 | + </property> |
| 678 | + <property name="sizePolicy"> |
| 679 | + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
| 680 | + <horstretch>0</horstretch> |
| 681 | + <verstretch>0</verstretch> |
| 682 | + </sizepolicy> |
| 683 | + </property> |
| 684 | + <property name="toolTip"> |
| 685 | + <string>Inserts the selected field into the action</string> |
| 686 | + </property> |
| 687 | + <property name="text"> |
| 688 | + <string>Insert field</string> |
| 689 | + </property> |
| 690 | + </widget> |
| 691 | + </item> |
| 692 | + </layout> |
| 693 | + </item> |
| 694 | + </layout> |
| 695 | + </widget> |
| 696 | + </item> |
| 697 | + </layout> |
| 698 | + </widget> |
593 | 699 | <widget class="QWidget" name="tabWidgetPage5">
|
594 | 700 | <attribute name="icon">
|
595 | 701 | <iconset resource="../../images/images.qrc">
|
|
615 | 721 | <rect>
|
616 | 722 | <x>0</x>
|
617 | 723 | <y>0</y>
|
618 |
| - <width>733</width> |
619 |
| - <height>497</height> |
| 724 | + <width>722</width> |
| 725 | + <height>530</height> |
620 | 726 | </rect>
|
621 | 727 | </property>
|
622 | 728 | <layout class="QVBoxLayout" name="verticalLayout">
|
|
727 | 833 | <rect>
|
728 | 834 | <x>0</x>
|
729 | 835 | <y>0</y>
|
730 |
| - <width>733</width> |
731 |
| - <height>497</height> |
| 836 | + <width>722</width> |
| 837 | + <height>530</height> |
732 | 838 | </rect>
|
733 | 839 | </property>
|
734 | 840 | <layout class="QGridLayout" name="gridLayout_17">
|
|
820 | 926 | <rect>
|
821 | 927 | <x>0</x>
|
822 | 928 | <y>0</y>
|
823 |
| - <width>713</width> |
824 |
| - <height>637</height> |
| 929 | + <width>704</width> |
| 930 | + <height>627</height> |
825 | 931 | </rect>
|
826 | 932 | </property>
|
827 | 933 | <layout class="QGridLayout" name="gridLayout_16">
|
|
1333 | 1439 | </customwidget>
|
1334 | 1440 | </customwidgets>
|
1335 | 1441 | <tabstops>
|
1336 |
| - <tabstop>txtDisplayName</tabstop> |
1337 |
| - <tabstop>displayFieldComboBox</tabstop> |
1338 |
| - <tabstop>leSpatialRefSys</tabstop> |
1339 | 1442 | <tabstop>pbnIndex</tabstop>
|
1340 | 1443 | <tabstop>leMinimumScale</tabstop>
|
1341 | 1444 | <tabstop>leMaximumScale</tabstop>
|
|
1345 | 1448 | <resources>
|
1346 | 1449 | <include location="../../images/images.qrc"/>
|
1347 | 1450 | </resources>
|
1348 |
| - <connections/> |
| 1451 | + <connections> |
| 1452 | + <connection> |
| 1453 | + <sender>fieldComboRadio</sender> |
| 1454 | + <signal>toggled(bool)</signal> |
| 1455 | + <receiver>displayFieldComboBox</receiver> |
| 1456 | + <slot>setEnabled(bool)</slot> |
| 1457 | + <hints> |
| 1458 | + <hint type="sourcelabel"> |
| 1459 | + <x>69</x> |
| 1460 | + <y>128</y> |
| 1461 | + </hint> |
| 1462 | + <hint type="destinationlabel"> |
| 1463 | + <x>178</x> |
| 1464 | + <y>128</y> |
| 1465 | + </hint> |
| 1466 | + </hints> |
| 1467 | + </connection> |
| 1468 | + <connection> |
| 1469 | + <sender>htmlRadio</sender> |
| 1470 | + <signal>toggled(bool)</signal> |
| 1471 | + <receiver>htmlMapTip</receiver> |
| 1472 | + <slot>setEnabled(bool)</slot> |
| 1473 | + <hints> |
| 1474 | + <hint type="sourcelabel"> |
| 1475 | + <x>57</x> |
| 1476 | + <y>155</y> |
| 1477 | + </hint> |
| 1478 | + <hint type="destinationlabel"> |
| 1479 | + <x>149</x> |
| 1480 | + <y>183</y> |
| 1481 | + </hint> |
| 1482 | + </hints> |
| 1483 | + </connection> |
| 1484 | + <connection> |
| 1485 | + <sender>htmlRadio</sender> |
| 1486 | + <signal>toggled(bool)</signal> |
| 1487 | + <receiver>insertFieldButton</receiver> |
| 1488 | + <slot>setEnabled(bool)</slot> |
| 1489 | + <hints> |
| 1490 | + <hint type="sourcelabel"> |
| 1491 | + <x>83</x> |
| 1492 | + <y>152</y> |
| 1493 | + </hint> |
| 1494 | + <hint type="destinationlabel"> |
| 1495 | + <x>660</x> |
| 1496 | + <y>350</y> |
| 1497 | + </hint> |
| 1498 | + </hints> |
| 1499 | + </connection> |
| 1500 | + <connection> |
| 1501 | + <sender>htmlRadio</sender> |
| 1502 | + <signal>toggled(bool)</signal> |
| 1503 | + <receiver>fieldComboBox</receiver> |
| 1504 | + <slot>setEnabled(bool)</slot> |
| 1505 | + <hints> |
| 1506 | + <hint type="sourcelabel"> |
| 1507 | + <x>51</x> |
| 1508 | + <y>157</y> |
| 1509 | + </hint> |
| 1510 | + <hint type="destinationlabel"> |
| 1511 | + <x>306</x> |
| 1512 | + <y>361</y> |
| 1513 | + </hint> |
| 1514 | + </hints> |
| 1515 | + </connection> |
| 1516 | + <connection> |
| 1517 | + <sender>htmlRadio</sender> |
| 1518 | + <signal>toggled(bool)</signal> |
| 1519 | + <receiver>insertExpressionButton</receiver> |
| 1520 | + <slot>setEnabled(bool)</slot> |
| 1521 | + <hints> |
| 1522 | + <hint type="sourcelabel"> |
| 1523 | + <x>73</x> |
| 1524 | + <y>151</y> |
| 1525 | + </hint> |
| 1526 | + <hint type="destinationlabel"> |
| 1527 | + <x>142</x> |
| 1528 | + <y>349</y> |
| 1529 | + </hint> |
| 1530 | + </hints> |
| 1531 | + </connection> |
| 1532 | + </connections> |
1349 | 1533 | </ui>
|
2 commit comments
AndrewM- commentedon Feb 28, 2014
Hi Nathan,
I cannot get the img display working. Can you please document the types of image paths that map tips can support. I have tried about a dozen variations on image URLs for displaying images in maptips without success. I am using GGIS 2.2 on a Win64 system. The image addresses that I would like to display look like this - 'H:\Photos\NonWork\2012-04-20_RedCliffPoint\Thumbs\P1190276.JPG'.
AndrewM- commentedon Mar 3, 2014
Correction, the maptips do work with images e.g.[img src=''H:\Photos\NonWork\2012-04-20_RedCliffPoint\Thumbs\P1190276.JPG"/] with angle brakets. However if you see text instead of an image, then the problem is probably text before or after the line with the image link. I found that putting
tags on either side of the above line to separate the image from other content made things work.