| 
    FougTools
    0.7.0dev-046fb6a
    
   Handy tools for C++, Qt and OpenCascade 
   | 
 
Abstract base class for all length ([L]) editors that are aware of the current measurement system (metric or imperial)  
 More...
#include <qttools/gui/abstract_length_editor.h>
  
 Public Types | |
| enum | MetricUnit { MeterUnit, CentimeterUnit, MillimeterUnit } | 
| enum | ImperialUnit { InchUnit, FootUnit, YardUnit } | 
Public Member Functions | |
| AbstractLengthEditor () | |
| double | qtyValue () const Q_DECL_OVERRIDE | 
| void | setQtyValue (double v) Q_DECL_OVERRIDE | 
| virtual double | length () const =0 | 
| Length in millimeter (mm)  More... | |
| virtual void | setLength (double v)=0 | 
| Set the length in millimeter (mm) to be edited.  More... | |
| MetricUnit | preferredMetricUnit () const | 
| virtual void | setPreferredMetricUnit (MetricUnit unit) | 
| ImperialUnit | preferredImperialUnit () const | 
| virtual void | setPreferredImperialUnit (ImperialUnit unit) | 
  Public Member Functions inherited from qtgui::AbstractQuantityEditor | |
| AbstractQuantityEditor () | |
| virtual | ~AbstractQuantityEditor () | 
| virtual void | updateEditor (QLocale::MeasurementSystem newSys) | 
Static Public Member Functions | |
| static QVector< MetricUnit > | allMetricUnits () | 
| static QVector< ImperialUnit > | allImperialUnits () | 
| static QString | unitText (MetricUnit unit) | 
| static QString | unitText (ImperialUnit unit) | 
| static double | asMetricLength (double len, MetricUnit unit) | 
| static double | asImperialLength (double len, ImperialUnit unit) | 
Additional Inherited Members | |
  Protected Member Functions inherited from qtgui::AbstractQuantityEditor | |
| QLocale::MeasurementSystem | measurementSystem () const | 
Abstract base class for all length ([L]) editors that are aware of the current measurement system (metric or imperial) 
length() and setLength() use values in millimeter (mm).
| qtgui::AbstractLengthEditor::AbstractLengthEditor | ( | ) | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  pure virtual | 
Length in millimeter (mm)
Implemented in qtgui::LengthDoubleSpinBox.
| AbstractLengthEditor::ImperialUnit qtgui::AbstractLengthEditor::preferredImperialUnit | ( | ) | const | 
Length unit used when the imperial measurement system is currently active
| AbstractLengthEditor::MetricUnit qtgui::AbstractLengthEditor::preferredMetricUnit | ( | ) | const | 
Length unit used when the metric measurement system is currently active
      
  | 
  virtual | 
Implements qtgui::AbstractQuantityEditor.
      
  | 
  pure virtual | 
Set the length in millimeter (mm) to be edited.
Implemented in qtgui::LengthDoubleSpinBox.
      
  | 
  virtual | 
Set the length unit to be used when the imperial measurement system is currently active
      
  | 
  virtual | 
Set the length unit to be used when the metric measurement system is currently active
      
  | 
  virtual | 
Implements qtgui::AbstractQuantityEditor.
      
  | 
  static | 
      
  | 
  static | 
 1.8.8