30 #include "ui_GridSettings.h" 
   31 #include "../../core/pattern/mvc/OutsideObserver.h" 
   32 #include "../../core/pattern/mvc/OutsideController.h" 
   33 #include "../../outside/GridSettingsController.h" 
   34 #include "../../core/property/Variant.h" 
   35 #include "../../core/property/PlanarGridSettingsConfigProperties.h" 
   36 #include "../../core/property/GeodesicGridSettingsConfigProperties.h" 
   37 #include "../../core/enum/Enums.h" 
   44 #include <QColorDialog>  
   50 #include <QMessageBox> 
   51 #include <QObjectList> 
   56   m_ui(new Ui::GridSettings)
 
   71   setWindowFlags( Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint 
 
   72     | Qt::WindowTitleHint | Qt::WindowStaysOnTopHint );
 
   79   if(m_planarGridSettings)
 
   81     delete m_planarGridSettings;
 
   82     m_planarGridSettings = 0;
 
   85   if(m_geodesicGridSettings)
 
   87     delete m_geodesicGridSettings;
 
   88     m_geodesicGridSettings = 0;
 
   94   m_ui->lneVrtPlanarDisplacement->setValidator(
new  QDoubleValidator(
this));
 
   95   m_ui->lneHrzPlanarDisplacement->setValidator(
new  QDoubleValidator(
this));
 
   97   m_ui->lneVrtGeoDisplacement->setValidator(
new  QDoubleValidator(
this));
 
   98   m_ui->lneHrzGeoDisplacement->setValidator(
new  QDoubleValidator(
this));
 
  100   m_ui->lneCornerHrzGeoDisplacement->setValidator(
new  QDoubleValidator(
this));
 
  101   m_ui->lneCornerVrtGeoDisplacement->setValidator(
new  QDoubleValidator(
this));
 
  103   m_ui->lneHrzPlanarGap->setValidator(
new  QDoubleValidator(
this));
 
  104   m_ui->lneVrtPlanarGap->setValidator(
new  QDoubleValidator(
this));
 
  106   m_ui->lneX1->setValidator(
new  QDoubleValidator(
this));
 
  107   m_ui->lneY1->setValidator(
new  QDoubleValidator(
this));
 
  108   m_ui->lneX2->setValidator(
new  QDoubleValidator(
this));
 
  109   m_ui->lneY2->setValidator(
new  QDoubleValidator(
this));
 
  110   m_ui->lneX3->setValidator(
new  QDoubleValidator(
this));
 
  111   m_ui->lneY3->setValidator(
new  QDoubleValidator(
this));
 
  112   m_ui->lneX4->setValidator(
new  QDoubleValidator(
this));
 
  113   m_ui->lneY4->setValidator(
new  QDoubleValidator(
this));
 
  114   m_ui->cmbScale->hide();
 
  115   m_ui->ckDefineScale->hide();
 
  117   m_ui->fraCornerTextGeoColor->setAutoFillBackground(
true);
 
  118   m_ui->fraGridTextGeoColor->setAutoFillBackground(
true);
 
  119   m_ui->fraGridTextPlanarColor->setAutoFillBackground(
true);
 
  120   m_ui->fraPlanarLineColor->setAutoFillBackground(
true);  
 
  125   setVisible(context.
isShow());
 
  126   if(context.
isShow() == 
true)
 
  144   QPointF posF = pos();
 
  145   qreal valuex = posF.x();
 
  146   qreal valuey = posF.y();
 
  149   coordinate.
x = valuex;
 
  150   coordinate.
y = valuey;
 
  157   QObjectList list = children();
 
  159   QList<QObject*>::Iterator it;
 
  160   for(it = list.begin() ; it != list.end() ; ++it)
 
  162     QObject* obj = (*it);
 
  163     QWidget* w = 
dynamic_cast<QWidget*
>(obj);
 
  168         w->setEnabled(
false);
 
  176   QObjectList list = children();
 
  178   QList<QObject*>::Iterator it;
 
  179   for(it = list.begin() ; it != list.end() ; ++it)
 
  181     QObject* obj = (*it);
 
  182     QWidget* w = 
dynamic_cast<QWidget*
>(obj);
 
  195   int                 degree = 0, minute = 0;
 
  198   std::basic_string <char>::size_type   index;
 
  199   std::string             strDegree = 
