6 * Revision 1.3 1995/12/22 22:39:28 tamches
9 * Revision 1.2 1995/11/08 21:48:12 tamches
10 * moved implementation of constructor to .C file
12 * Revision 1.1 1995/11/04 00:46:39 tamches
13 * First version of new table visi
25 unsigned visiLibId; // what unique-id has the visi-lib assigned to us?
26 string longName, shortName;
27 unsigned longNamePixWidth, shortNamePixWidth;
30 tvFocus(){} // needed by class Vector (nuts)
31 tvFocus(unsigned iVisiLibId, const string &iLongName, XFontStruct *nameFontStruct);
33 tvFocus(const tvFocus &src) : longName(src.longName), shortName(src.shortName) {
34 visiLibId = src.visiLibId;
35 longNamePixWidth = src.longNamePixWidth;
36 shortNamePixWidth = src.shortNamePixWidth;
40 unsigned getVisiLibId() const {return visiLibId;}
42 bool less_than(const tvFocus &other, bool useLongName) {
44 return (longName < other.longName);
46 return (shortName < other.shortName);
49 bool greater_than(const tvFocus &other, bool useLongName) {
51 return (longName > other.longName);
53 return (shortName > other.shortName);
56 const string &getLongName() const {return longName;}
57 const string &getShortName() const {return shortName;}
58 unsigned getLongNamePixWidth() const {return longNamePixWidth;}
59 unsigned getShortNamePixWidth() const {return shortNamePixWidth;}