30 #include "ui_SystematicScale.h" 
   31 #include "../../core/pattern/mvc/OutsideObserver.h" 
   32 #include "../../core/pattern/mvc/OutsideController.h" 
   33 #include "../../core/pattern/singleton/Context.h" 
   40 #include <QColorDialog>  
   46 #include <QMessageBox> 
   47 #include <QObjectList> 
   52   m_ui(new Ui::SystematicScale)
 
   56   setWindowFlags( Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint 
 
   57     | Qt::WindowTitleHint | Qt::WindowStaysOnTopHint );
 
   68   setVisible(context.
isShow());
 
   69   if(context.
isShow() == 
true)
 
   84   qreal valuex = posF.x();
 
   85   qreal valuey = posF.y();
 
   88   coordinate.
x = valuex;
 
   89   coordinate.
y = valuey;
 
   98   scale = m_ui->cmbScale->currentText().toDouble();
 
   99   SystematicScaleType type = getType(scale);
 
  100   emit systematicApply(scale, type);
 
  112   te::layout::SystematicScaleType type = S0;  
 
  118   else if(scale == 100.000)
 
  122   else if(scale == 50.000)
 
  126   else if(scale == 25.000)
 
Abstract class to represent an observable. "Model" part of MVC component. 
 
Class responsible for maintaining the drawing context of a MVC component. It is always used by the "M...
 
virtual void on_btnCancel_clicked()
 
virtual te::gm::Coord2D getPosition()
Method that returns the position llx, lly Reimplement this function in a ItemObserver subclass to pro...
 
Abstract class to represent an observer. "View" part of MVC widget. All classes representing the grap...
 
virtual void updateObserver(ContextItem context)
Reimplemented from Observer. 
 
An utility struct for representing 2D coordinates. 
 
virtual SystematicScaleType getType(double scale)
 
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...
 
std::auto_ptr< Ui::SystematicScale > m_ui
 
virtual void on_btnOK_clicked()
 
SystematicScaleOutside(OutsideController *controller, Observable *o)
 
virtual ~SystematicScaleOutside()
 
Abstract class to represent a controller. "Controller" part of MVC widget. All classes representing t...