"";
 
  201   strDegree = std::string(value.toLatin1());
 
  202   if((index=strDegree.find(
"º")) !=std::string::npos) 
 
  204     strDegree.replace(index,1,
"");
 
  206   if((index=strDegree.find(
"°")) !=std::string::npos)
 
  208     strDegree.replace(index,1,
"");
 
  211   if((index=strDegree.find(
"'")) !=std::string::npos) 
 
  213     strDegree.replace(index,1,
"");
 
  215   if((index=strDegree.find(
"'")) !=std::string::npos) 
 
  217     strDegree.replace(index,1,
"");
 
  220   status=sscanf(strDegree.c_str(),
"%d %d %f",°ree,&minute,&second);
 
  221   if(status!=3) 
return false;
 
  231   QPalette ptt(widget->palette());
 
  232   QBrush brush = ptt.brush(widget->backgroundRole());
 
  234   QColor bColor = brush.color();
 
  235   rgbaColor.
setColor(bColor.red(), bColor.green(), bColor.blue());
 
  237   QColor color = QColorDialog::getColor(brush.color(),
this, 
"Color" );
 
  242   QPalette paltt(widget->palette());
 
  243   paltt.
setColor(widget->backgroundRole(), color);
 
  244   widget->setPalette(paltt);
 
  245   widget->setAutoFillBackground(
true);
 
  247   rgbaColor.
