VAPOR3 3.9.4
VNumericFormatMenu.h
Go to the documentation of this file.
1#pragma once
2
3#include <QMenu>
4
7
12
13class VNumericFormatMenu : public QMenu {
14 Q_OBJECT
15
16public:
17 explicit VNumericFormatMenu(QWidget *parent, bool sciNotation, int decimalDigits);
18
20 void SetDecimalDigits(int digits);
21
23 void SetSciNotation(bool sciNotation);
24
25protected:
28
29private slots:
30 void _decimalDigitsChanged(int digits);
31 void _sciNotationChanged(bool sciNotation);
32
33signals:
34 void DecimalDigitsChanged(int decimalDigits);
35 void SciNotationChanged(bool sciNotation);
36};
A menu item represented by a VLabel and VCheckBox, wrapped in a VLineItem.
Definition: VActions.h:64
A menu that allows users to specify how a number is displayed in a line edit, in regard to how many d...
VSpinBoxAction * _decimalAction
void DecimalDigitsChanged(int decimalDigits)
void SetSciNotation(bool sciNotation)
Set whether the current line-edit is using scientific notation.
VNumericFormatMenu(QWidget *parent, bool sciNotation, int decimalDigits)
void SetDecimalDigits(int digits)
Set the number of decimal digits used by the clicked line-edit.
void SciNotationChanged(bool sciNotation)
VCheckBoxAction * _sciNotationAction
A menu item represented by a VLabel and VSpinBox, wrapped in a VLineItem selection tab in any rendere...
Definition: VActions.h:33