ddColumnOptionIcon::ddColumnOptionIcon(ddColumnFigure *owner) { setKindId(DDCOLUMNOPTIONICON); ownerColumn = owner; colOption = null; icon = wxBitmap(*ddnull_png_img); iconToDraw = &icon; getBasicDisplayBox().SetSize(wxSize(getWidth(), getHeight())); //Set Value default Attributes fontAttribute->font().SetPointSize(owner->fontAttribute->font().GetPointSize()); }
ddTextTableItemFigure::ddTextTableItemFigure(wxString &columnName, ddDataType dataType, ddColumnFigure *owner): hdSimpleTextFigure(columnName) { setKindId(DDTEXTTABLEITEMFIGURE); ownerTable = NULL; //table name item is the only one case of use of this variable oneTimeNoAlias = false; columnType = dataType; this->setEditable(true); enablePopUp(); ownerColumn = owner; showDataType = true; showAlias = false; recalculateDisplayBox(); precision = -1; scale = -1; if(owner) //is Column Object { fontColorAttribute->fontColor = owner->getOwnerTable()->fontColorAttribute->fontColor; fontSelColorAttribute->fontColor = owner->getOwnerTable()->fontSelColorAttribute->fontColor; } }