setColor(color.red(), color.green(), color.blue());
 
  256   initCombo(m_ui->cmbUnit, m_planarGridSettings->getUnit(), m_planarType);
 
  258   initBool(m_ui->chkShowPlanar, m_planarGridSettings->getVisible(), m_planarType);
 
  260   initCombo(m_ui->cmbPlanarStyle, m_planarGridSettings->getStyle(), m_planarType);
 
  262   initCombo(m_ui->cmbGridStyle, m_geodesicGridSettings->getStyle(), m_geodesicType);
 
  264   initBool(m_ui->chkShowGeodesic, m_geodesicGridSettings->getVisible(), m_geodesicType);
 
  268   initDouble(m_ui->lneHrzPlanarGap, m_planarGridSettings->getLneHrzGap(), m_planarType);
 
  270   initDouble(m_ui->lneVrtPlanarGap, m_planarGridSettings->getLneVrtGap(), m_planarType);
 
  272   initDouble(m_ui->lneHorizontalGap, m_geodesicGridSettings->getLneHrzGap(), m_geodesicType);
 
  274   initDouble(m_ui->lneVerticalGap, m_geodesicGridSettings->getLneVrtGap(), m_geodesicType);
 
  276   initColor(m_ui->fraPlanarLineColor, m_planarGridSettings->getLineColor(), m_planarType);
 
  278   initCombo(m_ui->cmbPlanarLineType, m_planarGridSettings->getLineStyle(), m_planarType);
 
  280   initCombo(m_ui->cmbPlanarLineWidth, m_planarGridSettings->getLineWidth(), m_planarType);
 
  282   initCombo(m_ui->cmbLineType, m_geodesicGridSettings->getStyle(), m_geodesicType);
 
  284   initCombo(m_ui->cmbLineWidth, m_geodesicGridSettings->getLineWidth(), m_geodesicType);
 
  286   initColor(m_ui->fraLineColor, m_geodesicGridSettings->getLineColor(), m_geodesicType);
 
  290   initCombo(m_ui->cmbPlanarTextSize, m_planarGridSettings->getPointTextSize(), m_planarType);
 
  292   initCombo(m_ui->cmbPlanarFont, m_planarGridSettings->getFontText(), m_planarType);
 
  294   initColor(m_ui->fraGridTextPlanarColor, m_planarGridSettings->getTextColor(), m_planarType);
 
  296   initBool(m_ui->chkSuperscriptPlanarText, m_planarGridSettings->getSuperscriptText(), m_planarType);
 
  298   initCombo(m_ui->cmbGeoFont, m_geodesicGridSettings->getFontText(), m_geodesicType);
 
  300   initCombo(m_ui->cmbGeoTextSize, m_geodesicGridSettings->getPointTextSize(), m_geodesicType);
 
  302   initColor(m_ui->fraGridTextGeoColor, m_geodesicGridSettings->getTextColor(), m_geodesicType);
 
  304   initBool(m_ui->chkSuperscriptGeoText, m_geodesicGridSettings->getSuperscriptText(), m_geodesicType);
 
  308   initDouble(m_ui->xGridInitialPoint_planar_textField, m_planarGridSettings->getInitialGridPointX(), m_planarType);
 
  310   initDouble(m_ui->yGridInitialPoint_planar_textField, m_planarGridSettings->getInitialGridPointY(), m_planarType);
 
  312   initDouble(m_ui->xGridInitialPoint_geo_textField, m_geodesicGridSettings->getInitialGridPointX(), m_geodesicType);
 
  314   initDouble(m_ui->yGridInitialPoint_geo_textField, m_geodesicGridSettings->getInitialGridPointY(), m_geodesicType);
 
  316   initBool(m_ui->chkBottomPlanarText, m_planarGridSettings->getBottomText(), m_planarType);
 
  318   initBool(m_ui->chkLeftPlanarText, m_planarGridSettings->getLeftText(), m_planarType);
 
  320   initBool(m_ui->chkRightPlanarText, m_planarGridSettings->getRightText(), m_planarType);
 
  322   initBool(m_ui->chkTopPlanarText, m_planarGridSettings->getTopText(), m_planarType);
 
  324   initBool(m_ui->chkBottomGeoText, m_geodesicGridSettings->getBottomText(), m_geodesicType);
 
  326   initBool(m_ui->chkLeftGeoText, m_geodesicGridSettings->getLeftText(), m_geodesicType);
 
  328   initBool(m_ui->chkRightGeoText, m_geodesicGridSettings->getRightText(), m_geodesicType);
 
  330   initBool(m_ui->chkTopGeoText, m_geodesicGridSettings->getTopText(), m_geodesicType);
 
  332   initBool(m_ui->chkBottomRotatePlanarText, m_planarGridSettings->getBottomRotateText(), m_planarType);
 
  334   initBool(m_ui->chkLeftRotatePlanarText, m_planarGridSettings->getLeftRotateText(), m_planarType);
 
  336   initBool(m_ui->chkRightRotatePlanarText, m_planarGridSettings->getRightRotateText(), m_planarType);
 
  338   initBool(m_ui->chkTopRotatePlanarText, m_planarGridSettings->getTopRotateText(), m_planarType);
 
  340   initBool(m_ui->chkBottomRotateGeoText, m_geodesicGridSettings->getBottomRotateText(), m_geodesicType);
 
  342   initBool(m_ui->chkLeftRotateGeoText, m_geodesicGridSettings->getLeftRotateText(), m_geodesicType);
 
  344   initBool(m_ui->chkRightRotateGeoText, m_geodesicGridSettings->getRightRotateText(), m_geodesicType);
 
  346   initBool(m_ui->chkTopRotateGeoText, m_geodesicGridSettings->getTopRotateText(), m_geodesicType);
 
  348   initDouble(m_ui->lneVrtPlanarDisplacement, m_planarGridSettings->getLneVrtDisplacement(), m_planarType);
 
  350   initBool(m_ui->chkVisibleTextsPlanarText, m_planarGridSettings->getVisibleAllTexts(), m_planarType);
 
  352   initDouble(m_ui->lneHrzPlanarDisplacement, m_planarGridSettings->getLneHrzDisplacement(), m_planarType);
 
  354   initDouble(m_ui->lneVrtGeoDisplacement, m_geodesicGridSettings->getLneVrtDisplacement(), m_geodesicType);
 
  356   initDouble(m_ui->lneHrzGeoDisplacement, m_geodesicGridSettings->getLneHrzDisplacement(), m_geodesicType);
 
  358   initBool(m_ui->chkDegreesGeoText, m_geodesicGridSettings->getDegreesText(), m_geodesicType);
 
  360   initBool(m_ui->chkMinutesGeoText, m_geodesicGridSettings->getMinutesText(), m_geodesicType);
 
  362   initBool(m_ui->chkSecondsGeoText, m_geodesicGridSettings->getSecondsText(), m_geodesicType);
 
  364   initBool(m_ui->chkVisibleTextsGeoText, m_geodesicGridSettings->getVisibleAllTexts(), m_geodesicType);
 
  366   initCombo(m_ui->cmbCornerGeoFont, m_geodesicGridSettings->getFontTextCorner(), m_geodesicType);
 
  368   initCombo(m_ui->cmbCornerGeoTextSize, m_geodesicGridSettings->getPointTextSize(), m_geodesicType);
 
  370   initColor(m_ui->fraCornerTextGeoColor, m_geodesicGridSettings->getTextColorCorner(), m_geodesicType);
 
  372   initDouble(m_ui->lneCornerHrzGeoDisplacement, m_geodesicGridSettings->getLneCornerHrzDisplacement(), m_geodesicType);
 
  374   initDouble(m_ui->lneCornerVrtGeoDisplacement, m_geodesicGridSettings->getLneCornerVrtDisplacement(), m_geodesicType);
 
  376   initBool(m_ui->chkLowerRightCornerGeoText, m_geodesicGridSettings->getLowerRightCornerText(), m_geodesicType);
 
  378   initBool(m_ui->chkUpperRightCornerGeoText, m_geodesicGridSettings->getUpperRightCornerText(), m_geodesicType);
 
  380   initBool(m_ui->chkLowerLeftCornerGeoText, m_geodesicGridSettings->getLowerLeftCornerText(), m_geodesicType);
 
  382   initBool(m_ui->chkUpperLeftCornerGeoText, m_geodesicGridSettings->getUpperLeftCornerText(), m_geodesicType);
 
  386   initBool(m_ui->ckDefineScale, m_geodesicGridSettings->getDefineScale(), m_geodesicType);
 
  388   initCombo(m_ui->cmbScale, m_geodesicGridSettings->getScale(), m_geodesicType);
 
  390   initBool(m_ui->ckbClip, m_geodesicGridSettings->getClip(), m_geodesicType);
 
  392   initDouble(m_ui->lneX1, m_geodesicGridSettings->getLneX1(), m_geodesicType);
 
  394   initDouble(m_ui->lneX2, m_geodesicGridSettings->getLneX2(), m_geodesicType);
 
  396   initDouble(m_ui->lneY1, m_geodesicGridSettings->getLneY1(), m_geodesicType);
 
  398   initDouble(m_ui->lneY2, m_geodesicGridSettings->getLneY2(), m_geodesicType);
 
  400   initDouble(m_ui->lneX3, m_geodesicGridSettings->getLneX3(), m_geodesicType);
 
  402   initDouble(m_ui->lneX4, m_geodesicGridSettings->getLneX4(), m_geodesicType);
 
  404   initDouble(m_ui->lneY3, m_geodesicGridSettings->getLneY3(), m_geodesicType);
 
  406   initDouble(m_ui->lneY4, m_geodesicGridSettings->getLneY4(), m_geodesicType);
 
  428     emit updateProperty(prop);
 
  441     emit updateProperty(prop);
 
  454     emit updateProperty(prop);
 
  467     emit updateProperty(prop);
 
  479     Property prop = controller->
