42 QWidget *subPanel =
new QWidget ();
43 QGridLayout *layout =
new QGridLayout (subPanel);
44 subPanel->setLayout (layout);
49 QLabel *labelCoordCount =
new QLabel (QString (
"%1:").arg (tr (
"Coordinate System Count")));
50 layout->addWidget (labelCoordCount, row, 1);
52 m_spinCoordSystemCount =
new QSpinBox;
53 m_spinCoordSystemCount->setMinimum (1);
54 m_spinCoordSystemCount->setValue (1);
55 m_spinCoordSystemCount->setWhatsThis (tr (
"Coordinate System Count\n\n"
56 "Specifies the total number of coordinate systems that will be used in the imported image. "
57 "There can be one or more graphs in the image, and each graph can have one or more "
58 "coordinate systems. Each coordinate system is defined by a pair of coordinate axes."));
59 connect (m_spinCoordSystemCount, SIGNAL (valueChanged (
const QString &)),
this, SLOT (slotCoordSystemCount (
const QString &)));
60 layout->addWidget (m_spinCoordSystemCount, row++, 2);
63 QLabel *labelPointCount =
new QLabel (QString (
"%1:").arg (tr (
"Graph Coordinates Definition")));
64 layout->addWidget (labelPointCount, row, 1);
66 m_btnAxesPointCount2 =
new QRadioButton (tr (
"1 scale bar - Used for maps with a scale bar defining the map scale"));
67 m_btnAxesPointCount2->setWhatsThis (tr (
"The two endpoints of the scale bar will define the scale of a map. The scale bar can "
68 "edited to set its length.\n\n"
69 "This setting is used when importing a map that has only a scale bar "
70 "to define distance, rather than a graph with axes that define two coordinates."));
71 connect (m_btnAxesPointCount2, SIGNAL (toggled (
bool)),
this, SLOT (slotAxesPointCount (
bool)));
72 layout->addWidget (m_btnAxesPointCount2, row++, 2);
74 m_btnAxesPointCount3 =
new QRadioButton (tr (
"3 axis points - Used for graphs with both coordinates defined on each axis"));
75 m_btnAxesPointCount3->setChecked (
true);
76 m_btnAxesPointCount3->setWhatsThis (tr (
"Three axes points will define the coordinate system. Each will have both "
77 "x and y coordinates.\n\n"
78 "This setting is always used when importing images in non-advanced mode.\n\n"
79 "In total, there will be three points as (x1,y1), (x2,y2) "
81 connect (m_btnAxesPointCount3, SIGNAL (toggled (
bool)),
this, SLOT (slotAxesPointCount (
bool)));
82 layout->addWidget (m_btnAxesPointCount3, row++, 2);
84 m_btnAxesPointCount4 =
new QRadioButton (tr (
"4 axis points - Used for graphs with only one coordinate defined on each axis"));
85 m_btnAxesPointCount4->setWhatsThis (tr (
"Four axes points will define the coordinate system. Each will have a single "
86 "x or y coordinate.\n\n"
87 "This setting is required when the x coordinate of the y axis is unknown, and/or "
88 "the y coordinate of the x axis is unknown.\n\n"
89 "In total, there will be two points on the x axis as (x1) and "
90 "(x2), and two points on the y axis as (y1) and (y2)."));
91 connect (m_btnAxesPointCount4, SIGNAL (toggled (
bool)),
this, SLOT (slotAxesPointCount (
bool)));
92 layout->addWidget (m_btnAxesPointCount4, row++, 2);
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...