//------------------------------------------------------------------------------ // gui preset definitions -- // (C) Piero Giubilato 2007, Berkeley Lab -- //------------------------------------------------------------------------------ //______________________________________________________________________________ // {Trace} // [File name] "gui_Const.h" // [Author] "Piero Giubilato" // [Version] "1.0" // [Modified by] "Piero Giubilato" // [Last revision] "01 Mar 2009" // [Language] "C++" // [Compiler] "Visual C++ 9" // [Member of] "Cool SEAL" // [Project] "SEAL" // [Description] "This header sets all the application gui constants" // [Key documentation] // "Visual C++ Reference Help" // "Root reference guide" // {Trace} //______________________________________________________________________________ // Overloading check #if !defined gui_Const_H #define gui_Const_H // Root objects #include #include namespace gui_Const { // Gui colors const UInt_t frm_Bkg = TColor::RGB2Pixel(0, 0, 64); const UInt_t frm_Frg = TColor::RGB2Pixel(0, 0, 0); const UInt_t cnv_Bkg = TColor::RGB2Pixel(255, 0, 255); const UInt_t cnv_Frg = TColor::RGB2Pixel(255, 0, 0); const UInt_t cnv_write_Bkg = TColor::RGB2Pixel(255,0,0); const UInt_t cnv_write_Frg = TColor::RGB2Pixel(255, 0, 255); // Gui borders const Int_t frm_Border = 4; // Gui dimensions const Int_t cnv_draw_Width = 1024; const Int_t cnv_draw_Height = 768; // Buttons constants const Int_t btn_Width = 120; const Int_t btn_Height = 32; // General widget constants const Int_t wdgt_Width = 96; const Int_t wdgt_Height = 24; // Label constants const UInt_t align_Left = 0; const UInt_t align_Center = 1; const UInt_t align_Right = 2; const UInt_t align_Top = 4; const UInt_t align_Middle = 8; const UInt_t align_Bottom = 16; // Fine tuning for labels placement const UInt_t lbl_offset_Left = 6; const UInt_t lbl_offset_Right = 6; const UInt_t lbl_offset_Top = 0; const UInt_t lbl_offset_Bottom = 0; // Object colors const UInt_t obj_foreColor = 0x000000; const UInt_t obj_backColor = 0x999999; // Borders and bevels const UInt_t bvl_Size = 6; const Float_t bvl_Thick = 1; } // End of Overloading check #endif