updateProperty(m_geodesicGridSettings->getVisible(), variant, m_geodesicType);
 
  480     emit updateProperty(prop);
 
  493     emit updateProperty(prop);
 
  506     emit updateProperty(prop);
 
  525     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLneHrzGap(), variant, m_geodesicType);
 
  526     emit updateProperty(prop);
 
  545     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLneVrtGap(), variant, m_geodesicType);
 
  546     emit updateProperty(prop);
 
  560     emit updateProperty(prop);
 
  573     emit updateProperty(prop);
 
  586     emit updateProperty(prop);
 
  598     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLineStyle(), variant, m_geodesicType);
 
  599     emit updateProperty(prop);
 
  611     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLineWidth(), variant, m_geodesicType);
 
  612     emit updateProperty(prop);
 
  625     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLineColor(), variant, m_geodesicType);
 
  626     emit updateProperty(prop);
 
  638     Property prop = controller->
updateProperty(m_planarGridSettings->getPointTextSize(), variant, m_planarType);
 
  639     emit updateProperty(prop);
 
  652     emit updateProperty(prop);
 
  666     emit updateProperty(prop);
 
  678     Property prop = controller->
updateProperty(m_planarGridSettings->getSuperscriptText(), variant, m_planarType);
 
  679     emit updateProperty(prop);
 
  691     Property prop = controller->
updateProperty(m_geodesicGridSettings->getFontText(), variant, m_geodesicType);
 
  692     emit updateProperty(prop);
 
  704     Property prop = controller->
updateProperty(m_geodesicGridSettings->getPointTextSize(), variant, m_geodesicType);
 
  705     emit updateProperty(prop);
 
  718     Property prop = controller->
updateProperty(m_geodesicGridSettings->getTextColor(), variant, m_geodesicType);
 
  719     emit updateProperty(prop);
 
  731     Property prop = controller->
updateProperty(m_geodesicGridSettings->getSuperscriptText(), variant, m_geodesicType);
 
  732     emit updateProperty(prop);
 
  744     Property prop = controller->
updateProperty(m_planarGridSettings->getInitialGridPointX(), variant, m_planarType);
 
  745     emit updateProperty(prop);
 
  765     Property prop = controller->
