FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
abstract_quantity_editor.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** FougTools
3 ** Copyright Fougue (30 Mar. 2015)
4 ** contact@fougue.pro
5 **
6 ** This software is a computer program whose purpose is to provide utility
7 ** tools for the C++ language and the Qt toolkit.
8 **
9 ** This software is governed by the CeCILL-C license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-C
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info".
14 ****************************************************************************/
15 
16 #pragma once
17 
18 #include "gui.h"
19 #include <QtCore/QLocale>
20 
21 namespace qtgui {
22 
24 {
25 public:
27  virtual ~AbstractQuantityEditor();
28 
29  virtual double qtyValue() const = 0;
30  virtual void setQtyValue(double v) = 0;
31 
32  virtual void updateEditor(QLocale::MeasurementSystem newSys);
33 
34 protected:
35  QLocale::MeasurementSystem measurementSystem() const;
36 };
37 
38 } // namespace qtgui
Definition: abstract_length_editor.cpp:20
#define QTTOOLS_GUI_EXPORT
Definition: gui.h:27
Base abstract class for editor of quantities, works in coordination with QuantityEditorManager.
Definition: abstract_quantity_editor.h:23