Link to: header | tables
directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
Comments
CCatSystemCatTable
This class manages cost category systems tables
for the Goldenseal estimating software,
small business management software, construction
project management software and
construction estimating software.
It's a member table used for categories in the Category Systems list. It uses
special cv's that list only some items
SUPERCLASS = CMemberTable
*****************
CCatSystemSubcatTable
a member table used for subcategories in the Category Systems list. It uses
special cv's that list only some items
SUPERCLASS = CMemberTable
Constructor
/*********************************************************************************
constructor
*********************************************************************************/
CCatSystemCatTable::CCatSystemCatTable(const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo)
: CMemberTable(inPaneInfo, inViewInfo)
{
mCatSystem = nil;
}
Source Code
/*********************************************************************************
CreateNewCellCVField
create a cv field for the given cell
*********************************************************************************/
CTCS_CVField *CCatSystemCatTable::CreateNewCellCVField(const TableCellT &inCell,
const SPaneInfo &inPaneInfo)
{
if (COL(inCell) == CCategorySystem::col_cat)
{
CCatSystemCatCV *catCV = NEW CCatSystemCatCV(inPaneInfo, mTextInfo,
id_Category, cHasPopup);
if (catCV)
{
catCV->SetCategorySystem(mCatSystem);
return catCV;
}
else
return nil;
}
else // TCS bugfix 4/9/99
return NEW DB_ShortClairvoyant(inPaneInfo, mTextInfo, GetCellCVClassID(inCell), cHasPopup);
}
|