41 #define MAX_TRANS_BOXES 4
42 #define MAX_TRANS_TYPES 6
43 #define MAX_TRANS_RESULTS 7
46 #define TRANS_SUBSTRATE 0
47 #define TRANS_COMPONENT 1
48 #define TRANS_PHYSICAL 2
49 #define TRANS_ELECTRICAL 3
51 #define TRANS_FREQS { "GHz", "Hz", "kHz", "MHz", NULL }
52 #define TRANS_OHMS { "Ohm", "kOhm", NULL }
53 #define TRANS_ANGLES { "Deg", "Rad", NULL }
54 #define TRANS_LENGTHS { "mil", "cm", "mm", "m", "um", "in", "ft", NULL }
55 #define TRANS_NONES { "NA", NULL }
139 void setUnit (QString,
const char *);
146 bool loadFile (QString,
int * _mode = 0);
154 void slotSelectType(
int);
155 void slotSynthesize();
157 void slotValueChanged();
160 void slotHelpIntro();
162 void slotRadioChecked(
int);
163 void slotCopyToClipBoard();
166 void updateSelection ();
167 void createPropItem (QVBox **,
TransValue *,
int, QButtonGroup *);
170 void createResultItems (QHGroupBox *);
171 void updateResultItems ();
172 void createPropItems (QHGroupBox *,
int);
177 void setupTranslations ();
178 bool saveFile (QString);
179 void updateMode (
void);
180 void storeValues (
void);
181 void updatePixmap (
int);
184 void closeEvent (QCloseEvent*);
187 QStatusBar * statBar;
189 QComboBox * tranType;
190 QHGroupBox * calculated;