21 #include "ui_scalebardialog.h" 45 void ScaleBarDialog::on_colorPushButton_clicked()
47 color_ = QColorDialog::getColor(color_,
this,
"Select Color");
53 void ScaleBarDialog::on_buttonBox_accepted()
55 QMessageBox::information(
this,
"Scale Bar",
"Click on the map to show the scale bar.");
56 double width = ui->widthDoubleSpinBox->value();
57 double height = ui->heightDoubleSpinBox->value();
58 QString units = ui->unitsLineEdit->text();
59 QString
position = ui->positionComboBox->currentText();
60 QFont font = ui->fontComboBox->currentFont();
61 int font_size = ui->fontSizeSpinBox->value();
62 font.setPointSize(font_size);
66 map_data_->DrawScaleBar(width,
79 void ScaleBarDialog::on_buttonBox_rejected()
VESPUCCI_EXPORT void position(arma::uword index, arma::uword n_rows, arma::uword n_cols, arma::uword &i, arma::uword &j)
Vespucci::Math::position Find row and column numbers for index.
ScaleBarDialog(QWidget *parent, QSharedPointer< MapData > map_data)
ScaleBarDialog::ScaleBarDialog.
The ScaleBarDialog class Dialog for the user to create a scale bar on the image.