PieMenu::PieMenu(const LLContextMenu::Params& p) : LLContextMenu(p) { lldebugs << "PieMenu::PieMenu()" << llendl; // radius, so we need this *2 reshape(PIE_OUTER_SIZE*2,PIE_OUTER_SIZE*2,FALSE); // set up the font for the menu mFont=LLFontGL::getFont(LLFontDescriptor("SansSerif","Pie",LLFontGL::NORMAL)); if(!mFont) { llwarns << "Could not find font size for Pie menu, falling back to Small font." << llendl; mFont=LLFontGL::getFont(LLFontDescriptor("SansSerif","Small",LLFontGL::NORMAL)); } // set slices pointer to our own slices mSlices=&mMySlices; // this will be the first click on the menu mFirstClick=TRUE; // clean initialisation mSlice=0; }
PieMenu::PieMenu(const LLContextMenu::Params& p) : LLContextMenu(p), mCurrentSegment(-1) { LL_DEBUGS() << "PieMenu::PieMenu()" << LL_ENDL; // radius, so we need this *2 reshape(PIE_OUTER_SIZE * 2, PIE_OUTER_SIZE * 2, FALSE); // set up the font for the menu mFont = LLFontGL::getFont(LLFontDescriptor("SansSerif", "Pie", LLFontGL::NORMAL)); if (!mFont) { LL_WARNS() << "Could not find font size for Pie menu, falling back to Small font." << LL_ENDL; mFont = LLFontGL::getFont(LLFontDescriptor("SansSerif", "Small", LLFontGL::NORMAL)); } // set slices pointer to our own slices mSlices = &mMySlices; // this will be the first click on the menu mFirstClick = true; // clean initialisation mSlice = NULL; }
//static LLFontGL* LLFontGL::getFontSansSerifBold() { return getFont(LLFontDescriptor("SansSerif","Medium",BOLD)); }
//static LLFontGL* LLFontGL::getFontSansSerifHuge() { return getFont(LLFontDescriptor("SansSerif","Huge",0)); }
//static LLFontGL* LLFontGL::getFontSansSerifBig() { return getFont(LLFontDescriptor("SansSerif","Large",0)); }
//static LLFontGL* LLFontGL::getFontSansSerif() { return getFont(LLFontDescriptor("SansSerif","Medium",0)); }
//static LLFontGL* LLFontGL::getFontSansSerifSmall() { return getFont(LLFontDescriptor("SansSerif","Small",0)); }
//static LLFontGL* LLFontGL::getFontMonospace() { return getFont(LLFontDescriptor("Monospace","Monospace",0)); }
//static LLFontGL* LLFontGL::getFontSansSerifBold() { static LLFontGL* fontp = getFont(LLFontDescriptor("SansSerif","Medium",BOLD)); return fontp; }
//static LLFontGL* LLFontGL::getFontSansSerifHuge() { static LLFontGL* fontp = getFont(LLFontDescriptor("SansSerif","Huge",0)); return fontp; }
//static LLFontGL* LLFontGL::getFontSansSerifSmall() { static LLFontGL* fontp = getFont(LLFontDescriptor("SansSerif","Small",0)); return fontp; }
//static LLFontGL* LLFontGL::getFontMonospace() { static LLFontGL* fontp = getFont(LLFontDescriptor("Monospace","Monospace",0)); return fontp; }