updateProperty(m_planarGridSettings->getInitialGridPointY(), variant, m_planarType);
 
  766     emit updateProperty(prop);
 
  785     Property prop = controller->
updateProperty(m_geodesicGridSettings->getInitialGridPointX(), variant, m_geodesicType);
 
  786     emit updateProperty(prop);
 
  798     Property prop = controller->
updateProperty(m_geodesicGridSettings->getInitialGridPointY(), variant, m_geodesicType);
 
  799     emit updateProperty(prop);
 
  812     emit updateProperty(prop);
 
  825     emit updateProperty(prop);
 
  838     emit updateProperty(prop);
 
  851     emit updateProperty(prop);
 
  863     Property prop = controller->
updateProperty(m_geodesicGridSettings->getBottomText(), variant, m_geodesicType);
 
  864     emit updateProperty(prop);
 
  876     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLeftText(), variant, m_geodesicType);
 
  877     emit updateProperty(prop);
 
  889     Property prop = controller->
updateProperty(m_geodesicGridSettings->getRightText(), variant, m_geodesicType);
 
  890     emit updateProperty(prop);
 
  902     Property prop = controller->
updateProperty(m_geodesicGridSettings->getTopText(), variant, m_geodesicType);
 
  903     emit updateProperty(prop);
 
  915     Property prop = controller->
updateProperty(m_planarGridSettings->getBottomRotateText(), variant, m_planarType);
 
  916     emit updateProperty(prop);
 
  928     Property prop = controller->
updateProperty(m_planarGridSettings->getLeftRotateText(), variant, m_planarType);
 
  929     emit updateProperty(prop);
 
  941     Property prop = controller->
updateProperty(m_planarGridSettings->getRightRotateText(), variant, m_planarType);
 
  942     emit updateProperty(prop);
 
  954     Property prop = controller->
updateProperty(m_planarGridSettings->getTopRotateText(), variant, m_planarType);
 
  955     emit updateProperty(prop);
 
  967     Property prop = controller->
updateProperty(m_geodesicGridSettings->getBottomRotateText(), variant, m_geodesicType);
 
  968     emit updateProperty(prop);
 
  980     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLeftRotateText(), variant, m_geodesicType);
 
  981     emit updateProperty(prop);
 
  993     Property prop = controller->
updateProperty(m_geodesicGridSettings->getRightRotateText(), variant, m_geodesicType);
 
  994     emit updateProperty(prop);
 
 1006     Property prop = controller->
updateProperty(m_geodesicGridSettings->getTopRotateText(), variant, m_geodesicType);
 
 1007     emit updateProperty(prop);
 
 1019     Property prop = controller->
updateProperty(m_planarGridSettings->getLneVrtDisplacement(), variant, m_planarType);
 
 1020     emit updateProperty(prop);
 
 1032     Property prop = controller->
updateProperty(m_planarGridSettings->getVisibleAllTexts(), variant, m_planarType);
 
 1034     bool opt = m_ui->chkVisibleTextsPlanarText->isChecked();
 
 1035     m_ui->chkBottomPlanarText->setChecked(opt);
 
 1036     m_ui->chkLeftPlanarText->setChecked(opt);
 
 1037     m_ui->chkRightPlanarText->setChecked(opt);
 
 1038     m_ui->chkTopPlanarText->setChecked(opt);
 
 1040     emit updateProperty(prop);
 
 1052     Property prop = controller->
updateProperty(m_planarGridSettings->getLneHrzDisplacement(), variant, m_planarType);
 
 1053     emit updateProperty(prop);
 
 1065     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLneHrzDisplacement(), variant, m_geodesicType);
 
 1066     emit updateProperty(prop);
 
 1078     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLneHrzDisplacement(), variant, m_geodesicType);
 
 1079     emit updateProperty(prop);
 
 1091     Property prop = controller->
updateProperty(m_geodesicGridSettings->getDegreesText(), variant, m_geodesicType);
 
 1092     emit updateProperty(prop);
 
 1104     Property prop = controller->
updateProperty(m_geodesicGridSettings->getMinutesText(), variant, m_geodesicType);
 
 1105     emit updateProperty(prop);
 
 1117     Property prop = controller->
updateProperty(m_geodesicGridSettings->getSecondsText(), variant, m_geodesicType);
 
 1118     emit updateProperty(prop);
 
 1130     Property prop = controller->
