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