00001 //--------------------------------------------------------------------------- 00002 // 00003 // File: TxqSciNumberPattern.h 00004 // 00005 // Purpose: a class for displaying a double value. 00006 // 00007 // Version: $Id: TxqSciNumberPattern.h,v 1.5 2001/10/12 18:51:23 kgl Exp $ 00008 // 00009 // This class name comes from Ronan's Jplot package. 00010 // 00011 //--------------------------------------------------------------------------- 00012 00013 #ifndef TXQ_SCINUMBERPATTERN_H 00014 #define TXQ_SCINUMBERPATTERN_H 00015 00021 class TxqSciNumberPattern 00022 { 00023 00024 public: 00025 00026 00030 TxqSciNumberPattern() 00031 { 00032 // default pattern is 0.00E+00 00033 numPreDecimal = 1; 00034 numPostDecimal = 2; 00035 numExp = 2; 00036 } 00037 00038 00045 TxqSciNumberPattern(int numPreDecimalDigits, 00046 int numPostDecimalDigits, 00047 int numExpDigits) 00048 { 00049 numPreDecimal = numPreDecimalDigits; 00050 numPostDecimal = numPostDecimalDigits; 00051 numExp = numExpDigits; 00052 } 00053 00054 QString patternString() 00055 { 00056 return QString(""); 00057 } 00058 00062 int numPreDecimal; 00063 00067 int numPostDecimal; 00068 00073 int numExp; 00074 00075 }; 00076 #endif
Copyright Tech-X Corporation, all rights reserved.