void IconObj::Details(char *details) { delete _details; _details = STRDUP(details); if (IconView() == DETAILS) SetDetail(); }
//---------------------------------------------------------------------------------- SplineAgregator_Brush::SplineAgregator_Brush(const CObjectAbstract * Parent) : Super(Parent) { SetTransient(true); SetVisible(false); SetTypeGenerated(std::string("SplineAgregator")); SetKeyTypeGenerated(std::string("Point2D")); SetDetail(1); }
OpenUtility::CShaderProgram::Exception::Exception(OpenUtility::CShaderProgram::Exception::EError err,const char *detail) : OpenUtility::Exception(), ErrType(err) { CStream Err; switch(ErrType) { case EErrNotValid: Err+="Shader program not valid"; break; case EErrIdNotFound: Err+="Shader variable id not found"; break; } if (detail) Err.AddFormatStream(" (%s)",detail); SetDetail(Err.GetStream()); }
cPlugDetailOsdMenu::cPlugDetailOsdMenu(int Element) : libvdrskinservice::cPluginSkinOsdMenu("democlient", "Demo Client Detail") , element(Element) { SetDetail(); }
boolean IconObj::SetIcon(IconStyle style) { Pixmap pixmap, mask; int shrinkOutline = false; int pixmapPlacement; int alignment; int isOpened; BaseUI *parent = Parent(); if (ContainerView() == TREE) isOpened = true; else if (parent && parent->UISubClass() == ICON_LIST || parent->UISubClass() == SCROLLED_ICON_LIST) isOpened = true; else isOpened = Open(); switch (style) { case NAME_ONLY: pixmapPlacement = GuiPIXMAP_LEFT; alignment = XmALIGNMENT_BEGINNING; if (_name) { pixmap = XmUNSPECIFIED_PIXMAP; mask = XmUNSPECIFIED_PIXMAP; } else { pixmap = _smallPixmap; mask = _smallMask; } break; case VERY_LARGE_ICON: case LARGE_ICON: case MEDIUM_ICON: if (ContainerView() == TREE || (parent->UIClass() == CONTAINER && parent->UISubClass() == SCROLLED_VERTICAL_ROW_COLUMN)) { isOpened = true; pixmapPlacement = GuiPIXMAP_LEFT; } else pixmapPlacement = GuiPIXMAP_TOP; if (isOpened) alignment = XmALIGNMENT_BEGINNING; else alignment = LargeIconJustification; shrinkOutline = true; if (style == VERY_LARGE_ICON) { if (depth == 1) strcat(_iconFile, ".l.bm"); else strcat(_iconFile, ".l.pm"); GetPixmaps(_w, _iconFile, &pixmap, &mask); _iconFile[strlen(_iconFile) - 5] = '\0'; } else { pixmap = _largePixmap; mask = _largeMask; } break; case DETAILS: SetDetail(); // no break case SMALL_ICON: case TINY_ICON: alignment = XmALIGNMENT_BEGINNING; pixmapPlacement = GuiPIXMAP_LEFT; pixmap = _smallPixmap; mask = _smallMask; break; } if (_previous_style == DETAILS) { XmString xm_string = StringCreate(_name); XtVaSetValues(_w, XmNlabelPixmap, pixmap, GuiNiconMask, mask, XmNlabelString, xm_string, XmNalignment, alignment, GuiNpixmapPlacement, pixmapPlacement, GuiNisOpened, isOpened, GuiNshrinkOutline, shrinkOutline, NULL); StringFree(xm_string); } else XtVaSetValues(_w, XmNlabelPixmap, pixmap, GuiNiconMask, mask, GuiNpixmapPlacement, pixmapPlacement, XmNalignment, alignment, GuiNisOpened, isOpened, GuiNshrinkOutline, shrinkOutline, NULL); _previous_style = style; if (_stateIconName) SetStateIconFile(style); return true; }