#ifndef __DGFControlCommon_h__ #define __DGFControlCommon_h__ //_________________________________________________[C++ CLASS DEFINITION FILE] ////////////////////////////////////////////////////////////////////////////// // Name: DGFControlCommon.h // Purpose: Common defs for the DGF-4C GUI // Description: Defines common values to be used for DGFControl // Author: R. Lutter // Revision: $Id: DGFControlCommon.h,v 1.11 2008-10-14 10:22:29 Marabou Exp $ // Date: // URL: // Keywords: ////////////////////////////////////////////////////////////////////////////// namespace std {} using namespace std; #include #include #include "TMrbNamedX.h" // channel ids to be used by checkbuttons enum EDGFChannels { kDGFChannel0 = BIT(0), kDGFChannel1 = BIT(1), kDGFChannel2 = BIT(2), kDGFChannel3 = BIT(3) }; enum { kDGFChannelMask = kDGFChannel0 | kDGFChannel1 | kDGFChannel2 | kDGFChannel3 }; enum { kAutoWidth = 1 }; enum { kAutoHeight = 1 }; enum { kNofModulesPerCrystal = 2 }; enum { kNofModulesPerCluster = 6 }; enum { kNofClusters = 20 }; enum { kNofCrates = 8 }; // lifo to store objects located on heap #define HEAP(x) fHeap.AddFirst(x) const SMrbNamedX kDGFChannelNumbers[] = { {kDGFChannel0, "0", "Chn0" }, {kDGFChannel1, "1", "Chn1" }, {kDGFChannel2, "2", "Chn2" }, {kDGFChannel3, "3", "Chn3" }, {0, NULL, NULL } }; // geometry settings enum { kTabWidth = 1100 }; enum { kTabHeight = 950 }; enum { kVFrameWidth = kTabWidth / 2 }; enum { kVFrameHeight = kTabHeight / 2 }; enum { kLEWidth = kAutoWidth }; enum { kEntryWidth = 100 }; enum { kComboWidth = 200 }; enum { kFileEntryWidth = 200 }; enum { kLEHeight = 20 }; enum { kButtonWidth = 400 }; enum { kButtonHeight = 20 }; #endif