updateProperty(m_geodesicGridSettings->getVisibleAllTexts(), variant, m_geodesicType);
 
 1132     bool opt = m_ui->chkVisibleTextsGeoText->isChecked();
 
 1133     m_ui->chkBottomGeoText->setChecked(opt);
 
 1134     m_ui->chkLeftGeoText->setChecked(opt);
 
 1135     m_ui->chkRightGeoText->setChecked(opt);
 
 1136     m_ui->chkTopGeoText->setChecked(opt);
 
 1138     emit updateProperty(prop);
 
 1150     Property prop = controller->
updateProperty(m_geodesicGridSettings->getFontTextCorner(), variant, m_geodesicType);
 
 1151     emit updateProperty(prop);
 
 1163     Property prop = controller->
updateProperty(m_geodesicGridSettings->getPointTextSizeCorner(), variant, m_geodesicType);
 
 1164     emit updateProperty(prop);
 
 1177     Property prop = controller->
updateProperty(m_geodesicGridSettings->getTextColorCorner(), variant, m_geodesicType);
 
 1178     emit updateProperty(prop);
 
 1190     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLneCornerHrzDisplacement(), variant, m_geodesicType);
 
 1191     emit updateProperty(prop);
 
 1203     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLneCornerVrtDisplacement(), variant, m_geodesicType);
 
 1204     emit updateProperty(prop);
 
 1216     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLowerRightCornerText(), variant, m_geodesicType);
 
 1217     emit updateProperty(prop);
 
 1229     Property prop = controller->
updateProperty(m_geodesicGridSettings->getUpperRightCornerText(), variant, m_geodesicType);
 
 1230     emit updateProperty(prop);
 
 1242     Property prop = controller->
updateProperty(m_geodesicGridSettings->getLowerLeftCornerText(), variant, m_geodesicType);
 
 1243     emit updateProperty(prop);
 
 1255     Property prop = controller->
updateProperty(m_geodesicGridSettings->getUpperLeftCornerText(), variant, m_geodesicType);
 
 1256     emit updateProperty(prop);
 
 1268     Property prop = controller->
updateProperty(m_geodesicGridSettings->getVisibleCornerTextsText(), variant, m_geodesicType);
 
 1269     emit updateProperty(prop);
 
 1281     Property prop = controller->
updateProperty(m_geodesicGridSettings->getDefineScale(), variant, m_geodesicType);
 
 1282     emit updateProperty(prop);
 
 1295     emit updateProperty(prop);
 
 1308     emit updateProperty(prop);
 
 1321     emit updateProperty(prop);
 
 1334     emit updateProperty(prop);
 
 1347     emit updateProperty(prop);
 
 1360     emit updateProperty(prop);
 
 1373     emit updateProperty(prop);
 
 1386     emit updateProperty(prop);
 
 1399     emit updateProperty(prop);
 
 1412     emit updateProperty(prop);
 
 1424   QLineEdit* edit = 
dynamic_cast<QLineEdit*
>(widget);
 
 1442   QLineEdit* edit = 
dynamic_cast<QLineEdit*
>(widget);
 
 1445     edit->setText(convert.str().c_str());
 
 1456   convert.precision(15);
 
 1461   QLineEdit* edit = 
dynamic_cast<QLineEdit*
>(widget);
 
 1464     edit->setText(convert.str().c_str());
 
 1476   QCheckBox* chk = 
dynamic_cast<QCheckBox*
>(widget);
 
 1495   if(!qcolor.isValid()) 
 
 1501   QPalette paltt(widget->palette());
 
 1502   paltt.
setColor(widget->backgroundRole(), qcolor);
 
 1503   widget->setPalette(paltt);
 
 1504   widget->setAutoFillBackground(
true);
 
 1515   QComboBox* combo = 
dynamic_cast<QComboBox*
>(widget);
 
 1542   index = combo->findData(variant);
 
 1545     combo->setCurrentIndex(index);
 
Abstract class to represent an observable. "Model" part of MVC component. 
 
virtual void on_cmbPlanarTextSize_currentIndexChanged(const QString &text)
Text: Basic Configuration/ 
 
Class responsible for maintaining the drawing context of a MVC component. It is always used by the "M...
 
virtual void on_chkTopRotatePlanarText_clicked()
 
virtual void on_chkVisibleTextsGeoText_clicked()
 
virtual void on_cmbPlanarLineType_currentIndexChanged(const QString &text)
 
std::auto_ptr< Ui::GridSettings > m_ui
 
virtual void on_chkMinutesGeoText_clicked()
 
