#include "TGNumberEntry.h"#include "KeySymbols.h"#include "TTimer.h"#include "TSystem.h"#include "TGToolTip.h"#include "TMath.h"#include "TVirtualX.h"#include "strlcpy.h"#include "snprintf.h"#include <cctype>#include <iostream>Classes | |
| struct | RealInfo_t |
| class | TGRepeatFireButton |
| class | TRepeatTimer |
Enumerations | |
| enum | ERealStyle { kRSInt = 0 , kRSFrac = 1 , kRSExpo = 2 , kRSFracExpo = 3 } |
Variables | |
| const Int_t | kDays [13] |
| const Double_t | kEpsilon = 1E-12 |
| Enumerator | |
|---|---|
| kRSInt | |
| kRSFrac | |
| kRSExpo | |
| kRSFracExpo | |
Definition at line 103 of file TGNumberEntry.cxx.
Given a numeric string "xxx.yyy" or "xxx,yyy", makes sure that the fractional part (if present) always has at least digits digits, appending zeroes if needed.
Definition at line 574 of file TGNumberEntry.cxx.
|
static |
Check min/max limits for the set value.
Definition at line 786 of file TGNumberEntry.cxx.
|
static |
Copy the string stored in src into dst, skipping some chars depending on the format and style.
The copy is stopped when reaching dstCap-1 copied chars or when finding a null terminator char in src, whatever happens first.
| src | (owned by caller) is the preallocated char buffer to be copied |
| dst | (owned by caller) is a preallocated char buffer where result is stored |
| dstCap | must match the length of dst buffer and be bigger than 0 |
| style | see TGNumberFormat::EStyle |
| attr | see TGNumberFormat::EAttribute |
src is a nullptr, this function is a no-op and returns silently Definition at line 242 of file TGNumberEntry.cxx.
Definition at line 490 of file TGNumberEntry.cxx.
For kNESMinSecCent.
Definition at line 511 of file TGNumberEntry.cxx.
|
static |
Definition at line 526 of file TGNumberEntry.cxx.
Definition at line 562 of file TGNumberEntry.cxx.
Definition at line 434 of file TGNumberEntry.cxx.
|
static |
Change year/month/day format.
Definition at line 1036 of file TGNumberEntry.cxx.
|
static |
Convert to double format.
Definition at line 867 of file TGNumberEntry.cxx.
Definition at line 261 of file TGNumberEntry.cxx.
Definition at line 449 of file TGNumberEntry.cxx.
|
static |
Definition at line 166 of file TGNumberEntry.cxx.
Definition at line 159 of file TGNumberEntry.cxx.
Create a number entry with year/month/day information.
Definition at line 605 of file TGNumberEntry.cxx.
Definition at line 457 of file TGNumberEntry.cxx.
|
static |
Convert to double format.
Definition at line 759 of file TGNumberEntry.cxx.
|
static |
Definition at line 294 of file TGNumberEntry.cxx.
Definition at line 133 of file TGNumberEntry.cxx.
Definition at line 285 of file TGNumberEntry.cxx.
Definition at line 277 of file TGNumberEntry.cxx.
|
static |
Definition at line 334 of file TGNumberEntry.cxx.
|
static |
Translate a string to a number value.
Definition at line 632 of file TGNumberEntry.cxx.
|
static |
Translate a number value to a string.
textCap indicates the capacity of text.
Definition at line 706 of file TGNumberEntry.cxx.
Definition at line 146 of file TGNumberEntry.cxx.
Definition at line 128 of file TGNumberEntry.cxx.
Definition at line 124 of file TGNumberEntry.cxx.