#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 107 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 578 of file TGNumberEntry.cxx.
|
static |
Check min/max limits for the set value.
Definition at line 790 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 246 of file TGNumberEntry.cxx.
Definition at line 494 of file TGNumberEntry.cxx.
For kNESMinSecCent.
Definition at line 515 of file TGNumberEntry.cxx.
|
static |
Definition at line 530 of file TGNumberEntry.cxx.
Definition at line 566 of file TGNumberEntry.cxx.
Definition at line 438 of file TGNumberEntry.cxx.
|
static |
Change year/month/day format.
Definition at line 1040 of file TGNumberEntry.cxx.
|
static |
Convert to double format.
Definition at line 871 of file TGNumberEntry.cxx.
Definition at line 265 of file TGNumberEntry.cxx.
Definition at line 453 of file TGNumberEntry.cxx.
|
static |
Definition at line 170 of file TGNumberEntry.cxx.
Definition at line 163 of file TGNumberEntry.cxx.
Create a number entry with year/month/day information.
Definition at line 609 of file TGNumberEntry.cxx.
Definition at line 461 of file TGNumberEntry.cxx.
|
static |
Convert to double format.
Definition at line 763 of file TGNumberEntry.cxx.
|
static |
Definition at line 298 of file TGNumberEntry.cxx.
Definition at line 137 of file TGNumberEntry.cxx.
Definition at line 289 of file TGNumberEntry.cxx.
Definition at line 281 of file TGNumberEntry.cxx.
|
static |
Definition at line 338 of file TGNumberEntry.cxx.
|
static |
Translate a string to a number value.
Definition at line 636 of file TGNumberEntry.cxx.
|
static |
Translate a number value to a string.
textCap
indicates the capacity of text
.
Definition at line 710 of file TGNumberEntry.cxx.
Definition at line 150 of file TGNumberEntry.cxx.
Definition at line 132 of file TGNumberEntry.cxx.
Definition at line 128 of file TGNumberEntry.cxx.