Class to represent a graphic object (MVC component) and widget object (MVC widget) type enumeration...
 
virtual void on_chkVisibleTextsPlanarText_clicked()
 
virtual void on_cmbPlanarStyle_currentIndexChanged(const QString &text)
 
virtual void on_chkTopGeoText_clicked()
 
Variant getValue()
Returns stored value. 
 
virtual void on_cmbGridStyle_currentIndexChanged(const QString &text)
 
virtual EnumDataType * getEnumDataType()
Returns data type enumeration. 
 
void setColor(const std::string &hexColor)
It sets the color using a two hexadecimal RGB-encoded color. 
 
virtual void on_lneY4_editingFinished()
 
virtual void initBool(QWidget *widget, std::string nameComponent, EnumType *gridType)
 
int getRed() const 
It returns the red component color value (a value from 0 to 255). 
 
virtual EnumType * getDataTypeBool() const 
Returns value that represents type bool belonging to enumeration. 
 
virtual void on_xGridInitialPoint_planar_textField_editingFinished()
Text: Advanced configuration/ 
 
virtual void initColor(QWidget *widget, std::string nameComponent, EnumType *gridType)
 
virtual EnumType * getDataTypeDouble() const 
Returns value that represents type double belonging to enumeration. 
 
virtual void on_chkLeftRotateGeoText_clicked()
 
virtual void on_chkLeftPlanarText_clicked()
 
virtual void on_pbClose_clicked()
 
virtual void on_cmbScale_currentIndexChanged(const QString &text)
 
PlanarGridSettingsConfigProperties * m_planarGridSettings
 
virtual EnumType * getDataTypeInt() const 
Returns value that represents type integer belonging to enumeration. 
 
virtual void on_pbGridTextPlanarColor_clicked()
 
virtual EnumType * getGridGeodesicItem() const 
Returns value that represents grid geodesic type belonging to enumeration. 
 
Abstract class to represent an observer. "View" part of MVC widget. All classes representing the grap...
 
virtual void on_lneHrzPlanarDisplacement_editingFinished()
 
virtual void on_lneHrzPlanarGap_editingFinished()
 
Window (QDialog) map grid setting (MapItem). 
 
int getBlue() const 
It returns the blue component color value (a value from 0 to 255). 
 
virtual void unblockComponents()
 
int getGreen() const 
It returns the green component color value (a value from 0 to 255). 
 
virtual void on_xGridInitialPoint_geo_textField_editingFinished()
 
virtual void setPosition(const double &x, const double &y)
Change coordinate llx,lly of the MVC widget. Reimplement this function in a ItemController subclass t...
 
virtual void on_lneX4_editingFinished()
 
EnumType * m_geodesicType
 
virtual void on_lneY1_editingFinished()
 
An utility struct for representing 2D coordinates. 
 
virtual void on_cmbLineType_currentIndexChanged(const QString &text)
 
virtual void on_lneVrtPlanarGap_editingFinished()
 
virtual void on_ckbClip_clicked()
 
virtual void on_yGridInitialPoint_geo_textField_editingFinished()
 
virtual void on_lneCornerHrzGeoDisplacement_editingFinished()
 
virtual void on_chkUpperRightCornerGeoText_clicked()
 
virtual void on_chkLeftGeoText_clicked()
 
virtual void on_pbCornerTextGeoColor_clicked()
 
virtual void on_ckDefineScale_clicked()
 
virtual void on_lneVerticalGap_editingFinished()
 
virtual te::color::RGBAColor configColor(QWidget *widget)
 
virtual EnumType * getGridPlanarItem() const 
Returns value that represents grid planar type belonging to enumeration. 
 
virtual void on_cmbGeoTextSize_currentIndexChanged(const QString &text)
 
virtual void on_lneHorizontalGap_editingFinished()
 
virtual void on_chkShowGeodesic_clicked()
 
virtual void on_chkSuperscriptPlanarText_clicked()
 
virtual void on_chkTopRotateGeoText_clicked()
 
static Enums & getInstance()
It returns a reference to the singleton instance. 
 
virtual void on_chkVisibleCornerTextsGeoText_clicked()
 
virtual void initString(QWidget *widget, std::string nameComponent, EnumType *gridType)
 
virtual void on_chkBottomRotatePlanarText_clicked()
 
virtual void initCombo(QWidget *widget, std::string nameComponent, EnumType *gridType)
 
Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color)...
 
virtual void updateObserver(ContextItem context)
Reimplemented from Observer. 
 
virtual void on_chkRightRotatePlanarText_clicked()
 
virtual void on_chkRightPlanarText_clicked()
 
virtual void on_cmbPlanarLineWidth_currentIndexChanged(const QString &text)
 
virtual void on_chkLeftRotatePlanarText_clicked()
 
Class acts like a union for some C++/TerraLib5 data types. Responsible for storing the value...
 
virtual void on_lneY2_editingFinished()
 
virtual void on_helpPushButton_clicked()
 
virtual void on_cmbLineWidth_currentIndexChanged(const QString &text)
 
virtual void initDouble(QWidget *widget, std::string nameComponent, EnumType *gridType)
 
virtual void on_yGridInitialPoint_planar_textField_editingFinished()
 
virtual EnumType * getDataTypeColor() const 
Returns value that represents type te::color::RGBAColor** (color) belonging to enumeration. 
 
virtual void on_lneHrzGeoDisplacement_editingFinished()
 
virtual void on_lneVrtPlanarDisplacement_editingFinished()
 
virtual void on_chkBottomGeoText_clicked()
 
virtual Property getProperty(std::string name, EnumType *enumType)
 
double toDouble()
Returns the value of double type. (The setValue method received a double) 
 
virtual void on_chkBottomRotateGeoText_clicked()
 
virtual void initInt(QWidget *widget, std::string nameComponent, EnumType *gridType)
 
virtual ~GridSettingsOutside()
 
virtual void on_chkBottomPlanarText_clicked()
 
virtual void on_cmbUnit_currentIndexChanged(const QString &text)
 
virtual void on_chkLowerLeftCornerGeoText_clicked()
 
virtual void on_chkLowerRightCornerGeoText_clicked()
 
virtual void on_chkDegreesGeoText_clicked()
 
virtual void on_chkRightGeoText_clicked()
 
virtual void on_chkShowPlanar_clicked()
 
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
 
virtual void on_chkRightRotateGeoText_clicked()
 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color. 
 
virtual void on_lneCornerVrtGeoDisplacement_editingFinished()
 
virtual void on_lneVrtGeoDisplacement_editingFinished()
 
virtual void on_pbLineColor_clicked()
 
std::string toString()
Returns the value of string type. (The setValue method received a string) 
 
std::string convert(const path &v)
URI path to string. 
 
virtual void on_cmbCornerGeoTextSize_currentIndexChanged(const QString &text)
 
virtual void on_chkSecondsGeoText_clicked()
 
virtual void on_cmbGeoFont_currentIndexChanged(const QString &text)
 
virtual void on_lneX1_editingFinished()
 
te::color::RGBAColor toColor()
Returns the value of te::color::RGBAColor type. (The setValue method received a te::color::RGBAColor)...
 
virtual Property updateProperty(std::string name, Variant variant, EnumType *enumType)
 
virtual void on_cmbCornerGeoFont_currentIndexChanged(const QString &text)
 
virtual void on_cmbPlanarFont_currentIndexChanged(const QString &text)
 
Abstract class to represent a controller. "Controller" part of MVC widget. All classes representing t...
 
GeodesicGridSettingsConfigProperties * m_geodesicGridSettings
 
virtual EnumType * getDataTypeString() const 
Returns value that represents type string belonging to enumeration. 
 
virtual void on_chkTopPlanarText_clicked()
 
GridSettingsOutside(OutsideController *controller, Observable *o)
 
virtual void on_pbPlanarLineColor_clicked()
 
virtual void on_pbGridTextGeoColor_clicked()
 
virtual te::gm::Coord2D getPosition()
Method that returns the position llx, lly Reimplement this function in a ItemObserver subclass to pro...
 
virtual void on_lneY3_editingFinished()
 
EnumType * getType()
Returns the type of this property. 
 
virtual bool checkValidDegreeValue(const QString &)
 
A property acts like a attribute member of a object and stores the state of this attribute. A set of properties stores the state of an object. Any data type, not included in the convertValue method in the class te::layout::Variant, it will be by default "std::string" value. 
 
int toInt()
Returns the value of int type. (The setValue method received a int) 
 
virtual void on_lneX2_editingFinished()
 
virtual void on_lneX3_editingFinished()
 
bool toBool()
Returns the value of boolean type. (The setValue method received a boolean) 
 
virtual void on_chkUpperLeftCornerGeoText_clicked()
 
virtual void blockComponents()
 
void setValue(ValueType value, EnumType *type)
Stores a copy of value. 
 
virtual void on_chkSuperscriptGeoText_clicked()